:root{
  /* ===== CUSTOMER ===== */
  --bg:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#e9e9e9;
  --shadow:0 14px 40px rgba(0,0,0,.08);
  --max:1200px;
  --brand:#7a2946;
  --gold:#e7c06b;

  /* sticky offset (tinggi top-strip) */
  --strip-offset:34px;

  /* ===== ADMIN ===== */
  --admin-bg:#0b0b0f;
  --admin-card:rgba(255,255,255,.08);
  --admin-card2:rgba(255,255,255,.06);
  --admin-line:rgba(255,255,255,.14);
  --admin-text:#f6f6f6;
  --admin-muted:rgba(255,255,255,.65);
  --admin-shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:18px;
}

*{box-sizing:border-box}
a{text-decoration:none;color:inherit}
mark{
  background:rgba(231,192,107,.35);
  color:inherit;
  padding:0 .18em;
  border-radius:6px;
}

/* =====================================================
   CUSTOMER SITE
   ===================================================== */
body.site{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--text);
  background:var(--bg);
}

.wrap{max-width:var(--max);margin:0 auto;padding:0 18px}
.line{border-top:1px solid var(--line)}
.muted{color:var(--muted)}

/* =====================================================
   TOP STRIP (STICKY TOP) + CHECKOUT ICON RESPONSIVE
   class: .top-strip .strip-row .strip-left .strip-right
   ===================================================== */
