:root {
    --bg: #020617; --surface: #0f172a; --border: #1e293b;
    --border2: #334155; --text: #f1f5f9; --muted: #64748b;
    --accent: #6366f1; --accent2: #8b5cf6; --green: #22c55e;
  }
  body { background: var(--bg); color: var(--text); padding-top: 80px; font-family: 'Segoe UI', sans-serif; }

  
  .merch-hero {
    background: radial-gradient(ellipse at 30% 0%, rgba(139,92,246,0.2) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(99,102,241,0.1) 0%, transparent 50%), var(--bg);
    padding: 60px 60px 50px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .merch-hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .merch-hero h1 { font-size: 42px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 12px; }
  .merch-hero h1 span { background: linear-gradient(135deg,var(--accent),var(--accent2)); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
  .merch-hero p { color: var(--muted); font-size: 15px; max-width: 440px; line-height: 1.7; }
  .hero-badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
  .hero-badge { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: 12px; color: #94a3b8; }
  .hero-promo { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 28px; flex-shrink: 0; text-align: center; min-width: 200px; }
  .hero-promo .promo-pct { font-size: 52px; font-weight: 900; color: var(--accent); line-height: 1; }
  .hero-promo .promo-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
  .hero-promo .promo-code { margin-top: 10px; background: rgba(99,102,241,0.12); border: 1px dashed var(--accent); border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 800; letter-spacing: 2px; color: var(--accent); }

  
  .merch-body { max-width: 1200px; margin: 0 auto; padding: 40px 24px 100px; display: flex; gap: 28px; }

  
  .merch-sidebar { width: 220px; flex-shrink: 0; }
  .sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 14px; }
  .sidebar-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }
  .filter-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .filter-list li button {
    width: 100%; text-align: left; background: none; border: none; color: #94a3b8;
    font-size: 13px; padding: 7px 10px; border-radius: 8px; cursor: pointer; transition: .15s;
    display: flex; align-items: center; justify-content: space-between;
  }
  .filter-list li button:hover { background: var(--border); color: var(--text); }
  .filter-list li button.active { background: rgba(99,102,241,0.15); color: var(--accent); font-weight: 600; }
  .filter-count { font-size: 11px; background: var(--border); border-radius: 10px; padding: 1px 7px; }
  .price-range { padding: 4px 0; }
  .price-range label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 8px; }
  .price-range input[type=range] { width: 100%; accent-color: var(--accent); }
  .price-display { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 4px; }

  
  .merch-main { flex: 1; min-width: 0; }
  .merch-top-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
  .merch-search-wrap { flex: 1; min-width: 200px; position: relative; }
  .merch-search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
  .merch-search-wrap input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 40px; padding: 10px 16px 10px 38px; color: var(--text); font-size: 14px; outline: none; transition: .2s; }
  .merch-search-wrap input:focus { border-color: var(--accent); }
  .sort-sel { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; color: var(--text); font-size: 13px; outline: none; }

  
  .view-toggle { display: flex; gap: 4px; }
  .view-btn { width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: .15s; }
  .view-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

  
  .result-meta { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
  .result-meta span { color: var(--text); font-weight: 700; }

  
  .prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
  .prod-grid.list-view { grid-template-columns: 1fr; }

  .prod-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
  }
  .prod-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); border-color: var(--border2); }

  
  .prod-grid.list-view .prod-card { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; }
  .prod-grid.list-view .prod-img { width: 80px; height: 80px; flex-shrink: 0; border-radius: 10px; margin-bottom: 0; }
  .prod-grid.list-view .prod-body { flex: 1; padding: 0; }
  .prod-grid.list-view .prod-actions { flex-direction: column; align-items: flex-end; margin-top: 0; }

  .prod-img-wrap { aspect-ratio: 1; background: linear-gradient(135deg, #1e293b, #334155); overflow: hidden; }
  .prod-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
  .prod-card:hover .prod-img-wrap img { transform: scale(1.05); }
  .prod-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 3.5rem; height: 100%; }

  
  .prod-badge-wrap { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; }
  .prod-badge { border-radius: 20px; padding: 3px 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .badge-new     { background: rgba(34,197,94,.2); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
  .badge-hot     { background: rgba(239,68,68,.2); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
  .badge-sale    { background: rgba(251,191,36,.2); color: #fbbf24; border: 1px solid rgba(251,191,36,.3); }
  .badge-limited { background: rgba(139,92,246,.2); color: #a78bfa; border: 1px solid rgba(139,92,246,.3); }

  
  .btn-wishlist {
    position: absolute; top: 10px; right: 10px;
    width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(4px);
    color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: .15s; z-index: 2;
  }
  .btn-wishlist.liked { color: #ef4444; }
  .btn-wishlist:hover { background: rgba(0,0,0,0.6); }

  
  .prod-body { padding: 16px; }
  .prod-cat { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 6px; }
  .prod-name { font-size: 15px; font-weight: 800; margin-bottom: 4px; line-height: 1.3; }
  .prod-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }

  
  .prod-sizes { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
  .size-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--border); border: 2px solid transparent; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #94a3b8; cursor: pointer; transition: .15s; }
  .size-dot:hover, .size-dot.selected { border-color: var(--accent); color: var(--accent); }

  
  .prod-colors { display: flex; gap: 5px; margin-bottom: 10px; }
  .color-dot { width: 18px; height: 18px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: .15s; }
  .color-dot:hover, .color-dot.selected { border-color: #fff; transform: scale(1.15); }

  
  .prod-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
  .prod-price-wrap {}
  .prod-price-old { font-size: 11px; color: var(--muted); text-decoration: line-through; }
  .prod-price { font-size: 18px; font-weight: 900; color: var(--text); }
  .prod-price.sale { color: #fbbf24; }
  .btn-add-cart {
    flex: 1; background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; border-radius: 10px; color: #fff; font-size: 13px; font-weight: 700;
    padding: 10px 14px; cursor: pointer; transition: .18s; white-space: nowrap;
  }
  .btn-add-cart:hover { opacity: .85; box-shadow: 0 0 18px rgba(99,102,241,0.4); }
  .btn-add-cart:active { transform: scale(.97); }

  
  .prod-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
  .stars { color: #fbbf24; font-size: 12px; }
  .rating-count { font-size: 11px; color: var(--muted); }

  
  .prod-stock { font-size: 11px; margin-bottom: 8px; }
  .stock-ok { color: var(--green); }
  .stock-low { color: #fbbf24; }
  .stock-out { color: #f87171; }

  
  .cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 900; backdrop-filter: blur(2px); }
  .cart-overlay.open { display: block; }
  .cart-panel {
    position: fixed; right: -420px; top: 0; width: 400px; height: 100vh;
    background: var(--surface); border-left: 1px solid var(--border); z-index: 901;
    display: flex; flex-direction: column; transition: right .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
  }
  .cart-panel.open { right: 0; }
  .cart-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
  .cart-header h3 { font-size: 16px; font-weight: 800; }
  .btn-close-cart { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
  .cart-items-list { flex: 1; overflow-y: auto; padding: 16px 24px; }
  .cart-item-row {
    display: flex; gap: 12px; align-items: center;
    background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px; margin-bottom: 10px;
  }
  .ci-img { width: 52px; height: 52px; border-radius: 8px; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
  .ci-img img { width: 100%; height: 100%; object-fit: cover; }
  .ci-info { flex: 1; min-width: 0; }
  .ci-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ci-variant { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .ci-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  .qty-btn { width: 24px; height: 24px; border-radius: 6px; background: var(--border); border: none; color: var(--text); font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .qty-num { font-size: 13px; font-weight: 700; min-width: 20px; text-align: center; }
  .ci-price-right { font-size: 14px; font-weight: 800; color: var(--accent2); flex-shrink: 0; }
  .ci-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; }
  .ci-remove:hover { color: #ef4444; }
  .cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
  .cart-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
  .cart-total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 900; color: var(--text); margin-bottom: 16px; border-top: 1px solid var(--border); padding-top: 12px; }
  .cart-total-row span:last-child { color: var(--accent2); }
  .btn-checkout-merch { width: 100%; background: linear-gradient(135deg,var(--accent),var(--accent2)); border: none; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 800; padding: 14px; cursor: pointer; transition: .2s; }
  .btn-checkout-merch:hover { opacity: .86; box-shadow: 0 0 20px rgba(99,102,241,0.4); }
  .cart-empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
  .cart-empty-state .icon { font-size: 48px; margin-bottom: 12px; }

  
  .fab-cart {
    position: fixed; bottom: 28px; right: 28px; z-index: 800;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    border: none; color: #fff; font-size: 22px; cursor: pointer;
    box-shadow: 0 8px 32px rgba(99,102,241,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s;
  }
  .fab-cart:hover { transform: scale(1.08); }
  .fab-badge {
    position: absolute; top: -2px; right: -2px;
    background: #ef4444; color: #fff; border-radius: 50%;
    width: 22px; height: 22px; font-size: 11px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
  }

  
  .toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(16px); background:var(--border); color:var(--text); padding:12px 24px; border-radius:50px; font-size:14px; opacity:0; transition:all .3s; z-index:9999; white-space:nowrap; max-width:calc(100vw - 32px); box-sizing:border-box; text-align:center; }
  .toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
  .toast.success { border:1px solid rgba(34,197,94,.5); color:var(--green); }
  @media(max-width:600px){
    .toast { white-space:normal; word-break:break-word; border-radius:16px; font-size:13px; padding:10px 18px; }
  }

  @media(max-width:900px) {
    .merch-hero { padding: 40px 20px 36px; }
    .merch-hero h1 { font-size: 28px; }
    .hero-promo { display: none; }
    .merch-body { flex-direction: column; padding: 24px 16px 80px; }
    .merch-sidebar { width: 100%; }
    .sidebar-card { display: flex; gap: 12px; flex-wrap: wrap; }
    .filter-list { flex-direction: row; flex-wrap: wrap; }
    .filter-list li button { white-space: nowrap; }
    .cart-panel { width: 100%; right: -100%; }

    
    .navbar { padding: 15px 20px !important; }
    .menu {
      position: absolute !important; top: 70px !important; right: 0 !important;
      background: #020617 !important; width: 220px !important;
      flex-direction: column !important; display: none !important;
      border-radius: 10px !important;
      border: 1px solid #1e293b !important;
      box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
      z-index: 9999 !important;
    }
    .menu.show { display: flex !important; }
    .menu li { padding: 14px 20px !important; border-bottom: 1px solid #1e293b !important; }
    .menu li:last-child { border-bottom: none !important; }
    .btn-action { display: none !important; }
    .hamburger { display: block !important; }
    .nav-akun-btn { display: none !important; }
  }
