/* Homepage redesign: a stone-coloured showroom stage with real VARENZO garments at different depths in front of
   a giant wordmark, followed by charcoal and warm sections. Loaded only by index.html, after styles.css. */
.home {
  --z-ink: #151412;
  --z-char: #2a2825;
  --z-stone: #cfc8ba;
  --z-stone-2: #e4dfd4;
  --z-warm: #f3f0e9;
  --z-plate: #ece8df;
  --z-muted: #5b564c;
  --z-line: rgba(21, 20, 18, .16);
  --z-display: "Anybody", "Noto Kufi Arabic", system-ui, sans-serif;
  --z-body: "Instrument Sans", "Noto Sans Arabic", system-ui, sans-serif;
  --hh: 68px;
  --gut: clamp(16px, 4vw, 56px);
  background: var(--z-warm);
  color: var(--z-ink);
  font: 400 16px/1.55 var(--z-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html:has(.home) { overflow-x: clip; }
html[dir="rtl"] body.home {
  --z-display: "Noto Kufi Arabic", "Anybody", system-ui, sans-serif;
  --z-body: "Noto Sans Arabic", "Instrument Sans", system-ui, sans-serif;
  font-family: var(--z-body);
}
.home img { display: block; max-width: 100%; }
.home :focus-visible { outline: 2px solid var(--z-ink); outline-offset: 3px; }
.home .dark :focus-visible,
.home .site-footer :focus-visible { outline-color: var(--z-warm); }

/* announcement + header */
.home .announcement {
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 28px;
  padding: 8px var(--gut);
  background: var(--z-ink);
  color: var(--z-stone-2);
  font-size: 13px;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}
.home .site-header {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  height: var(--hh);
  min-height: 0;
  padding: 0 var(--gut);
  background: var(--z-warm);
  border-bottom: 1px solid var(--z-line);
  backdrop-filter: none;
}
.home .brand { gap: 12px; }
.home .logo { position: relative; display: block; flex: none; width: 66px; aspect-ratio: 2.2 / 1; overflow: hidden; }
.home .logo img,
.home .site-header .brand .logo img { position: absolute; top: -119.5%; left: -27%; width: 157.5%; height: auto; max-width: none; }
.home .site-header .logo img { mix-blend-mode: multiply; }
.home .site-header .brand .brand-name { font: 800 22px/1 var(--z-display); letter-spacing: .06em; }
.home .site-nav { gap: 26px; margin-inline: auto; }
.home .site-nav a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.home .site-nav a:hover { border-color: var(--z-ink); opacity: 1; }
.home .site-header .header-actions { position: static !important; height: auto; gap: 14px; margin: 0; }
.home .text-button,
.home .bag-button { min-height: 44px; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.home #menuToggle,
.home #bagButton { position: static !important; }
.home #menuToggle { display: none !important; }
.home .language-select {
  width: auto;
  min-height: 36px;
  padding: 6px 8px;
  border-color: var(--z-line);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

/* hero stage */
.home .stage {
  --sh: clamp(640px, calc(100svh - var(--hh) - 34px), 980px);
  --u: calc(var(--sh) / 100);
  --gh: min(calc(60 * var(--u)), 118vw);
  position: relative;
  isolation: isolate;
  height: var(--sh);
  overflow: hidden;
  background: linear-gradient(180deg, #1d1b19 0%, #3b3732 26%, #8f8777 58%, #cfc8ba 82%, #d9d3c6 100%);
  outline-offset: -4px;
  touch-action: pan-y;
}
.home .wordmark {
  position: absolute;
  inset-inline: 0;
  top: 7%;
  color: #6d665a;
  font: 900 19vw/.82 "Anybody", sans-serif;
  font-stretch: 130%;
  letter-spacing: -.025em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.home .piece {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z);
  height: var(--gh);
  opacity: var(--o);
  transform: translate(calc(var(--x) * 1vw - 50%), calc(var(--y) * var(--u) - 50%)) scale(var(--k)) rotate(var(--r));
  transition: transform 1s cubic-bezier(.2, .7, .1, 1), opacity .6s ease;
}
.home .piece[data-slot="C"] { --x: 50; --y: 46; --k: 1; --z: 5; --r: 0deg; --o: 1; --d: 10; }
.home .piece[data-slot="A"] { --x: 22; --y: 52; --k: .62; --z: 4; --r: -3deg; --o: 1; --d: 22; }
.home .piece[data-slot="B"] { --x: 79; --y: 51; --k: .66; --z: 3; --r: 3deg; --o: 1; --d: 20; }
.home .piece[data-slot="D"] { --x: 9; --y: 31; --k: .4; --z: 1; --r: -6deg; --o: .92; --d: 34; }
.home .piece[data-slot="E"] { --x: 91; --y: 34; --k: .42; --z: 2; --r: 5deg; --o: .92; --d: 30; }
.home .piece[data-slot="X"] { --x: 50; --y: 49; --k: .3; --z: 0; --r: 0deg; --o: 0; --d: 0; pointer-events: none; }
.home .piece:not([data-slot="C"]) { cursor: pointer; }
.home .piece-shift {
  height: 100%;
  transform: translate3d(calc(var(--px, 0) * var(--d) * 1px), calc(var(--py, 0) * var(--d) * .6px), 0);
  transition: transform .5s ease-out;
}
.home .piece-float {
  height: 100%;
  animation: z-float 7s ease-in-out infinite alternate;
  animation-delay: var(--fd, 0s);
  filter: drop-shadow(0 28px 30px rgba(10, 9, 8, .38));
}
.home .piece-float img { width: auto; height: 100%; max-width: none; }
@keyframes z-float { from { transform: translateY(0) rotate(-.4deg); } to { transform: translateY(-9px) rotate(.4deg); } }

.home .hud {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  align-items: end;
  gap: 20px;
  padding: 0 var(--gut) 78px;
}
.home .now small { display: block; color: #4b463d; font-size: 13px; letter-spacing: .04em; }
.home .now h2 { margin: 2px 0 4px; font: 700 clamp(20px, 2vw, 28px)/1.06 var(--z-display); font-stretch: 112%; }
.home .now-row { display: flex; align-items: center; gap: 18px; }
.home .now-row .product-price { font-size: 16px; }
.home .now-link { font-weight: 600; text-underline-offset: 4px; }
.home .swap { animation: z-swap .6s ease both; }
@keyframes z-swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.home .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--z-ink);
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.home .btn:hover { background: var(--z-ink); color: var(--z-warm); }
.home .btn-fill { background: var(--z-ink); color: var(--z-warm); }
.home .btn-fill:hover { background: var(--z-char); }
.home .dark .btn { border-color: var(--z-warm); }
.home .dark .btn:hover { background: var(--z-warm); color: var(--z-ink); }
.home .ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.home .ctrl output { min-width: 60px; font: 600 14px var(--z-body); font-variant-numeric: tabular-nums; text-align: center; }
.home .ctrl button { width: 48px; height: 48px; border: 1px solid var(--z-ink); background: transparent; color: var(--z-ink); font-size: 20px; line-height: 1; cursor: pointer; }
.home .ctrl button:hover { background: var(--z-ink); color: var(--z-warm); }
.home .ctrl i { display: inline-block; font-style: normal; }
html[dir="rtl"] .home .ctrl i { transform: scaleX(-1); }

/* sections */
.home .band { padding-block: clamp(48px, 6vw, 96px); }
.home .wrap { max-width: 1500px; margin-inline: auto; padding-inline: var(--gut); }
.home .kicker { margin: 0 0 10px; color: var(--z-muted); font-size: 14px; }
.home .big { margin: 0; font: 800 clamp(28px, 4vw, 56px)/1.05 var(--z-display); font-stretch: 112%; letter-spacing: -.01em; text-wrap: balance; }
html[dir="rtl"] .home .big { font-weight: 700; line-height: 1.25; }
.home .head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 56px); }
.home .link { font-weight: 600; text-underline-offset: 5px; }
.home .dark { background: var(--z-ink); color: var(--z-warm); }
.home .dark .kicker { color: var(--z-stone); }

/* collections: tall offset panels on charcoal */
.home .panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 3vw, 48px); max-width: 1120px; margin-inline: auto; }
.home .panel { position: relative; display: block; text-decoration: none; }
.home .panel:nth-child(2) { margin-top: clamp(40px, 10vw, 160px); }
.home .panel-photo { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: var(--z-plate); }
.home .panel-photo img { width: auto; height: 94%; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.home .panel:hover .panel-photo img { transform: scale(1.035); }
.home .panel h3 {
  position: relative;
  z-index: 2;
  margin: -.42em 0 0 -.04em;
  padding-inline: clamp(8px, 2vw, 28px);
  color: #fff;
  font: 800 clamp(28px, 4.2vw, 60px)/1 var(--z-display);
  font-stretch: 125%;
  letter-spacing: -.02em;
  mix-blend-mode: difference;
}
.home .panel p { margin: 10px clamp(8px, 2vw, 28px) 0; color: var(--z-stone); }
html[dir="rtl"] .home .panel h3 { font-size: clamp(40px, 6.4vw, 96px); line-height: 1.2; }

/* new arrivals: staggered editorial grid (card look itself lives in styles.css) */
.home .card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px) clamp(12px, 2vw, 28px); }
.home .card-grid .product-card:nth-child(4n+2),
.home .card-grid .product-card:nth-child(4n+4) { margin-top: clamp(0px, 4vw, 56px); }