.top-strip{
  position:sticky;
  top:0;
  z-index:1002;
  border-bottom:1px solid var(--line);
  background:#fff;
  color:#777;
  font-size:11px;
  letter-spacing:.08em;
}
.top-strip .strip-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:8px 0;
  flex-wrap:nowrap; /* 1 baris */
}
.strip-left{
  font-weight:800;
  text-transform:uppercase;
  white-space:nowrap;
}
.strip-right{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  font-weight:700;
}
.strip-right b{font-weight:900;color:#111}
.strip-right u{font-weight:900}
.strip-right .dot{opacity:.75}
.strip-right .cartlink{cursor:pointer}
.strip-right .cartlink:focus{
  outline:2px solid rgba(17,17,17,.25);
  outline-offset:3px;
  border-radius:10px;
}

/* ✅ Checkout ada icon 🛒 + size cocok desktop & mobile */
.checkout-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:900;
  text-decoration:underline;
  color:inherit;
  line-height:1;
}
.checkout-link .cicon{
  font-size:16px;   /* desktop */
  line-height:1;
  transform:translateY(1px);
}
.checkout-link .ctext{
  font-size:12px;   /* desktop */
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* =====================================================
   HEADER (STICKY DI BAWAH TOP STRIP)
   ===================================================== */
.header{
  position:sticky;
  top:var(--strip-offset);
  background:#fff;
  z-index:1001;
}

/* header row 3 kolom */
.header .row{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:12px 0;
}

.brand{
  text-align:center;
  font-weight:800;
  letter-spacing:.35em;
  font-size:28px;
  justify-self:center;
  margin:0;
}

/* =====================================================
   ICON BUTTON (SEARCH)
   ===================================================== */
.head-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.iconbtn{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  cursor:pointer;
  width:40px;
  height:40px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.iconbtn:hover{background:#111;color:#fff;border-color:#111}
.iconbtn .icon{font-size:16px;line-height:1}

/* =====================================================
   (LEGACY) SEARCH BOX - kalau masih dipakai
   ===================================================== */
.search{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--line);
  padding:8px 10px;
  background:#111;
  color:#fff;
  border-radius:12px;
}
.search input{
  border:none;
  outline:none;
  background:transparent;
  color:#fff;
  width:100%;
  min-width:140px;
}
.search button{
  border:1px solid rgba(255,255,255,.35);
  background:transparent;
  color:#fff;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
}
.search button:hover{background:rgba(255,255,255,.08)}

/* =====================================================
   SEARCH OVERLAY
   ===================================================== */
.search-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:.2s ease;
  z-index:9997;
}
.search-overlay.open{
  opacity:1;
  pointer-events:auto;
}

.searchbar{
  position:absolute;
  top:0;
  left:0;
  right:0;
  background:#fff;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:end;
  padding:18px 18px;
}

.searchhint{
  grid-column:1 / -1;
  font-size:34px;
  font-weight:700;
  color:#444;
  letter-spacing:.02em;
  line-height:1.1;
}
@media(max-width:720px){
  .searchhint{font-size:24px}
}

.searchrow{
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom:2px solid #111;
  padding:10px 0;
  max-width:760px;
}
.sicon{font-size:18px}

.searchrow input{
  border:none;
  outline:none;
  font-size:18px;
  width:100%;
  background:transparent;
  color:#111;
}

.closebtn{
  border:1px solid #111;
  background:#111;
  color:#fff;
  border-radius:12px;
  padding:10px 14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:8px;
  height:44px;
}
.closebtn:hover{opacity:.9}

/* =====================================================
   NAV
   ===================================================== */
.nav{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.nav ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  justify-content:center;
  gap:22px;
  flex-wrap:wrap;
}
.nav a{
  padding:10px 2px;
  display:inline-block;
}
.nav a:hover{border-bottom:2px solid #111}

/* mobile: nav scroll horizontal */
@media(max-width:720px){
  .nav ul{
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    white-space:nowrap;
    gap:16px;
    padding:0 12px 2px;
    -webkit-overflow-scrolling:touch;
  }
  .nav ul::-webkit-scrollbar{display:none}
}

/* =====================================================
   HERO
   ===================================================== */
.hero{
  text-align:center;
  padding:32px 0;
}
.hero h1{
  font-size:40px;
  margin:0;
  letter-spacing:.06em;
}

/* ===== PRODUCT GRID ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  padding:30px 0;
}
@media(max-width:1000px){
  .grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:720px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .brand{font-size:24px;letter-spacing:.32em}
}
@media(max-width:420px){
  .grid{grid-template-columns:1fr}
}

/* =====================================================
   MOBILE TUNING (TOP STRIP + HEADER + CHECKOUT ICON)
   ===================================================== */
@media(max-width:520px){
  :root{ --strip-offset:32px; }
  .wrap{padding:0 12px}
  .header .row{gap:10px}
  .brand{font-size:22px;letter-spacing:.30em}
  .iconbtn{width:38px;height:38px;border-radius:12px}

  .top-strip{font-size:10px}
  .top-strip .strip-row{gap:8px}
  .strip-right{gap:6px}

  .checkout-link .cicon{font-size:15px}
  .checkout-link .ctext{font-size:11px}
}
@media(max-width:360px){
  :root{ --strip-offset:30px; }
  .brand{font-size:20px;letter-spacing:.26em}
  .iconbtn{width:36px;height:36px}

  .checkout-link .cicon{font-size:14px}
  .checkout-link .ctext{font-size:10px}
}

/* =====================================================
   PRODUCT CARD
   ===================================================== */
.pcard{
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  transition:.25s ease;
  background:#fff;
}
.pcard:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}

.imgbox{
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#fff;
}
.imgbox img{
  max-height:260px;
  width:auto;
  object-fit:contain;
}

.badges{
  position:absolute;
  top:12px;
  left:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.badge{
  font-size:10px;
  padding:6px 8px;
  color:#fff;
  border-radius:6px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.badge.sold{background:#111}
.badge.light{background:#999}

.meta{
  text-align:center;
  padding:14px;
  border-top:1px solid var(--line);
}
.meta .name{
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.35;
  min-height:32px;
}
.meta .price{
  font-weight:900;
  margin-top:8px;
}

/* ===== BUTTONS ===== */
.btn{
  border:1px solid #111;
  background:#fff;
  padding:10px 14px;
  font-size:12px;
  letter-spacing:.08em;
  cursor:pointer;
  border-radius:12px;
  transition:.18s ease;
}
.btn.primary{
  background:#111;
  color:#fff;
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

.card-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:14px;
}

.btn.full{
  width:100%;
  padding:14px 0;
  font-size:12px;
  letter-spacing:.12em;
  font-weight:900;
}

.btn.secondary{
  width:100%;
  padding:12px 0;
  font-size:11px;
  letter-spacing:.12em;
  font-weight:800;
  background:#fff;
  border:1px solid #111;
}
.btn.secondary:hover{background:#111;color:#fff}
.btn.primary:hover{opacity:.92}

/* =====================================================
   CART DRAWER
   ===================================================== */
.cart-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  opacity:0;
  pointer-events:none;
  transition:.25s ease;
  z-index:9998;
}
.cart-backdrop.open{
  opacity:1;
  pointer-events:auto;
}
.cart-drawer{
  position:fixed;
  top:0;
  right:-420px;
  width:420px;
  max-width:100%;
  height:100vh;
  background:#fff;
  border-left:1px solid var(--line);
  box-shadow:-10px 0 40px rgba(0,0,0,.12);
  z-index:9999;
  display:flex;
  flex-direction:column;
  transition:.3s ease;
}
.cart-drawer.open{right:0}

.cart-head{
  padding:16px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.cart-head h3{
  margin:0;
  font-size:12px;
  letter-spacing:.14em;
}
.cart-close{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:12px;
  cursor:pointer;
}
.cart-close:hover{background:#111;color:#fff;border-color:#111}

.cart-body{flex:1;overflow:auto;padding:16px}
.cart-empty{
  border:1px dashed var(--line);
  border-radius:14px;
  padding:14px;
  color:#777;
  text-align:center;
}

.cart-item{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:12px;
  align-items:flex-start;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}
.cart-item:last-child{border-bottom:none}
.cart-item img{
  width:72px;
  height:72px;
  object-fit:contain;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
}

.cart-name{
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.35;
}
.cart-subrow{
  margin-top:6px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.cart-price{font-size:12px;font-weight:800;color:#111}
.cart-qty{display:flex;align-items:center;gap:8px}
.cart-qty button{
  width:28px;height:28px;
  border:1px solid #111;
  background:#fff;
  border-radius:10px;
  cursor:pointer;
}
.cart-qty b{min-width:18px;display:inline-block;text-align:center}

.cart-actions{
  margin-top:8px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.cart-remove{
  font-size:11px;
  color:#777;
  cursor:pointer;
  text-decoration:underline;
}
.cart-remove:hover{color:#111}

.cart-foot{
  border-top:1px solid var(--line);
  padding:16px;
  background:#fff;
}
.cart-total{
  display:flex;
  justify-content:space-between;
  font-weight:900;
  margin-bottom:12px;
  letter-spacing:.06em;
}
.cart-foot .btn{width:100%}
.cart-foot .btn.secondary{margin-top:10px}
@media(max-width:520px){
  .cart-drawer{width:100%}
}

/* =====================================================
   PRODUCT DETAIL PAGE (product.html)
   ===================================================== */
.pdp{display:grid;grid-template-columns:1.15fr .85fr;gap:28px}
@media(max-width:900px){.pdp{grid-template-columns:1fr}}
.pdp-left{position:relative}
.pdp-badges{
  position:absolute;top:14px;left:14px;z-index:2;
  display:flex;flex-direction:column;gap:6px;
}
.pdp-image{
  border:1px solid var(--line);
  border-radius:18px;
  min-height:520px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}
.pdp-image img{width:70%;max-width:520px}
.pdp-thumbs{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.thumb{border:1px solid var(--line);padding:6px;border-radius:12px;cursor:pointer}
.thumb.active{border-color:#111}
.thumb img{width:64px;height:64px;object-fit:cover}
.pdp-title{font-size:38px;letter-spacing:.06em;margin:0;text-transform:uppercase}
.pdp-price{font-weight:900;margin-top:8px}
.pdp-desc{margin-top:8px;color:#444;line-height:1.6}
.pdp-rating{display:flex;gap:12px;align-items:center;margin-top:10px}
.stars{letter-spacing:2px}
.pdp-sizes{margin-top:18px}
.pdp-sizes .label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.sizes{display:flex;gap:10px;flex-wrap:wrap}
.size{border:1px solid #111;padding:10px 14px;font-size:12px;cursor:pointer;border-radius:12px}
.size.active{background:#111;color:#fff}
.pdp-cta{display:grid;grid-template-columns:120px 1fr;gap:12px;margin-top:16px}
@media(max-width:420px){.pdp-cta{grid-template-columns:1fr}}
.qty{display:flex;justify-content:space-between;border:1px solid #111;border-radius:12px;overflow:hidden}
.qty button{width:44px;background:#fff;border:none;font-size:18px;cursor:pointer}
.qty input{width:50px;border:none;text-align:center;font-weight:800;outline:none}
.pdp-btn{height:54px;font-weight:900;border-radius:12px}
.pdp-divider{margin:20px 0;border-top:1px solid var(--line)}

/* AROMA / NOTES */
.notes-title{font-size:14px;letter-spacing:.1em;text-transform:uppercase;margin-bottom:10px}
.notes-box{border:1px solid var(--line);border-radius:14px;padding:12px}
.note-row{display:grid;grid-template-columns:140px 1fr;padding:10px 0;border-top:1px solid var(--line)}
.note-row:first-child{border-top:none}
.note-key{font-size:12px;font-weight:800;text-transform:uppercase}
.notes-desc{margin-top:12px;line-height:1.7;color:#444}

/* =====================================================
   CHECKOUT PAGE (checkout.html)
   ===================================================== */
.checkout{max-width:920px;margin:0 auto;padding:18px}
.checkout .row{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
@media(max-width:900px){.checkout .row{grid-template-columns:1fr}}
.checkout .box{border:1px solid var(--line);border-radius:18px;padding:16px;background:#fff}
.checkout h2,.checkout h3{margin:0 0 10px;letter-spacing:.12em;text-transform:uppercase}
.checkout input,.checkout textarea,.checkout select{
  width:100%;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  margin-top:6px;
  outline:none;
}
.checkout table{width:100%;border-collapse:collapse}
.checkout td,.checkout th{padding:10px 6px;border-bottom:1px solid #eee;text-align:left;font-size:12px}
.checkout .right{text-align:right}
.checkout-summary{margin-top:12px;border-top:1px solid var(--line);padding-top:12px}
.checkout-summary .row2{display:flex;justify-content:space-between;font-weight:900;letter-spacing:.06em}

/* FIX radio/checkbox */
.checkout input[type="radio"],
.checkout input[type="checkbox"]{
  width:auto;
  padding:0;
  border:none;
  border-radius:0;
  margin-top:0;
}
.radioRow{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
@media(max-width:520px){.radioRow{grid-template-columns:1fr}}
.pill{
  border:1.5px solid #ddd;
  background:#fff;
  border-radius:999px;
  padding:12px 14px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  user-select:none;
  white-space:nowrap;
}
.pill input[type="radio"]{
  appearance:auto;
  -webkit-appearance:radio;
  width:18px;
  height:18px;
  margin:0;
  accent-color:#111;
}
.pill:has(input[type="radio"]:checked){
  border-color:#111;
  background:#111;
  color:#fff;
}
.pill:has(input[type="radio"]:checked) b{color:#fff}

/* =====================================================
   ADMIN (admin.html)
   ===================================================== */
body.admin{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:url("https://plus.unsplash.com/premium_photo-1661963188432-5de8a11f21a7?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center/cover no-repeat fixed;
  color:#111;
}
body.admin,
body.admin h1, body.admin h2, body.admin h3,
body.admin p, body.admin label, body.admin small,
body.admin a, body.admin .brandA,
body.admin .topbarA, body.admin .topbarA *{
  color:#111 !important;
}
.container{max-width:1100px;margin:0 auto;padding:24px}
body.admin .glass{
  background:rgba(255,255,255,.78) !important;
  border:1px solid rgba(0,0,0,.12) !important;
  border-radius:var(--radius);
  box-shadow:0 18px 60px rgba(0,0,0,.25) !important;
}
.topbarA{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  gap:12px;
  flex-wrap:wrap;
}
.brandA{font-weight:800;letter-spacing:.14em}
.cardA{padding:18px}
label.A{font-size:12px;color:#111 !important}
input.A,textarea.A,select.A{
  width:100%;
  padding:12px;
  margin-top:6px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.20) !important;
  background:rgba(255,255,255,.85) !important;
  color:#111 !important;
  outline:none;
}
input.A::placeholder,textarea.A::placeholder{color:rgba(17,17,17,.55) !important}
.btnA{
  padding:12px 16px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  border:none;
}
.btnA.primary{background:linear-gradient(135deg,#e7c06b,#c79b3f);color:#151515}
.btnA.ghost{
  background:rgba(255,255,255,.55) !important;
  border:1px solid rgba(0,0,0,.25) !important;
  color:#111 !important;
}
.btnA.danger{
  background:rgba(255,70,70,.2);
  color:#7a0000 !important;
  border:1px solid rgba(255,70,70,.35);
}
.tableA{width:100%;border-collapse:separate;border-spacing:0 10px}
.trA{background:rgba(255,255,255,.72) !important;border-radius:16px}
.tableA th{font-size:12px;color:rgba(17,17,17,.7) !important;text-align:left;padding:6px 10px}
.tableA td{padding:12px 10px;color:#111 !important}
.badgeA{
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  border:1px solid rgba(0,0,0,.18) !important;
  color:#111 !important;
}
.badgeA.gold{color:#7a2946 !important;border-color:#7a2946 !important}
.toastA{
  position:fixed;
  bottom:18px;
  left:50%;
  transform:translateX(-50%);
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,.85) !important;
  border:1px solid rgba(0,0,0,.18) !important;
  color:#111 !important;
  display:none;
  z-index:999;
}

/* =====================================================
   BACKWARD COMPAT (kalau masih ada topbar lama)
   ===================================================== */
.topbar{display:none !important;}
