/* Shop — Sprout Conservatory vault (same layout, unique visual system) */

.page-shop.a39-shop-conservatory {
  --a39-shop-glow: #52B788;
  --a39-shop-bloom: #95D5B2;
  --a39-shop-cream: #FFF8EF;
  --a39-shop-surface: #F0EDE6;
  --a39-shop-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-shop.a39-shop-conservatory .page-main {
  background: var(--a39-shop-cream);
}

/* ── Hero ── */
.a39-shop-hero {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 0 1.5rem;
  background: linear-gradient(135deg, var(--a39-moss-dark) 0%, var(--a39-moss) 52%, #24543f 100%) !important;
  color: #fff;
}
.a39-shop-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(circle at 10% 80%, rgba(149, 213, 178, 0.3), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(184, 134, 11, 0.18), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='8' cy='8' r='1' fill='%23ffffff' fill-opacity='0.06'/%3E%3C/svg%3E");
}
.a39-shop-hero .container { position: relative; z-index: 1; }

.a39-shop-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}
.a39-shop-crumb a {
  color: var(--a39-shop-bloom);
  font-weight: 600;
  text-decoration: none;
}
.a39-shop-crumb a:hover { color: #fff; text-decoration: underline; }

.a39-shop-hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: 1.5rem;
  align-items: end;
}
.a39-shop-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a39-shop-bloom);
}
.a39-shop-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a39-shop-glow);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.35);
}
.a39-shop-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--a39-font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.a39-shop-lede {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: 0.98rem;
}
.a39-shop-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.a39-shop-hero__chips span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.a39-shop-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(8, 28, 21, 0.22);
}
.a39-shop-search__icon {
  display: grid;
  place-items: center;
  color: var(--a39-moss);
  flex-shrink: 0;
}
.a39-shop-search__icon svg { width: 20px; height: 20px; }
.a39-shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.55rem 0;
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  background: transparent;
  color: var(--a39-ink);
}
.a39-shop-search input::placeholder { color: var(--a39-muted); }
.a39-shop-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--a39-moss), var(--a39-moss-light));
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--a39-shop-ease), box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.25);
  white-space: nowrap;
}
.a39-shop-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 67, 50, 0.3);
  color: #fff;
  text-decoration: none;
}
.a39-shop-search-btn--solid { border-radius: 999px; margin-top: 1rem; }

/* ── Body ── */
.a39-shop-body { padding: 2rem 0 4rem; }

.a39-shop-tabs {
  display: none;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
.a39-shop-tabs::-webkit-scrollbar { display: none; }
.a39-shop-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 67, 50, 0.12);
  background: #fff;
  color: var(--a39-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.25s var(--a39-shop-ease);
  box-shadow: 0 4px 12px rgba(26, 46, 46, 0.04);
}
.a39-shop-tab span {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(27, 67, 50, 0.06);
}
.a39-shop-tab.is-active {
  background: var(--a39-moss);
  border-color: var(--a39-moss);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(27, 67, 50, 0.2);
}
.a39-shop-tab.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.a39-shop-tab:hover:not(.is-active) {
  border-color: var(--a39-moss);
  color: var(--a39-moss);
  text-decoration: none;
}

.a39-shop-layout {
  display: grid;
  grid-template-columns: 252px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Sidebar */
.a39-shop-sidebar {
  position: sticky;
  top: 140px;
  padding: 1.25rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #fff 0%, rgba(149, 213, 178, 0.12) 100%);
  border: 1px solid rgba(27, 67, 50, 0.1);
  box-shadow: 0 16px 40px rgba(26, 46, 46, 0.08);
}
.a39-shop-sidebar h2 {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a39-copper);
}
.a39-shop-filters { display: grid; gap: 0.35rem; }
.a39-shop-filter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  color: var(--a39-ink);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s, transform 0.25s var(--a39-shop-ease);
  overflow: hidden;
}
.a39-shop-filter::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--a39-moss);
  transform: scaleY(0);
  transition: transform 0.3s var(--a39-shop-ease);
}
.a39-shop-filter span { min-width: 0; line-height: 1.3; }
.a39-shop-filter em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--a39-moss);
  background: rgba(27, 67, 50, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s;
}
.a39-shop-filter.is-active,
.a39-shop-filter:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--a39-moss);
  text-decoration: none;
  transform: translateX(4px);
}
.a39-shop-filter.is-active::before,
.a39-shop-filter:hover::before { transform: scaleY(1); }
.a39-shop-filter.is-active em,
.a39-shop-filter:hover em {
  background: var(--a39-moss);
  color: #fff;
}
.a39-shop-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--a39-copper);
  text-decoration: none;
  background: rgba(184, 134, 11, 0.1);
  transition: background 0.2s;
}
.a39-shop-clear:hover {
  background: rgba(184, 134, 11, 0.18);
  text-decoration: none;
}