/* featured piece */
.home .feat { background: var(--z-char); overflow: hidden; }
.home .feat-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 90px); }
.home .feat-photo { display: grid; place-items: center; }
.home .feat-photo img { width: auto; height: min(78vh, 720px); max-width: 100%; object-fit: contain; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.home .feat h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  margin-inline-start: clamp(-120px, -8vw, 0px);
  font: 800 clamp(30px, 4.6vw, 68px)/1 var(--z-display);
  font-stretch: 125%;
  text-wrap: balance;
}
html[dir="rtl"] .home .feat h2 { margin-inline-start: 0; line-height: 1.2; }
.home .feat-desc { max-width: 44ch; margin: 22px 0 28px; color: var(--z-stone-2); font-size: 18px; }

/* categories */
.home .cats a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: clamp(14px, 2vw, 26px) 0; border-top: 1px solid var(--z-line); text-decoration: none; transition: padding .3s; }
.home .cats a:last-child { border-bottom: 1px solid var(--z-line); }
.home .cats a:hover { padding-inline: 18px; }
.home .cats strong { font: 800 clamp(24px, 3.4vw, 46px)/1.1 var(--z-display); font-stretch: 112%; }
html[dir="rtl"] .home .cats strong { line-height: 1.3; }
.home .cats span { color: var(--z-muted); font-size: 15px; white-space: nowrap; }

