/* Appily Fortyone — Petal Bazaar shop (creative dynamic UI) */

.page-shop-bazaar {
  --bz-olive: var(--a41-olive);
  --bz-olive-dark: var(--a41-olive-dark);
  --bz-gold: var(--a41-gold);
  --bz-rose: var(--a41-rose);
  --bz-sage: var(--a41-sage-mid);
  --bz-ink: var(--a41-ink);
  --bz-muted: var(--a41-muted);
  --bz-border: var(--a41-border);
  --bz-cream: #ffffff;
  --bz-white: var(--a41-white);
  background: #ffffff;
}

.page-shop-bazaar .page-main { padding-top: 0; }

.a41-bazaar-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bz-gold);
}

/* —— Hero —— */
.a41-bazaar-hero {
  position: relative;
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  overflow: hidden;
}
.a41-bazaar-hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(229, 168, 35, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 5% 90%, rgba(101, 117, 59, 0.06) 0%, transparent 50%),
    linear-gradient(175deg, #ffffff 0%, #f7faf4 55%, #f3f7ef 100%);
  pointer-events: none;
}
.a41-bazaar-petal {
  position: absolute;
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.22;
  animation: a41BazaarDrift 16s ease-in-out infinite;
}
.a41-bazaar-petal--a {
  width: 340px; height: 340px;
  top: -100px; right: 5%;
  background: rgba(101, 117, 59, 0.22);
}
.a41-bazaar-petal--b {
  width: 260px; height: 260px;
  bottom: -80px; left: 10%;
  background: rgba(229, 168, 35, 0.18);
  animation-delay: -6s;
}
.a41-bazaar-petal--c {
  width: 180px; height: 180px;
  top: 40%; left: 45%;
  background: rgba(196, 85, 110, 0.12);
  animation-delay: -10s;
}
@keyframes a41BazaarDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -10px) scale(1.04); }
}

.a41-bazaar-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}
.a41-bazaar-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--bz-ink);
}
.a41-bazaar-lede {
  margin: 0 0 18px;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.6;
  color: #3d362c;
}
.a41-bazaar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.a41-bazaar-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #2c261c;
  box-shadow: 0 4px 14px rgba(42, 36, 24, 0.04);
}
.a41-bazaar-stat strong { color: #3f4a2e; font-weight: 800; }
.a41-bazaar-stat--gold {
  background: rgba(229, 168, 35, 0.12);
  border-color: rgba(229, 168, 35, 0.35);
  color: var(--bz-olive-dark);
}

/* Search panel */
.a41-bazaar-search {
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 16px;
  background: var(--bz-white);
  border: 2px solid var(--bz-border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(42, 36, 24, 0.08);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.a41-bazaar-search:focus-within {
  border-color: var(--bz-gold);
  box-shadow: 0 16px 48px rgba(229, 168, 35, 0.15);
}
.a41-bazaar-search-icon {
  flex-shrink: 0;
  color: var(--bz-olive);
  opacity: 0.65;
}
.a41-bazaar-search input {
  flex: 1;
  border: 0;
  padding: 14px 12px;
  font: inherit;
  font-size: 15px;
  background: transparent;
  color: var(--bz-ink);
  min-width: 0;
}
.a41-bazaar-search input:focus { outline: none; }
.a41-bazaar-search-btn {
  flex-shrink: 0;
  border: 0;
  padding: 12px 22px;
  border-radius: 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-white);
  background: linear-gradient(135deg, var(--bz-olive), var(--bz-olive-dark));
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.a41-bazaar-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(74, 85, 48, 0.28);
}

/* —— Collection rail —— */
.a41-bazaar-rail {
  position: relative;
  margin-bottom: 8px;
  padding: 4px 0 12px;
}
.a41-bazaar-rail::before,
.a41-bazaar-rail::after {
  content: '';
  position: absolute;
  top: 0; bottom: 12px;
  width: 48px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s;
}
.a41-bazaar-rail::before {
  left: 0;
  background: linear-gradient(90deg, var(--bz-cream), transparent);
  opacity: 0;
}
.a41-bazaar-rail::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bz-cream), transparent);
}
.a41-bazaar-rail:not(.is-start)::before { opacity: 1; }
.a41-bazaar-rail.is-end::after { opacity: 0; }

.a41-bazaar-rail-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.a41-bazaar-rail-track::-webkit-scrollbar { display: none; }

