:root{
  --bg: #fff8f1;
  --bg-soft:#fff1df;
  --card:#ffffff;
  --text:#4b2209;
  --muted:#8a5a34;
  --line:#ffd7a8;
  --primary:#ff5b00;
  --primary-dark:#e14400;
  --accent:#ffc400;
  --accent-soft:#ffe691;
  --success:#18865b;
  --warning:#b36d00;
  --danger:#c53e1f;
  --shadow:0 18px 40px rgba(255,91,0,.12);
  --radius:26px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, #fff7cc 0, transparent 25%),
    radial-gradient(circle at top right, #ffe8c8 0, transparent 24%),
    linear-gradient(180deg,#fffdf9 0%, var(--bg) 45%, #fff5ea 100%);
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{width:min(1180px, calc(100% - 32px)); margin:0 auto}
.narrow{width:min(760px, calc(100% - 32px)); margin:0 auto}
.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(255,248,241,.78);
  border-bottom:1px solid rgba(255,193,121,.35);
}
.nav{display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 0}
.logo{height:64px; width:auto}
.nav-links{display:flex; align-items:center; gap:18px; flex-wrap:wrap}
.nav-links a{font-weight:700; color:var(--muted)}
.cart-pill{
  display:inline-grid; place-items:center;
  min-width:24px; height:24px; padding:0 8px; margin-left:4px;
  border-radius:999px; background:var(--primary); color:#fff; font-size:12px
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; border:none; cursor:pointer;
  padding:14px 20px; border-radius:999px;
  font-weight:800; transition:.18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,var(--primary), #ff7d1b); color:#fff; box-shadow:var(--shadow)}
.btn-soft{background:#fff0db; color:var(--primary-dark); border:1px solid #ffd4a6}
.btn-outline{background:transparent; border:1px solid #ffc48a; color:var(--primary-dark)}
.btn-muted{background:#fff; color:var(--muted); border:1px solid var(--line)}
.btn-disabled{background:#f3dfd0; color:#b88363}
.btn-small{padding:10px 14px; font-size:14px}
.btn-block{width:100%}
.hero{padding:40px 0 34px}
.hero-grid{display:grid; grid-template-columns:1.12fr .88fr; gap:34px; align-items:center}
.hero-copy h1{
  font-size: clamp(40px, 5.5vw, 74px);
  line-height:.98; margin:10px 0 18px; letter-spacing:-.04em
}
.hero-copy h1 span{color:var(--primary)}
.lead{font-size:19px; line-height:1.7; color:var(--muted); max-width:720px}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  background:#fff1c7; color:#8f5600; font-size:12px; font-weight:900; letter-spacing:.12em
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:22px}
.hero-tags{display:flex; gap:10px; flex-wrap:wrap; margin-top:24px}
.hero-tags span,.category-badge,.badge{
  padding:8px 12px; border-radius:999px; font-weight:800; font-size:13px
}
.hero-tags span{background:#fff; border:1px solid var(--line)}
.hero-visual{
  position:relative; min-height:480px;
  display:grid; place-items:center;
  border-radius:36px;
  background:linear-gradient(180deg,#fff8d9,#ffe7bd 52%, #fff2dc);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-visual img{
  width:min(420px, 78%);
  object-fit:contain;
  position:relative; z-index:2;
  filter: drop-shadow(0 18px 34px rgba(190,70,0,.18));
}
.sun-ring{
  position:absolute; width:460px; height:460px; border-radius:50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.9) 0 31%, transparent 33%),
    conic-gradient(from 20deg, #ff7b00, #ffc400, #ff6300, #ffb000, #ff7b00);
  opacity:.72;
}
.section{padding:44px 0}
.section-soft{background:linear-gradient(180deg, rgba(255,238,214,.65), rgba(255,248,241,.35))}
.section-head{text-align:center; margin-bottom:28px}
.section-head.left{text-align:left}
.section-head h2,.section-head h1{margin:10px 0 10px; font-size:clamp(30px, 4vw, 48px); line-height:1.08}
.section-head p{color:var(--muted); font-size:18px}
.feature-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:18px
}
.feature-card,.product-card,.card,.empty-state{
  background:var(--card); border:1px solid rgba(255,211,160,.75);
  border-radius:var(--radius); box-shadow:var(--shadow)
}
.feature-card{padding:24px}
.feature-card h3{margin-top:0}
.product-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:22px
}
.product-card{overflow:hidden}
.product-image-wrap{
  background:linear-gradient(180deg,#fff7de,#ffeecb);
  display:grid; place-items:center; min-height:280px;
}
.product-image{max-height:250px; width:auto}
.product-body{padding:18px}
.product-badges{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.badge{background:#f5f0e9}
.badge.instock{background:#dcffe8; color:var(--success)}
.badge.low{background:#fff4d5; color:var(--warning)}
.badge.soldout{background:#ffe1db; color:var(--danger)}
.category-badge{background:#fff0d8; color:#945000}
.product-body h3{margin:8px 0 8px; font-size:24px}
.product-body p{color:var(--muted); min-height:52px}
.product-meta{
  display:flex; align-items:center; justify-content:space-between;
  margin:16px 0 18px; font-size:18px
}
.product-actions{display:flex; gap:10px; flex-wrap:wrap}
.detail-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:start
}
.detail-media,.detail-content,.summary-box,.auth-card,.checkout-form,.cart-list{padding:24px}
.detail-media{
  background:linear-gradient(180deg,#fff7dc,#ffe8c1);
  border-radius:36px; box-shadow:var(--shadow)
}
.detail-media img{max-height:520px; object-fit:contain; margin:0 auto}
.detail-price{font-size:42px; font-weight:900; color:var(--primary); margin:16px 0}
.detail-facts{display:grid; gap:10px; color:var(--muted); margin-bottom:20px}
.detail-description{line-height:1.8; color:var(--muted); margin-bottom:22px}
.buy-box{display:flex; gap:12px; flex-wrap:wrap; align-items:end}
.buy-box input,.stack-form input,.checkout-form input,.admin-form input,.admin-form textarea,.inline-form select,.cart-row input{
  width:100%; padding:14px 16px; border-radius:18px; border:1px solid var(--line);
  background:#fffdf9; color:var(--text); font-size:16px;
}
.buy-box input{max-width:120px}
label{display:grid; gap:8px; font-weight:700; color:var(--text)}
.cart-grid,.checkout-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:22px}
.cart-row{
  display:grid; grid-template-columns:1.3fr .45fr .3fr .2fr; gap:14px;
  padding:14px 0; border-bottom:1px solid #f4dfcb; align-items:center
}
.cart-product{display:flex; align-items:center; gap:14px}
.cart-product img{width:82px; height:82px; object-fit:contain; border-radius:18px; background:#fff7dd; padding:8px}
.summary-row{
  display:flex; justify-content:space-between; gap:14px; padding:12px 0;
  border-bottom:1px dashed #f1dac1
}
.summary-row.total{font-size:22px; border-bottom:none; padding-top:16px}
.empty-state,.success{text-align:center; padding:44px}
.payment-option{
  display:flex; gap:12px; align-items:flex-start;
  border:1px solid var(--line); border-radius:22px; padding:14px 16px;
  margin-bottom:12px; background:#fffdf8
}
.payment-option input{width:auto; margin-top:4px}
.fineprint{color:var(--muted); font-size:14px; line-height:1.6}
.flash-wrap{padding-top:10px}
.flash{
  border-radius:18px; padding:14px 18px; font-weight:800;
  transition:.25s ease;
}
.flash-success{background:#dcffe8; color:#0f6d47}
.flash-warning{background:#fff4d5; color:#915e00}
.flash-error{background:#ffe1db; color:#9c2f18}
.link-btn{
  background:none; border:none; color:var(--primary-dark); font-weight:800; cursor:pointer
}
.age-overlay{
  position:fixed; inset:0; background:rgba(92,49,12,.45);
  display:grid; place-items:center; z-index:100
}
.age-card{
  width:min(540px, calc(100% - 24px));
  background:#fffaf4; border-radius:34px; padding:34px; text-align:center;
  border:1px solid #ffd5b1; box-shadow:0 20px 50px rgba(77,31,0,.18)
}
.age-icon{font-size:56px; margin-bottom:8px}
.age-actions{display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:18px}
.site-footer{padding:34px 0 46px; margin-top:18px; border-top:1px solid rgba(255,201,150,.5)}
.footer-grid{display:grid; grid-template-columns:1fr 1fr 1fr; gap:24px}
.footer-grid h4{margin:0 0 10px}
.footer-grid p,.footer-grid li{color:var(--muted); line-height:1.7}
.footer-logo{height:54px; width:auto; margin-bottom:10px}
.admin-shell{display:grid; grid-template-columns:260px 1fr; gap:22px}
.admin-sidebar{padding:18px; display:grid; gap:10px; align-content:start}
.admin-sidebar a{
  padding:12px 14px; border-radius:16px; font-weight:800; color:var(--muted)
}
.admin-sidebar a.active,.admin-sidebar a:hover{background:#fff1db; color:var(--primary-dark)}
.admin-form{padding:18px 0}
.grid-two{
  display:grid; grid-template-columns:1fr 1fr; gap:14px 18px
}
.grid-two .full{grid-column:1/-1}
.checkbox-wrap{display:flex; align-items:center; gap:10px}
.checkbox-wrap input{width:auto}
.table-wrap{overflow:auto}
.admin-table{width:100%; border-collapse:collapse}
.admin-table th,.admin-table td{padding:14px 12px; border-bottom:1px solid #f1dcc7; text-align:left}
.status-pill{display:inline-block; padding:8px 10px; background:#fff2d8; border-radius:999px; font-size:12px; font-weight:800}
.inline-form{display:flex; gap:10px; align-items:center}
hr{border:none; border-top:1px solid #f1dcc7; margin:28px 0}
@media (max-width: 980px){
  .hero-grid,.detail-grid,.cart-grid,.checkout-grid,.admin-shell,.footer-grid,.feature-grid,.product-grid{grid-template-columns:1fr}
  .nav{flex-direction:column; align-items:flex-start}
}
@media (max-width: 680px){
  .hero{padding-top:18px}
  .hero-copy h1{font-size:42px}
  .logo{height:48px}
  .product-body h3{font-size:22px}
  .cart-row{grid-template-columns:1fr}
  .grid-two{grid-template-columns:1fr}
}
