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


/* ---- 1. Page-level overrides --------------------------------------- */
html { scroll-behavior: smooth; }

/* Land section anchors clear of the sticky header */
[id] { scroll-margin-top: 90px; }


/* ---- 2. Buttons (page variants) ----------------------------------- */
.btn-light {
  background: var(--wb-white);
  color: var(--wb-black);
  padding: 13px 28px;
}
.btn-light:hover {
  background: #e9e9e9;
  color: var(--wb-black);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .6);
  padding: 13px 28px;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--wb-black);
  border-color: #fff;
}


/* ---- 3. Hero (split: dark text panel + photo) ---------------------- */
.linen-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 78vh;
}
.linen-hero__text {
  background: var(--wb-black);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
}
.linen-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 20px;
}
.linen-hero__title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 20px;
}
.linen-hero__sub {
  font-size: clamp(16px, 1.6vw, 20px);
  color: rgba(255, 255, 255, .82);
  max-width: 32ch;
  margin-bottom: 32px;
}
.linen-hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.linen-hero__media {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, #f0f0f0, #e3e3e3);
}
.linen-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .linen-hero { grid-template-columns: 1fr; min-height: 0; }
  .linen-hero__media { order: -1; aspect-ratio: 4 / 3; min-height: 0; }
}

/* Gentle entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.linen-hero__text > * { animation: fadeUp .7s var(--wb-ease) both; }
.linen-hero__text > *:nth-child(1) { animation-delay: .05s; }
.linen-hero__text > *:nth-child(2) { animation-delay: .15s; }
.linen-hero__text > *:nth-child(3) { animation-delay: .25s; }
.linen-hero__text > *:nth-child(4) { animation-delay: .35s; }
.linen-hero__media { animation: fadeUp .9s var(--wb-ease) both; }


/* ---- 4. Generic section scaffolding -------------------------------- */
.section {
  padding: clamp(56px, 8vw, 110px) 20px;
}
.section--linen {
  background: var(--wb-grey);
}
.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  font-weight: 700;
  color: var(--wb-muted);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.12;
}
.section__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--wb-black);
  margin: 18px auto 0;
}
.section__desc {
  margin-top: 16px;
  color: var(--wb-muted);
  font-size: 16px;
}


/* ---- 5. Promise (pull statement) ----------------------------------- */
.promise { text-align: center; }
.promise__quote {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  max-width: 20ch;
  margin: 0 auto 22px;
}
.promise__quote em { font-style: italic; }
.promise__text {
  max-width: 580px;
  margin: 0 auto;
  color: var(--wb-muted);
  font-size: 17px;
}


/* ---- 6. Process steps (numbered sequence) -------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.step { text-align: center; }
.step__num {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 700;
  color: var(--wb-black);
  line-height: 1;
}
.step__num span { color: var(--wb-muted); }
.step__rule {
  width: 40px;
  height: 2px;
  background: var(--wb-line);
  margin: 18px auto;
}
.step__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step__text {
  color: var(--wb-muted);
  font-size: 15.5px;
  max-width: 30ch;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
}


/* ---- 7. Lookbook (clickable gallery → lightbox) -------------------- */
.lookbook {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.lookbook__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  border-radius: var(--wb-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e3e3e3);
}
.lookbook__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--wb-ease);
}
.lookbook__item:hover .lookbook__img { transform: scale(1.05); }
.lookbook__item::after {
  content: "\2922";   /* expand glyph */
  position: absolute;
  right: 12px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  opacity: 0;
  transition: opacity .25s var(--wb-ease);
}
.lookbook__item:hover::after,
.lookbook__item:focus-visible::after { opacity: 1; }


/* ---- 8. Fabric story (image + points) ------------------------------ */
.fabric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  max-width: 1000px;
  margin: 0 auto;
}
.fabric__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--wb-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e3e3e3);
}
.fabric__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fabric__title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 18px;
}
.fabric__list { display: grid; gap: 13px; }
.fabric__list li {
  position: relative;
  padding-left: 24px;
  color: var(--wb-text);
  font-size: 16px;
}
.fabric__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--wb-black);
  border-radius: 50%;
}
@media (max-width: 768px) {
  .fabric { grid-template-columns: 1fr; gap: 24px; }
}


/* ---- 9. Closing CTA (dark panel) ----------------------------------- */
.linen-cta {
  position: relative;
  text-align: center;
  color: #fff;
  background-color: var(--wb-black);
  background-image:
    linear-gradient(rgba(0, 0, 0, .62), rgba(0, 0, 0, .74)),
    url("../images/products/linen-6.jpg");
  background-size: cover;
  background-position: center;
  padding: clamp(56px, 9vw, 120px) 20px;
}
.linen-cta h2 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 16px;
}
.linen-cta p {
  max-width: 560px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, .85);
  font-size: 17px;
}
.linen-cta__cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}


/* Placeholder shown by linen.js if 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;
}


/* ---- 10. Lightbox (built by linen.js) ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .92);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox__btn {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev  { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }
  .lightbox__btn  { width: 42px; height: 42px; font-size: 20px; }
}


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