.a41-bazaar-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: 14px;
  text-decoration: none !important;
  color: var(--bz-ink);
  box-shadow: 0 4px 16px rgba(42, 36, 24, 0.04);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s, color 0.2s;
}
.a41-bazaar-chip:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--chip-hue, var(--bz-olive)) 40%, var(--bz-border));
  color: var(--bz-ink);
  box-shadow: 0 12px 28px rgba(42, 36, 24, 0.08);
  text-decoration: none !important;
}
.a41-bazaar-chip.is-active {
  border-color: var(--chip-hue, var(--bz-olive));
  background: linear-gradient(135deg, var(--bz-white) 0%, color-mix(in srgb, var(--chip-hue, var(--bz-olive)) 8%, white) 100%);
  color: var(--bz-ink);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--chip-hue, var(--bz-olive)) 18%, transparent);
}
.a41-bazaar-chip-icon {
  font-size: 14px;
  color: var(--chip-hue, var(--bz-olive));
  transition: transform 0.3s;
}
.a41-bazaar-chip.is-active .a41-bazaar-chip-icon { transform: rotate(72deg); }
.a41-bazaar-chip-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.a41-bazaar-chip-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-hue, var(--bz-olive)) 18%, white);
  color: #1f1a12;
  opacity: 1;
}

/* —— Layout —— */
.a41-bazaar-layout {
  display: grid;
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px 0 48px;
}

/* —— Filters sidebar —— */
.a41-bazaar-filters {
  position: sticky;
  top: calc(var(--a41-header-offset, 100px) + 12px);
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: 20px;
  padding: 22px 20px 18px;
  box-shadow: 0 12px 36px rgba(42, 36, 24, 0.06);
}
.a41-bazaar-filters-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--bz-border);
}
.a41-bazaar-filters-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bz-ink);
}
.a41-bazaar-filters-close {
  display: none;
  border: 0;
  background: var(--bz-cream);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--bz-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.a41-bazaar-filter-block {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(42, 36, 24, 0.06);
}
.a41-bazaar-filter-block:last-of-type { border-bottom: 0; }
.a41-bazaar-filter-block h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f4a2e;
}
.a41-bazaar-filter-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(101, 117, 59, 0.16);
  color: #2f3a1f;
}
.a41-bazaar-filter-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--bz-muted);
}
.a41-bazaar-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--bz-ink);
}
.a41-bazaar-filter-row input { accent-color: var(--bz-olive); margin-right: 6px; }
.a41-bazaar-filter-row span { font-size: 11px; color: var(--bz-muted); }
.a41-bazaar-filter-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a41-bazaar-filter-prices label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bz-muted);
}
.a41-bazaar-filter-prices input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--bz-border);
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  background: var(--bz-cream);
  color: var(--bz-ink);
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.a41-bazaar-filter-prices input:focus {
  outline: none;
  border-color: var(--bz-gold);
}
.a41-bazaar-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.a41-bazaar-filter-chip { cursor: pointer; }
.a41-bazaar-filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.a41-bazaar-filter-chip span {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 999px;
  border: 1px solid var(--bz-border);
  background: var(--bz-cream);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.a41-bazaar-filter-chip span em { font-style: normal; opacity: 1; font-size: 11px; font-weight: 700; color: #3d362c; }
.a41-bazaar-filter-chip input:checked + span {
  background: var(--bz-olive);
  border-color: var(--bz-olive);
  color: var(--bz-white);
  transform: scale(1.02);
}
.a41-bazaar-filter-chip:hover span { border-color: var(--bz-gold); }
.a41-bazaar-filters-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.a41-bazaar-filters-apply {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-white);
  background: linear-gradient(135deg, var(--bz-gold), #c9921a);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(229, 168, 35, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.a41-bazaar-filters-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 168, 35, 0.42);
}
.a41-bazaar-filters-reset {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--bz-muted);
  text-decoration: none !important;
}
.a41-bazaar-filters-reset:hover { color: var(--bz-olive); }

.a41-bazaar-backdrop { display: none; }

/* —— Main area —— */
.a41-bazaar-main { min-width: 0; }

.a41-bazaar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bz-border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(42, 36, 24, 0.05);
}
.a41-bazaar-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.a41-bazaar-filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--bz-olive);
  border-radius: 999px;
  background: var(--bz-white);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--bz-olive);
  cursor: pointer;
}
.a41-bazaar-filters-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--bz-gold);
  color: var(--bz-white);
}
.a41-bazaar-active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.a41-bazaar-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bz-olive);
  background: rgba(101, 117, 59, 0.08);
  border: 1px solid rgba(101, 117, 59, 0.2);
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
}
.a41-bazaar-tag:hover {
  background: rgba(101, 117, 59, 0.14);
  border-color: var(--bz-olive);
}
.a41-bazaar-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Sort with glider */
.a41-bazaar-sort {
  position: relative;
  display: flex;
  gap: 2px;
  padding: 4px;
  background: var(--bz-cream);
  border: 1px solid var(--bz-border);
  border-radius: 999px;
}
.a41-bazaar-sort-glider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  background: var(--bz-olive);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.a41-bazaar-sort-btn {
  position: relative;
  z-index: 1;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #3d362c;
  background: transparent;
  border: 0;
  text-decoration: none !important;
  transition: color 0.2s;
  white-space: nowrap;
}
.a41-bazaar-sort-btn.is-active { color: var(--bz-white); }
.a41-bazaar-sort-btn:hover:not(.is-active) { color: var(--bz-ink); }

