/* Home page sections. The clothes rail is the page's one big moment; everything else stays quiet. */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 36px 0 8px;
  background: linear-gradient(170deg, var(--mist) 0%, #F7F8FA 60%, var(--white) 100%);
}
.hero-circle { position: absolute; z-index: -1; border-radius: 50%; background: var(--navy); }
.hero-circle-a { width: 230px; height: 230px; top: -150px; inset-inline-end: -90px; }
.hero-circle-b { width: 140px; height: 140px; top: 46%; inset-inline-start: -100px; opacity: .9; }

.hero-copy { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .8rem; margin: 0 0 1rem;
  font: 600 .72rem/1 var(--font); letter-spacing: .32em; text-transform: uppercase; color: var(--navy);
}
.hero-tag::before, .hero-tag::after { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .55; }
.hero-title { margin: 0; color: var(--navy); font-weight: 800; font-size: clamp(2.3rem, 9vw, 5.4rem); line-height: 1.05; }
.hero-line { display: block; animation: line-up .9s var(--ease) both; }
.hero-line + .hero-line { animation-delay: .12s; }
.hero-sub { max-width: 34rem; margin: 1.1rem 0 1.5rem; color: #3E4C5B; font-size: 1.02rem; animation: line-up .9s .24s var(--ease) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; animation: line-up .9s .34s var(--ease) both; }
.hero-ctas .btn-outline { border-color: #C9CFD6; }
@keyframes line-up { from { opacity: 0; transform: translateY(22px); } }

/* ---------- The rail ---------- */
.rail { position: relative; margin-top: 2.4rem; }
.rail-bar {
  position: absolute; top: 14px; inset-inline: 0; height: 6px; z-index: 0;
  background: linear-gradient(var(--navy), var(--navy-deep));
  box-shadow: 0 3px 6px rgba(11, 26, 40, .25);
}
.rail-cap { position: absolute; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy-deep); }
.rail-cap:first-child { inset-inline-start: 10px; }
.rail-cap:last-child { inset-inline-end: 10px; }
.rail-items {
  position: relative; z-index: 1; display: flex; gap: 18px;
  padding: 0 24px 34px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.rail-items::-webkit-scrollbar { display: none; }

.hang {
  position: relative; flex: none; width: 148px; display: block;
  color: inherit; text-decoration: none; scroll-snap-align: center;
  transform-origin: 50% 12px; opacity: 0;
}
.rail-items.is-ready .hang { animation: hang-in 2.8s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }
.rail-items.is-ready .hang.is-nudged { animation: nudge 1.5s ease-out both; opacity: 1; }
.hang-hook { display: block; width: 100%; height: auto; fill: none; stroke: var(--navy-deep); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.hang-frame {
  display: block; margin-top: -10px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px;
  background: var(--white); box-shadow: 0 18px 30px -16px rgba(11, 26, 40, .45);
}
.hang-frame img { width: 100%; height: 100%; object-fit: cover; }
.hang-tag {
  position: absolute; top: 84px; inset-inline-end: -8px; padding: .25rem .55rem .25rem .7rem;
  border-radius: 4px; background: var(--white); color: var(--navy-deep);
  font: 700 .8rem/1.2 var(--font-display); box-shadow: 0 4px 10px rgba(11, 26, 40, .18);
  transform: rotate(9deg); transform-origin: top center;
}
.hang-tag::before {
  content: ''; position: absolute; top: 50%; inset-inline-start: 4px; width: 4px; height: 4px; margin-top: -2px;
  border-radius: 50%; background: var(--line);
}
.hang-tag.is-sale { color: var(--red); }
.hang.is-empty { width: 120px; opacity: .45; }
.hang.is-empty .hang-hook { stroke: var(--muted); }
@keyframes hang-in {
  0% { opacity: 0; transform: translateY(-26px) rotate(var(--a)); }
  14% { opacity: 1; transform: translateY(0) rotate(var(--a)); }
  36% { opacity: 1; transform: rotate(calc(var(--a) * -.55)); }
  56% { opacity: 1; transform: rotate(calc(var(--a) * .3)); }
  76% { opacity: 1; transform: rotate(calc(var(--a) * -.12)); }
  100% { opacity: 1; transform: rotate(0); }
}
@keyframes nudge {
  0% { transform: rotate(0); }
  18% { transform: rotate(5deg); }
  42% { transform: rotate(-3deg); }
  66% { transform: rotate(1.4deg); }
  100% { transform: rotate(0); }
}

/* ---------- Sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 56px 16px 0; scroll-margin-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-head h2 { margin: 0; color: var(--navy); font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 700; line-height: 1.15; }
.section-meta { margin: 0; color: var(--muted); font-size: .9rem; }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-tile {
  position: relative; isolation: isolate; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 20px; background: var(--navy); color: #fff; text-decoration: none;
}
.cat-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cat-tile::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(11, 26, 40, .85) 0%, rgba(11, 26, 40, .3) 42%, rgba(11, 26, 40, 0) 68%);
}
.cat-tile.is-empty { background: radial-gradient(circle at 85% 8%, #24456A 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.cat-tile.is-empty::after { display: none; }
/* Tiles without a product photo show the category's own icon as their picture. */
.cat-mark {
  position: absolute; inset: 0 0 28% 0; display: grid; place-items: center; color: rgba(255, 255, 255, .28);
  transition: transform .9s var(--ease), color .4s var(--ease);
}
.cat-mark .icon { width: 46%; height: auto; max-width: 150px; }
@media (hover: hover) { .cat-tile:hover .cat-mark { transform: translateY(-6px); color: rgba(255, 255, 255, .45); } }
.cat-info { position: absolute; inset-inline: 16px; bottom: 16px; display: grid; gap: 2px; }
.cat-name { font: 700 clamp(1.25rem, 4.6vw, 1.9rem)/1.15 var(--font-display); }
.cat-alt { font-size: .85rem; opacity: .72; }
.cat-count {
  width: fit-content; margin-top: .5rem; padding: .12rem .65rem; border-radius: 999px;
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: .78rem;
}
.cat-go {
  position: absolute; top: 14px; inset-inline-end: 14px; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--white); color: var(--navy-deep);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
@media (hover: hover) {
  .cat-go { opacity: 0; transform: scale(.8); }
  .cat-tile:hover img { transform: scale(1.06); }
  .cat-tile:hover .cat-go { opacity: 1; transform: none; }
}

/* Mockup tiles: a light studio floor, the garment drops in, floats gently, lifts and shines on hover. */
.cat-tile.is-mock { background: radial-gradient(120% 80% at 50% 28%, #F8F9FB 0%, #E7EBF0 58%, #DAE0E7 100%); color: var(--navy-deep); }
.cat-tile.is-mock::after { display: none; }
.cat-tile.is-mock .cat-alt { opacity: .65; }
.cat-tile.is-mock .cat-count { background: rgba(20, 41, 63, .08); }
.mock { position: absolute; inset: 5% 9% 27% 9%; display: grid; place-items: center; }
.mock-svg { width: 100%; height: 100%; overflow: visible; }
.mock-body, .mock-shadow { transform-box: view-box; transform-origin: 50% 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.cat-tile.is-mock.is-in .mock-svg { animation: mock-drop 1.1s var(--ease) both, mock-float 6s 1.2s ease-in-out infinite; animation-delay: var(--d, 0ms), calc(var(--d, 0ms) + 1.2s); }
.mock-sheen { transform-box: view-box; }
@media (hover: hover) {
  .cat-tile.is-mock:hover .mock-body { transform: translateY(-8px) rotate(-1.5deg); }
  .cat-tile.is-mock:hover .mock-shadow { transform: scale(.92); opacity: .6; }
  .cat-tile.is-mock:hover .mock-sheen { animation: mock-sheen 1.1s var(--ease); }
}
@keyframes mock-drop { 0% { opacity: 0; transform: translateY(-28px) rotate(-5deg); } 60% { opacity: 1; transform: translateY(4px) rotate(1deg); } 100% { transform: none; } }
@keyframes mock-float { 50% { transform: translateY(-5px); } }
@keyframes mock-sheen { from { transform: translateX(0) skewX(-14deg); } to { transform: translateX(420px) skewX(-14deg); } }
@media (prefers-reduced-motion: reduce) { .cat-tile.is-mock.is-in .mock-svg, .mock-sheen { animation: none; } }

/* ---------- New in (horizontal scroller) ---------- */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { scroll-snap-align: start; }
.scroller-nav { display: none; gap: .5rem; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #C9CFD6; border-radius: 50%; background: var(--white); color: var(--navy);
  transition: border-color .2s, background .2s;
}
.round-btn:hover { border-color: var(--navy); background: var(--navy-soft); }

/* ---------- All products ---------- */
.shop-tools { display: grid; grid-template-columns: 1fr auto; gap: .7rem; margin-bottom: 1.4rem; }
.search { position: relative; display: block; }
.search .input { padding-inline-start: 2.6rem; border-radius: 999px; }
.search-icon { position: absolute; inset-inline-start: .95rem; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); }
.sort .select { border-radius: 999px; padding-inline-end: 2rem; }
.cats {
  grid-column: 1 / -1; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin-inline: -16px; padding: 2px 16px; scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar { display: none; }
.cats .chip { flex: none; scroll-snap-align: start; }

/* ---------- How to order (a real sequence, so it's numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.step-no {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.1rem/1 var(--font-display);
}
.step h3 { margin: 0 0 .3rem; color: var(--navy); font-size: 1.15rem; }
.step p { margin: 0; color: #3E4C5B; }

/* ---------- Delivery band ---------- */
.delivery { position: relative; overflow: hidden; isolation: isolate; margin-top: 64px; background: var(--navy-deep); color: #fff; }
.delivery::before {
  content: ''; position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 50%;
  inset-inline-end: -140px; top: -170px; background: var(--navy);
}
.delivery-inner { max-width: 1180px; margin: 0 auto; padding: 56px 20px; display: grid; gap: 28px; scroll-margin-top: 72px; }
.delivery h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 4.4vw, 2.5rem); line-height: 1.2; }
.delivery-copy p { margin: 0; color: #B8C3CF; max-width: 30rem; }
.regions-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.region-card {
  display: grid; gap: .5rem; padding: 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.region-card-name { color: #B8C3CF; font-size: .92rem; }
.region-card-price { font: 800 2.3rem/1 var(--font-display); }
.home .site-footer { margin-top: 0; border-top: 1px solid rgba(255, 255, 255, .08); }

/* ---------- Larger screens ---------- */
@media (min-width: 700px) {
  .hero { padding-top: 64px; }
  .hero-copy { padding: 0 32px; }
  .hang { width: 176px; }
  .hang-tag { top: 100px; }
  .scroller { grid-auto-columns: calc((100% - 2 * 18px) / 3.2); gap: 18px; }
  .scroller-nav { display: flex; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .shop-tools { grid-template-columns: minmax(260px, 360px) auto 1fr; align-items: center; }
  .cats { grid-column: auto; margin: 0; padding: 2px; flex-wrap: wrap; overflow: visible; justify-content: flex-end; }
}
@media (min-width: 1000px) {
  .hero-circle-a { width: 380px; height: 380px; top: -220px; inset-inline-end: -120px; }
  .rail-items { justify-content: safe center; }
  .hang { width: 190px; }
  .hang-tag { top: 108px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .scroller { grid-auto-columns: calc((100% - 3 * 18px) / 4.3); }
  .delivery-inner { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 72px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line, .hero-sub, .hero-ctas { animation: none; }
  .hang, .rail-items.is-ready .hang, .rail-items.is-ready .hang.is-nudged { animation: none; opacity: 1; }
}
