/* ===== Tokens ===== */
:root{
  --brand:#03AC0E;
  --brand-dark:#028a0b;
  --brand-soft:#E9FBEA;
  --gold:#1DBF3B;
  --red:#D0342C;
  --green:#1E8E58;
  --ink:#222222;
  --text:#333333;
  --muted:#757575;
  --muted-2:#9E9E9E;
  --line:#E5E5E5;
  --line-2:#F0F0F0;
  --bg:#FFFFFF;
  --bg-soft:#F7F7F7;
  --font:"Inter","Nunito Sans",-apple-system,BlinkMacSystemFont,sans-serif;
  --radius:8px;
  --max:1400px;
  --shadow:0 1px 6px rgba(0,0,0,.06);
  --shadow-lg:0 8px 30px rgba(0,0,0,.14);
}
*{box-sizing:border-box;}
body{margin:0; font-family:var(--font); color:var(--text); background:var(--bg); line-height:1.5; font-size:14px;}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
button{font-family:inherit; cursor:pointer;}
h1,h2,h3,h4{margin:0; color:var(--ink); line-height:1.25;}
.container{max-width:var(--max); margin:0 auto; padding:0 28px;}
:focus-visible{outline:2px solid var(--brand); outline-offset:2px;}

/* ===== Utility bar ===== */
.utility{background:var(--bg-soft); border-bottom:1px solid var(--line); font-size:12.5px; color:var(--muted); position:relative;}
.utility .container{display:flex; justify-content:space-between; align-items:center; height:38px; gap:16px;}
.utility .left{display:flex; align-items:center; gap:8px; color:var(--ink); font-weight:600;}
.utility .right{display:flex; gap:22px;}
.utility .right a:hover{color:var(--brand);}
.utility-toggle{display:none; background:none; border:none; color:var(--ink); cursor:pointer; padding:6px; align-items:center; justify-content:center;}

