:root {
  --header-height: 56px;
  --bottom-nav-height: 58px;
  --font-body: 'Poppins', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --primary: #e96f98;
  --primary-dark: #9e2f58;
  --primary-light: #f49ab8;
  --accent: #ffe8f0;
  --bg: #fff9fb;
  --surface: #fff;
  --text: #32252b;
  --muted: #777177;
  --outline: rgba(158,47,88,.28);
  --shadow: 0 2px 8px rgba(50,37,43,.10);
}

html { background: var(--bg); }
body { min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; }
button, input, select, textarea { font-family:var(--font-body); }
h1, h2, h3, h4, h5, h6, .header-title, .detail-nav-title, .cart-header h2 { font-family:var(--font-display); }
a { color: var(--primary-dark); }

header { height: var(--header-height); padding: 8px 10px 8px 54px; background: var(--primary); box-shadow: none; }
body:has(.auth-page) header { padding:8px 10px; }
body:has(.auth-page) .auth-page { padding-top:calc(var(--header-height) + 20px); }
body:has(.auth-page) .auth-card { border-radius:12px; box-shadow:none!important; }
.auth-card-logo { display:block; width:92px; height:92px; margin:0 auto 10px; border-radius:50%; object-fit:cover; }
.header-title, .detail-nav-title, .cart-header h2 { font-family: var(--font-display); font-weight: 700; }
.search { height: 40px; padding: 0 3px 0 10px; border-radius: 9px; }
.search input { padding: 7px 2px; }
.search-btn { width: 34px; height: 34px; border-radius: 8px; background: var(--primary); }
.cart { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: calc(var(--header-height) + 8px) 10px calc(var(--bottom-nav-height) + 16px); }

