:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6e6b65;
  --line: #dedbd4;
  --accent: #e8563f;
  --accent-soft: #ffe2dc;
  --success: #23855d;
  --radius: 22px;
  --shadow: 0 18px 55px rgba(17,17,17,.08);
  --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.announcement { background: var(--ink); color: white; text-align: center; padding: 9px 16px; font-size: 13px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,244,239,.91); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(222,219,212,.8); }
.nav { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.04em; font-size: 24px; justify-self: start; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 700; }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-btn { height: 44px; min-width: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.68); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.cart-count { position: absolute; right: -3px; top: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: white; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.hero { padding: 46px 0 28px; }
.hero-grid { display: grid; grid-template-columns: 1.03fr .97fr; min-height: 650px; background: var(--surface); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(38px,6vw,82px); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: #8c2d20; font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
h1 { font-size: clamp(54px,7vw,98px); line-height: .92; letter-spacing: -.07em; margin: 26px 0 24px; }
.hero-copy p { max-width: 590px; color: var(--muted); font-size: clamp(17px,2vw,20px); margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { border: 0; min-height: 48px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: white; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.accent { background: var(--accent); }
.btn.ghost { background: #f2f0eb; color: var(--ink); }
.btn.danger { background: #fff0ed; color: #a62b1f; border: 1px solid #ffd0c9; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; }
.hero-art { position: relative; overflow: hidden; background: #171717; min-height: 500px; }
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; filter: blur(0); }
.hero-art::before { width: 540px; height: 540px; background: #f1a17e; right: -120px; top: -80px; }
.hero-art::after { width: 390px; height: 390px; background: #8dbfb1; left: -90px; bottom: -120px; }
.hero-shirt { position: absolute; inset: 8% 7% 6%; display: grid; place-items: center; z-index: 2; }
.hero-shirt img { width: min(82%, 650px); filter: drop-shadow(0 35px 45px rgba(0,0,0,.25)); transform: rotate(-4deg); border-radius: 38px; }
.hero-note { position: absolute; right: 28px; bottom: 28px; z-index: 4; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); padding: 15px 17px; border-radius: 18px; max-width: 260px; font-size: 13px; box-shadow: var(--shadow); }
.hero-note strong { display:block; margin-bottom:4px; }
.section { padding: 62px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(34px,4vw,56px); letter-spacing: -.05em; margin: 0; line-height: 1; }
.section-head p { color: var(--muted); max-width: 550px; margin: 8px 0 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.product-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { aspect-ratio: .87; position: relative; overflow: hidden; background: #e9e6e0; }
.product-media img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.03); }
.badges { position:absolute; left:14px; top:14px; display:flex; gap:7px; flex-wrap:wrap; }
.badge { background: rgba(255,255,255,.92); backdrop-filter: blur(9px); padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing:.05em; }
.badge.custom { background: var(--ink); color:white; }
.product-info { padding: 18px 18px 20px; }
.product-top { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.product-name { font-size:18px; font-weight:900; letter-spacing:-.02em; }
.product-category { font-size:12px; color:var(--muted); margin-top:3px; }
.price { font-weight:900; white-space:nowrap; }
.compare { color:#999; text-decoration:line-through; font-weight:600; margin-right:6px; }
.category-strip { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.category-card { min-height:360px; border-radius:28px; overflow:hidden; padding:34px; color:white; position:relative; display:flex; flex-direction:column; justify-content:flex-end; background:#171717; }
.category-card.light { color:var(--ink); background:#ded7c8; }
.category-card h3 { font-size:42px; letter-spacing:-.05em; margin:0 0 8px; position:relative; z-index:2; }
.category-card p { max-width:430px; margin:0; opacity:.78; position:relative; z-index:2; }
.category-card .orb { position:absolute; width:320px; height:320px; border-radius:50%; right:-50px; top:-70px; background:#ed6e53; }
.category-card.light .orb { background:#8dbfb1; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.step { background:var(--surface); border-radius:22px; padding:28px; min-height:220px; border:1px solid rgba(222,219,212,.8); }
.step-no { width:42px; height:42px; border-radius:50%; display:grid; place-items:center; background:var(--ink); color:white; font-weight:900; }
.step h3 { font-size:24px; margin:34px 0 8px; letter-spacing:-.03em; }
.step p { color:var(--muted); margin:0; }
.footer { background:var(--ink); color:white; margin-top:70px; padding:50px 0 26px; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(2,1fr); gap:44px; }
.footer h4 { margin:0 0 13px; font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:#aaa; }
.footer p, .footer a { color:#c9c9c9; font-size:14px; }
.footer-links { display:grid; gap:9px; }
.footer-bottom { border-top:1px solid #333; margin-top:44px; padding-top:22px; color:#888; font-size:12px; display:flex; justify-content:space-between; gap:20px; }

/* Product detail */
.product-page { padding:42px 0 72px; }
.product-detail { display:grid; grid-template-columns:1.12fr .88fr; gap:44px; align-items:start; }
.gallery { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.gallery-item { background:#e9e6e0; border-radius:22px; overflow:hidden; aspect-ratio:.86; }
.gallery-item:first-child { grid-column:1/-1; aspect-ratio:1.12; }
.gallery-item img { width:100%; height:100%; object-fit:cover; }
.product-panel { position:sticky; top:110px; background:var(--surface); border-radius:28px; padding:34px; box-shadow:var(--shadow); }
.product-panel h1 { font-size:46px; line-height:1; margin:8px 0 13px; }
.product-panel .description { color:var(--muted); }
.detail-price { font-size:25px; font-weight:900; margin:20px 0 24px; }
.option-group { margin-top:24px; }
.option-label { font-size:13px; font-weight:900; margin-bottom:10px; display:flex; justify-content:space-between; }
.choice-row { display:flex; flex-wrap:wrap; gap:9px; }
.choice { min-width:48px; height:44px; border-radius:12px; border:1px solid var(--line); background:white; padding:0 14px; font-weight:800; }
.choice.active { border-color:var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stock-note { color:var(--success); font-size:13px; font-weight:800; margin:18px 0; }
.custom-callout { background:#f1efe9; border-radius:17px; padding:17px; margin:20px 0; display:flex; gap:12px; align-items:flex-start; }
.custom-callout .spark { width:34px; height:34px; border-radius:50%; background:var(--accent-soft); display:grid; place-items:center; flex:none; }
.custom-callout strong { display:block; font-size:14px; }
.custom-callout span { color:var(--muted); font-size:13px; display:block; margin-top:2px; }
.full { width:100%; }
.breadcrumbs { color:var(--muted); font-size:13px; margin-bottom:20px; }

/* Cart drawer */
.cart-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.38); z-index:90; opacity:0; pointer-events:none; transition:.2s; }
.cart-drawer { position:fixed; right:0; top:0; bottom:0; width:min(460px,100%); background:var(--surface); z-index:91; transform:translateX(100%); transition:.25s; padding:26px; display:flex; flex-direction:column; box-shadow:-20px 0 60px rgba(0,0,0,.14); }
body.cart-open .cart-backdrop { opacity:1; pointer-events:auto; }
body.cart-open .cart-drawer { transform:translateX(0); }
.cart-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); padding-bottom:18px; }
.cart-head h3 { margin:0; font-size:25px; }
.cart-items { flex:1; overflow:auto; padding:10px 0; }
.cart-item { display:grid; grid-template-columns:86px 1fr auto; gap:13px; padding:15px 0; border-bottom:1px solid #eee; }
.cart-thumb { width:86px; aspect-ratio:.86; border-radius:12px; background:#eee; object-fit:cover; }
.cart-item strong { font-size:14px; }
.cart-meta { color:var(--muted); font-size:12px; margin:4px 0; }
.remove-link { border:0; background:none; color:#a63b2f; padding:0; font-size:12px; }
.cart-foot { border-top:1px solid var(--line); padding-top:18px; }
.cart-total { display:flex; justify-content:space-between; font-size:18px; font-weight:900; margin-bottom:14px; }
.empty { padding:40px 15px; text-align:center; color:var(--muted); }
.toast { position:fixed; left:50%; bottom:28px; transform:translate(-50%,30px); background:var(--ink); color:white; border-radius:999px; padding:12px 18px; z-index:150; opacity:0; pointer-events:none; transition:.2s; font-size:13px; font-weight:800; }
.toast.show { opacity:1; transform:translate(-50%,0); }

/* Admin */
.admin-body { background:#efeee9; }
.admin-login { min-height:100vh; display:grid; place-items:center; padding:28px; }
.login-card { width:min(470px,100%); background:white; padding:36px; border-radius:28px; box-shadow:var(--shadow); }
.login-card .brand { margin-bottom:34px; }
.login-card h1 { font-size:42px; margin:0 0 10px; }
.login-card p { color:var(--muted); margin:0 0 26px; }
.field { display:grid; gap:7px; margin-bottom:15px; }
.field label { font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; }
.field input, .field textarea, .field select { width:100%; border:1px solid var(--line); background:white; border-radius:13px; min-height:48px; padding:12px 14px; outline:none; }
.field textarea { min-height:120px; resize:vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color:#777; box-shadow:0 0 0 3px rgba(17,17,17,.05); }
.admin-shell { min-height:100vh; display:grid; grid-template-columns:250px 1fr; }
.admin-sidebar { background:#131313; color:white; padding:24px 18px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; }
.admin-sidebar .brand { padding:6px 8px; }
.admin-nav { display:grid; gap:7px; margin-top:36px; }
.admin-nav button { border:0; background:transparent; color:#bdbdbd; border-radius:12px; padding:12px 13px; text-align:left; font-weight:800; }
.admin-nav button.active, .admin-nav button:hover { background:#242424; color:white; }
.admin-side-foot { margin-top:auto; display:grid; gap:10px; }
.admin-side-foot small { color:#777; padding:0 10px; overflow:hidden; text-overflow:ellipsis; }
.admin-main { padding:34px; min-width:0; }
.admin-top { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:28px; }
.admin-top h1 { font-size:38px; margin:0; }
.admin-top p { color:var(--muted); margin:4px 0 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.stat { background:white; border-radius:19px; padding:22px; border:1px solid #e1dfda; }
.stat .value { font-size:32px; font-weight:950; letter-spacing:-.04em; }
.stat .label { color:var(--muted); font-size:12px; font-weight:800; margin-top:3px; }
.admin-card { background:white; border:1px solid #e1dfda; border-radius:22px; overflow:hidden; margin-top:22px; }
.admin-card-head { padding:20px 22px; display:flex; justify-content:space-between; gap:18px; align-items:center; border-bottom:1px solid #eee; }
.admin-card-head h2 { margin:0; font-size:20px; }
.table-wrap { overflow:auto; }
.admin-table { width:100%; border-collapse:collapse; min-width:760px; }
.admin-table th, .admin-table td { text-align:left; border-bottom:1px solid #eee; padding:14px 18px; font-size:13px; vertical-align:middle; }
.admin-table th { color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.admin-product { display:flex; gap:12px; align-items:center; }
.admin-product img { width:54px; height:62px; object-fit:cover; border-radius:9px; background:#eee; }
.admin-product strong { display:block; }
.status { display:inline-flex; padding:6px 9px; border-radius:99px; background:#e8f6ef; color:#1d704e; font-weight:900; font-size:11px; }
.status.draft { background:#f1f1f1; color:#6d6d6d; }
.row-actions { display:flex; gap:7px; }
.panel-overlay { position:fixed; inset:0; background:rgba(0,0,0,.36); z-index:110; opacity:0; pointer-events:none; transition:.2s; }
.form-panel { position:fixed; right:0; top:0; bottom:0; width:min(660px,100%); z-index:111; background:#f8f7f3; transform:translateX(100%); transition:.25s; box-shadow:-30px 0 80px rgba(0,0,0,.15); overflow:auto; }
body.panel-open .panel-overlay { opacity:1; pointer-events:auto; }
body.panel-open .form-panel { transform:translateX(0); }
.form-panel-head { position:sticky; top:0; background:rgba(248,247,243,.95); backdrop-filter:blur(15px); border-bottom:1px solid #ddd; padding:19px 22px; display:flex; justify-content:space-between; align-items:center; z-index:2; }
.form-panel-head h2 { margin:0; }
.product-form { padding:24px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-grid .span-2 { grid-column:1/-1; }
.check-row { display:flex; gap:14px; align-items:center; flex-wrap:wrap; margin:8px 0 18px; }
.check { display:flex; gap:8px; align-items:center; font-size:13px; font-weight:800; }
.check input { width:17px; height:17px; }
.upload-box { border:1.5px dashed #bbb; background:white; border-radius:15px; padding:18px; text-align:center; }
.form-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:22px; padding-top:20px; border-top:1px solid #ddd; }
.error-box { background:#fff0ed; color:#9d2f23; border:1px solid #ffd1ca; padding:11px 13px; border-radius:12px; font-size:13px; margin-bottom:15px; display:none; }
.error-box.show { display:block; }
.mobile-menu { display:none; }

@media (max-width: 980px) {
  .nav { grid-template-columns:1fr auto; }
  .nav-links { display:none; }
  .hero-grid, .product-detail { grid-template-columns:1fr; }
  .hero-art { min-height:520px; }
  .product-grid { grid-template-columns:repeat(2,1fr); }
  .steps { grid-template-columns:1fr; }
  .product-panel { position:static; }
  .admin-shell { grid-template-columns:1fr; }
  .admin-sidebar { height:auto; position:relative; flex-direction:row; align-items:center; justify-content:space-between; padding:14px 18px; }
  .admin-nav { display:none; }
  .admin-side-foot { margin:0; }
  .admin-side-foot small { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 680px) {
  .shell { width:min(calc(100% - 24px),var(--max)); }
  .announcement { font-size:11px; }
  .site-header .nav { min-height:66px; }
  .brand { font-size:20px; }
  .brand img { width:30px; height:30px; }
  .hero { padding-top:18px; }
  .hero-grid { min-height:0; border-radius:23px; }
  .hero-copy { padding:34px 24px 40px; }
  h1 { font-size:54px; }
  .hero-art { min-height:390px; }
  .hero-note { left:18px; right:18px; bottom:18px; max-width:none; }
  .section { padding:44px 0; }
  .section-head { align-items:flex-start; flex-direction:column; }
  .product-grid { grid-template-columns:1fr; }
  .category-strip { grid-template-columns:1fr; }
  .category-card { min-height:300px; padding:25px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; }
  .gallery { gap:8px; }
  .gallery-item { border-radius:14px; }
  .product-panel { padding:24px; border-radius:22px; }
  .product-panel h1 { font-size:38px; }
  .admin-main { padding:20px 14px; }
  .admin-top { align-items:flex-start; }
  .admin-top h1 { font-size:30px; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:9px; }
  .stat { padding:17px; }
  .stat .value { font-size:26px; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .span-2 { grid-column:auto; }
}
