/* Sticky filter bar height, used by :target scroll-margin-top. */
:root { --sticky-base: 68px; }

.aur-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--charcoal);
}
.aur-mobile-menu {
  display: none;
}
.aur-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  background: linear-gradient(135deg, #e8e0d5 0%, #d5ccc0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.aur-hero-content {
  text-align: center;
  z-index: 2;
  padding: 2rem;
}
.aur-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.aur-hero p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.aur-hero-img {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  max-width: 600px;
  opacity: 0.6;
  pointer-events: none;
}
.aur-categories {
  padding: 4rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.aur-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}
.aur-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.aur-cat-card {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--soft-gray);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  display: block;
}
.aur-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.aur-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.aur-cat-card:hover img {
  transform: scale(1.08);
}
.aur-cat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: white;
}
.aur-cat-overlay h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.aur-cat-overlay span {
  font-size: 0.78rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
}
.aur-toolbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  /* Deliberately NOT sticky. This bar is a section label ("Featured Pieces")
     plus two links, not a working filter/sort control like the one on
     category.php — pinning it meant it rode down the page over the grid for
     the whole scroll, which read as a bug rather than a convenience. It must
     scroll away with the section it introduces. */
  background: var(--cream);
}
.aur-results-count {
  font-size: 0.9rem;
  color: var(--text-gray);
}
.aur-toolbar-actions {
  display: flex;
  gap: 1rem;
}
.aur-btn {
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.aur-btn:hover {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: white;
}
.aur-products {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.aur-product {
  position: relative;
  background: white;
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.aur-product:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.aur-product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #faf9f7;
  overflow: hidden;
}
.aur-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.aur-product:hover img {
  transform: scale(1.05);
}
.aur-wishlist {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}
.aur-wishlist:hover {
  background: var(--charcoal);
  color: white;
  border-color: var(--charcoal);
}
.aur-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
}
.aur-colors {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--text-gray);
  background: rgba(255,255,255,0.9);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
}
/* Full-card click target. Sits above the image but below the wishlist button
   (z-index 5) and the info block, so only the real controls stay clickable. */
.aur-product-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-indent: -9999px;
  overflow: hidden;
}
.aur-product-info {
  padding: 1.2rem;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
/* Text sits above the overlay link but must not swallow its clicks —
   only the real button takes pointer events back. */
.aur-product-info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.aur-product-info p {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.5;
}
.aur-price {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.aur-add {
  pointer-events: auto;
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  background: white;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}
.aur-add:hover {
  background: var(--charcoal);
  color: white;
}
.aur-promo {
  max-width: 1400px;
  margin: 3rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.aur-promo-large {
  grid-column: span 1;
  position: relative;
  aspect-ratio: 16/10;
  background: #2d4a3e;
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  color: white;
}
.aur-promo-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.aur-promo-content {
  position: relative;
  z-index: 2;
}
.aur-promo-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.aur-promo-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}
.aur-promo-btn {
  display: inline-block;
  padding: 0.7rem 1.8rem;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.aur-promo-btn:hover {
  background: white;
  color: var(--charcoal);
}
.aur-cat-section-2 {
  background: white;
  padding: 4rem 2rem;
  margin-top: 3rem;
}
.aur-cat-section-2-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.aur-cat-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.aur-cat-item {
  text-align: center;
  text-decoration: none;
  color: var(--charcoal);
  transition: transform 0.3s ease;
}
.aur-cat-item:hover {
  transform: translateY(-4px);
}
.aur-cat-item-circle {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border);
}
.aur-cat-item-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aur-cat-item span {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.aur-load-more {
  text-align: center;
  padding: 3rem 2rem;
}
.aur-load-more p {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}
.aur-load-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--charcoal);
  color: white;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}
.aur-load-btn:hover {
  background: #333;
}
.aur-social {
  display: flex;
  gap: 1.2rem;
}
.aur-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}
.aur-social a:hover {
  color: white;
}
@media (max-width: 1200px) {
  .aur-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .aur-cat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .aur-products {
    grid-template-columns: repeat(3, 1fr);
  }
  .aur-promo {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .aur-mobile-menu {
    display: block;
  }
  .aur-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .aur-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .aur-cat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .aur-toolbar {
    top: 60px;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .aur-hero-img {
    display: none;
  }
}
@media (max-width: 480px) {
  .aur-products {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.8rem;
  }
  .aur-product-info {
    padding: 0.8rem;
  }
  .aur-product-info h4 {
    font-size: 0.95rem;
  }
  .aur-categories {
    padding: 2rem 1rem;
  }
  .aur-hero {
    min-height: 300px;
  }
}

/* ==========================================================================
   COLLECTIONS — STATE CLASSES EMITTED BY product_card_aur()
   These live at the end of the file so the base skin above stays as authored.
   ========================================================================== */

/* The heart is an inline SVG (shared with the other card shapes), so it needs
   sizing here — the base .aur-wishlist rule only styles the round button. */
.aur-wishlist svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* Saved state matches .btn-wish.active on the product page: filled in red. */
.aur-wishlist.active svg {
  fill: var(--error);
  stroke: var(--error);
}

/* Hover fills the button dark, so the heart must not stay red and unreadable. */
.aur-wishlist:hover svg,
.aur-wishlist.active:hover svg {
  stroke: currentColor;
  fill: none;
}

/* Sold-out button keeps its space so the grid does not reflow — same treatment
   as the shared .is-disabled rule in auralis.css. */
.aur-add.is-disabled,
button[disabled].aur-add {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.aur-add.is-disabled:hover,
button[disabled].aur-add:hover {
  background: white;
  color: var(--charcoal);
}

/* Right-hand promo column: two half-height tiles stacked under one another,
   opposite the single full-height tile on the left. */
.aur-promo-stack {
  display: grid;
  gap: 1.5rem;
  align-content: stretch;
}
.aur-promo-stack .aur-promo-half {
  aspect-ratio: auto;
  min-height: 0;
}
.aur-promo-half {
  aspect-ratio: 16/8;
}
.aur-promo-half:nth-child(2) {
  background: #4a6741;
}

/* Stacked layout: the tiles get their own height back once the two promo
   columns collapse into one. */
@media (max-width: 1024px) {
  .aur-promo-stack .aur-promo-half {
    aspect-ratio: 16/8;
  }
}