.toolbar { top: var(--header-height); margin: 0 -10px 8px; border-bottom-color: rgba(158,47,88,.12); }
.category-bar { gap: 8px; padding: 8px; }
.cat-btn { min-height: 34px; padding: 6px 13px; border: 1px solid var(--outline); border-radius: 9px; color: var(--text); background: #fff; }
.cat-btn:hover { background: var(--accent); }
.cat-btn.active { border-color: var(--primary); background: var(--primary); box-shadow: none; color: #fff; font-weight: 700; }

.product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.product { border: 0; border-radius: 10px; background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.img-wrap { aspect-ratio: 3/4; background: #f1f1f1; }
.product-body { padding: 9px 10px 4px; }
.product-title { min-height: 40px; color: var(--text); font-size: 14px; font-weight: 600; line-height: 20px; }
.product .price-row { margin-top: 2px; font-size: 13px; }
.product .price-label { color: var(--muted); }
.product .price-currency, .product .price-value { color: #000; font-weight: 700; }
.product .mt-2 { display: none; }

.app-menu-button { top: 8px; left: 7px; width: 40px; height: 40px; border-radius: 50%; background: transparent; box-shadow: none; }
.app-menu-button .bi { color: #fff; font-size: 25px; }
.app-drawer-backdrop { background: rgba(0,0,0,.52); }
.app-drawer { width: min(82vw,340px); border-radius: 0 22px 22px 0; background: #fff; box-shadow: 12px 0 30px rgba(50,37,43,.16); }
.app-drawer-head { min-height: 138px; align-items: flex-start; padding: 24px 18px; background: var(--primary); }
.app-drawer-brand { flex-direction: column; align-items: flex-start; gap: 9px; color: #fff; font-family: var(--font-display); font-size: 18px; }
.app-drawer-logo { width: 62px; height: 62px; padding: 7px; border-radius: 14px; background: #fff; box-shadow: 0 3px 9px rgba(0,0,0,.13); }
.app-drawer-close { color: #fff; }
.app-drawer-nav { padding: 14px 12px; }
.app-drawer-nav::before { content:'MENU UTAMA'; display:block; padding: 0 10px 7px; color: rgba(50,37,43,.55); font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.app-drawer-nav a { min-height: 46px; margin: 1px 0; padding: 10px 12px; border-radius: 12px; color: var(--text); font-weight: 500; }
.app-drawer-nav a.active { background: var(--accent); color: var(--primary-dark); font-weight: 600; }
.app-drawer-nav .bi { color: var(--primary-dark); font-size: 20px; }
.app-install-button { border-radius: 10px; border-color: var(--primary); color: var(--primary-dark); }

.app-bottom-nav { position:fixed; z-index:2050; right:0; bottom:0; left:0; display:flex; align-items:stretch; height:var(--bottom-nav-height); padding:0; border-top:1px solid rgba(244,154,184,.28); background:#fff; box-shadow:0 -3px 10px rgba(50,37,43,.07); }
.app-bottom-nav a { position:relative; display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; gap:2px; color:#777177; font-size:10px; font-weight:500; text-decoration:none; }
.app-bottom-nav a .bi { font-size: 20px; }
.app-bottom-nav a.active { color: var(--primary); }
.app-bottom-nav a.active::before { content:''; position:absolute; top:0; left:50%; width:28px; height:3px; border-radius:0 0 3px 3px; background:var(--primary); transform:translateX(-50%); }

.detail-header, .cart-header { height: var(--header-height); margin: 0; padding: 0 52px; justify-content: center; background: var(--primary); box-shadow: none; }
.detail-header .back-btn { position:absolute; left:8px; color:#fff; }
.detail-nav-title, .cart-header h2 { color:#fff; font-size:18px; }
.detail-container { max-width: 920px; }
.detail-sheet { border-radius: 12px; box-shadow: var(--shadow); }
.detail-body h1 { font-family: var(--font-display); color: var(--text); }
.btn-primary, .btn.btn-primary, .btn { border:0; border-radius:9px; background:var(--primary); color:#fff; font-weight:700; box-shadow:none; }
.btn-outline { border-color:var(--primary); color:var(--primary-dark); box-shadow:none; }
.btn-outline:hover { background:var(--accent); }
.table-order { border-collapse:separate; border-spacing:0 6px; }
.table-order th { color:var(--muted); font-size:11px; }
.table-order tbody tr { background:#fff; box-shadow:0 1px 4px rgba(50,37,43,.08); }
.table-order td { padding:8px 6px; }
.variant-size { display:block; margin-top:2px; color:var(--muted); font-size:11px; font-weight:500; }
.row-active { background:var(--accent)!important; }
.qty-box button { border-color:var(--outline); background:#fff; color:var(--primary-dark); }

.cart-wrapper { max-width: 760px; margin: 0 auto; padding: 0 10px calc(var(--bottom-nav-height) + 24px); }
.cart-body { padding-bottom: calc(var(--bottom-nav-height) + 86px); }
.cart-wrapper .cart-header { margin:0 -10px 10px; }
.cart-card,.cart-list-item,.checkout-order-item,.cart-summary,.cart-item.shipment-row,.contact-card,.auth-card { border-radius:10px!important; box-shadow:0 1px 5px rgba(50,37,43,.09)!important; }
.cart-list-item { margin-bottom:8px!important; padding:8px!important; }
.cart-image img { border-radius:8px!important; }
.cart-checkout-bar { bottom:calc(var(--bottom-nav-height) + 8px); border-radius:12px; }
.cart-line-total { color:var(--primary-dark)!important; }
input[type='checkbox'] { accent-color:var(--primary); }
.contact-header i,.contact-item i { color:var(--primary); }

@media (min-width: 700px) {
  .product-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
  .product-title { min-height:20px; }
}

@media (max-width: 767px) {
  .detail-page { padding-bottom:calc(var(--bottom-nav-height) + 14px); }
  .detail-sheet { border-radius:0; box-shadow:none; }
  .detail-body h1 { font-size:22px; line-height:28px; }
}