.a41-bazaar-view {
  display: flex;
  padding: 4px;
  border: 1px solid var(--bz-border);
  border-radius: 12px;
  background: var(--bz-cream);
}
.a41-bazaar-view-btn {
  border: 0;
  width: 36px;
  height: 36px;
  font: inherit;
  font-size: 16px;
  color: var(--bz-muted);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.a41-bazaar-view-btn.is-active {
  color: var(--bz-white);
  background: var(--bz-olive);
}

/* —— Product mosaic —— */
.a41-bazaar-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.a41-bazaar-mosaic[hidden],
.a41-bazaar-grid[hidden] { display: none; }

.a41-bazaar-card {
  background: var(--bz-white);
  border: 1px solid var(--bz-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(42, 36, 24, 0.05);
}

.a41-bazaar-card--mosaic {
  margin-top: var(--stem-offset, 0);
  animation: a41BazaarStemIn 0.5s ease backwards;
  animation-delay: var(--stem-delay, 0ms);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s;
}
@keyframes a41BazaarStemIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.a41-bazaar-card--mosaic:nth-child(3n+2) {
  margin-top: calc(var(--stem-offset, 0) + 16px);
}
.a41-bazaar-card--mosaic.tone-olive { --tone: var(--bz-olive); }
.a41-bazaar-card--mosaic.tone-gold { --tone: var(--bz-gold); }
.a41-bazaar-card--mosaic.tone-rose { --tone: var(--bz-rose); }
.a41-bazaar-card--mosaic.tone-sage { --tone: var(--bz-sage); }
.a41-bazaar-card--mosaic:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 22px 48px rgba(42, 36, 24, 0.12);
}

.a41-bazaar-card-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 32%, #ffffff 0%, transparent 58%),
    linear-gradient(160deg, #fcfbf8, #f4f8f1);
  text-decoration: none !important;
  overflow: hidden;
  padding: 1.15rem;
  box-sizing: border-box;
}
.a41-bazaar-card-ring {
  position: absolute;
  inset: 12px;
  border: 2px dashed color-mix(in srgb, var(--tone, var(--bz-olive)) 25%, transparent);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.4s, opacity 0.3s;
  opacity: 0.5;
}
.a41-bazaar-card--mosaic:hover .a41-bazaar-card-ring {
  transform: rotate(90deg) scale(1.05);
  opacity: 0.8;
}
.a41-bazaar-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  filter: brightness(1.05) contrast(1.03);
  transition: transform 0.4s ease;
}
.a41-bazaar-card--mosaic:hover .a41-bazaar-card-photo img {
  transform: scale(1.04);
}

.a41-bazaar-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bz-white);
}
.a41-bazaar-card-tag--sale {
  background: linear-gradient(135deg, var(--bz-gold), #c9921a);
  color: var(--bz-ink);
}
.a41-bazaar-card-tag--out { background: var(--bz-muted); }

.a41-bazaar-card-body { padding: 14px 16px 16px; }
.a41-bazaar-card-cat {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tone, var(--bz-sage));
}
.a41-bazaar-card-body h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}
.a41-bazaar-card-body h3 a {
  color: var(--bz-ink);
  text-decoration: none !important;
}
.a41-bazaar-card-body h3 a:hover { color: var(--bz-olive); }
.a41-bazaar-card-meta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--bz-muted);
}
.a41-bazaar-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--bz-border);
}
.a41-bazaar-card-price {
  margin: 0;
  font-size: 15px;
}
.a41-bazaar-card-price strong {
  font-weight: 700;
  color: var(--bz-olive);
}
.a41-bazaar-card-price s {
  margin-right: 4px;
  color: var(--bz-muted);
  font-size: 12px;
}
.a41-bazaar-card-cta {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--bz-white) !important;
  background: var(--tone, var(--bz-olive));
  text-decoration: none !important;
  transition: transform 0.25s, box-shadow 0.25s;
}
.a41-bazaar-card-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(42, 36, 24, 0.18);
  text-decoration: none !important;
}
.a41-bazaar-card.is-sold-out .a41-bazaar-card-photo,
.a41-bazaar-card.is-sold-out .a41-bazaar-card-frame { opacity: 0.5; }

