:root{
  /* LIGHT THEME */
  --bg:#f6f7fb;
  --panel:#ffffff;
  --panel2:#f3f5f9;
  --text:#111827;
  --muted:#6b7280;
  --line:rgba(17,24,39,.10);

  /* Gold accent */
  --gold:#b8894c;
  --gold2:#d7b37a;

  --shadow: 0 18px 60px rgba(17,24,39,.10);
  --radius: 18px;
  --radius2: 24px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(184,137,76,.10), transparent 60%),
    radial-gradient(1000px 600px at 85% 15%, rgba(215,179,122,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}

img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}

.wrap{max-width:1200px; margin:0 auto; padding:0 18px}

/* Top bar */
.topbar{
  background: rgba(255,255,255,.85);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:10px 0; font-size:13px; color:var(--muted);
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
  display:inline-block; margin-right:10px;
  box-shadow:0 0 18px rgba(215,179,122,.25);
}
.topbar-left{display:flex; align-items:center; gap:10px}
.topbar-right{display:flex; align-items:center; gap:10px}
.sep{opacity:.5}

/* Header */
.header{
  position:sticky; top:0; z-index:30;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 230px;
}
.brand-logo{
  width:44px; height:44px; border-radius:12px;
  object-fit:contain;
  background: rgba(255,255,255,.95);
  border:1px solid var(--line);
  padding:6px;
}
.brand-title{
  font-family: "Playfair Display", serif;
  letter-spacing:.2px;
  font-weight:700;
  font-size:18px;
}
.brand-sub{color:var(--muted); font-size:12px; margin-top:2px}

.search{
  flex:1;
  display:flex; align-items:center; gap:10px;
  background: rgba(255,255,255,.9);
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 12px;
  min-width: 220px;
}
.search-icon{opacity:.7}
.search input{
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:var(--text);
  font-size:14px;
}
.search input::placeholder{color:rgba(107,114,128,.8)}

.actions{display:flex; gap:10px; align-items:center}

/* Buttons */
.btn{
  border:none;
  cursor:pointer;
  padding:10px 14px;
  border-radius:12px;
  color:#ffffff;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  font-weight:800;
  letter-spacing:.2px;
  box-shadow:0 10px 24px rgba(184,137,76,.18);
}
.btn:hover{filter:brightness(1.03)}
.btn:active{transform:translateY(1px)}
.btn.ghost{
  background: rgba(255,255,255,.92);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:none;
}

.pill-btn{
  display:flex; align-items:center; gap:10px;
  border-radius:999px;
  padding:10px 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color:var(--text);
  cursor:pointer;
}
.pill-btn.primary{
  background: linear-gradient(135deg, rgba(215,179,122,.25), rgba(184,137,76,.18));
  border:1px solid rgba(184,137,76,.25);
}
.pill-btn .count{
  min-width:22px; height:22px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px;
  background: rgba(17,24,39,.06);
  border:1px solid var(--line);
  font-weight:800;
  font-size:12px;
}

/* Chips */
.chips{display:flex; gap:10px; padding:10px 0 14px; overflow:auto}
.chip{
  white-space:nowrap;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  color:var(--text);
  cursor:pointer;
  font-weight:700;
  font-size:13px;
}
.chip.active{
  border-color: rgba(184,137,76,.40);
  background: rgba(184,137,76,.12);
}