/* Toolbar */
.a39-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.65rem 1rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.08);
  box-shadow: 0 6px 18px rgba(26, 46, 46, 0.04);
}
.a39-shop-toolbar p { margin: 0; font-size: 0.88rem; color: var(--a39-muted); }
.a39-shop-toolbar__count span {
  display: inline-block;
  min-width: 1.5rem;
  padding: 0.1rem 0.45rem;
  margin-right: 0.25rem;
  border-radius: 8px;
  background: rgba(27, 67, 50, 0.08);
  font-weight: 800;
  color: var(--a39-moss);
  text-align: center;
}
.a39-shop-toolbar-pages {
  font-weight: 700;
  color: var(--a39-moss) !important;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(82, 183, 136, 0.15);
}

/* Product grid */
.a39-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}
.a39-shop-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(26, 46, 46, 0.06);
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s var(--a39-shop-ease),
    transform 0.5s var(--a39-shop-ease),
    box-shadow 0.3s,
    border-color 0.3s;
}
.a39-shop-card.is-visible {
  opacity: 1;
  transform: none;
}
.a39-shop-card:hover {
  box-shadow: 0 20px 44px rgba(26, 46, 46, 0.12);
  border-color: rgba(82, 183, 136, 0.35);
  transform: translateY(-4px);
}
.a39-shop-card.is-visible:hover { transform: translateY(-4px); }

.a39-shop-card__img {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: var(--a39-shop-surface);
  overflow: hidden;
}
.a39-shop-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 28, 21, 0.25));
  opacity: 0;
  transition: opacity 0.35s;
}
.a39-shop-card:hover .a39-shop-card__img::after { opacity: 1; }
.a39-shop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8%;
  box-sizing: border-box;
  transition: transform 0.45s var(--a39-shop-ease);
}
.a39-shop-card:hover .a39-shop-card__img img { transform: scale(1.03); }
.a39-shop-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.a39-shop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.95rem 1rem 1.1rem;
  gap: 0.4rem;
}
.a39-shop-card__cat {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a39-copper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a39-shop-card__body h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.6em;
}
.a39-shop-card__body h3 a {
  color: var(--a39-ink);
  text-decoration: none;
}
.a39-shop-card__body h3 a:hover { color: var(--a39-moss); }
.a39-shop-card__sku {
  font-size: 0.66rem;
  color: var(--a39-muted);
  font-family: ui-monospace, monospace;
  opacity: 0.85;
}
.a39-shop-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(27, 67, 50, 0.1);
}
.a39-shop-card__price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--a39-moss);
}
.a39-shop-stars {
  display: flex;
  gap: 1px;
  font-size: 0.68rem;
  color: rgba(26, 46, 46, 0.15);
}
.a39-shop-stars .is-on { color: var(--a39-copper); }
.a39-shop-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding: 0.6rem;
  border-radius: 12px;
  border: 0;
  background: rgba(27, 67, 50, 0.06);
  color: var(--a39-moss);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.a39-shop-card__btn::after {
  content: "→";
  transition: transform 0.25s var(--a39-shop-ease);
}
.a39-shop-card__btn:hover {
  background: var(--a39-moss);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.a39-shop-card__btn:hover::after { transform: translateX(3px); }

/* Empty state */
.a39-shop-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 24px;
  background: linear-gradient(160deg, #fff, rgba(149, 213, 178, 0.15));
  border: 2px dashed rgba(27, 67, 50, 0.12);
}
.a39-shop-empty h2 {
  margin: 0 0 0.5rem;
  font-family: var(--a39-font-display);
  font-size: 1.35rem;
  color: var(--a39-ink);
}
.a39-shop-empty p {
  margin: 0;
  color: var(--a39-muted);
  max-width: 28rem;
  margin-inline: auto;
}

/* Pagination */
.page-shop .catalog-pagination { margin-top: 2.25rem; }
.page-shop .pagination-inner {
  gap: 0.5rem;
}
.page-shop .pagination-btn,
.page-shop .pagination-num {
  border-radius: 12px;
  transition: all 0.2s var(--a39-shop-ease);
}
.page-shop .pagination-num.is-active {
  background: linear-gradient(135deg, var(--a39-moss), var(--a39-moss-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 16px rgba(27, 67, 50, 0.2);
}
.page-shop .pagination-btn:hover,
.page-shop .pagination-num:hover:not(.is-active) {
  background: rgba(82, 183, 136, 0.12);
  border-color: var(--a39-shop-glow);
  color: var(--a39-moss);
}

@media (max-width: 1100px) {
  .a39-shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .a39-shop-hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .a39-shop-tabs { display: flex; }
  .a39-shop-sidebar { display: none; }
  .a39-shop-layout { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 720px) {
  .a39-shop-grid { grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
  .a39-shop-search { flex-wrap: wrap; border-radius: 14px; }
  .a39-shop-search input { width: 100%; padding: 0.35rem 0; }
  .a39-shop-search-btn { width: 100%; }
}

@media (max-width: 420px) {
  .a39-shop-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .a39-shop-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.2s, border-color 0.2s;
  }
}
