:root{
  --bg: #fbfaf8;
  --card: #ffffff;
  --text: #131720;
  --muted: rgba(19,23,32,.72);
  --line: rgba(19,23,32,.10);
  --shadow: 0 16px 40px rgba(19,23,32,.06);
  --gold: #b8965d;
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(184,150,93,.10), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(19,23,32,.08), transparent 55%),
              var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }

/* Topbar */
.topbar{
  position: fixed;
  top:0; left:0; right:0;
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  z-index: 1000;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);

  padding-left: max(14px, calc((100vw - 1120px)/2 + 14px));
  padding-right:max(14px, calc((100vw - 1120px)/2 + 14px));
}

.brand{ display:flex; align-items:center; gap:12px; }
.brandLogo{
  height: 46px;
  width:auto;
  display:block;
  object-fit:contain;
}
@media (max-width:600px){
  .brandLogo{ height: 38px; }
}

.menuBtn{
  width:44px; height:44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 18px;
}

/* Drawer */
.drawer{
  position: fixed;
  top:0; right:0;
  height:100%;
  width: 320px;
  background: var(--card);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: .22s ease;
  z-index: 1100;
}
.drawer.open{ transform: translateX(0); }
.drawerHead{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 14px;
  border-bottom:1px solid var(--line);
}
.drawerTitle{ font-weight: 800; letter-spacing: .02em; }
.drawerClose{
  width:44px; height:44px;
  border-radius:14px;
  border: 1px solid var(--line);
  background:#fff;
  cursor:pointer;
}
.drawerNav{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.drawerNav a{
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(19,23,32,.08);
  background: rgba(184,150,93,.06);
  font-weight: 650;
}
.backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.35);
  z-index: 1050;
}

/* Layout */
.wrap{ max-width:1120px; margin:0 auto; padding: 84px 14px 40px; }

.hero{
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(184,150,93,.08));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.heroInner{ max-width: 720px; }
.kicker{
  display:inline-block;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(19,23,32,.70);
  border: 1px solid rgba(184,150,93,.25);
  background: rgba(184,150,93,.08);
  border-radius: 999px;
  padding: 8px 12px;
}
.hero h1{
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero p{
  margin:0;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.55;
}
.heroActions{
  display:flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.btn{
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(19,23,32,.10);
  background: rgba(19,23,32,.92);
  color: #fff;
  font-weight: 700;
}
.btn.ghost{
  background: rgba(255,255,255,.75);
  color: var(--text);
}

/* Category grid */
.grid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .grid a:nth-child(4){ grid-column: span 2; }
}

.cat{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  overflow:hidden;
}
.cat::after{
  content:"";
  position:absolute;
  inset: -30px -30px auto auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(184,150,93,.25), transparent 60%);
  transform: rotate(18deg);
}
.catTop{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.catTitle{
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .01em;
}
.catHint{
  font-size: 12px;
  color: rgba(19,23,32,.62);
  font-weight: 650;
}
.catMeta{
  margin-top: 10px;
  color: rgba(19,23,32,.72);
  font-weight: 550;
  position: relative;
  z-index: 1;
}

/* Note */
.note{
  margin-top: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.noteTitle{ font-weight: 800; margin-bottom: 8px; }
.noteList{ margin:0; padding-left: 18px; color: rgba(19,23,32,.78); }
.noteList li{ margin: 6px 0; }

/* Footer */
.footer{
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footerInner{
  display:flex;
  gap: 14px;
  align-items:center;
}
.footerMark{
  width: 52px; height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(19,23,32,.10);
  background: #fff;
  object-fit: cover;
}
.footerTitle{ font-weight: 900; letter-spacing: .02em; }
.footerSub{ color: rgba(19,23,32,.70); font-size: 13px; margin-top:2px; }

/* -------------------------------------------
   Product rows (Woo products)
   These classes are used by app.js renderRow()
------------------------------------------- */
.row{
  display:flex;
  gap:14px;
  overflow:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  padding: 2px 2px 6px;
}
.row::-webkit-scrollbar{display:none}

.card{
  flex: 0 0 190px;
  scroll-snap-align:start;
  text-decoration:none;
  color:inherit;
  background: #fff;
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(17,24,39,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(17,24,39,.10);
}

.thumb{
  height: 170px;
  background: linear-gradient(180deg, rgba(17,24,39,.02), rgba(17,24,39,.00));
  display:grid;
  place-items:center;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.meta{padding: 10px 12px 12px;}
.name2{
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  max-height: 2.6em;
  overflow:hidden;
  color: rgba(17,24,39,.92);
}
.price{
  margin-top: 7px;
  font-weight: 800;
  font-size: 13px;
  color: rgba(17,24,39,.92);
}
.price .sale{ font-weight: 900; }
.price .was{
  margin-left: 6px;
  font-weight: 700;
  color: rgba(17,24,39,.55);
  text-decoration: line-through;
  font-size: 12px;
}

.empty{
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17,24,39,.04);
  color: rgba(17,24,39,.65);
  font-weight: 700;
}

/* Drag UX: when grabbing the row */
.row.dragging a{ pointer-events:none; }