/* Hero */
.hero{padding:22px 0 8px}
.hero-inner{display:grid; grid-template-columns: 1.1fr .9fr; gap:16px; align-items:stretch}
.hero-left{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border:1px solid var(--line);
  border-radius: var(--radius2);
  padding:22px;
  box-shadow: var(--shadow);
}
.badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(184,137,76,.28);
  background: rgba(184,137,76,.10);
  color: #8a5d2d;
  font-weight:800;
  font-size:13px;
}
.hero h1{
  margin:14px 0 8px;
  font-family:"Playfair Display", serif;
  font-size:44px;
  line-height:1.05;
}
.hero p{margin:0; color:rgba(107,114,128,.95); max-width:54ch}
.hero-cta{display:flex; gap:10px; margin:16px 0 0}
.hero-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:16px;
}
.stat{
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  border-radius: 16px;
  padding:12px;
}
.stat-num{font-weight:900; color:#8a5d2d}
.stat-label{color:rgba(107,114,128,.95); font-size:12px; margin-top:4px}

.hero-right .hero-card{
  position:relative;
  border:1px solid rgba(184,137,76,.18);
  background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-radius: var(--radius2);
  overflow:hidden;
  box-shadow: var(--shadow);
  padding:16px;
}
.hero-card-top{position:relative; padding-bottom:10px}
.shine{
  position:absolute; inset:-40px -60px auto auto;
  width:220px; height:220px;
  background: radial-gradient(circle, rgba(215,179,122,.25), transparent 60%);
  filter: blur(2px);
}
.hero-card-title{font-weight:900}
.hero-card-sub{color:rgba(107,114,128,.95); font-size:13px; margin-top:2px}
.hero-card-img{
  margin-top:10px;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(17,24,39,.03);
}
.hero-card-img img{width:100%; height:320px; object-fit:cover}
.hero-card-bottom{margin-top:12px}
.hero-card-price{color:rgba(107,114,128,.95)}
.hero-card-price span{color:#8a5d2d; font-weight:900}
.hero-card-note{color:rgba(107,114,128,.9); font-size:12px; margin-top:5px}

/* Shop layout */
.shop{display:grid; grid-template-columns: 320px 1fr; gap:16px; padding:16px 0 24px}
.sidebar .panel{
  border:1px solid var(--line);
  background: rgba(255,255,255,.90);
  border-radius: var(--radius);
  padding:16px;
  position:sticky;
  top:120px;
  box-shadow: var(--shadow);
}
.panel-title{font-weight:900; margin-bottom:12px}
.field{margin-bottom:12px}
.label{display:block; font-size:12px; color:rgba(107,114,128,.95); margin-bottom:6px; font-weight:700}
input, select, textarea{
  width:100%;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.96);
  color:var(--text);
  padding:10px 12px;
  outline:none;
}
textarea{resize:vertical}
.row2{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
.hint{font-size:12px; color:rgba(107,114,128,.92); margin-top:6px}
.check{display:flex; align-items:center; gap:10px; color:rgba(55,65,81,.95); font-weight:700}
.check input{width:auto}
.panel-actions{display:flex; gap:10px; margin-top:12px}

.catalog-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; margin:8px 0 14px;
}
.catalog-head h2{
  margin:0;
  font-family:"Playfair Display", serif;
  font-size:28px;
}
.meta{color:rgba(107,114,128,.95); font-size:13px}

/* Product grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border-radius: var(--radius);
  overflow:hidden;
  transition: transform .15s ease, border-color .15s ease;
  box-shadow: var(--shadow);
}
.card:hover{transform: translateY(-2px); border-color: rgba(184,137,76,.22)}
.card-img{
  position:relative;
  background: rgba(17,24,39,.03);
  border-bottom:1px solid var(--line);
}
.card-img img{
  width:100%;
  height:220px;
  object-fit:cover;
  cursor:pointer;
}
.tag{
  position:absolute; top:10px; left:10px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  color:#ffffff;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
}
.save{
  position:absolute; top:10px; right:10px;
  width:38px; height:38px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.88);
  color:var(--text);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  font-size:16px;
}
.save.saved{border-color: rgba(184,137,76,.28); background: rgba(184,137,76,.14)}
.card-body{padding:12px}
.card-title{font-weight:900; letter-spacing:.2px}
.card-sub{
  display:flex; align-items:center; justify-content:space-between;
  margin-top:8px;
}
.price{color:#8a5d2d; font-weight:900}
.sku{color:rgba(107,114,128,.95); font-size:12px; margin-top:6px}
.card-actions{display:flex; gap:10px; margin-top:12px}

/* Toast */
.toast{
  position:fixed; left:50%; bottom:18px;
  transform:translateX(-50%);
  background: rgba(17,24,39,.92);
  border:1px solid rgba(255,255,255,.20);
  padding:10px 14px;
  border-radius:999px;
  color:#ffffff;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
  z-index:80;
}
.toast[aria-hidden="false"]{opacity:1}

/* Modal (IMPORTANT: keep show/hide mechanics) */
.modal{
  position:fixed; inset:0;
  background: rgba(17,24,39,.55);
  display:flex; align-items:center; justify-content:center;
  padding:18px;
  z-index:90;
  opacity:0;
  pointer-events:none;
  transition: opacity .15s ease;
}
.modal[aria-hidden="false"]{opacity:1; pointer-events:auto}
.modal-card{
  width:min(980px, 100%);
  border:1px solid rgba(184,137,76,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.90));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  position:relative;
  overflow:hidden;
}
.modal-card.wide{width:min(760px, 100%)}

.xbtn{
  position:absolute; top:12px; right:12px;
  width:40px; height:40px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color:var(--text);
  cursor:pointer;
  font-size:22px;
  display:flex; align-items:center; justify-content:center;
}
.modal-body{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  padding:16px;
}
.modal-gallery{display:flex; flex-direction:column; gap:10px}
.modal-main{
  position:relative;
  border-radius: 18px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(17,24,39,.03);
}
.modal-main img{width:100%; height:420px; object-fit:cover}

