/* ===================== Star Home — styles ===================== */
:root {
  --sand: #E2D5C2;
  --sand-2: #EFE7DC;
  --cream: #F7F3EE;
  --wood: #6E4424;
  --wood-2: #8A5A33;
  --wood-dark: #4E2F18;
  --ink: #111;
  --ink-2: #3a332d;
  --muted: #7d746b;
  --white: #fff;
  --line: rgba(110, 68, 36, .14);
  --shadow-sm: 0 4px 14px rgba(60, 40, 20, .06);
  --shadow: 0 18px 50px rgba(60, 40, 20, .12);
  --radius: 22px;
  --radius-lg: 32px;
  --head: "Onest", system-ui, sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 92px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--body);
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.center { display: flex; justify-content: center; margin-top: 44px; }

/* topographic background */
.topo {
  background-color: var(--cream);
  background-image: url("assets/topo.svg");
  background-size: 620px;
}

/* ===================== Buttons ===================== */
.btn {
  --bg: var(--wood);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 34px;
  border-radius: 999px;
  font-family: var(--head); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn--block { width: 100%; }

/* wood-grain button like the template */
.btn--wood {
  color: #fff;
  background-color: var(--wood);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60' fill='none' stroke='%23ffffff' stroke-opacity='.10' stroke-width='1.2'%3E%3Cpath d='M0 10c40-8 60 10 100 4s70-14 140-2'/%3E%3Cpath d='M0 22c45-10 70 12 115 4s75-10 125 0'/%3E%3Cpath d='M0 36c35 6 70-12 110-4s80 14 130 2'/%3E%3Cpath d='M0 50c50-10 80 8 120 2s70-10 120 0'/%3E%3Cellipse cx='150' cy='30' rx='22' ry='7'/%3E%3Cellipse cx='150' cy='30' rx='12' ry='3.5'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #7b4c29, #5e3a1e);
  background-size: 240px 60px, cover;
  box-shadow: 0 10px 24px rgba(110, 68, 36, .28), inset 0 1px 0 rgba(255,255,255,.12);
}
.btn--wood:hover { box-shadow: 0 16px 30px rgba(110, 68, 36, .36), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--light { background: rgba(255,255,255,.92); color: var(--ink); backdrop-filter: blur(8px); }
.btn--outline { border: 1.5px solid var(--wood); color: var(--wood); background: #fff; }
.btn--outline:hover { background: var(--sand-2); }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--wood);
  transition: all .3s var(--ease);
}
.round-btn:hover:not(:disabled) { background: var(--wood); color: #fff; border-color: var(--wood); }
.round-btn:disabled { opacity: .35; cursor: default; }
.round-btn svg { width: 18px; height: 18px; }

.link-btn { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; margin-top: 4px; }
.link-btn:hover { color: var(--wood); }

/* ===================== Header ===================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  transition: box-shadow .3s, height .3s;
}
.header.is-scrolled { box-shadow: 0 6px 30px rgba(40, 25, 10, .07); --header-h: 76px; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(17, 24, 39, .18); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--head); font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.brand__name b { font-weight: 600; }
.brand__tag { font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--ink); margin-top: 6px; font-weight: 600; }
.brand--small .brand__logo { width: 40px; height: 40px; }
.brand--small .brand__name { font-size: 20px; }

.nav { display: flex; gap: clamp(20px, 4vw, 72px); }
.nav__link {
  position: relative;
  font-family: var(--head); font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); padding: 8px 0;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--wood); transform: translate(-50%, 6px) scale(0); transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); font-weight: 600; }
.nav__link.is-active::after { transform: translate(-50%, 6px) scale(1); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #444; transition: background .25s, color .25s; }
.icon-btn:hover { background: var(--sand-2); color: var(--wood); }
.badge {
  position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--wood); color: #fff; font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff;
}
.badge.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.header__divider { width: 1px; height: 30px; background: #ddd; margin: 0 8px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; padding: 2px; background: conic-gradient(from 200deg, #c8a24a, #6E4424, #c8a24a); transition: transform .3s var(--ease); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.avatar:hover { transform: rotate(-8deg) scale(1.05); }

.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; padding: 0 8px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), width .35s; }
.burger span:first-child { width: 24px; }
.burger span:last-child { width: 16px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { width: 24px; transform: translateY(-4px) rotate(-45deg); }

/* ===================== Search ===================== */
.search {
  position: fixed; inset: 0; z-index: 80; padding: 110px 24px 24px;
  background: rgba(247, 243, 238, .92); backdrop-filter: blur(16px);
  animation: fade .3s ease;
}
.search__box {
  width: min(720px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 999px; padding: 0 12px 0 24px; height: 64px; box-shadow: var(--shadow);
}
.search__box input { flex: 1; border: 0; outline: 0; font: 500 17px var(--body); color: var(--ink); background: none; min-width: 0; }
.search__close { width: 42px; height: 42px; border-radius: 50%; background: var(--sand-2); }
.search__results { width: min(720px, 100%); margin: 20px auto 0; display: grid; gap: 10px; max-height: calc(100vh - 230px); overflow: auto; }
.s-item { display: flex; align-items: center; gap: 16px; padding: 10px; background: #fff; border-radius: 18px; text-align: left; transition: transform .25s var(--ease); }
.s-item:hover { transform: translateX(6px); }
.s-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.s-item b { display: block; font-family: var(--head); color: var(--ink); }
.s-item small { color: var(--muted); }
.s-item span:last-child { margin-left: auto; font-family: var(--head); font-weight: 600; color: var(--wood); padding-right: 10px; }
.search__empty { text-align: center; color: var(--muted); padding: 30px; }

/* ===================== Hero ===================== */
.hero {
  position: relative; min-height: 760px; height: min(calc(100vh - var(--header-h)), 960px); margin-top: var(--header-h);
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(250, 245, 238, .92) 0%, rgba(250, 245, 238, .55) 30%, rgba(250, 245, 238, 0) 55%, rgba(40, 25, 10, .12) 100%); }
.hero__content { text-align: center; padding-top: clamp(60px, 9vh, 110px); }
.hero__title { font-family: var(--head); font-weight: 500; font-size: clamp(42px, 7vw, 104px); line-height: 1; letter-spacing: -.035em; color: var(--ink); }
.hero__sub { max-width: 560px; margin: 26px auto 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }

.hotspot {
  position: absolute; left: var(--x); top: var(--y);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(110, 68, 36, .55); backdrop-filter: blur(4px);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.hotspot::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.hotspot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); animation: pulse 2.4s infinite; }
.hotspot:hover { transform: translate(-50%, -50%) scale(1.2); }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

.hero-tip {
  position: absolute; left: 22%; top: 46%;
  display: flex; gap: 16px; align-items: center; width: 400px; padding: 7px 22px 7px 7px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border: 3px solid rgba(255,255,255,.6); border-radius: 26px; box-shadow: var(--shadow);
  cursor: pointer; transition: transform .4s var(--ease);
}
.hero-tip:hover { transform: translateY(-4px); }
.hero-tip img { width: 150px; height: 140px; border-radius: 20px; object-fit: cover; }
.hero-tip h3 { font-family: var(--head); font-size: 20px; font-weight: 600; color: var(--ink); }
.hero-tip p { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.hero-tip::after { content: ""; position: absolute; right: -90px; top: -30px; width: 100px; height: 80px; border-top: 1px solid rgba(80,60,40,.35); border-right: 1px solid rgba(80,60,40,.35); transform: skewX(35deg); pointer-events: none; }

.hero-video {
  position: absolute; left: 4%; bottom: 60px; width: 280px; padding: 10px 10px 14px;
  border-radius: 28px; background: rgba(120, 100, 82, .55); backdrop-filter: blur(14px);
  color: #fff; text-align: center; font-size: 14.5px;
  transition: transform .4s var(--ease);
}
.hero-video:hover { transform: translateY(-5px); }
.hero-video__thumb { position: relative; border-radius: 20px; overflow: hidden; margin-bottom: 12px; }
.hero-video__thumb img { width: 100%; height: 180px; object-fit: cover; transition: transform .6s var(--ease); }
.hero-video:hover img { transform: scale(1.06); }
.play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.play svg { fill: #fff; stroke: none; width: 22px; height: 22px; margin-left: 3px; }

.hero-card {
  position: absolute; right: 4%; bottom: 60px; width: 320px; padding: 14px 14px 18px;
  border-radius: 32px; background: rgba(140, 122, 104, .58); backdrop-filter: blur(16px);
  color: #fff; text-align: center;
}
.hero-card__img { position: relative; border-radius: 24px; overflow: hidden; background: #f4efe9; }
.hero-card__img img { width: 100%; height: 230px; object-fit: cover; }
.hero-card__body { padding: 16px 8px 0; }
.hero-card h3 { font-family: var(--head); font-weight: 500; font-size: 24px; }
.hero-card p { font-size: 13.5px; line-height: 1.5; opacity: .9; margin: 8px 0 18px; }
.hero-card .btn { width: 100%; height: 58px; }

.heart {
  position: absolute; top: 12px; right: 12px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), color .25s;
}
.heart:hover { transform: scale(1.1); }
.heart.is-on { color: #c0392b; }
.heart.is-on svg { fill: currentColor; }
.heart.pop { animation: bump .45s var(--ease); }

/* ===================== Section headings ===================== */
.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-family: var(--head); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink-2);
}
.line { position: relative; width: 70px; height: 1.5px; background: var(--wood); }
.line::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; background: var(--wood); transform: translateY(-50%) rotate(45deg); }
.line--l::after { right: -2px; }
.line--r::after { left: -2px; }
.section-title { text-align: center; font-family: var(--head); font-weight: 500; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.03em; color: var(--ink); margin-top: 10px; line-height: 1.05; }
.section-sub { text-align: center; max-width: 560px; margin: 18px auto 0; line-height: 1.6; font-size: 16px; }

/* ===================== About ===================== */
.about { padding: 120px 0 100px; }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 40px; align-items: center; margin-top: 60px; }
.about__col { display: grid; gap: 26px; }
.feature {
  background: rgba(255,255,255,.9); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature__icon { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-2); color: var(--wood); margin-bottom: 22px; }
.feature h3 { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); }
.feature p { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 8px; }
.about__visual { position: relative; display: grid; place-items: center; }
.about__halo { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(226,213,194,.9), rgba(226,213,194,0) 70%); }
.about__visual img { position: relative; width: 100%; max-height: 560px; object-fit: cover; border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.stats > div { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats strong { display: block; font-family: var(--head); font-weight: 600; font-size: clamp(28px, 3vw, 40px); color: var(--wood); letter-spacing: -.02em; }
.stats span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ===================== Top sales ===================== */
.top { padding: 40px 0 100px; background: var(--cream); }
.top__card { position: relative; min-height: 600px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.top__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: opacity .5s ease, transform 1.2s var(--ease); }
.top__bg.swap { opacity: 0; transform: scale(1.04); }
.top__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,18,12,.7) 0%, rgba(25,18,12,.35) 45%, rgba(25,18,12,0) 70%); }
.top__text { color: #fff; padding: 60px; max-width: 560px; }
.top__eyebrow { display: flex; align-items: center; gap: 18px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; opacity: .9; }
.top__eyebrow i { width: 100px; height: 1px; background: currentColor; }
.top__text h2 { font-family: var(--head); font-weight: 500; font-size: clamp(40px, 5vw, 72px); letter-spacing: -.03em; line-height: 1; margin: 18px 0; }
.top__text p { font-size: 15.5px; line-height: 1.6; opacity: .9; margin-bottom: 30px; }
.top__thumbs { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); display: grid; gap: 14px; }
.thumb {
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-start;
  gap: 14px; padding: 6px; border-radius: 22px; background: rgba(255,255,255,.18); backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255,255,255,.35); transition: all .45s var(--ease); margin-left: auto;
}
.thumb img { width: 100px; height: 96px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.thumb__info { display: none; width: 160px; text-align: left; color: #fff; padding-left: 10px; }
.thumb__info b { display: block; font-family: var(--head); font-weight: 600; font-size: 15px; }
.thumb__info small { font-size: 12px; opacity: .85; line-height: 1.4; }
.thumb.is-active { background: rgba(40, 28, 18, .62); border-color: rgba(255,255,255,.6); }
.thumb.is-active .thumb__info { display: block; }
.thumb:hover { border-color: #fff; }

/* ===================== Collections ===================== */
.collections { padding: 110px 0 110px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 44px; }
.pill {
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-family: var(--head); font-size: 12.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.pill:hover { border-color: var(--wood); color: var(--wood); }
.pill.is-active { background: var(--wood); border-color: var(--wood); color: #fff; box-shadow: 0 8px 18px rgba(110,68,36,.25); }

.carousel { margin-top: 50px; overflow: hidden; padding: 20px 6px 30px; margin-inline: -6px; }
.carousel__track { display: flex; gap: 26px; transition: transform .7s var(--ease); }

.card {
  flex: 0 0 calc((100% - 3 * 26px) / 4);
  background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(110,68,36,.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  animation: cardIn .6s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow); }
.card__media { position: relative; height: 260px; background: var(--sand-2); overflow: hidden; cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__arrow, .card__heart {
  position: absolute; top: 14px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.card__arrow { right: 14px; }
.card__heart { left: 14px; }
.card__arrow:hover { background: var(--wood); color: #fff; transform: rotate(45deg); }
.card__heart:hover { transform: scale(1.1); }
.card__heart.is-on { color: #c0392b; }
.card__heart.is-on svg { fill: currentColor; }
.card__arrow svg, .card__heart svg { width: 18px; height: 18px; }
.card__body { padding: 18px 18px 20px; }
.card__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card__name { font-family: var(--head); font-size: 17px; font-weight: 500; color: var(--ink); }
.card__price { font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.card__row + .card__row { margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.chip svg { width: 13px; height: 13px; }
.star { fill: #F2B01E !important; stroke: none !important; }
.card__cta { margin-top: 16px; width: 100%; height: 48px; font-size: 12px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 10px; }
.pager__count { font-family: var(--head); font-size: 18px; color: var(--muted); }
.pager__count b { color: var(--ink); font-weight: 600; }
.empty { width: 100%; text-align: center; padding: 60px 0; color: var(--muted); }

/* ===================== Shop by category ===================== */
.shop { padding-bottom: 110px; }
.shop__banner { position: relative; height: 420px; overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.shop__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.shop__banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(40,25,10,.15), rgba(40,25,10,.5)); }
.shop__banner-text { text-align: center; color: #fff; }
.shop__banner h2 { font-family: var(--head); font-weight: 600; font-size: clamp(40px, 6vw, 84px); letter-spacing: -.03em; }
.crumbs { margin-top: 14px; font-size: 15px; display: flex; gap: 10px; justify-content: center; opacity: .95; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--dark { justify-content: flex-start; color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.cats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
  margin-top: -70px; position: relative;
}
.cat {
  position: relative; height: 300px; border-radius: 26px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 18px;
  color: #fff; text-align: left; box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,20,10,.55) 0%, rgba(30,20,10,0) 50%, rgba(30,20,10,.35)); }
.cat:hover { transform: translateY(-8px); }
.cat:hover img { transform: scale(1.08); }
.cat h3 { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.1; }
.cat small { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--wood); font-size: 11px; font-weight: 600; }
.cat__go { align-self: flex-end; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .35s var(--ease); }
.cat:hover .cat__go { transform: rotate(45deg); }
.cat__go svg { width: 18px; height: 18px; }

/* ===================== Instagram ===================== */
.insta { padding: 110px 0; }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 50px; }
.insta__grid a { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; }
.insta__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.insta__grid a::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: rgba(110,68,36,.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E") center/38px no-repeat;
}
.insta__grid a:hover::after { opacity: 1; }
.insta__grid a:hover img { transform: scale(1.08); }
.insta__grid a:nth-child(even) { transform: translateY(26px); }
.insta .center { margin-top: 76px; }

/* ===================== Footer ===================== */
.footer { background: var(--sand-2); padding: 100px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; }
.footer h2 { font-family: var(--head); font-weight: 500; font-size: clamp(40px, 5vw, 66px); color: var(--wood); letter-spacing: -.03em; }
.footer__intro p { max-width: 460px; margin-top: 16px; line-height: 1.6; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); transition: all .3s var(--ease); }
.contact-chip svg { width: 18px; height: 18px; color: var(--wood); }
.contact-chip:hover { background: var(--wood); color: #fff; }
.contact-chip:hover svg { color: #fff; }
.footer__col { display: flex; flex-direction: column; gap: 14px; padding-top: 14px; }
.footer__col h4 { font-family: var(--head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); margin-bottom: 6px; }
.footer__col a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: color .25s, transform .25s; }
.footer__col a:hover { color: var(--wood); transform: translateX(4px); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 70px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ===================== Product modal ===================== */
.modal, .drawer { position: fixed; inset: 0; z-index: 90; }
.modal__backdrop, .drawer__backdrop { position: absolute; inset: 0; background: rgba(30, 20, 12, .45); backdrop-filter: blur(4px); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.modal__panel {
  position: relative; width: min(1120px, calc(100% - 32px)); max-height: calc(100vh - 40px); margin: 20px auto;
  top: 50%; transform: translateY(-50%); margin-block: 0;
  background: #fff; border-radius: var(--radius-lg); overflow: auto; box-shadow: 0 40px 100px rgba(0,0,0,.25);
  animation: rise .5s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(-46%); } }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); font-size: 15px; transition: transform .3s; }
.modal__close:hover { transform: rotate(90deg); }
.pm { display: grid; grid-template-columns: 1fr 1.05fr; }
.pm__info { padding: 50px 46px; }
.pm__info h2 { font-family: var(--head); font-weight: 600; font-size: clamp(34px, 4vw, 54px); letter-spacing: -.03em; color: var(--ink); line-height: 1.05; }
.pm__meta { display: flex; gap: 10px; margin: 16px 0 20px; }
.pm__meta .chip { text-transform: none; font-size: 12.5px; }
.pm__desc { color: var(--muted); line-height: 1.65; font-size: 15px; }
.pm__row { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid #ece6df; font-family: var(--head); font-weight: 600; font-size: 14px; text-transform: uppercase; color: var(--ink); letter-spacing: .04em; }
.pm__row:first-of-type { margin-top: 14px; }
.pm__mat { display: flex; gap: 14px; text-transform: none; font-weight: 500; color: var(--muted); }
.swatches { display: flex; gap: 10px; }
.swatch { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd; transition: box-shadow .25s, transform .25s; }
.swatch:hover { transform: scale(1.12); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--wood); }
.qty { display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 6px; border: 1px solid #e3dcd3; border-radius: 999px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; font-size: 18px; transition: background .25s; }
.qty button:hover { background: var(--sand-2); }
.qty b { min-width: 26px; text-align: center; font-weight: 600; }
.pm__total { display: flex; justify-content: space-between; align-items: flex-end; margin: 26px 0; font-family: var(--head); font-weight: 600; text-transform: uppercase; color: var(--ink); font-size: 14px; letter-spacing: .04em; }
.pm__total strong { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.03em; text-transform: none; }
.pm__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pm__gallery { position: relative; background: var(--cream); display: flex; flex-direction: column; justify-content: center; padding: 40px; }
.pm__gallery > img { width: 100%; height: 440px; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); transition: opacity .3s; }
.heart--lg { top: 30px; right: 70px; z-index: 2; }
.pm__thumbs { display: flex; gap: 12px; margin-top: 18px; justify-content: center; }
.pm__thumbs button { width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: #fff; border: 2px solid transparent; padding: 3px; transition: border-color .25s, transform .25s; }
.pm__thumbs button:hover { transform: translateY(-3px); }
.pm__thumbs button.is-on { border-color: var(--wood); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* ===================== Cart drawer ===================== */
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%);
  background: #fff; display: flex; flex-direction: column; animation: slideIn .45s var(--ease);
}
@keyframes slideIn { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 26px 26px 18px; border-bottom: 1px solid #eee7df; }
.drawer__head h3 { font-family: var(--head); font-weight: 600; font-size: 26px; color: var(--ink); }
.drawer__head .modal__close { position: static; }
.drawer__body { flex: 1; overflow: auto; padding: 10px 26px; }
.c-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid #f0ebe5; }
.c-item img { width: 82px; height: 82px; border-radius: 16px; object-fit: cover; }
.c-item b { display: block; font-family: var(--head); font-weight: 600; color: var(--ink); }
.c-item small { color: var(--muted); font-size: 12px; }
.c-item .qty { height: 34px; margin-top: 8px; }
.c-item .qty button { width: 26px; height: 26px; font-size: 15px; }
.c-item__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.c-item__right strong { font-family: var(--head); color: var(--ink); white-space: nowrap; }
.c-item__rm { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); }
.c-item__rm:hover { background: var(--sand-2); color: var(--ink); }
.drawer__foot { padding: 20px 26px 26px; background: var(--cream); display: grid; gap: 12px; justify-items: center; }
.summary { width: 100%; display: grid; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; }
.summary__total { padding-top: 12px; border-top: 1px dashed #d8cfc4; font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 16px; }
.summary__total strong { font-size: 22px; }
.cart-empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.cart-empty svg { width: 54px; height: 54px; color: var(--sand); margin: 0 auto 16px; }

/* ===================== Toast ===================== */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 100; transform: translate(-50%, 140%);
  padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow); transition: transform .45s var(--ease), opacity .3s; pointer-events: none; white-space: nowrap;
  opacity: 0;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ===================== Reveal animation ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero-tip.reveal, .hero-card.reveal, .hero-video.reveal { transition-delay: .35s; }

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
  .card { flex-basis: calc((100% - 2 * 26px) / 3); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .hero-tip { left: 8%; }
}

@media (max-width: 980px) {
  :root { --header-h: 80px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 0;
    background: #fff; padding: 10px 24px 26px; box-shadow: 0 20px 40px rgba(0,0,0,.08);
    transform: translateY(-16px); opacity: 0; visibility: hidden; z-index: -1;
    transition: transform .45s var(--ease), opacity .3s, visibility .3s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 16px 0; border-bottom: 1px solid #f0ebe5; font-size: 15px; }
  .nav__link::after { display: none; }
  .burger { display: flex; }
  .header__divider, .avatar { display: none; }

  .hero { min-height: 900px; }
  .hero-tip { left: 50%; transform: translateX(-50%); top: 42%; width: min(400px, calc(100% - 40px)); }
  .hero-tip:hover { transform: translateX(-50%) translateY(-4px); }
  .hero-tip.reveal { transform: translateX(-50%) translateY(30px); }
  .hero-tip.reveal.in { transform: translateX(-50%); }
  .hero-tip::after { display: none; }
  .hero-video { display: none; }
  .hero-card {
    left: 50%; right: auto; transform: translateX(-50%); bottom: 30px; width: min(560px, calc(100% - 40px));
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: center; text-align: left;
  }
  .hero-card.reveal { transform: translateX(-50%) translateY(30px); }
  .hero-card.reveal.in { transform: translateX(-50%); }
  .hero-card__img img { height: 200px; }
  .hero-card__body { padding: 0; }
  .hero-card h3 { font-size: 21px; }

  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; max-width: 420px; margin: 0 auto; }
  .about__col { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .top__card { min-height: 640px; flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .top__thumbs { position: static; transform: none; display: flex; gap: 10px; padding: 0 30px 30px; }
  .thumb { margin: 0; }
  .thumb img { width: 76px; height: 70px; }
  .thumb.is-active .thumb__info { display: none; }
  .thumb.is-active { border-color: #fff; }
  .top__text { padding: 40px 30px 24px; }

  .card { flex-basis: calc((100% - 26px) / 2); }
  .insta__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__intro { grid-column: 1 / -1; }

  .pm { grid-template-columns: 1fr; }
  .pm__gallery { order: -1; padding: 24px; }
  .pm__gallery > img { height: 320px; }
  .heart--lg { top: 40px; left: 40px; right: auto; }
  .crumbs--dark { display: none; }
  .pm__info { padding: 30px 26px 34px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .brand__logo { width: 44px; height: 44px; }
  .brand__name { font-size: 22px; }
  .brand__tag { font-size: 8.5px; letter-spacing: .34em; }
  .icon-btn { width: 38px; height: 38px; }
  #searchBtn { display: none; }

  .hero { min-height: 860px; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 15.5px; }
  .hotspot:nth-of-type(n+3) { display: none; }
  .hero-tip { top: 40%; padding-right: 14px; }
  .hero-tip img { width: 110px; height: 100px; }
  .hero-tip h3 { font-size: 17px; }
  .hero-tip p { font-size: 12.5px; }
  .hero-card { grid-template-columns: 1fr 1.15fr; padding: 12px; border-radius: 28px; }
  .hero-card__img img { height: 190px; }
  .hero-card p { font-size: 12.5px; margin: 6px 0 14px; }
  .hero-card .btn { height: 50px; }
  .heart { width: 40px; height: 40px; top: 10px; right: 10px; }

  .line { width: 44px; }
  .about { padding: 80px 0 70px; }
  .about__col { grid-template-columns: 1fr; }
  .stats strong { font-size: 28px; }
  .stats > div { padding: 22px 10px; }
  .stats span { font-size: 11px; letter-spacing: .08em; }

  .top { padding-bottom: 70px; }
  .top__card { min-height: 600px; border-radius: 26px; }
  .top__text h2 { font-size: 40px; }
  .top__thumbs { padding: 0 20px 20px; }
  .thumb img { width: 64px; height: 60px; }

  .collections { padding: 80px 0; }
  .pills { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -16px; padding: 4px 16px 8px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex-shrink: 0; }
  .card { flex-basis: 100%; }
  .carousel__track { gap: 16px; }

  .shop__banner { height: 320px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -50px; }
  .cat { height: 220px; padding: 16px 14px; }
  .cat h3 { font-size: 17px; }

  .insta { padding: 80px 0; }
  .insta__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .insta__grid a:nth-child(even) { transform: translateY(18px); }

  .footer { padding: 70px 0 26px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .pm__btns { grid-template-columns: 1fr; }
  .pm__gallery > img { height: 260px; }
  .pm__thumbs button { width: 64px; height: 64px; }
  .btn { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
