/* SHIVAM ENTERPRISE — Orchard market shop (hero + chips + top filters + mosaic) */

@keyframes a34-shop-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes a34-shop-drift {
  0%, 100% { background-position: 0% 40%; }
  50% { background-position: 100% 60%; }
}

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

.a34-shop {
  padding: 0 0 3.5rem;
  background: transparent;
}

/* —— Hero —— */
.a34-shop-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 2.35rem 0 2.1rem;
  background:
    linear-gradient(125deg, #0f2a24 0%, #14635c 48%, #1fa2a0 78%, #f5a524 160%);
  background-size: 180% 180%;
  animation: a34-shop-drift 16s ease-in-out infinite;
}

.a34-shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(245, 165, 36, 0.28) 0%, transparent 42%),
    repeating-linear-gradient(-16deg, transparent 0 18px, rgba(255, 255, 255, 0.04) 18px 19px);
  pointer-events: none;
}

.a34-shop-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.a34-shop-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffe8a8;
  border-bottom: 2px dashed rgba(255, 232, 168, 0.55);
  display: inline-block;
  padding-bottom: 0.25rem;
}

.a34-shop-hero h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.85rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
}

.a34-shop-lede {
  margin: 0;
  opacity: 0.9;
  max-width: 38ch;
  font-size: 0.98rem;
}

.a34-shop-hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px 6px 18px 6px;
  padding: 1rem 1.25rem;
  text-align: right;
  min-width: 140px;
  backdrop-filter: blur(2px);
}

.a34-shop-hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.a34-shop-hero-stat span {
  font-size: 0.78rem;
  opacity: 0.85;
}

/* —— Category chips —— */
.a34-shop-cats {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--a34-border);
  position: sticky;
  top: 72px;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.a34-shop-cats-track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.85rem 0;
  scrollbar-width: thin;
}

.a34-shop-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--a34-border);
  background: #fff;
  color: var(--a34-ink);
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}

.a34-shop-chip em {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--a34-muted);
  background: var(--a34-mint);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
}

.a34-shop-chip:hover {
  border-color: var(--a34-teal);
  transform: translateY(-1px);
}

.a34-shop-chip.is-active {
  background: var(--a34-ink);
  border-color: var(--a34-ink);
  color: #fff;
}

.a34-shop-chip.is-active em {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* —— Shell —— */
.a34-shop-shell {
  padding-top: 1.35rem;
  display: grid;
  gap: 1.1rem;
}

/* —— Toolbar —— */
.a34-shop-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--a34-border);
  border-radius: 14px 4px 14px 4px;
  position: sticky;
  top: 132px;
  z-index: 35;
}

.a34-filter-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--a34-ink);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--a34-teal);
}

.a34-filter-mobile-toggle:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--a34-gold);
}

.a34-shop-count {
  margin: 0;
  font-size: 0.88rem;
  color: var(--a34-muted);
}

.a34-shop-count strong {
  color: var(--a34-ink);
  font-weight: 800;
}

.a34-shop-sort {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a34-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.a34-shop-sort select {
  padding: 0.45rem 1.6rem 0.45rem 0.65rem;
  border: 1px solid var(--a34-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  background: var(--a34-mint);
  color: var(--a34-ink);
  cursor: pointer;
}

.a34-view-switch {
  display: flex;
  gap: 0.3rem;
  padding: 0.25rem;
  background: var(--a34-mint);
  border-radius: 8px;
}

.a34-view-btn {
  width: 34px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--a34-muted);
}

.a34-view-btn.is-active {
  background: var(--a34-ink);
  color: #fff;
}

/* —— Filters: top panel on desktop, drawer on mobile —— */
.a34-shop-filters {
  background: #fff;
  border: 1px solid var(--a34-border);
  border-radius: 4px 18px 4px 18px;
  padding: 1.15rem 1.25rem 1.35rem;
  animation: a34-shop-rise 0.35s ease both;
}

.a34-filters-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.a34-filters-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--a34-ink);
}

.a34-clear-filters {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--a34-berry);
  text-decoration: none !important;
}

.a34-clear-filters:hover { text-decoration: underline !important; }

.a34-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.a34-filter-block {
  background: var(--a34-mint);
  border-radius: 12px;
  padding: 0.65rem 0.85rem 0.85rem;
  border: 1px solid transparent;
}

