:root {
  --paper: #f4f2ee;
  --paper-2: #eae6df;
  --card: #ffffff;
  --ink: #111110;
  --ink-2: #45413b;
  --muted: #827c73;
  --line: #e2ddd5;
  --sale: #d8401a;
  --ok: #1d6b4a;
  --font: "Readex Pro", system-ui, sans-serif;
  --display: "Archivo Black", "Readex Pro", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1320px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.announce { background: var(--ink); color: #eee9e0; text-align: center; font-size: 13px; padding: 9px 16px; }
.announce b { color: #fff; font-weight: 600; }
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 93%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 68px; gap: 16px; }
.nav { display: flex; gap: 26px; font-size: 14.5px; font-weight: 500; }
.nav a { position: relative; padding: 6px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transition: transform .22s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .sale { color: var(--sale); }
.logo { font-family: var(--display); font-size: 30px; letter-spacing: .04em; line-height: 1; direction: ltr; }
.logo i { color: var(--sale); font-style: normal; }
.top-actions { justify-self: end; display: flex; gap: 4px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn b { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.icon-btn b:empty { display: none; }
.icon-btn.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.22); } }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 999px; padding: 14px 30px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 15px; transition: background .15s, color .15s, opacity .15s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #2b2925; }
.btn-light { background: #fff; color: var(--ink); }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(76vh, 720px); min-height: 440px; overflow: hidden; background: #e9e3d8; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; direction: ltr; }
.hero-copy > * { direction: rtl; width: min(540px, 100%); }
.hero-cta { justify-content: flex-start; }
.hero .wrap { direction: ltr; height: 100%; }
.kicker { font-size: 13px; font-weight: 600; color: var(--sale); letter-spacing: .02em; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.12; margin: 14px 0 16px; letter-spacing: -.01em; }
.hero p { font-size: 18px; color: var(--ink-2); margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- perks ---------- */
.perks { border-bottom: 1px solid var(--line); background: var(--card); }
.perks-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; align-items: center; gap: 12px; padding: 20px 18px; font-size: 14px; border-inline-start: 1px solid var(--line); }
.perk:first-child { border-inline-start: 0; }
.perk svg { width: 24px; height: 24px; }
.perk b { display: block; font-weight: 600; }
.perk span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.section { padding: 64px 0 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.25; }
.section-head a { font-size: 14.5px; font-weight: 500; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; white-space: nowrap; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cat { background: var(--card); border-radius: 14px; overflow: hidden; display: block; position: relative; }
.cat img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; transition: transform .5s; }
.cat:hover img { transform: scale(1.04); }
.cat span { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-weight: 600; font-size: 15px; }
.cat small { color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 18px; }
.card { display: block; position: relative; }
.card-img { background: var(--card); border-radius: 14px; overflow: hidden; position: relative; }
.card-img img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.035); }
.badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; z-index: 1; }
.badge.sale { background: var(--sale); }
.card-body { padding: 12px 4px 0; }
.card-name { font-weight: 600; font-size: 15.5px; line-height: 1.45; }
.card-meta { color: var(--muted); font-size: 13.5px; }
.price { display: flex; gap: 9px; align-items: baseline; margin-top: 3px; font-weight: 600; }
.price s { color: var(--muted); font-weight: 400; font-size: 13.5px; }
.price .now-sale { color: var(--sale); }

