:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --ink: #1e2430;
  --ink-soft: #5a6372;
  --line: #e7e2da;
  --brand: #c96f3b;
  --brand-dark: #a8542a;
  --accent: #2f5d50;
  --accent-soft: #e3efe7;
  --danger: #b3402f;
  --star: #e8a33d;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(30, 36, 48, .08);
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* announcement */
.announce { background: var(--accent); color: #fff; text-align: center; font-size: 13px; padding: 8px 12px; letter-spacing: .3px; }

/* header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 28px; padding: 16px 0; }
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.logo span { color: var(--brand); }
nav.main { display: flex; gap: 22px; flex: 1; }
nav.main a { font-size: 14.5px; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
nav.main a:hover, nav.main a.active { color: var(--brand); }
.searchbox { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; min-width: 230px; }
.searchbox input { border: 0; background: none; outline: none; flex: 1; font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions a, .header-actions select { font-size: 14px; color: var(--ink); font-weight: 500; }
.header-actions select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--surface); }
.cart-link { position: relative; display: flex; align-items: center; gap: 6px; }
.cart-count { background: var(--brand); color: #fff; border-radius: 999px; font-size: 11.5px; min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-weight: 600; }
.burger { display: none; background: none; border: 0; font-size: 22px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.hero h1 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; font-weight: 700; letter-spacing: -.5px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p { margin: 20px 0 30px; color: var(--ink-soft); font-size: 17px; max-width: 480px; }
.hero-art { background: linear-gradient(140deg, #f6e7d7, #efe0cd); border-radius: 28px; min-height: 380px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-art svg { width: 78%; }
.hero-badge { position: absolute; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 18px; font-size: 13.5px; font-weight: 600; }
.hero-badge.b1 { top: 28px; left: 28px; }
.hero-badge.b2 { bottom: 28px; right: 28px; color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 13px 28px; font-size: 15px; font-weight: 600; transition: background .15s, transform .1s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 16px; font-size: 13.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* sections */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 30px; }
.section-head h2 { font-family: var(--serif); font-size: 30px; letter-spacing: -.3px; }
.section-head a { font-size: 14px; color: var(--brand); font-weight: 600; }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 14px; text-align: center; transition: box-shadow .18s, transform .18s; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .ico { font-size: 30px; margin-bottom: 10px; }
.cat-card h3 { font-size: 14.5px; font-weight: 600; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .18s, transform .18s; display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-card .thumb { aspect-ratio: 6/4.6; background: #f3ede4; overflow: hidden; position: relative; }
.prod-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd .gallery video { width: 100%; display: block; background: #14181f; }
.prod-card .info { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-card .cat { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-soft); }
.prod-card h3 { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.prod-card .stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
.prod-card .stars span { color: var(--ink-soft); letter-spacing: 0; margin-left: 4px; }
.price-row { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 8px; }
.price { font-size: 18px; font-weight: 700; }
.price del { color: var(--ink-soft); font-weight: 400; font-size: 14px; margin-left: 6px; }
.stock-note { font-size: 12px; color: var(--accent); font-weight: 600; }
.stock-note.low { color: var(--danger); }

/* toolbar (shop) */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 28px; }
.toolbar select, .toolbar input { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 14px; }
.toolbar .count { color: var(--ink-soft); font-size: 14px; margin-left: auto; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; font-size: 14px; }
.pager button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0; }
.pd .gallery { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #f3ede4; }
.pd h1 { font-family: var(--serif); font-size: 34px; line-height: 1.2; }
.pd .crumbs { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 14px; }
.pd .crumbs a { color: var(--brand); }
.pd .price-big { font-size: 30px; font-weight: 700; margin: 16px 0 4px; }
.pd .price-big del { font-size: 19px; color: var(--ink-soft); font-weight: 400; margin-left: 10px; }
.pd .desc { color: var(--ink-soft); margin: 18px 0 26px; }
.qty-row { display: flex; gap: 14px; align-items: center; margin: 22px 0; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 44px; border: 0; background: none; font-size: 18px; }
.qty input { width: 48px; text-align: center; border: 0; outline: none; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.trust div { background: var(--accent-soft); border-radius: 10px; padding: 12px; font-size: 12.5px; text-align: center; color: var(--accent); font-weight: 600; }
.review { border-top: 1px solid var(--line); padding: 20px 0; }
.review .rhead { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; font-size: 14px; }
.review .rhead b { font-size: 15px; }
.review-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.review-form h3, .block h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 14px; }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px; background: var(--surface); outline: none; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-msg { font-size: 14px; margin: 10px 0; min-height: 20px; }
.form-msg.err { color: var(--danger); }
.form-msg.okm { color: var(--accent); }

/* auth */
.auth-card { max-width: 440px; margin: 64px auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 26px; }
.auth-swap { text-align: center; margin-top: 20px; font-size: 14px; color: var(--ink-soft); }
.auth-swap a { color: var(--brand); font-weight: 600; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; padding: 48px 0; align-items: start; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { border-radius: 10px; border: 1px solid var(--line); }
.cart-item h4 { font-size: 15px; }
.cart-item .ci-price { font-weight: 700; }
.cart-item .rm { background: none; border: 0; color: var(--ink-soft); font-size: 13px; text-decoration: underline; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.summary h3 { font-family: var(--serif); font-size: 21px; margin-bottom: 16px; }
.summary .row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; color: var(--ink-soft); }
.summary .row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--ink); font-weight: 700; font-size: 17px; }
.free-ship-note { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

/* checkout */
.co-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 48px 0; align-items: start; }
.co-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.ship-opt { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; cursor: pointer; }
.ship-opt.on { border-color: var(--brand); background: #fdf6f0; }
.ship-opt input { margin-top: 4px; }
.ship-opt .so-price { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* orders */
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; }
.order-card .ohead { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 12px; }
.order-card .ohead .no { font-weight: 700; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; text-transform: capitalize; }
.badge.pending { background: #fdf0dc; color: #a06a10; }
.badge.paid { background: #e4ecfa; color: #2c4f9e; }
.badge.shipped { background: #e6f3ee; color: #22604b; }
.badge.delivered { background: #e3efe7; color: #22604b; }
.badge.cancelled { background: #f7e3e1; color: #a33327; }
.timeline { display: flex; gap: 0; margin: 18px 0; }
.timeline .step { flex: 1; text-align: center; font-size: 12px; color: var(--ink-soft); position: relative; padding-top: 22px; }
.timeline .step::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline .step::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline .step:first-child::after { display: none; }
.timeline .step.done { color: var(--accent); font-weight: 600; }
.timeline .step.done::before { background: var(--accent); }
.timeline .step.done::after { background: var(--accent); }

/* static pages */
.static { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.static h1 { font-family: var(--serif); font-size: 34px; margin-bottom: 18px; }
.static h2 { font-family: var(--serif); font-size: 22px; margin: 28px 0 10px; }
.static p, .static li { color: var(--ink-soft); font-size: 15.5px; }
.static ul { padding-left: 22px; margin: 10px 0; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card h3 { font-size: 16px; margin-bottom: 6px; }
.contact-card a { color: var(--brand); font-weight: 600; word-break: break-all; }

/* footer */
footer.site { background: #20262f; color: #c7cdd8; margin-top: 60px; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 40px; }
footer.site h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .3px; }
footer.site a { display: block; font-size: 14px; padding: 4px 0; color: #c7cdd8; }
footer.site a:hover { color: #fff; }
.footer-brand { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--brand); }
.footer-in p { font-size: 13.5px; color: #98a1af; }
.contact-line { display: flex; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.contact-line .ci { width: 30px; height: 30px; border-radius: 8px; background: #2c333f; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.footer-bar { border-top: 1px solid #333b47; padding: 18px 0; font-size: 13px; color: #8b94a2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; opacity: 0; transition: all .25s; z-index: 99; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; padding: 80px 0; color: var(--ink-soft); }
.empty .big { font-size: 44px; margin-bottom: 12px; }

/* responsive */
@media (max-width: 1020px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-art { min-height: 300px; order: -1; }
  .pd, .cart-layout, .co-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 18px 24px; border-bottom: 1px solid var(--line); gap: 14px; }
  nav.main.open { display: flex; }
  .burger { display: block; }
  .searchbox { min-width: 0; flex: 1; }
  .header-in { flex-wrap: wrap; gap: 12px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .auth-card { margin: 32px 16px; padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .summary { position: static; }
  .trust { grid-template-columns: 1fr; }
}
