/* ============================================================
   Aush Shop — Catalog, Category & Product Listing Styles
   Crystal-Clear Layout, Modern Cards & Smooth Filters
   ============================================================ */

/* ── Breadcrumb Bar Clearance ─────────────────────────────── */
.page-breadcrumb-bar {
  padding-top: calc(var(--nav-height-desktop) + 24px);
  padding-bottom: var(--space-4);
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
}

/* ── Shop Categories Section (landing page only) ──────────────
   No visible banner/title (removed — it rendered partly hidden behind
   the fixed site header since it carried no top clearance for it,
   unlike .page-breadcrumb-bar above). This top padding replaces that
   clearance directly since the landing page skips the breadcrumb bar
   entirely (see the PHP comment above it). */
.shop-categories-section {
  padding-top: calc(var(--nav-height-desktop) + var(--space-16));
  padding-bottom: var(--space-6);
  background: var(--color-bg-light);
}

/* ── Category Banners (every top-level category, shop landing hero) ──
   Office/product photo (shop-category-<slug>.jpg/.webp, one per
   category) with a floating frosted-glass copy card over its light
   side. Compact fixed height (not the full 1300×600 source ratio) so
   all 5 categories fit the page without an excessive scroll — the
   photo itself just gets cropped further by object-fit: cover. Last
   odd-one-out spans the full row width instead of leaving a gap. */
.shop-maincats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.category-banner:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.category-banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: clamp(230px, 26vw, 300px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.category-banner:hover {
  box-shadow: var(--shadow-lg);
}

.category-banner__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slower) var(--ease-out);
}

.category-banner:hover .category-banner__media img {
  transform: scale(1.04);
}

.category-banner__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0.75) 0%,
      rgba(255, 255, 255, 0.32) 40%,
      rgba(255, 255, 255, 0) 68%);
}

.category-banner__card {
  position: relative;
  z-index: 2;
  width: min(260px, 50%);
  margin-inline-start: clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: clamp(0.9rem, 2vw, 1.25rem);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 16px 32px -18px rgba(10, 15, 20, 0.3);
}

.category-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: var(--font-black);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-dark);
  margin: 0;
}

.category-banner__desc {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  color: var(--color-text-light);
  max-width: 26ch;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-banner__benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.benefit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: var(--font-semi);
  color: var(--color-text-dark);
  line-height: 1;
}

.benefit-pill::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

.category-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 163, 255, 0.28);
  transition: background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.category-banner__cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.4);
}

.category-banner__cta span {
  transition: transform var(--duration-base) var(--ease-out);
}

.category-banner__cta:hover span {
  transform: translateX(3px);
}

@media (max-width: 1023.98px) {
  .category-banner__card {
    width: min(240px, 58%);
  }
}

@media (max-width: 767.98px) {
  /* .shop-maincats already collapses to 1fr below 768px (see the
     Responsive Catalog Grid rules further down), so every banner is
     full width here already. The desktop treatment (card floating over
     a full-height photo) doesn't survive down here: at this narrow a
     box the card's own height covers most of the photo, so whatever
     the product's vertical position happens to be, the card usually
     lands right on top of it — cutting it off instead of framing it.
     Stack photo-then-card instead, so the whole photo stays visible on
     its own and the card is a plain, fully opaque panel below it. */
  .category-banner {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .category-banner__media {
    position: relative;
    height: 160px;
    flex-shrink: 0;
  }

  .category-banner__scrim {
    display: none;
  }

  .category-banner__card {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: 1.1rem;
    border-radius: 0;
    background: var(--color-bg-white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  /* Pills were tuned to sit on a blurred photo (translucent white,
     barely-there border) — on the now fully opaque white card that
     reads as almost invisible, so give them a solid tinted ground. */
  .benefit-pill {
    background: var(--color-bg-mid);
    border-color: transparent;
  }
}

/* ── Category Section & Filter Rails ───────────────────────── */
.shop-category-section {
  padding-block: var(--space-6) var(--space-20);
}

.shop-subcat-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-block: var(--space-4) var(--space-6);
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  font-size: var(--text-xs);
  font-weight: var(--font-semi);
  color: var(--color-text-dark);
  background: var(--color-bg-white);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

.shop-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.shop-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* ── Toolbar: Count & Sort ─────────────────────────────────── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.shop-toolbar__count {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-light);
}

.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-toolbar__sort select {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-bg-white);
  color: var(--color-text-dark);
  outline: none;
}

/* ── Modern Product Grid & Cards ───────────────────────────── */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.shop-product-card {
  position: relative;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) ease;
}

.shop-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.1), 0 0 16px rgba(0, 163, 255, 0.08);
  border-color: rgba(0, 163, 255, 0.25);
}

.shop-product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.shop-product-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform var(--duration-slow) var(--ease-out);
}

.shop-product-card:hover .shop-product-card__img {
  transform: scale(1.05);
}

/* Badges on Cards */
.shop-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.shop-badge--sale {
  background: var(--color-error);
}

.shop-badge--featured {
  background: var(--color-accent);
}

.shop-badge--out {
  background: var(--color-text-light);
}

/* Icon Stack (Top Right) */
.shop-product-card__icon-stack {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shop-product-card__icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--duration-fast) var(--ease-out);
}

.shop-product-card__icon-btn:hover {
  transform: scale(1.1);
  background: var(--color-bg-white);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.shop-product-card__icon-btn.js-wishlist-btn.is-active {
  color: var(--color-error);
  border-color: var(--color-error);
  background: var(--color-bg-white);
}

/* Card Body */
.shop-product-card__body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-product-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.shop-product-card__name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shop-product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.shop-product-card__price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.shop-product-card__compare {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.shop-product-card__actions {
  padding: 0 1.25rem 1.25rem;
}

.shop-product-card__add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--color-primary);
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.shop-product-card__add:hover {
  background: var(--color-accent);
  box-shadow: 0 4px 12px rgba(0, 163, 255, 0.3);
}

/* ── Pagination ────────────────────────────────────────────── */
.shop-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--space-12);
}

.shop-pager a,
.shop-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: all 0.2s ease;
}

.shop-pager a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.shop-pager a.is-current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* ── Toast Notification ────────────────────────────────────── */
.shop-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
  z-index: var(--z-toast);
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── Responsive Catalog Grid ───────────────────────────────── */
@media (max-width: 1200px) {
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .shop-maincats {
    grid-template-columns: 1fr;
  }
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .shop-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .shop-subcat-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .shop-subcat-rail::-webkit-scrollbar {
    display: none;
  }
  .shop-chip {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .shop-product-card__body {
    padding: 0.65rem;
  }
  .shop-product-card__name {
    font-size: 13px;
  }
  .shop-product-card__price {
    font-size: 1rem;
  }
  .shop-product-card__actions {
    padding: 0 0.65rem 0.65rem;
  }
}