/* ---------- banners ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.duo a { position: relative; border-radius: 16px; overflow: hidden; display: block; min-height: 420px; background: #ddd; }
.duo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s; }
.duo a:hover img { transform: scale(1.03); }
.duo div { position: absolute; inset: auto 0 0 0; padding: 28px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.duo h3 { font-size: 30px; font-weight: 700; }
.duo p { font-size: 14.5px; opacity: .9; }

.strip { margin-top: 64px; background: var(--ink); color: #fff; border-radius: 18px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.strip p { color: #c9c3b8; margin-top: 6px; }

/* ---------- shop page ---------- */
.page-head { padding: 40px 0 22px; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin-top: 8px; line-height: 1.25; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 30px; }
.chip { padding: 8px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 26px 0 30px; align-items: start; }
.pdp-img { background: var(--card); border-radius: 18px; overflow: hidden; position: sticky; top: 92px; }
.pdp-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pdp-info h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.3; margin-top: 10px; }
.pdp-price { font-size: 26px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; margin: 12px 0 4px; }
.pdp-price s { font-size: 17px; font-weight: 400; color: var(--muted); }
.pdp-price .off { font-size: 13px; background: var(--sale); color: #fff; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.pdp-desc { color: var(--ink-2); margin: 18px 0 24px; font-size: 16px; }
.opt-label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.opt-label span { font-weight: 400; color: var(--muted); }
.sizes { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.size { min-width: 58px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 15px; direction: ltr; transition: all .12s; }
.size:hover:not(:disabled) { border-color: var(--ink); }
.size[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size:disabled { color: #b9b3a9; background: transparent; text-decoration: line-through; cursor: not-allowed; }
.stock-note { font-size: 13.5px; color: var(--ok); margin-bottom: 22px; min-height: 22px; }
.stock-note.out { color: var(--sale); }
.swatch { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 12px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); font-size: 14.5px; font-weight: 500; margin-bottom: 22px; }
.buy-row { display: flex; gap: 10px; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); }
.fact { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fact b { font-weight: 600; min-width: 96px; }
.fact span { color: var(--ink-2); }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 40px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; background: var(--card); }
.line h3 { font-size: 16px; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; margin-top: 8px; background: var(--card); }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 17px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.line-end { text-align: end; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: 13.5px; text-decoration: underline; padding: 0; margin-top: 8px; }
.summary { background: var(--card); border-radius: 18px; padding: 26px; position: sticky; top: 92px; }
.summary h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 19px; font-weight: 700; }
.empty { text-align: center; padding: 70px 0 90px; }
.empty h2 { font-size: 26px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 24px; }
.field { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; }
.field input, .field select { display: block; width: 100%; margin-top: 6px; height: 50px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); padding: 0 14px; font-weight: 400; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.done { text-align: center; padding: 80px 0 100px; }
.done .tick { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.done .tick svg { width: 36px; height: 36px; stroke-width: 2.4; }

/* ---------- text pages ---------- */
.prose { max-width: 820px; padding-bottom: 50px; }
.prose h2 { font-size: 24px; font-weight: 700; margin: 38px 0 12px; }
.prose p { color: var(--ink-2); margin-bottom: 10px; font-size: 16px; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0 8px; }
.info-card { background: var(--card); border-radius: 16px; padding: 22px; }
.info-card b { display: block; font-size: 26px; font-weight: 700; }
.info-card span { color: var(--muted); font-size: 14px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; margin: 10px 0 14px; }
.table th, .table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); font-size: 15px; }
.table th { background: var(--paper-2); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
details { background: var(--card); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 17px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 18px; margin: 0; }

/* ---------- footer ---------- */
footer { margin-top: 80px; background: var(--ink); color: #cfc9be; padding: 54px 0 26px; font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
footer .logo { color: #fff; font-size: 34px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
footer a { display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
.foot-note { border-top: 1px solid #2c2a26; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8f897f; }

/* ---------- toast ---------- */
.toast { position: fixed; top: 86px; left: 50%; transform: translate(-50%, -20px); background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .25s; z-index: 60; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 26px; }
  .pdp-img { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .foot { grid-template-columns: 1fr 1fr; }
  .perks-in { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-inline-start: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-in { grid-template-columns: auto 1fr auto; height: 60px; }
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 60px; inset-inline: 0; background: var(--paper); flex-direction: column; gap: 0; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .logo { justify-self: center; font-size: 26px; }
  .hero { height: 78vh; }
  .hero img { object-position: 84% 50%; opacity: .5; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .duo a { min-height: 340px; }
  .strip { padding: 30px 24px; }
  .section { padding-top: 46px; }
  .info-cards { grid-template-columns: 1fr; }
  .line { grid-template-columns: 76px 1fr; }
  .line img { width: 76px; }
  .line-end { grid-column: 2; text-align: start; }
  .buy-row { flex-direction: column; }
  .two { grid-template-columns: 1fr; }
}
