:root{
  --bg:#f5f4f2;
  --bg-soft:#efede9;
  --surface:#ffffff;
  --surface-2:#faf8f5;
  --text:#121212;
  --muted:#676767;
  --line:#d8d3cc;
  --brand:#111111;
  --brand-2:#1b1b1b;
  --accent:#a36b3f;
  --accent-2:#d8b080;
  --danger:#9a2b2b;
  --success:#2d6f4b;
  --shadow:0 12px 38px rgba(0,0,0,.08);
  --radius:18px;
  --radius-sm:12px;
  --wrap:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit}
input,select,textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  border-radius:14px;
  padding:14px 16px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:#b7a188;
  box-shadow:0 0 0 4px rgba(163,107,63,.12);
}
input::placeholder,textarea::placeholder{
  color:#888 !important;
  opacity:1 !important;
  -webkit-text-fill-color:#888 !important;
}
textarea{min-height:120px;resize:vertical}
.wrap{width:min(var(--wrap), calc(100% - 32px));margin:0 auto}
.muted{color:var(--muted)}
.hidden{display:none !important}
.only-mobile{display:none !important}
.only-desktop{display:block !important}

/* header */
.topbar{
  background:#121212;
  color:#d9d6cf;
  font-size:12px;
}
.topbar .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:44px;
}
.topbar-links,.topbar-meta{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.topbar a:hover{text-decoration:underline}

.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(245,244,242,.94);
  border-bottom:1px solid rgba(0,0,0,.06);
  backdrop-filter:blur(12px);
}
.site-header .wrap{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  min-height:84px;
  gap:16px;
}
.header-left,.header-right{display:flex;align-items:center;gap:14px}
.header-right{justify-content:flex-end}
.burger{
  width:44px;height:44px;border:none;background:transparent;cursor:pointer;
  display:grid;place-items:center;padding:0;border-radius:50%;
}
.burger:hover{background:rgba(0,0,0,.05)}
.burger span,.burger:before,.burger:after{
  content:"";display:block;width:18px;height:1.8px;background:#222;border-radius:10px;
}
.burger span{position:relative}
.burger:before{transform:translateY(-6px)}
.burger:after{transform:translateY(6px)}
.logo{
  font-size:28px;
  font-weight:700;
  letter-spacing:.02em;
  justify-self:center;
}
.logo .heart{color:#cf5959}
.header-actions{display:flex;align-items:center;gap:4px}
.icon-btn{
  position:relative;
  width:44px;height:44px;border:none;background:transparent;border-radius:50%;
  display:grid;place-items:center;cursor:pointer;
}
.icon-btn:hover{background:rgba(0,0,0,.05)}
.icon-btn .badge{
  position:absolute;top:5px;right:4px;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:#111;color:#fff;font-size:11px;display:grid;place-items:center;
}
.icon{
  width:19px;height:19px;display:inline-block;position:relative;
}
.icon.search{border:1.8px solid #111;border-radius:50%}
.icon.search:after{content:"";position:absolute;width:8px;height:1.8px;background:#111;right:-5px;bottom:-1px;transform:rotate(45deg)}
.icon.heart:before{content:"♡";font-size:21px;line-height:1;color:#111;position:absolute;inset:0;display:grid;place-items:center}
.icon.bag{border:1.8px solid #111;border-radius:4px;top:2px}
.icon.bag:before{content:"";position:absolute;left:4px;right:4px;top:-5px;height:8px;border:1.8px solid #111;border-bottom:none;border-radius:12px 12px 0 0}
.icon.bag:after{content:"";position:absolute;left:7px;right:7px;top:6px;height:1.5px;background:#111}
.icon.cart:before{content:"🛒";font-size:20px;line-height:1;position:absolute;inset:0;display:grid;place-items:center}

.mobile-drawer{
  display:none;
  position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.32);
}
.mobile-drawer.open{display:block}
.mobile-drawer-panel{
  width:min(380px, 88vw);height:100%;background:#fff;padding:20px 18px;overflow:auto;
  box-shadow:var(--shadow);
}
.drawer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.drawer-close{border:none;background:transparent;font-size:24px;cursor:pointer}
.drawer-nav a{display:block;padding:12px 0;border-bottom:1px solid var(--line)}

/* hero */
.main-content{padding:26px 0 80px}
.hero{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:24px;
  align-items:stretch;
}
.hero-banner{
  min-height:360px;border-radius:26px;overflow:hidden;background:
    linear-gradient(115deg, rgba(18,18,18,.86), rgba(18,18,18,.48)),
    radial-gradient(circle at 25% 25%, rgba(212,170,116,.32), transparent 32%),
    linear-gradient(135deg, #7c5940 0%, #b68d68 42%, #ded5cb 100%);
  color:#fff;padding:34px;display:flex;flex-direction:column;justify-content:space-between;
  box-shadow:var(--shadow);
}
.hero-banner h1{font-size:clamp(30px,5vw,54px);line-height:.96;margin:0}
.hero-banner p{max-width:480px;color:rgba(255,255,255,.8);font-size:15px}
.hero-pill{
  padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.12);backdrop-filter:blur(4px);
  font-size:13px;border:1px solid rgba(255,255,255,.14)
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn, .btn-secondary, .btn-ghost, .btn-link{
  border:none;border-radius:999px;padding:14px 18px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;
  transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover,.btn-secondary:hover,.btn-ghost:hover{transform:translateY(-1px)}
.btn{background:#111;color:#fff}
.btn-secondary{background:#fff;color:#111}
.btn-ghost{background:transparent;border:1px solid var(--line);color:var(--text)}
.btn-link{background:transparent;color:var(--text);padding:0}
.hero-side{
  border-radius:26px;background:var(--surface);padding:22px;box-shadow:var(--shadow);display:grid;grid-template-rows:auto auto 1fr;gap:16px;
}
.hero-side h2{margin:0;font-size:16px;letter-spacing:.02em;text-transform:uppercase}
.banner-slot{
  min-height:180px;
  border:1px dashed #ccbca9;
  border-radius:24px;
  padding:22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(246,241,234,.92)),
    repeating-linear-gradient(-45deg, rgba(163,107,63,.08) 0, rgba(163,107,63,.08) 12px, transparent 12px, transparent 24px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.banner-slot-label{
  display:inline-flex;
  align-self:flex-start;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid #ddd1c4;
  color:#7a6045;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.banner-slot h3{
  margin:14px 0 8px;
  font-size:26px;
  line-height:1.05;
}
.banner-slot p{
  margin:0;
  color:#67594b;
  font-size:14px;
  line-height:1.5;
}
.promo-card{
  border:1px solid var(--line);border-radius:20px;padding:16px;background:linear-gradient(180deg,#fff,#f6f3ee)
}
.promo-code{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border-radius:999px;background:#111;color:#fff;font-weight:700;letter-spacing:.08em
}
.mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mini-tile{
  border:1px solid var(--line);border-radius:18px;padding:16px;background:#fff;min-height:120px;display:flex;flex-direction:column;justify-content:space-between
}
.mini-tile strong{font-size:15px}
.section{margin-top:32px}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:16px}
.section-head h2,.section-head h3{margin:0;font-size:28px}
.section-head p{margin:4px 0 0;font-size:14px}

/* categories */
.category-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:14px;
}
.category-card{
  min-height:140px;border-radius:22px;padding:18px;background:linear-gradient(145deg,#1e1e1e,#49423b 55%,#d8c3ad);
  color:#fff;position:relative;overflow:hidden;box-shadow:var(--shadow)
}
.category-card:nth-child(2n){background:linear-gradient(145deg,#50331e,#9b6a46 55%,#e6d7ca)}
.category-card:nth-child(3n){background:linear-gradient(145deg,#212734,#59657d 55%,#e0e4ea)}
.category-card:nth-child(4n){background:linear-gradient(145deg,#2f241c,#7d5f49 55%,#ece0d2)}
.category-card .count{font-size:12px;opacity:.88}
.category-card h3{margin:8px 0 0;font-size:24px}
.category-card .arrow{position:absolute;right:18px;bottom:14px;font-size:20px;opacity:.9}

/* horizontal scrollers */
.h-scroll{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(260px, 1fr);
  gap:16px;
  overflow:auto;
  padding-bottom:6px;
  scrollbar-width:thin;
}
.h-scroll::-webkit-scrollbar{height:8px}
.h-scroll::-webkit-scrollbar-thumb{background:#cdc6be;border-radius:99px}

/* catalog cards */
.product-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.product-card{
  background:var(--surface);
  border:1px solid #e6dfd6;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:100%;
  box-shadow:0 10px 26px rgba(17,17,17,.05);
}
.product-card-media{
  aspect-ratio:3/4;
  background:#dfd9d1;
  overflow:hidden;
  position:relative;
}
.product-card-media img{
  width:100%;height:100%;object-fit:cover;
}
.product-fav{
  position:absolute;right:10px;bottom:10px;
  width:34px;height:34px;border-radius:50%;border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer;
}
.product-fav.active{background:#111;color:#fff}
.product-card-body{
  padding:14px 14px 16px;
  display:flex;flex-direction:column;gap:8px;flex:1;
}
.product-card-title{font-size:15px;line-height:1.35;min-height:60px}
.product-price{font-size:17px;font-weight:600}
.product-card-actions{margin-top:auto;padding-top:10px}
.buy-btn{
  width:100%;padding:14px 16px;border:1px solid #171717;background:#fff;color:#111;border-radius:18px;font-size:15px;font-weight:600;letter-spacing:.02em;
}
.buy-btn:hover{background:#111;color:#fff}
.meta-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.tag{display:inline-flex;padding:6px 10px;border-radius:999px;background:#ede7de;font-size:12px;color:#333}

/* filters */
.filters-row{
  display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:20px
}
.search-wrap{position:relative;max-width:340px;width:100%}
.search-wrap input{padding-left:44px}
.search-wrap:before{
  content:"";position:absolute;left:16px;top:50%;width:16px;height:16px;border:1.8px solid #444;border-radius:50%;transform:translateY(-50%);
}
.search-wrap:after{
  content:"";position:absolute;left:31px;top:56%;width:7px;height:1.8px;background:#444;transform:rotate(45deg)
}
.chip-row{display:flex;gap:10px;flex-wrap:wrap}
.chip{
  border:1px solid var(--line);background:#fff;color:#444;padding:10px 14px;border-radius:999px;cursor:pointer
}
.chip.active{background:#111;color:#fff;border-color:#111}

/* product page */
.product-layout{
  display:grid;
  grid-template-columns:110px minmax(0, 1fr) 420px;
  gap:22px;
  align-items:start;
}
.thumb-list{display:grid;gap:12px}
.thumb{
  border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;aspect-ratio:3/4;cursor:pointer
}
.thumb.active{outline:2px solid #111}
.thumb img{width:100%;height:100%;object-fit:cover}
.product-main-card{
  background:#ebe7e0;border-radius:24px;padding:12px;box-shadow:var(--shadow)
}
.product-main-media{aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:#dfd7cf}
.product-main-media img{width:100%;height:100%;object-fit:cover}
.product-side{
  background:transparent;padding:6px 0
}
.product-sku{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:12px}
.product-side h1{font-size:40px;line-height:.96;margin:0 0 14px}
.price-big{font-size:36px;font-weight:700;margin:12px 0 20px}
.option-block{margin:18px 0}
.option-label{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;margin-bottom:10px}
.option-grid{display:flex;flex-wrap:wrap;gap:10px}
.option-btn{
  min-width:44px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;
}
.option-btn.active{border-color:#111;background:#111;color:#fff}
.color-swatch{width:18px;height:18px;border-radius:50%;border:1px solid rgba(0,0,0,.12);display:inline-block}
.product-actions{display:flex;gap:12px;align-items:center;margin:22px 0}
.product-actions .buy-btn{border-radius:18px;background:#111;color:#fff}
.fav-large{width:50px;height:50px;border-radius:50%;border:1px solid var(--line);background:#fff}
.fav-large.active{background:#111;color:#fff;border-color:#111}
.product-desc{font-size:14px;line-height:1.58;color:#4f4f4f;max-width:360px}
.accordions{margin-top:38px;border-top:1px solid var(--line)}
.acc-item{border-bottom:1px solid var(--line)}
.acc-head{
  width:100%;display:flex;justify-content:space-between;gap:12px;align-items:center;background:transparent;border:none;padding:18px 0;cursor:pointer;
  font-size:14px;letter-spacing:.02em;text-transform:uppercase;
}
.acc-body{display:none;padding:0 0 18px;color:#444;line-height:1.65}
.acc-item.open .acc-body{display:block}
.acc-symbol{font-size:22px;color:#444}
.related-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}

/* checkout */
.checkout-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.25fr) 380px;
  gap:32px;
  align-items:start;
}
.checkout-left,.checkout-right{
  background:var(--surface);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}
.cart-list{display:flex;flex-direction:column;gap:18px}
.cart-item{
  display:grid;
  grid-template-columns:140px 1fr auto;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}
.cart-item:last-child{padding-bottom:0;border-bottom:none}
.cart-media{
  aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:#ddd
}
.cart-media img{width:100%;height:100%;object-fit:cover}
.cart-title{font-size:26px;line-height:.95;margin:0 0 8px}
.cart-sku,.cart-variant{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.qty-row{display:flex;align-items:center;gap:10px;margin-top:16px}
.qty-btn{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;cursor:pointer;
}
.qty-chip{font-size:13px;color:#444}
.cart-side-tools{
  display:flex;flex-direction:column;gap:14px;align-items:flex-end
}
.heart-mini,.remove-mini{
  border:none;background:transparent;cursor:pointer;font-size:18px;color:#111;padding:2px
}
.remove-mini{font-size:14px;text-decoration:underline;color:#5d5d5d}
.summary-list{display:grid;gap:12px;margin:18px 0 22px}
.summary-row{display:flex;justify-content:space-between;gap:12px}
.summary-row.total{padding-top:12px;border-top:1px solid var(--line);font-size:20px;font-weight:700}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1 / -1}
.form-note{font-size:12px;color:var(--muted);line-height:1.5}
.check{
  display:flex;gap:10px;align-items:flex-start;font-size:13px;color:#333;line-height:1.45;
}
.check input{
  width:auto;margin-top:3px;accent-color:#111;flex:0 0 auto
}
.check a{color:#111;text-decoration:underline}
.status{font-size:14px;margin-top:12px;min-height:18px}
.status.err{color:var(--danger)}
.empty-state{
  border:1px dashed #cdb9a3;border-radius:24px;background:linear-gradient(180deg,#fff,#f7f1e8);
  padding:34px;text-align:center
}

/* footer */
.footer{
  background:#111;color:#ddd;margin-top:70px
}
.footer .wrap{padding:28px 16px}
.footer-grid{
  display:grid;
  grid-template-columns:1.1fr auto 1.1fr;
  gap:16px;align-items:center
}
.footer-brand{font-size:28px;font-weight:700}
.footer-links,.footer-social{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;font-size:13px}
.footer-social{justify-content:flex-end}
.footer a{color:#ddd}
.footer a:hover{color:#fff}
.footer-sub{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.08);font-size:12px;color:#b1b1b1;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* mobile bottom nav */
.mobile-nav{
  position:fixed;left:0;right:0;bottom:0;z-index:55;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);
  border-top:1px solid rgba(0,0,0,.08);display:none;
}
.mobile-nav .inner{
  display:grid;grid-template-columns:repeat(4,1fr);gap:2px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav a,.mobile-nav button{
  border:none;background:transparent;padding:8px 4px;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;font-size:11px;color:#555;cursor:pointer
}
.mobile-nav .nav-icon{font-size:18px}
.mobile-nav .active{color:#111}
.mobile-spacer{display:none;height:76px}

/* modal promo */
.modal{
  position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;padding:18px
}
.modal.open{display:flex}
.modal-card{
  width:min(520px, 100%);background:#fff;border-radius:28px;padding:28px;box-shadow:0 30px 70px rgba(0,0,0,.18);position:relative
}
.modal-close{position:absolute;top:12px;right:14px;border:none;background:transparent;font-size:28px;cursor:pointer}
.modal-card h2{margin:0 0 10px;font-size:34px;line-height:.96}
.promo-box{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-radius:18px;background:#111;color:#fff;font-weight:700;letter-spacing:.06em;margin:18px 0}
.modal-card p{margin:0;color:#525252}
.copy-btn{padding:10px 14px;border-radius:999px;background:#fff;color:#111;border:none;cursor:pointer}

/* misc */
.to-top{
  position:fixed;right:18px;bottom:92px;z-index:55;
}
.to-top button{box-shadow:var(--shadow)}
.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:18px}
.page-title h1{margin:0}
.small-link{text-decoration:underline}
.sr-only{position:absolute !important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* responsive */
@media (max-width: 1100px){
  .hero{grid-template-columns:1fr}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-grid,.related-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .product-layout{grid-template-columns:90px minmax(0,1fr);grid-template-areas:"thumb main" "side side"}
  .thumb-list{grid-area:thumb}
  .product-main-card{grid-area:main}
  .product-side{grid-area:side}
  .checkout-layout{grid-template-columns:1fr}
}
@media (max-width: 720px){
  .only-mobile{display:block !important}
  .only-desktop{display:none !important}
  .wrap{width:min(100% - 24px, var(--wrap))}
  .topbar{display:none}
  .site-header .wrap{grid-template-columns:auto 1fr auto;min-height:72px}
  .logo{font-size:22px}
  .header-left{gap:6px}
  .header-right{gap:0}
  .hero-banner{min-height:280px;padding:24px}
  .hero-banner h1{font-size:34px}
  .hero-side{padding:18px}
  .mini-grid{grid-template-columns:1fr 1fr}
  .category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .category-card{min-height:120px;padding:14px}
  .section-head h2,.section-head h3{font-size:22px}
  .product-grid,.related-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .product-card-title{font-size:13px;min-height:34px}
  .buy-btn{padding:12px 10px;font-size:13px}
  .product-layout{grid-template-columns:1fr}
  .thumb-list{grid-auto-flow:column;grid-auto-columns:74px;overflow:auto}
  .thumb{aspect-ratio:3/4}
  .product-side h1{font-size:28px}
  .price-big{font-size:28px}
  .checkout-left,.checkout-right{padding:18px}
  .cart-item{grid-template-columns:110px 1fr;gap:14px}
  .cart-side-tools{grid-column:2;flex-direction:row;justify-content:space-between;align-items:center}
  .cart-title{font-size:22px}
  .form-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;justify-items:start}
  .footer-links,.footer-social{justify-content:flex-start}
  .mobile-nav{display:block}
  .mobile-spacer{display:block}
  .to-top{bottom:90px;right:12px}
  body{padding-bottom:env(safe-area-inset-bottom)}
}


.doc-shell{
  max-width:900px;
  margin:0 auto;
  background:#fff;
  border-radius:24px;
  padding:28px;
  box-shadow:var(--shadow);
}
.doc-shell h1{font-size:36px;margin:0 0 12px}
.doc-shell h2{font-size:22px;margin:28px 0 10px}
.doc-shell p,.doc-shell li{color:#444;line-height:1.72}
.doc-shell ul{padding-left:20px}


/* stock labels */
.product-stock{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.product-stock-line{
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 10px;
}
.buy-btn[disabled]{
  opacity: .55;
  cursor: not-allowed;
}