.imgnav{
  position:absolute; top:50%;
  transform:translateY(-50%);
  width:42px; height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  color:var(--text);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:24px;
}
.imgnav.left{left:10px}
.imgnav.right{right:10px}

.modal-thumbs{
  display:flex; gap:10px;
  overflow:auto;
  padding-bottom:4px;
}
.thumb{
  width:82px; height:60px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(17,24,39,.03);
  cursor:pointer;
  padding:0;
}
.thumb img{width:100%; height:100%; object-fit:cover}
.thumb.active{border-color: rgba(184,137,76,.40); box-shadow:0 0 0 2px rgba(184,137,76,.12)}

.modal-info{padding:6px 6px 6px 0}
.modal-title{
  font-family:"Playfair Display", serif;
  font-size:28px;
  margin-top:4px;
}
.modal-sub{color:rgba(107,114,128,.95); font-size:13px; margin-top:4px}
.modal-price{color:#8a5d2d; font-weight:900; font-size:20px; margin-top:10px}
.modal-desc{color:rgba(55,65,81,.95); line-height:1.5; margin-top:10px}
.modal-actions{display:flex; gap:10px; margin-top:14px}
.modal-note{
  margin-top:12px;
  color:rgba(107,114,128,.95);
  font-size:12px;
  border-top:1px solid var(--line);
  padding-top:12px;
}

/* Drawer (cart) — IMPORTANT: keep slide-in mechanics */
.drawer{
  position:fixed; top:0; right:0; height:100%;
  width:min(430px, 100%);
  background: rgba(255,255,255,.96);
  border-left:1px solid var(--line);
  transform: translateX(100%);
  transition: transform .2s ease;
  z-index:85;
  display:flex;
  flex-direction:column;
}
.drawer[aria-hidden="false"]{transform: translateX(0)}
.drawer-head{
  padding:16px;
  border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between;
}
.drawer-title{font-weight:900; font-size:16px}
.drawer-body{padding:14px; overflow:auto; flex:1}
.drawer-foot{
  padding:14px;
  border-top:1px solid var(--line);
  background: rgba(17,24,39,.02);
}
.totals .line{
  display:flex; justify-content:space-between;
  margin-bottom:8px;
}
.totals .line.small{font-size:12px; color:rgba(107,114,128,.95)}
.btn.full{width:100%}

.cartrow{
  display:grid;
  grid-template-columns: 74px 1fr auto;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid rgba(17,24,39,.08);
}
.cartrow img{
  width:74px; height:74px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(17,24,39,.03);
}
.cartname{font-weight:900}
.cartmeta{color:rgba(107,114,128,.95); font-size:12px; margin-top:4px}
.cartcontrols{
  display:flex; align-items:center; gap:10px;
  margin-top:8px;
}
.cartcontrols button{
  width:32px; height:32px;
  border-radius:10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.92);
  color:var(--text);
  cursor:pointer;
}
.remove{
  margin-top:8px;
  border:none;
  background:transparent;
  color:rgba(107,114,128,.95);
  cursor:pointer;
  text-decoration:underline;
  font-size:12px;
}

/* Checkout modal layout */
.checkout{
  display:block;
  padding:18px;
}
.checkout h3{
  margin:0;
  font-family:"Playfair Display", serif;
  font-size:26px;
}
.checkout .meta{margin-top:6px}
.checkout form{margin-top:14px}
.checkout-actions{display:grid; gap:10px; margin-top:12px}

/* IMPORTANT: hide summary panel completely (order form only) */
.checkout-right{display:none !important;}
.summary{display:none !important;}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0 26px;
  margin-top:12px;
  background: rgba(255,255,255,.78);
}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:14px}
.footer-left{display:flex; align-items:center; gap:12px}
.footer-logo{
  width:42px; height:42px; border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  padding:6px;
}
.footer-title{font-weight:900}
.footer-sub{color:rgba(107,114,128,.95); font-size:12px}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{grid-template-columns:1fr}
  .shop{grid-template-columns:1fr}
  .sidebar .panel{position:relative; top:auto}
  .grid{grid-template-columns: repeat(2, 1fr)}
  .modal-body{grid-template-columns:1fr}
  .modal-main img{height:360px}
}
@media (max-width: 640px){
  .topbar-inner{flex-direction:column; align-items:flex-start}
  .header-inner{flex-direction:column; align-items:stretch}
  .brand{min-width:auto}
  .actions{width:100%; justify-content:space-between}
  .hero h1{font-size:34px}
  .hero-stats{grid-template-columns:1fr; }
  .grid{grid-template-columns: 1fr}
  .card-img img{height:240px}
  .modal-card{border-radius: 18px}
  .modal-main img{height:300px}
  .drawer{width:100%}
  .row2{grid-template-columns:1fr}
}