.a34-filter-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0 0.55rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--a34-ink);
  cursor: pointer;
  text-align: left;
}

.a34-filter-toggle {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: #fff;
  color: var(--a34-teal);
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
}

.a34-filter-block.is-open .a34-filter-toggle::before { content: '−'; }
.a34-filter-block:not(.is-open) .a34-filter-toggle::before { content: '+'; }

.a34-filter-panel {
  display: grid;
  gap: 0.45rem;
}

.a34-filter-panel[hidden] { display: none; }

.a34-filter-check {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--a34-muted);
  cursor: pointer;
  line-height: 1.35;
}

.a34-filter-check em {
  font-style: normal;
  opacity: 0.75;
}

.a34-filter-check input {
  margin-top: 0.12rem;
  accent-color: var(--a34-teal);
}

.a34-filter-check:has(input:checked) {
  color: var(--a34-ink);
  font-weight: 650;
}

.a34-price-note {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  color: var(--a34-muted);
}

.a34-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.a34-price-field { position: relative; }

.a34-price-field span {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--a34-muted);
}

.a34-price-field input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 1.3rem;
  border: 1px solid var(--a34-border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  background: #fff;
}

.a34-price-apply {
  width: 100%;
  padding: 0.5rem;
  border: 0;
  border-radius: 6px;
  background: var(--a34-ink);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.a34-price-apply:hover { background: var(--a34-teal); }

.a34-filter-backdrop { display: none; }

/* —— Product mosaic —— */
.a34-shop-main { min-width: 0; }

.a34-shop-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.a34-shop-grid[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.a34-shop-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.a34-shop-grid[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }

.a34-shop-grid[data-cols="3"] .a34-shop-card.is-featured,
.a34-shop-grid[data-cols="4"] .a34-shop-card.is-featured,
.a34-shop-grid[data-cols="5"] .a34-shop-card.is-featured {
  grid-column: span 2;
  grid-row: span 1;
}

.a34-shop-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--a34-border);
  border-radius: 4px 22px 4px 22px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  animation: a34-shop-rise 0.45s ease both;
}

.a34-shop-card:nth-child(2) { animation-delay: 0.04s; }
.a34-shop-card:nth-child(3) { animation-delay: 0.08s; }
.a34-shop-card:nth-child(4) { animation-delay: 0.12s; }
.a34-shop-card:nth-child(5) { animation-delay: 0.16s; }

.a34-shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 162, 160, 0.5);
}

.a34-shop-card-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.a34-shop-card.is-featured .a34-shop-card-link {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr;
  min-height: 100%;
}

.a34-shop-card-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 1rem;
  background:
    radial-gradient(circle at 50% 42%, #fff 0%, var(--a34-mint) 100%);
  border-radius: 0 0 40% 55% / 0 0 18% 22%;
  overflow: hidden;
  transition: border-radius 0.35s ease;
}

.a34-shop-card.is-featured .a34-shop-card-img {
  aspect-ratio: auto;
  min-height: 220px;
  height: 100%;
  border-radius: 0;
}

.a34-shop-card:hover .a34-shop-card-img {
  border-radius: 0 0 50% 40% / 0 0 24% 16%;
}

.a34-shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.a34-shop-card:hover .a34-shop-card-img img {
  transform: scale(1.07) rotate(-2deg);
}

.a34-shop-sale,
.a34-shop-sold {
  position: absolute;
  top: 0.75rem;
  left: 0.65rem;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 0 8px 8px 0;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.a34-shop-sale {
  background: var(--a34-gold);
  color: var(--a34-ink);
}

.a34-shop-sold {
  background: var(--a34-berry);
  color: #fff;
  left: auto;
  right: 0.65rem;
  border-radius: 8px 0 0 8px;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.a34-shop-card-body {
  padding: 0.95rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.a34-shop-card.is-featured .a34-shop-card-body {
  justify-content: center;
  padding: 1.35rem 1.25rem;
}

.a34-shop-card-cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--a34-berry);
}

.a34-shop-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--a34-ink);
}

.a34-shop-card.is-featured .a34-shop-card-title {
  font-size: 1.35rem;
}

.a34-shop-card-price {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--a34-ink);
}

.a34-shop-card-price strong {
  font-weight: 800;
  color: var(--a34-teal);
}

.a34-shop-card-price s {
  color: var(--a34-muted);
  font-weight: 400;
  margin-right: 0.35rem;
}

