.editorial-spacing {
  letter-spacing: -0.01em;
}

/* Section header line with label */
.section-label {
  font-family: "Albert Sans", sans-serif;
  font-size: 0.75rem;
  color: #A68A72; /* Taupe */
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

/* Section header: label, hairline, then a rounded "View collection" pill.
   (Replaces the old label-with-background-box trick, which showed as a
   visible rectangle on the alternating section backgrounds.) */
.section-header-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section-label {
  white-space: nowrap;
  font-size: 0.8125rem;
}

.section-header-line {
  flex: 1;
  height: 1px;
  background-color: rgba(156, 139, 122, 0.25); /* Mushroom/25 */
}

.section-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(156, 139, 122, 0.4); /* Mushroom */
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #3E342C; /* Espresso */
  transition: background-color 250ms ease-out, border-color 250ms ease-out, color 250ms ease-out;
}

.dark .section-link {
  color: #F7F3EF; /* Ivory */
}

.section-link:hover,
.section-link:focus-visible {
  background-color: rgba(166, 138, 114, 0.12); /* Taupe */
  border-color: #A68A72;
}

.section-link-arrow {
  transition: transform 250ms ease-out;
}

.section-link:hover .section-link-arrow,
.section-link:focus-visible .section-link-arrow {
  transform: translateX(3px);
}

@media (max-width: 520px) {
  .section-header-line { display: none; }
  .section-header-wrap { justify-content: space-between; gap: 0.75rem; }
  .section-label { font-size: 0.6875rem; letter-spacing: 0.16em; }
  .section-link {
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-link, .section-link-arrow { transition: none; }
}

/* Slider (dynamic image count) */
.slider-container {
  position: relative;
  overflow: hidden;
}

.slider-content {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100%;
  width: 100%;
}

.slide {
  width: 100%;
  flex: 0 0 100%;
}

/* Nav button fade-in on hover */
.nav-button {
  opacity: 0;
  transition: opacity 0.4s ease, background-color 0.3s ease, transform 0.3s ease;
}

.slider-container:hover .nav-button {
  opacity: 1;
}

.nav-button:hover {
  transform: scale(1.1);
}

/* Buy Now link */
.buy-now-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid rgba(156, 139, 122, 0.35);
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
  color: #3E342C; /* Espresso */
}

.dark .buy-now-link {
  color: #F7F3EF; /* Ivory */
}

.buy-now-link:hover {
  border-color: #A68A72; /* Taupe */
  transform: translateX(0.25rem);
  color: #3E342C; /* Espresso: hover feedback via the Taupe border-color, not on small link text (fails AA on Ivory) */
}

.dark .buy-now-link:hover {
  color: #F7F3EF; /* Ivory */
}

/* =========================
   Product grid + boxed tiles (2026-10)
   4 across on desktop, 3 on tablet, 2 on phones. Fixed column counts (not
   auto-fit), so a row with fewer products keeps the same card width and
   sits on the left. The photo fills the tile's full width at 3:4 (portrait
   photos), inside a soft boxed tile.
   ========================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch; /* tiles in a row share a height; the text sits at the top of each */
}

.product-grid > [data-reveal] {
  display: flex;
}

.product-grid .product-card {
  width: 100%;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Frame colour (2026-10): translucent mushroom beige instead of solid white
   (Abbas picked the translucent option on the canvas). */
.product-grid .product-card {
  padding: 0.75rem;
  background-color: rgba(156, 139, 122, 0.1);
  box-shadow: 0 12px 40px -20px rgba(62, 52, 44, 0.25);
}

.dark .product-grid .product-card {
  background-color: #3E342C; /* Espresso: elevated surface in dark mode (brand book 3.1) */
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.5);
}

/* The photo fills the tile (the old 320/360px height cap left it narrower
   than its tile and pinned to the left). */
.product-grid .slider-container {
  max-height: none;
}

/* Photo-to-text gap inside the tile (beats Tailwind's space-y-6). */
.product-grid .product-card.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.product-grid .product-card .space-y-2 {
  padding: 0 0.25rem 0.25rem;
}

@media (max-width: 767px) {
  .product-grid .product-card h3 { font-size: 0.875rem; }
}