/* ===== Header ===== */
.site-header{background:var(--bg); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:60;}
.header-main{display:flex; align-items:center; gap:22px; padding:16px 0;}
.brand{font-size:25px; font-weight:800; color:var(--brand); letter-spacing:-0.5px; white-space:nowrap; display:flex; align-items:center;}
.brand-logo-img{height:44px; width:auto; display:block;}
@media(max-width:680px){ .brand-logo-img{height:36px;} }
.brand span{font-weight:400; color:var(--gold);}
.search-wrap{flex:1; display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:var(--radius); padding:0 14px; height:44px; transition:.15s;}
.search-wrap:focus-within{border-color:var(--brand);}
.search-wrap svg{stroke:var(--muted-2); flex-shrink:0;}
.search-wrap input{flex:1; border:none; outline:none; font-size:14px; font-family:inherit; background:none; color:var(--text);}
.header-right{display:flex; align-items:center; gap:14px;}
.cart-icon-btn{position:relative; background:none; border:none; padding:8px; display:flex; color:var(--ink);}
.cart-icon-btn svg{width:26px; height:26px; stroke:currentColor; fill:none; stroke-width:1.6;}
.cart-badge{position:absolute; top:0; right:0; background:var(--red); color:#fff; font-size:10px; font-weight:700; border-radius:999px; min-width:18px; height:18px; display:flex; align-items:center; justify-content:center; padding:0 5px;}
.divider-v{width:1px; height:28px; background:var(--line);}
.btn-wa-head{display:flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--green); color:var(--green); font-weight:700; font-size:13px; padding:9px 16px; border-radius:var(--radius);}
.btn-wa-head:hover{background:#F1FAF5;}
.btn-admin-head{background:var(--brand); color:#fff; font-weight:700; font-size:13px; padding:10px 20px; border-radius:var(--radius);}
.btn-admin-head:hover{background:var(--brand-dark);}

/* category nav */
.cat-nav{border-top:1px solid var(--line-2); background:var(--bg);}
.cat-nav .container{display:flex; gap:28px; overflow-x:auto;}
.cat-nav button{background:none; border:none; font-size:13.5px; font-weight:600; color:var(--muted); padding:13px 0; border-bottom:2px solid transparent; white-space:nowrap;}
.cat-nav button:hover{color:var(--brand);}
.cat-nav button.active{color:var(--brand); border-bottom-color:var(--brand);}

/* ===== Hero banner ===== */
.hero{background:linear-gradient(100deg, var(--brand) 0%, var(--brand-dark) 100%); color:#fff; border-radius:0;}
.hero .container{display:grid; grid-template-columns:1.15fr .85fr; align-items:center; gap:30px; padding-top:44px; padding-bottom:44px;}
.hero-kicker{display:inline-block; background:rgba(255,255,255,.16); font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:6px 14px; border-radius:999px; margin-bottom:16px;}
.hero h1{color:#fff; font-size:clamp(26px,3.6vw,42px); font-weight:800; line-height:1.12;}
.hero p{margin-top:14px; color:rgba(255,255,255,.88); font-size:15px; max-width:44ch;}
.hero-ctas{margin-top:26px; display:flex; gap:12px; flex-wrap:wrap;}
.hero-imgs{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.hero-imgs.single{grid-template-columns:1fr;}
.hero-imgs img{border-radius:var(--radius); height:170px; width:100%; object-fit:cover;}
.hero-imgs.single img{height:356px;}

/* ===== Buttons ===== */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 24px; font-size:14px; font-weight:700; border:1px solid transparent; border-radius:var(--radius); transition:.15s;}
.btn-brand{background:var(--brand); color:#fff;}
.btn-brand:hover{background:var(--brand-dark);}
.btn-white{background:#fff; color:var(--brand);}
.btn-white:hover{background:#F5EEF0;}
.btn-ghost-white{background:transparent; border-color:rgba(255,255,255,.6); color:#fff;}
.btn-ghost-white:hover{background:rgba(255,255,255,.14);}
.btn-outline{background:#fff; border-color:var(--brand); color:var(--brand);}
.btn-outline:hover{background:var(--brand-soft);}
.btn-green{background:var(--green); color:#fff;}
.btn-green:hover{background:#176F45;}
.btn-block{width:100%;}
.btn:disabled{opacity:.45; cursor:not-allowed;}

/* ===== Shop layout ===== */
.shop-wrap{display:grid; grid-template-columns:230px 1fr; gap:26px; padding:28px 0 70px;}

/* Sidebar filter */
.sidebar{position:sticky; top:150px; align-self:start; max-height:calc(100vh - 170px); overflow-y:auto;}
.filter-box{border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:16px;}
.filter-box h3{font-size:15px; font-weight:800; margin-bottom:14px;}
.filter-group{border-top:1px solid var(--line-2); padding-top:14px; margin-top:14px;}
.filter-group:first-of-type{border-top:none; padding-top:0; margin-top:0;}
.filter-group h4{font-size:13.5px; font-weight:700; margin-bottom:10px;}
.filter-opt{display:flex; align-items:center; gap:9px; padding:6px 0; font-size:13.5px; cursor:pointer; color:var(--text);}
.filter-opt input{accent-color:var(--brand); width:16px; height:16px; cursor:pointer;}
.price-row{display:flex; gap:8px; align-items:center;}
.price-row input{width:100%; border:1px solid var(--line); border-radius:6px; padding:9px 10px; font-size:13px; font-family:inherit; outline:none;}
.price-row input:focus{border-color:var(--brand);}
.size-chips{display:flex; flex-wrap:wrap; gap:7px;}
.size-chip{border:1px solid var(--line); background:#fff; border-radius:6px; padding:7px 13px; font-size:12.5px; font-weight:600; color:var(--text);}
.size-chip.active{border-color:var(--brand); background:var(--brand-soft); color:var(--brand);}
.reset-link{background:none; border:none; color:var(--brand); font-size:13px; font-weight:700; padding:0; margin-top:14px;}

/* Result bar */
.result-bar{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; padding-bottom:18px; border-bottom:1px solid var(--line-2); margin-bottom:20px;}
.result-bar .count{font-size:14px; color:var(--muted);}
.result-bar .count b{color:var(--ink);}
.sort-wrap{display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--muted);}
.sort-wrap select{border:1px solid var(--line); border-radius:var(--radius); padding:9px 14px; font-family:inherit; font-size:13.5px; background:#fff; color:var(--ink); outline:none;}
.sort-wrap select:focus{border-color:var(--brand);}

/* Product grid */
.product-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:14px;}
.product-card{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff; display:flex; flex-direction:column; cursor:pointer; transition:.18s;}
.product-card:hover{box-shadow:var(--shadow-lg); transform:translateY(-2px);}
.p-thumb{position:relative; aspect-ratio:1/1; background:var(--bg-soft); overflow:hidden;}
.p-thumb img{width:100%; height:100%; object-fit:cover;}
.p-thumb .ph{display:flex; align-items:center; justify-content:center; height:100%; color:var(--muted-2); font-size:12px; text-align:center; padding:12px;}
.disc-badge{position:absolute; top:8px; left:8px; background:var(--red); color:#fff; font-size:11px; font-weight:800; padding:4px 8px; border-radius:5px;}
.new-badge{position:absolute; top:8px; right:8px; background:var(--gold); color:#fff; font-size:10.5px; font-weight:800; padding:4px 8px; border-radius:5px;}
.oos-overlay{position:absolute; inset:0; background:rgba(255,255,255,.78); display:flex; align-items:center; justify-content:center;}
.oos-overlay span{background:var(--ink); color:#fff; font-size:12px; font-weight:700; padding:7px 16px; border-radius:6px;}
.p-body{padding:11px 12px 14px; display:flex; flex-direction:column; gap:5px; flex:1;}
.p-name{font-size:13.5px; line-height:1.4; color:var(--text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.8em;}
.p-price{font-size:16px; font-weight:800; color:var(--ink);}
.p-oldrow{display:flex; align-items:center; gap:7px; font-size:12px;}
.p-old{color:var(--muted-2); text-decoration:line-through;}
.p-off{color:var(--red); font-weight:700;}

/* ===== Rating & Ulasan ===== */
.star-wrap{position:relative; display:inline-block; flex-shrink:0;}
.star-wrap svg{position:absolute; top:0; left:0; fill:#DADADA;}
.star-fill-clip{position:absolute; top:0; left:0; height:100%; overflow:hidden; display:block;}
.star-fill-clip svg{fill:#FFB800;}
.rating-row{display:flex; align-items:center; gap:5px; font-size:12px; color:var(--muted); margin:1px 0 2px;}
.rating-row.rating-empty{color:var(--muted-2);}
.rv-summary{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.rv-summary .rv-avg{font-size:22px; font-weight:800; color:var(--ink);}
.rv-summary .rv-count{font-size:13px; color:var(--muted);}
.rv-sold{font-size:13px; color:var(--muted-2); position:relative; padding-left:14px;}
.rv-sold::before{content:"•"; position:absolute; left:2px;}
.rv-summary-empty{color:var(--muted-2); font-size:13.5px;}
.rv-list{display:flex; flex-direction:column; gap:14px; margin-bottom:16px; max-height:320px; overflow-y:auto; padding-right:4px;}
.rv-item{border-bottom:1px solid var(--line-2); padding-bottom:12px;}
.rv-item:last-child{border-bottom:none;}
.rv-item-head{display:flex; align-items:center; gap:8px; margin-bottom:4px;}
.rv-name{font-weight:700; font-size:13.5px; color:var(--ink);}
.rv-comment{font-size:13.5px; color:var(--text); line-height:1.5; margin-bottom:4px;}
.rv-date{font-size:11.5px; color:var(--muted-2);}
.rv-form-toggle-wrap{margin-top:4px;}
.rv-form{margin-top:14px; padding:16px; background:var(--bg-soft); border-radius:var(--radius);}
.rv-form-note{font-size:12.5px; color:var(--muted); margin:0 0 14px;}
.rv-star-picker{display:flex; gap:6px;}
.rv-star-btn{background:none; border:none; font-size:26px; line-height:1; color:#DADADA; cursor:pointer; padding:0;}
.rv-star-btn.active{color:#FFB800;}
.rv-form textarea{width:100%; font-family:var(--font); border:1px solid var(--line); border-radius:6px; padding:10px; font-size:13.5px; resize:vertical;}
.p-meta{display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); margin-top:auto; padding-top:4px;}
.p-cat{display:inline-block; background:var(--bg-soft); color:var(--muted); font-size:11px; padding:3px 8px; border-radius:4px; text-transform:capitalize; width:fit-content;}
.empty-state{grid-column:1/-1; text-align:center; padding:70px 20px; color:var(--muted); border:1px dashed var(--line); border-radius:var(--radius);}
.load-more-row{display:flex; justify-content:center; margin-top:34px;}

/* ===== Product detail modal ===== */
.overlay{position:fixed; inset:0; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; z-index:120; padding:20px;}
.overlay.show{display:flex;}
.modal{background:#fff; border-radius:var(--radius); width:100%; max-height:92vh; overflow-y:auto; position:relative;}
.modal-sm{max-width:600px;}
.modal-lg{max-width:1000px;}
.modal-close{position:absolute; top:14px; right:14px; background:#fff; border:1px solid var(--line); width:34px; height:34px; border-radius:50%; font-size:16px; z-index:5; color:var(--ink);}

.pd-grid{display:grid; grid-template-columns:400px 1fr 300px; gap:26px; padding:26px;}
.pd-gallery .pd-main{position:relative; aspect-ratio:1/1; background:var(--bg-soft); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line-2);}
.pd-gallery .pd-main img{width:100%; height:100%; object-fit:cover; user-select:none;}
.pd-gallery .pd-main .ph{display:flex; align-items:center; justify-content:center; height:100%; color:var(--muted-2); font-size:13px;}

.pd-nav{position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%; border:none; background:rgba(255,255,255,.9); box-shadow:0 2px 8px rgba(0,0,0,.18); font-size:20px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; color:var(--ink); z-index:2;}
.pd-nav:hover{background:#fff;}
.pd-nav.prev{left:10px;}
.pd-nav.next{right:10px;}

.pd-thumbs{display:flex; gap:8px; margin-top:10px; overflow-x:auto; padding-bottom:2px;}
.pd-thumb-btn{flex:0 0 auto; width:60px; height:60px; border-radius:8px; overflow:hidden; border:2px solid var(--line-2); padding:0; cursor:pointer; background:var(--bg-soft);}
.pd-thumb-btn.active{border-color:var(--brand);}
.pd-thumb-btn img{width:100%; height:100%; object-fit:cover; display:block;}
.pd-breadcrumb{font-size:12.5px; color:var(--muted); margin-bottom:10px;}
.pd-breadcrumb span{color:var(--brand); text-transform:capitalize;}
.pd-title{font-size:21px; font-weight:700; line-height:1.35; margin-bottom:10px;}
.pd-substat{display:flex; align-items:center; gap:12px; font-size:13px; color:var(--muted); padding-bottom:16px; border-bottom:1px solid var(--line-2);}
.pd-pricebox{padding:16px 0; border-bottom:1px solid var(--line-2);}
.pd-price{font-size:30px; font-weight:800; color:var(--ink); line-height:1.1;}
.pd-oldrow{display:flex; align-items:center; gap:9px; margin-top:7px; font-size:13.5px;}
.pd-off{background:#FDEAE8; color:var(--red); font-weight:800; padding:3px 8px; border-radius:5px; font-size:12px;}
.pd-section{padding:16px 0; border-bottom:1px solid var(--line-2);}
.pd-section:last-child{border-bottom:none;}
.pd-label{font-size:13.5px; font-weight:700; margin-bottom:10px;}
.pd-label span{font-weight:400; color:var(--muted);}
.opt-row{display:flex; flex-wrap:wrap; gap:9px;}
.opt-btn{border:1.5px solid var(--line); background:#fff; border-radius:6px; padding:9px 17px; font-size:13px; font-weight:600; color:var(--text); transition:.15s;}
.opt-btn:hover{border-color:var(--brand);}
.opt-btn.active{border-color:var(--brand); background:var(--brand-soft); color:var(--brand);}
.pd-desc{font-size:13.5px; color:var(--text); white-space:pre-line; line-height:1.65;}
.pd-desc.empty{color:var(--muted-2);}

.pd-buybox{border:1px solid var(--line); border-radius:var(--radius); padding:18px; align-self:start; position:sticky; top:0;}
.pd-buybox h4{font-size:15px; font-weight:800; margin-bottom:16px;}
.buy-item{display:flex; gap:10px; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--line-2); margin-bottom:14px;}
.buy-item img{width:46px; height:46px; object-fit:cover; border-radius:6px; background:var(--bg-soft);}
.buy-item .bi-text{font-size:12.5px; color:var(--muted);}
.qty-box{display:flex; align-items:center; gap:14px; margin-bottom:14px;}
.qty-ctrl{display:flex; align-items:center; border:1px solid var(--line); border-radius:6px; overflow:hidden;}
.qty-ctrl button{width:34px; height:36px; background:#fff; border:none; font-size:17px; color:var(--brand); line-height:1;}
.qty-ctrl button:disabled{color:var(--muted-2); cursor:not-allowed;}
.qty-ctrl input{width:46px; height:36px; border:none; border-left:1px solid var(--line); border-right:1px solid var(--line); text-align:center; font-family:inherit; font-size:14px; font-weight:600; outline:none;}
.stock-note{font-size:13px; color:var(--muted);}
.stock-note b{color:var(--ink);}
.subtotal-row{display:flex; justify-content:space-between; align-items:center; padding:14px 0; border-top:1px solid var(--line-2); margin-bottom:14px;}
.subtotal-row .st-label{font-size:13.5px; color:var(--muted);}
.subtotal-row .st-value{font-size:19px; font-weight:800; color:var(--ink);}
.buy-actions{display:flex; flex-direction:column; gap:10px;}
.buy-links{display:flex; justify-content:center; gap:16px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line-2); font-size:13px; color:var(--muted);}
.buy-links a{display:flex; align-items:center; gap:6px;}
.buy-links a:hover{color:var(--brand);}

/* ===== Cart drawer ===== */
.scrim{position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:105; display:none;}
.scrim.show{display:block;}
.cart-drawer{position:fixed; top:0; right:-440px; width:420px; max-width:92vw; height:100%; background:#fff; z-index:110; transition:right .3s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column;}
.cart-drawer.open{right:0;}
.drawer-head{padding:20px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between;}
.drawer-head h3{font-size:17px; font-weight:800;}
.x-btn{background:none; border:none; font-size:19px; color:var(--ink); padding:4px; line-height:1;}
.cart-items{flex:1; overflow-y:auto; padding:18px 22px; display:flex; flex-direction:column; gap:18px;}
.cart-line{display:flex; gap:12px; align-items:flex-start;}
.cart-line img{width:64px; height:64px; object-fit:cover; border-radius:6px; background:var(--bg-soft);}
.cl-body{flex:1; display:flex; flex-direction:column; gap:3px;}
.cl-body .name{font-size:13.5px; font-weight:600; color:var(--ink);}
.cl-variant{font-size:12px; color:var(--muted);}
.cl-price{font-size:14px; font-weight:700; color:var(--ink); margin-top:2px;}
.qty-row{display:flex; align-items:center; gap:9px; margin-top:6px;}
.qty-row button{width:26px; height:26px; border:1px solid var(--line); background:#fff; border-radius:5px; font-size:14px; color:var(--brand); line-height:1;}
.qty-row span{min-width:20px; text-align:center; font-size:13px; font-weight:700;}
.remove-link{background:none; border:none; color:var(--red); font-size:12px; font-weight:600; padding:0;}
.cart-foot{border-top:1px solid var(--line); padding:20px 22px;}
.total-row{display:flex; justify-content:space-between; align-items:center; font-size:17px; font-weight:800; color:var(--ink); margin-bottom:14px;}

/* ===== Checkout ===== */
.checkout-body{padding:28px; display:flex; flex-direction:column; gap:16px;}
.checkout-body h3{font-size:20px; font-weight:800;}
.summary{background:var(--bg-soft); border-radius:var(--radius); padding:16px; font-size:13.5px;}
.summary-row{display:flex; justify-content:space-between; padding:4px 0; gap:12px;}
.field{display:flex; flex-direction:column; gap:6px;}
.field label{font-size:13px; font-weight:700; color:var(--ink);}
.field input,.field textarea,.field select{border:1px solid var(--line); border-radius:var(--radius); padding:11px 13px; font-family:inherit; font-size:14px; background:#fff; color:var(--text); outline:none;}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--brand);}
.pay-options{display:flex; gap:10px;}
.pay-option{flex:1; border:1.5px solid var(--line); background:#fff; border-radius:var(--radius); padding:14px; font-size:13.5px; font-weight:700; color:var(--text);}
.pay-option.active{border-color:var(--brand); background:var(--brand-soft); color:var(--brand);}
.pay-details{background:var(--bg-soft); border-radius:var(--radius); padding:18px; font-size:13.5px;}
.pay-details img{max-width:210px; margin:12px auto 0; border-radius:6px;}
.bank-option{border:1.5px solid var(--line); background:#fff; border-radius:var(--radius); padding:13px 15px; margin-bottom:9px; cursor:pointer;}
.bank-option.selected{border-color:var(--brand); background:var(--brand-soft);}
.bank-option .bname{font-size:12.5px; font-weight:600; color:var(--muted);}
.bank-option .bnum{font-size:17px; font-weight:800; color:var(--ink); margin-top:2px;}
.copy-btn{background:#fff; border:1px solid var(--line); border-radius:6px; padding:9px 15px; font-size:12.5px; font-weight:600; color:var(--brand);}
.helper{font-size:12px; color:var(--muted); margin:0;}
.link-back{background:none; border:none; color:var(--brand); font-size:13px; font-weight:600; padding:0; margin-bottom:10px;}
.paycode-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; text-align:center; box-shadow:var(--shadow);}
.paycode-card img.qr-img{width:220px; height:220px; object-fit:contain; margin:0 auto; border:1px solid var(--line-2); border-radius:6px;}
.paycode-save-btn{margin-top:14px;}
.paycode-hint{font-size:12px; color:var(--muted); margin-top:12px; line-height:1.6;}
.bank-select-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px;}

/* ===== Footer ===== */
.site-footer{background:var(--bg-soft); border-top:1px solid var(--line); padding:44px 0 0; font-size:13.5px;}
.footer-grid{display:grid; grid-template-columns:1.7fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:36px;}
.footer-grid h4{font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; color:var(--ink);}
.footer-grid p{color:var(--muted); margin:0 0 14px;}
.footer-grid ul{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; color:var(--muted);}
.footer-grid ul a:hover{color:var(--brand);}
.footer-brand{font-size:22px; font-weight:800; color:var(--brand); margin-bottom:12px;}
.footer-brand span{font-weight:400; color:var(--gold);}
.social-row a{width:38px; height:38px; border-radius:50%; background:var(--brand-soft); color:var(--brand); display:flex; align-items:center; justify-content:center; font-size:17px;}
.social-row a svg{display:block;}
.social-row a:hover{background:var(--brand); color:#fff;}

.popular-search-tags{display:flex; flex-wrap:wrap; gap:8px;}
.popular-search-tags a{font-size:12.5px; color:var(--muted); background:var(--bg-soft); border:1px solid var(--line); padding:6px 13px; border-radius:999px; text-decoration:none; transition:.15s;}
.popular-search-tags a:hover{background:var(--brand); color:#fff; border-color:var(--brand);}
.footer-bottom{border-top:1px solid var(--line); padding:18px 0; text-align:center; color:var(--muted); font-size:12.5px;}

.wa-float{position:fixed; bottom:24px; right:24px; width:54px; height:54px; border-radius:50%; background:var(--green); display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,.22); z-index:70;}

.toast{position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(16px); background:var(--ink); color:#fff; padding:13px 24px; border-radius:var(--radius); font-size:13.5px; z-index:200; opacity:0; pointer-events:none; transition:.25s; max-width:min(92vw,480px); text-align:center; white-space:normal;}
.toast.show{opacity:1; transform:translateX(-50%) translateY(0);}

/* ===== Responsive ===== */
@media(max-width:1200px){
  .product-grid{grid-template-columns:repeat(4,1fr);}
  .pd-grid{grid-template-columns:320px 1fr; }
  .pd-buybox{grid-column:1/-1; position:static;}
}
@media(max-width:980px){
  .shop-wrap{grid-template-columns:1fr;}
  .sidebar{position:static; max-height:none;}
  .product-grid{grid-template-columns:repeat(3,1fr);}
  .hero .container{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .pd-grid{grid-template-columns:1fr; padding:20px;}
}
@media(max-width:680px){
  .container{padding:0 16px;}
  .product-grid{grid-template-columns:repeat(2,1fr); gap:10px;}
  .header-main{flex-wrap:wrap; gap:12px;}
  .search-wrap{order:3; flex-basis:100%;}
  .btn-admin-head, .btn-wa-head{padding:9px 14px; font-size:12.5px;}
  .footer-grid{grid-template-columns:1fr; gap:26px;}
  .hero-imgs{grid-template-columns:1fr 1fr; gap:8px;}
  .hero-imgs img{height:110px;}
  .hero-imgs.single img{height:200px;}

  .utility .right{
    display:none; position:absolute; top:100%; right:16px; z-index:80;
    flex-direction:column; align-items:flex-start; gap:2px;
    background:#fff; border:1px solid var(--line); border-radius:var(--radius);
    box-shadow:0 10px 26px rgba(0,0,0,.16); padding:6px; min-width:170px;
  }
  .utility .right.open{display:flex;}
  .utility .right button, .utility .right a{width:100%; text-align:left; padding:9px 10px; border-radius:8px; color:var(--ink);}
  .utility .right button:hover, .utility .right a:hover{background:var(--bg-soft); color:var(--brand);}
  .utility-toggle{display:flex;}
}

/* ===== ADMIN ===== */
.admin-body{background:var(--bg-soft);}
.admin-login-page{display:flex; align-items:center; justify-content:center; min-height:100vh; padding:24px; position:relative; overflow:hidden;
  background:linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-dark) 100%);}
.admin-login-page::before{content:''; position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px);
  pointer-events:none;}
.admin-login{position:relative; z-index:1; max-width:400px; width:100%; background:#fff; border:none; border-radius:20px; padding:40px 36px; text-align:center; box-shadow:0 25px 60px rgba(0,0,0,.28);}
.login-logo{height:76px; width:auto; margin:0 auto 16px; display:block;}
.admin-login h1{font-size:21px; font-weight:800; margin-bottom:6px;}
.admin-login p{color:var(--muted); margin:0 0 26px;}
.admin-login .field{text-align:left;}
.password-wrap{position:relative;}
.password-wrap input{width:100%; padding-right:42px;}
.password-toggle{position:absolute; right:4px; top:50%; transform:translateY(-50%); background:none; border:none; color:var(--muted); cursor:pointer; padding:8px; display:flex; align-items:center; justify-content:center; border-radius:8px;}
.password-toggle:hover{color:var(--ink); background:var(--bg-soft);}
.admin-topbar{background:#fff; border-bottom:1px solid var(--line); padding:16px 0;}
.admin-topbar .container{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;}
.logout-btn{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:9px 18px; font-size:13px; font-weight:600; color:var(--ink);}
.logout-btn:hover{border-color:var(--red); color:var(--red);}
.admin-main{max-width:1150px; margin:0 auto; padding:30px 24px 80px;}
.stat-row{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:26px;}
.stat-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px;}
.stat-card .label{font-size:12.5px; color:var(--muted); margin-bottom:7px;}
.stat-card .value{font-size:25px; font-weight:800; color:var(--brand);}
.admin-tabs{display:flex; gap:4px; border-bottom:1px solid var(--line); margin-bottom:24px; flex-wrap:wrap;}
.admin-tab{background:none; border:none; padding:12px 20px; font-size:13.5px; font-weight:700; color:var(--muted); border-bottom:2px solid transparent; margin-bottom:-1px;}
.admin-tab.active{color:var(--brand); border-bottom-color:var(--brand);}
.admin-panel{display:none;} .admin-panel.active{display:block;}
.admin-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; margin-bottom:20px;}
.admin-card h2{font-size:16px; font-weight:800; margin-bottom:18px;}
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.form-grid .full{grid-column:1/-1;}
.form-grid .field{min-width:0;}
.field input,.field textarea,.field select{width:100%; box-sizing:border-box;}
@media(max-width:600px){
  .form-grid{grid-template-columns:1fr;}
  .admin-main{padding:20px 14px 60px;}
  .admin-card{padding:16px;}
  .bank-row{flex-wrap:wrap; gap:8px;}
}
.file-drop{border:1.5px dashed var(--line); background:var(--bg-soft); border-radius:var(--radius); padding:20px; text-align:center; font-size:13px; color:var(--muted); cursor:pointer;}
.file-drop:hover{border-color:var(--brand); color:var(--brand);}

.img-preview-row{display:flex; flex-wrap:wrap; gap:10px;}
.img-thumb{position:relative; width:90px; height:90px; border-radius:8px; overflow:hidden; border:2px solid var(--line); cursor:grab; background:var(--bg-soft);}
.img-thumb.is-cover{border-color:var(--brand);}
.img-thumb.dragging{opacity:.4;}
.img-thumb img{width:100%; height:100%; object-fit:cover; display:block; pointer-events:none;}
.img-thumb-badge{position:absolute; top:0; left:0; background:var(--brand); color:#fff; font-size:10px; font-weight:700; padding:2px 6px; border-radius:0 0 6px 0; z-index:1;}
.img-thumb-remove{position:absolute; top:2px; right:2px; width:20px; height:20px; border-radius:50%; border:none; background:rgba(0,0,0,.6); color:#fff; font-size:14px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;}
.img-thumb-remove:hover{background:var(--red);}
.admin-table{width:100%; border-collapse:collapse; font-size:13.5px;}
.admin-table th{text-align:left; padding:11px 8px; border-bottom:1px solid var(--line); font-size:12px; color:var(--muted); font-weight:700;}
.admin-table td{padding:11px 8px; border-bottom:1px solid var(--line-2); vertical-align:middle;}
.admin-table img{width:46px; height:46px; object-fit:cover; border-radius:6px; background:var(--bg-soft);}
.link-btn{background:none; border:none; font-size:12.5px; font-weight:600; padding:0 8px 0 0; color:var(--brand);}
.link-btn.danger{color:var(--red);}
.bank-row{display:flex; justify-content:space-between; align-items:center; padding:13px 15px; background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:9px;}
.bank-row .bname{font-size:13px; font-weight:700; color:var(--ink);}
.bank-row .bnum{font-size:12.5px; color:var(--muted);}
.order-card{background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:18px; margin-bottom:12px;}
.order-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:9px;}
.order-head .oname{font-weight:700; font-size:14px; color:var(--ink);}
.order-head .otime{font-size:11.5px; color:var(--muted);}
.order-items{font-size:13px; color:var(--text); margin-bottom:6px;}
.order-foot{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;}
.order-total{font-size:17px; font-weight:800; color:var(--brand);}
.status-badge{font-size:11px; font-weight:700; padding:5px 12px; border-radius:999px;}
.status-badge.pending{background:#FFF4E0; color:#A5701A;}
.status-badge.paid{background:#E4F5EC; color:var(--green);}
.status-badge.shipped{background:#EEF2F7; color:#43556B;}
.status-select{padding:8px 12px; font-size:12.5px; border:1px solid var(--line); border-radius:6px; background:#fff; font-family:inherit;}
.error-msg{color:var(--red); font-size:13px; margin-top:12px;}
.hint{font-size:12px; color:var(--muted); margin-top:5px;}