/* newsletter + footer */
.home .news { background: var(--z-stone); }
.home .news .big { max-width: 14ch; }
.home .news-form { display: flex; max-width: 560px; margin-top: 28px; }
.home .news-form input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid var(--z-ink); border-inline-end: 0; border-radius: 0; background: transparent; color: var(--z-ink); font: inherit; }
.home .news-form button { min-height: 52px; padding: 0 26px; border: 1px solid var(--z-ink); background: var(--z-ink); color: var(--z-warm); font: inherit; font-weight: 600; cursor: pointer; }
.home .news-note { margin: 12px 0 0; color: #4b463d; font-size: 14px; }
.home .site-footer { padding: 56px var(--gut) 36px; background: var(--z-ink); color: var(--z-stone-2); }
.home .footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.home .logo-tile { width: 96px; background: #fffefa; }
.home .footer-brand p { max-width: 26ch; margin: 18px 0 0; color: var(--z-stone-2); font-size: 16px; }
.home .footer-links a { font-size: 15px; }
.home .footer-links a:hover { color: inherit; text-decoration: underline; }
.home .footer-label { color: #8f887a; }
.home .footer-bottom { flex-wrap: wrap; margin-top: 36px; border-top-color: rgba(228, 223, 212, .16); color: #8f887a; font-size: 13px; letter-spacing: 0; text-transform: none; }

/* existing overlays keep their behaviour; only the type and photo fit follow the new look */
.home .quick-content img { object-fit: contain; background: var(--z-plate); }
.home .quick-content h2,
.home .search-panel h2,
.home .drawer-head h2 { font-family: var(--z-display); font-weight: 700; letter-spacing: 0; line-height: 1.05; }
.home .quick-content h2 { font-size: clamp(26px, 3.4vw, 40px); }
.home .bag-empty p { font-family: var(--z-body); }

/* reveal: content stays visible unless home.js is running */
.js .home .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .home .rv.in { opacity: 1; transform: none; }

/* tablet / mobile */
@media (max-width: 1050px) {
  .home #menuToggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0 12px !important;
    border: 1px solid var(--z-line) !important;
  }
  .home .site-header .header-actions { margin-inline-start: auto; }
  .home .site-header .site-nav.is-open {
    position: absolute;
    top: var(--hh);
    right: 0;
    left: 0;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gut) 16px;
    background: var(--z-warm);
    border-bottom: 1px solid var(--z-line);
  }
  .home .site-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--z-line); font-size: 15px; }
  .home .card-grid { grid-template-columns: repeat(2, 1fr); }
  .home .card-grid .product-card:nth-child(n) { margin-top: 0; }
  .home .card-grid .product-card:nth-child(2n) { margin-top: 36px; }
  .home .feat-inner { grid-template-columns: 1fr; }
  .home .feat h2 { margin-inline-start: 0; }
}
@media (max-width: 720px) {
  .home { --hh: 62px; }
  .home .announcement { font-size: 12px; }
  .home .site-header { gap: 10px !important; }
  .home .brand { gap: 8px; }
  .home .logo { width: 46px; }
  .home .logo-tile { width: 96px; }
  .home .site-header .brand .brand-name { font-size: 18px; letter-spacing: .06em; }
  .home .site-header .header-actions { gap: 8px; }
  .home .language-select { padding: 6px 4px; }
  .home #menuToggle { padding: 0 8px !important; }
  /* the stage stacks: pieces on top, text and controls below, so nothing overlaps on short screens */
  .home .stage {
    --sh: clamp(560px, calc(100svh - var(--hh) - 34px), 900px);
    --gh: min(74vw, 40svh);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: var(--sh);
  }
  .home .wordmark { top: 26px; font-size: 20vw; }
  .home #stagePieces { --u: calc(var(--gh) * .0132); position: relative; flex: none; height: calc(var(--gh) * 1.32); margin-top: 34px; }
  .home .piece[data-slot="C"] { --x: 50; --y: 44; }
  .home .piece[data-slot="A"] { --x: 16; --y: 78; --k: .36; --o: .9; }
  .home .piece[data-slot="B"] { --x: 84; --y: 78; --k: .36; --o: .9; }
  .home .piece[data-slot="D"],
  .home .piece[data-slot="E"] { --x: 50; --y: 44; --k: .3; --o: 0; pointer-events: none; }
  .home .hud { position: relative; grid-template-columns: 1fr; gap: 12px; margin-top: auto; padding-top: 10px; padding-bottom: 18px; }
  /* the floating WhatsApp button sits bottom right in every language */
  .home .cta { justify-content: flex-start; padding-right: 62px; }
  .home .btn { flex: 1 1 auto; padding: 0 12px; font-size: 14px; }
  .home .ctrl { order: -1; justify-content: space-between; }
  .home .ctrl button { width: 44px; height: 44px; }
  .home .now h2 { font-size: 26px; }
  .home .panels { grid-template-columns: 1fr; }
  .home .panel:nth-child(2) { margin-top: 0; }
  .home .news-form { flex-direction: column; gap: 10px; }
  .home .news-form input { border-inline-end: 1px solid var(--z-ink); }
}
@media (prefers-reduced-motion: reduce) {
  .home .piece-float,
  .home .swap { animation: none; }
  .home .piece,
  .home .piece-shift,
  .home .panel-photo img,
  .js .home .rv { transition: none; }
  .js .home .rv { opacity: 1; transform: none; }
}
