/* =====================================================================
   products.css — White Boutique UAE
   Products page styles. Black & white — no gold.
   Shared shell (header, footer, loader, nav) handled by their own CSS.
   ===================================================================== */


/* ---- 1. Page-level tokens ------------------------------------------ */
:root {
  /* Updated at runtime by products.js so the sticky offsets stay exact */
  --header-h: 72px;
  --catbar-h: 56px;
}

html { scroll-behavior: smooth; }


/* ---- 2. Products hero ---------------------------------------------- */
.products-hero {
  position: relative;
  text-align: center;
  color: var(--wb-white);
  background: var(--wb-black);
  padding: clamp(60px, 9vw, 120px) 20px;
}
.products-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 12px;
  font-weight: 700;
  opacity: .8;
  margin-bottom: 18px;
}
.products-hero__title {
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 18px;
}
.products-hero__subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255, 255, 255, .85);
}


/* ---- 3. Sticky category navigation --------------------------------- */
.category-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wb-line);
}
.category-nav__list {
  display: flex;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-nav__list::-webkit-scrollbar { display: none; }

.category-nav__link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wb-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color .25s var(--wb-ease), background .25s var(--wb-ease);
}
.category-nav__link:hover {
  color: var(--wb-black);
  background: var(--wb-grey);
}
.category-nav__link.is-active {
  color: var(--wb-white);
  background: var(--wb-black);
}


/* ---- 4. Category sections ------------------------------------------ */
.category {
  padding: clamp(48px, 7vw, 90px) 20px;
  scroll-margin-top: calc(var(--header-h) + var(--catbar-h) + 16px);
}
.category--alt { background: var(--wb-grey); }

.category__inner { max-width: 1100px; margin: 0 auto; }

.category__header {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  text-align: center;
}
.category__eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--wb-muted);
  margin-bottom: 12px;
}
.category__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
}
.category__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  background: var(--wb-black);
  margin: 16px auto 0;
}
.category__desc {
  margin-top: 14px;
  color: var(--wb-muted);
  font-size: 16px;
}


/* ---- 5. Feature block (one photo + offerings per category) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1000px;
  margin: 0 auto;
}
.feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--wb-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e3e3e3);
}
.feature__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--wb-ease);
}
.feature:hover .feature__img { transform: scale(1.04); }

.feature__list {
  display: grid;
  gap: 11px;
  margin-bottom: 26px;
}
.feature__list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  color: var(--wb-text);
}
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--wb-black);
  border-radius: 50%;
}
.feature__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Alternate the image side on wide screens */
.feature--reverse .feature__media { order: 2; }

@media (max-width: 768px) {
  .feature { grid-template-columns: 1fr; gap: 22px; }
  .feature--reverse .feature__media { order: 0; }
}


/* ---- 6. Gallery (multiple photos — Summer Linen) -------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--wb-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e3e3e3);
}
.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--wb-ease);
}
.gallery__item:hover .gallery__img { transform: scale(1.05); }
.gallery__cta {
  text-align: center;
  margin-top: clamp(24px, 4vw, 40px);
}


/* Placeholder shown by products.js when a photo is missing */
.product-media.is-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9a9a9a;
}


/* ---- 7. Closing call-to-action ------------------------------------- */
.products-cta {
  position: relative;
  text-align: center;
  color: var(--wb-white);
  background-color: var(--wb-black);
  background-image:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .80)),
    url("../images/products/Custom.jpg");
  background-size: cover;
  background-position: center;
  padding: clamp(52px, 8vw, 96px) 20px;
}
.products-cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 14px;
}
.products-cta p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, .85);
  font-size: 16px;
}
.btn-light {
  background: var(--wb-white);
  color: var(--wb-black);
  padding: 13px 30px;
}
.btn-light:hover {
  background: #e9e9e9;
  color: var(--wb-black);
}


/* ---- 8. Motion / accessibility ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  #loader { display: none; }
}