/* —— Grid view —— */
.a41-bazaar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.a41-bazaar-card--grid {
  transition: transform 0.25s, box-shadow 0.25s;
}
.a41-bazaar-card--grid:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(42, 36, 24, 0.1);
}
.a41-bazaar-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}
.a41-bazaar-card-frame {
  position: relative;
  aspect-ratio: 1;
  padding: 1.15rem;
  background:
    radial-gradient(circle at 50% 32%, #ffffff 0%, transparent 58%),
    linear-gradient(145deg, #fcfbf8, #f4f8f1);
  border-bottom: 1px solid var(--bz-border);
  box-sizing: border-box;
}
.a41-bazaar-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.05) contrast(1.03);
}
.a41-bazaar-card-copy {
  padding: 12px 14px 14px;
  text-align: center;
}
.a41-bazaar-card-copy h3 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--bz-ink);
}

/* —— Empty + pagination —— */
.a41-bazaar-empty {
  text-align: center;
  padding: 56px 24px;
  background: var(--bz-white);
  border-radius: 20px;
  border: 2px dashed var(--bz-border);
  color: var(--bz-muted);
}
.a41-bazaar-empty-bloom {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--bz-gold);
  animation: a41BazaarBloom 3s ease-in-out infinite;
}
@keyframes a41BazaarBloom {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.6; }
  50% { transform: rotate(72deg) scale(1.1); opacity: 1; }
}
.a41-bazaar-empty-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: var(--bz-white) !important;
  background: var(--bz-olive);
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.a41-bazaar-empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(74, 85, 48, 0.28);
  text-decoration: none !important;
}

.a41-bazaar .a41-shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.a41-bazaar .a41-page-num,
.a41-bazaar .a41-page-arrow {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--bz-border);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  color: var(--bz-olive);
  background: var(--bz-white);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.a41-bazaar .a41-page-num.is-active {
  background: var(--bz-gold);
  border-color: transparent;
  color: var(--bz-white);
  box-shadow: 0 6px 16px rgba(229, 168, 35, 0.35);
}
.a41-bazaar .a41-page-arrow:hover,
.a41-bazaar .a41-page-num:not(.is-active):hover {
  border-color: var(--bz-olive);
  background: rgba(101, 117, 59, 0.06);
  transform: translateY(-1px);
}
.a41-bazaar .a41-page-gap {
  padding: 0 4px;
  color: var(--bz-muted);
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .a41-bazaar-layout { grid-template-columns: 1fr; }
  .a41-bazaar-filters {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1200;
    width: min(320px, 88vw);
    border-radius: 0 20px 20px 0;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }
  .a41-bazaar-filters.is-open { transform: translateX(0); }
  .a41-bazaar-filters-close { display: grid; place-items: center; }
  .a41-bazaar-filters-toggle { display: inline-flex; }
  .a41-bazaar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(30, 24, 36, 0.45);
    backdrop-filter: blur(4px);
  }
  .a41-bazaar-backdrop[hidden] { display: none; }
  body.a41-bazaar-filters-open { overflow: hidden; }
  .a41-bazaar-hero-grid { grid-template-columns: 1fr; }
  .a41-bazaar-sort-glider { display: none; }
  .a41-bazaar-sort-btn.is-active { background: var(--bz-olive); }
}
@media (max-width: 640px) {
  .a41-bazaar-toolbar { flex-direction: column; align-items: stretch; }
  .a41-bazaar-toolbar-right { justify-content: space-between; }
  .a41-bazaar-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .a41-bazaar-card--mosaic:nth-child(3n+2) { margin-top: var(--stem-offset, 0); }
  .a41-bazaar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a41-bazaar-filter-prices { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .a41-bazaar-petal,
  .a41-bazaar-empty-bloom,
  .a41-bazaar-card--mosaic,
  .a41-bazaar-card-photo img,
  .a41-bazaar-sort-glider { animation: none; transition: none; }
}

/* Legacy card classes (catalog.php / other pages) */
.a41-shop-card {
  background: var(--bz-white, var(--a41-white));
  border: 1px solid var(--bz-border, var(--a41-border));
  border-radius: 14px;
  overflow: hidden;
}
.a41-shop-card-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}
.a41-shop-card-img {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.98) 0%, transparent 58%),
    linear-gradient(160deg, var(--bz-cream, #f5f1e8), var(--bz-white, #fff));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem;
  box-sizing: border-box;
}
.a41-shop-card-img img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.a41-shop-sale {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--bz-gold, var(--a41-gold));
  color: var(--bz-ink, var(--a41-ink));
}
.a41-shop-card-title {
  margin: 0;
  padding: 0.65rem 0.75rem 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.a41-shop-card-price {
  margin: 0;
  padding: 0.25rem 0.75rem 0.75rem;
  font-size: 0.82rem;
}
.a41-shop-card-price strong { color: var(--bz-olive, var(--a41-olive)); }
.a41-shop-card.is-sold-out .a41-shop-card-img { opacity: 0.55; }
