/* Amytea — premium, mobile-first shop archive */
.shop-archive {
  margin-top: 72px;
  background: var(--color-surface);
}

.shop-hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--section-pad-x) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgba(217, 95, 43, .16), transparent 28%),
    radial-gradient(circle at 14% 16%, rgba(100, 38, 111, .14), transparent 34%),
    linear-gradient(120deg, #fff9f1, #fff 62%, #f6eaf7);
}

.shop-hero::after {
  content: "A";
  position: absolute;
  right: -2rem;
  bottom: -5rem;
  color: rgba(100, 38, 111, .035);
  font-family: var(--font-display);
  font-size: clamp(15rem, 32vw, 28rem);
  line-height: .7;
}

.shop-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: end;
}

.shop-eyebrow,
.shop-toolbar__label {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

.shop-hero h1 {
  max-width: 760px;
  margin: .9rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.shop-hero__desc {
  max-width: 650px;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
}

.shop-hero__aside {
  width: min(100%, 250px);
  padding: 1.35rem;
  border: 1px solid rgba(100, 38, 111, .12);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(12px);
}

.shop-hero__aside > span {
  display: block;
  color: var(--color-accent);
  font-size: .68rem;
  font-weight: var(--weight-bold);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.shop-hero__aside strong {
  display: block;
  margin: .35rem 0;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
}

.shop-hero__aside p {
  color: var(--color-text-secondary);
  font-size: .82rem;
  line-height: 1.45;
}

.shop-hero__proofs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 1.15rem;
  overflow-x: auto;
  border-top: 1px solid rgba(100, 38, 111, .12);
  scrollbar-width: none;
}

.shop-hero__proofs::-webkit-scrollbar {
  display: none;
}

.shop-hero__proofs span {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
  font-size: .75rem;
  font-weight: var(--weight-medium);
}

.shop-catalog {
  padding: clamp(2.5rem, 6vw, 5rem) var(--section-pad-x) clamp(4rem, 8vw, 7rem);
}

.shop-categories {
  display: flex;
  gap: .65rem;
  margin-bottom: 2.25rem;
  padding-bottom: .35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

/* ── Loading spinner ───────────────────────────────────────── */
.shop-loader {
  display: none;
  justify-content: center;
  padding: 3rem 0;
}

.shop-loader.is-visible {
  display: flex;
}

.shop-loader__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: amytea-spin .7s linear infinite;
}

@keyframes amytea-spin {
  to { transform: rotate(360deg); }
}

/* ── Grid loading state ────────────────────────────────────── */
.shop-products.is-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .2s ease;
}

/* ── No results ────────────────────────────────────────────── */
.shop-no-results {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
  list-style: none;
}

.shop-no-results p {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-style: italic;
}

.shop-categories::-webkit-scrollbar {
  display: none;
}

.shop-category {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid rgba(100, 38, 111, .14);
  border-radius: 999px;
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: .2s ease;
}

.shop-category small {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  font-size: .65rem;
}

.shop-category:hover,
.shop-category.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.shop-category.is-active small,
.shop-category:hover small {
  background: rgba(255,255,255,.18);
  color: var(--color-text-inverse);
}

.shop-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--color-border);
}

.shop-toolbar .woocommerce-result-count {
  margin: .25rem 0 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.shop-ordering .woocommerce-ordering {
  margin: 0;
}

.shop-ordering select {
  min-height: 44px;
  padding: .6rem 2.5rem .6rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background-color: var(--color-surface-raised);
  color: var(--color-text-secondary);
  font-size: .82rem;
}

.woocommerce ul.products.shop-products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .85rem !important;
}

.shop-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(100, 38, 111, .11);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  box-shadow: 0 8px 28px rgba(60, 27, 49, .045);
}

.shop-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(100, 38, 111, .24);
  box-shadow: 0 18px 46px rgba(60,27,49,.11);
}

.shop-product-card .product-card__image-wrap {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, #fff, #fff3e8);
}

.shop-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.shop-product-card .product-card__img {
  width: 100%;
  height: 100%;
  padding: clamp(10px, 5%, 20px);
  object-fit: contain;
  mix-blend-mode: normal;
}

.shop-product-card .product-card__img--brand {
  padding: 1rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.shop-product-card:hover .product-card__img {
  transform: none;
}

.shop-product-card .product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.shop-product-card .product-card__category {
  margin-bottom: .4rem;
  font-size: .62rem;
  letter-spacing: .13em;
}

.shop-product-card .product-card__title {
  margin-bottom: .4rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.15;
}

.shop-product-card .product-card__notes {
  display: -webkit-box;
  min-height: 2.7em;
  margin-bottom: .85rem;
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: .72rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-card .product-card__footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  align-items: stretch;
  margin-top: auto;
}

.shop-product-card .product-card__price {
  font-size: 1rem;
}

.shop-product-card .product-card__footer .btn {
  width: 100%;
  min-height: 42px;
  padding: .65rem .75rem !important;
}

@media (min-width: 700px) {
  .shop-hero__inner {
    grid-template-columns: minmax(0, 1fr) 250px;
  }

  .woocommerce ul.products.shop-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 1.4rem !important;
  }

  .shop-product-card {
    border-radius: 22px;
  }

  .shop-product-card .product-card__body {
    padding: 1.25rem;
  }

  .shop-product-card .product-card__footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .shop-product-card .product-card__footer .btn {
    width: auto;
    min-width: 94px;
  }
}

@media (max-width: 520px) {
  .shop-hero {
    padding-top: 3.25rem;
  }

  .shop-hero__aside {
    display: none;
  }

  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-ordering select {
    width: 100%;
  }
}