.a34-shop-card-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a34-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

.a34-shop-card-cta::after {
  content: '→';
}

.a34-shop-card:hover .a34-shop-card-cta,
.a34-shop-card.is-featured .a34-shop-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.a34-shop-card.is-sold-out .a34-shop-card-img { opacity: 0.55; }

.a34-shop-empty {
  text-align: center;
  padding: 3.5rem 1.25rem;
  background: #fff;
  border: 1px dashed var(--a34-border);
  border-radius: 18px;
  color: var(--a34-muted);
}

.a34-shop-empty .a34-btn-shop { margin-top: 1rem; }

/* —— Pagination —— */
.a34-shop .a34-shop-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.a34-shop .a34-page-num,
.a34-shop .a34-page-arrow {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--a34-border);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  color: var(--a34-ink);
  background: #fff;
}

.a34-shop .a34-page-num.is-active {
  background: var(--a34-ink);
  border-color: var(--a34-ink);
  color: #fff;
  box-shadow: 3px 3px 0 var(--a34-teal);
}

.a34-shop .a34-page-arrow:hover,
.a34-shop .a34-page-num:not(.is-active):hover {
  border-color: var(--a34-teal);
  color: var(--a34-teal);
}

.a34-shop .a34-page-gap {
  padding: 0 0.2rem;
  color: var(--a34-muted);
}

@media (min-width: 901px) {
  /* Filters always visible as top panel on desktop */
  body.page-shop .a34-filter-mobile-toggle {
    /* still useful to scroll-focus filters */
  }
}

@media (max-width: 1100px) {
  .a34-filters-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a34-shop-grid[data-cols="5"] { grid-template-columns: repeat(4, 1fr); }
  .a34-shop-cats { top: 64px; }
  .a34-shop-toolbar { top: 124px; }
}

@media (max-width: 900px) {
  .a34-shop-toolbar {
    grid-template-columns: 1fr 1fr;
    top: 0;
    position: relative;
  }

  .a34-filter-mobile-toggle { grid-column: 1 / -1; }

  .a34-filters-grid { grid-template-columns: 1fr; }

  .a34-shop-filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(340px, 90vw);
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 8px 0 28px rgba(15, 42, 36, 0.18);
  }

  body.a34-filters-open .a34-shop-filters {
    transform: translateX(0);
  }

  .a34-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(15, 42, 36, 0.4);
  }

  body.a34-filters-open .a34-filter-backdrop { display: block; }

  .a34-shop-grid[data-cols="4"],
  .a34-shop-grid[data-cols="5"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .a34-shop-grid[data-cols="3"] .a34-shop-card.is-featured,
  .a34-shop-grid[data-cols="4"] .a34-shop-card.is-featured,
  .a34-shop-grid[data-cols="5"] .a34-shop-card.is-featured {
    grid-column: span 2;
  }

  .a34-shop-card.is-featured .a34-shop-card-link {
    grid-template-columns: 1fr;
  }

  .a34-shop-cats { position: relative; top: auto; }
}

@media (max-width: 640px) {
  .a34-shop-hero-inner { align-items: flex-start; }
  .a34-shop-hero-stat { text-align: left; }
  .a34-shop-toolbar { grid-template-columns: 1fr; }
  .a34-view-switch { justify-self: start; }

  .a34-shop-grid[data-cols="3"],
  .a34-shop-grid[data-cols="4"],
  .a34-shop-grid[data-cols="5"] {
    grid-template-columns: repeat(2, 1fr);
  }

  .a34-shop-grid[data-cols="3"] .a34-shop-card.is-featured,
  .a34-shop-grid[data-cols="4"] .a34-shop-card.is-featured,
  .a34-shop-grid[data-cols="5"] .a34-shop-card.is-featured {
    grid-column: span 2;
  }
}

@media (max-width: 400px) {
  .a34-shop-grid[data-cols="3"],
  .a34-shop-grid[data-cols="4"],
  .a34-shop-grid[data-cols="5"] {
    grid-template-columns: 1fr;
  }

  .a34-shop-grid[data-cols="3"] .a34-shop-card.is-featured,
  .a34-shop-grid[data-cols="4"] .a34-shop-card.is-featured,
  .a34-shop-grid[data-cols="5"] .a34-shop-card.is-featured {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a34-shop-hero,
  .a34-shop-card,
  .a34-shop-filters {
    animation: none;
  }
}
