/* ═══════════════════════════════════════════════════════════════
   KUNCUP STORE — index.css
   Modern Dark/Light Home Page Stylesheet
   ═══════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

    :root {
      --bg: #FAFAF9;
      --surface: #FFFFFF;
      --surface-2: #F4F4F2;
      --ink: #0A0A0A;
      --ink-2: #525252;
      --ink-3: #A3A3A3;
      --border: #E5E5E5;
      --border-hover: #D4D4D4;
      --accent: #8B1DEB;
      --accent-2: #6D12BF;
      --accent-glow: rgba(139, 29, 235, 0.12);
      --accent-light: #F5EFFE;
      --red-badge: #BE123C;
      --green-badge: #065F46;
      --orange-badge: #C2410C;
      --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
      --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.07);
      --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.1);
      --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.14);
      --r-sm: 10px;
      --r-md: 14px;
      --r-lg: 20px;
      --r-xl: 28px;
    }

    body.dark {
      --bg: #0A0A0A;
      --surface: #141414;
      --surface-2: #1C1C1C;
      --ink: #FAFAF9;
      --ink-2: #A3A3A3;
      --ink-3: #525252;
      --border: #262626;
      --border-hover: #333333;
      --accent-glow: rgba(139, 29, 235, 0.2);
      --accent-light: #1A0B2E;
      --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
      --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
      --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.6);
      --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.7);
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: "Inter", sans-serif;
      background: var(--bg);
      color: var(--ink);
      overflow-x: hidden;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.3s, color 0.3s;
    }

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

    button {
      border: none;
      background: none;
      font-family: inherit;
      cursor: pointer;
    }

    /* ── Layout Container ── */
    .container {
      max-width: 680px;
      margin: 0 auto;
      min-height: 100vh;
    }

    /* ── TOPNAV ── */
    .topnav {
      position: sticky;
      top: 0;
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      height: 58px;
      background: rgba(250, 250, 249, 0.88);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      transition: background 0.3s, border-color 0.3s;
    }

    body.dark .topnav {
      background: rgba(10, 10, 10, 0.88);
    }

    .topnav-brand {
      display: flex;
      align-items: center;
      gap: 9px;
      text-decoration: none;
    }

    .brand-logo-img {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      object-fit: cover;
    }

    .brand-name {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -0.4px;
      color: var(--ink);
    }

    .topnav-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .icon-btn {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--ink-2);
      transition: background 0.18s, color 0.18s, transform 0.2s;
    }

    .icon-btn:hover {
      background: var(--surface-2);
      color: var(--ink);
      transform: scale(1.08);
    }

    /* ── HERO IMAGE BANNER ── */
    /*
     * UKURAN DESAIN BANNER:
     * ─────────────────────────────────
     *   Lebar  : 1200 px
     *   Tinggi :  500 px
     *   Rasio  :  12 : 5  (2.4 : 1)
     * ─────────────────────────────────
     * Format  : JPG / PNG / WebP
     * Simpan di: ./img/banners/
     */
    .hero-wrap {
      margin: 14px 16px;
      border-radius: var(--r-xl);
      overflow: hidden;
      position: relative;
      background: var(--surface-2);
      box-shadow: var(--shadow-sm);
    }

    .hero-slider {
      display: flex;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hero-slide {
      min-width: 100%;
      position: relative;
      /* Fixed aspect ratio 12:5 (1200x500) */
      aspect-ratio: 12 / 5;
    }

    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-controls {
      position: absolute;
      bottom: 12px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      z-index: 5;
    }

    .hero-dot {
      width: 7px;
      height: 7px;
      border-radius: 100px;
      background: rgba(255, 255, 255, 0.4);
      cursor: pointer;
      transition: all 0.3s;
      border: none;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .hero-dot.active {
      width: 24px;
      background: rgba(255, 255, 255, 0.95);
    }

    /* ── STATS STRIP ── */
    .stats-strip {
      margin: 0 16px 16px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-md);
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      gap: 2px;
      box-shadow: var(--shadow-xs);
      transition: transform 0.18s, border-color 0.18s;
    }

    .stat-card:hover {
      transform: translateY(-2px);
      border-color: var(--accent);
    }

    .stat-value {
      font-size: 17px;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: -0.4px;
    }

    .stat-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--ink-3);
    }

    /* ── BRAND QUICK PICK ── */
    .section {
      padding: 0 16px;
      margin-bottom: 20px;
    }

    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .section-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: -0.3px;
    }

    .section-link {
      font-size: 12.5px;
      font-weight: 700;
      color: var(--accent);
      display: flex;
      align-items: center;
      gap: 2px;
    }

    .brand-row {
      display: flex;
      gap: 10px;
    }

    .brand-chip {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 10px 12px;
      background: var(--surface);
      border: 1.5px solid var(--border);
      border-radius: var(--r-md);
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .brand-chip:hover,
    .brand-chip.active {
      border-color: var(--accent);
      background: var(--accent-light);
      box-shadow: 0 0 0 3px var(--accent-glow);
    }

    .brand-chip-logo {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      overflow: hidden;
      background: var(--surface-2);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .brand-chip-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .brand-chip-label {
      font-size: 12px;
      font-weight: 700;
      color: var(--ink);
      white-space: nowrap;
    }

    /* ── TRACK CARDS ── */
    .brand-blocks {
      display: flex;
      flex-direction: column;
      gap: 18px;
      padding: 0 16px 32px;
    }

    .brand-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--r-xl);
      padding: 20px 18px 22px;
      box-shadow: var(--shadow-xs);
      transition: box-shadow 0.2s;
    }

    .brand-block:hover {
      box-shadow: var(--shadow-sm);
    }

    .block-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }

    .block-brand-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .block-brand-logo {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      overflow: hidden;
      background: var(--surface-2);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow-xs);
      flex-shrink: 0;
    }

    .block-brand-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .block-brand-name {
      font-size: 16.5px;
      font-weight: 800;
      color: var(--ink);
      letter-spacing: -0.3px;
    }

    .block-brand-desc {
      font-size: 12px;
      color: var(--ink-3);
      margin-top: 2px;
      font-weight: 500;
    }

    .btn-see-all {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 12.5px;
      font-weight: 700;
      color: var(--accent);
      padding: 6px 14px;
      border: 1.5px solid var(--accent);
      border-radius: 100px;
      transition: all 0.2s;
      white-space: nowrap;
    }

    .btn-see-all:hover {
      background: var(--accent);
      color: #FFFFFF;
    }

    /* Track */
    .track-wrap {
      position: relative;
    }

    .track {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
      padding: 4px 2px 6px;
    }

    .track::-webkit-scrollbar {
      display: none;
    }

    .track-nav {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--ink);
      box-shadow: var(--shadow-sm);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10;
      cursor: pointer;
      transition: all 0.2s;
    }

    .track-nav:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-50%) scale(1.08);
    }

    .track-nav.prev {
      left: -10px;
    }

    .track-nav.next {
      right: -10px;
    }

    /* Product Card */
    .prod-card {
      flex: 0 0 175px;
      background: var(--surface-2);
      border-radius: var(--r-lg);
      border: 1px solid var(--border);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      text-decoration: none;
    }

    .prod-card:hover {
      transform: translateY(-4px);
      border-color: var(--accent);
      box-shadow: var(--shadow-md);
    }

    .prod-img-wrap {
      width: 100%;
      height: 130px;
      position: relative;
      background: var(--surface);
      overflow: hidden;
    }

    .prod-img-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }

    .prod-card:hover .prod-img-wrap img {
      transform: scale(1.06);
    }

    .prod-badge {
      position: absolute;
      bottom: 7px;
      left: 7px;
      font-size: 9.5px;
      font-weight: 800;
      padding: 2.5px 7px;
      border-radius: 6px;
      color: #FFFFFF;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .badge-kopken {
      background: #8B1220;
    }

    .badge-tomoro {
      background: #C25A00;
    }

    .badge-fore {
      background: #065F46;
    }

    .prod-body {
      padding: 11px 12px 13px;
      display: flex;
      flex-direction: column;
      gap: 3px;
      flex: 1;
    }

    .prod-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .prod-cat {
      font-size: 11px;
      color: var(--ink-3);
      font-weight: 500;
    }

    .prod-price {
      font-size: 15px;
      font-weight: 800;
      color: var(--accent);
      margin-top: 4px;
      letter-spacing: -0.3px;
    }

    .prod-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 6px;
      font-size: 10.5px;
      color: var(--ink-3);
    }

    .prod-rating {
      display: flex;
      align-items: center;
      gap: 3px;
      font-weight: 700;
      color: #D97706;
    }

    /* ── CTA STRIP ── */
    .cta-strip {
      margin: 0 16px 20px;
      background: linear-gradient(135deg, #4A0080 0%, #1A0040 100%);
      border-radius: var(--r-lg);
      padding: 20px 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      overflow: hidden;
      position: relative;
    }

    .cta-strip::before {
      content: '';
      position: absolute;
      top: -30px;
      right: -30px;
      width: 130px;
      height: 130px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.05);
    }

    .cta-text {
      flex: 1;
    }

    .cta-text h3 {
      font-size: 16px;
      font-weight: 800;
      color: #FFFFFF;
      margin-bottom: 3px;
      letter-spacing: -0.3px;
    }

    .cta-text p {
      font-size: 12.5px;
      color: rgba(255, 255, 255, 0.65);
      font-weight: 500;
    }

    .cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 9px 16px;
      background: #FFFFFF;
      color: #1A0040;
      font-size: 12.5px;
      font-weight: 800;
      border-radius: 100px;
      flex-shrink: 0;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
    }

    .cta-btn:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    /* ── DRAWER ── */
    .drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 998;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.28s, visibility 0.28s;
    }

    .drawer-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .drawer {
      position: fixed;
      top: 0;
      left: 0;
      width: 268px;
      height: 100%;
      background: var(--surface);
      z-index: 999;
      transform: translateX(-100%);
      transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-lg);
    }

    .drawer.open {
      transform: translateX(0);
    }

    .drawer-top {
      padding: 20px 18px 14px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .drawer-nav {
      padding: 12px 10px;
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .drawer-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 10px;
      font-size: 14px;
      font-weight: 600;
      color: var(--ink-2);
      transition: all 0.18s;
      cursor: pointer;
    }

    .drawer-link:hover,
    .drawer-link.active {
      background: var(--accent-light);
      color: var(--accent);
    }

    .drawer-link svg {
      flex-shrink: 0;
      opacity: 0.7;
    }

    .drawer-link.active svg,
    .drawer-link:hover svg {
      opacity: 1;
    }

    .drawer-link img {
      width: 17px;
      height: 17px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      border: 1px solid var(--border);
    }

    .drawer-sep {
      height: 1px;
      background: var(--border);
      margin: 6px 12px;
    }

    .drawer-foot {
      padding: 16px 20px;
      border-top: 1px solid var(--border);
      font-size: 11.5px;
      color: var(--ink-3);
    }

    /* ── FLOATING WA BTN ── */
    .wa-float {
      position: fixed;
      bottom: 22px;
      right: 20px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: #25D366;
      color: #FFFFFF;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
      z-index: 300;
      transition: transform 0.25s, box-shadow 0.25s;
    }

    .wa-float:hover {
      transform: scale(1.1);
      box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
    }

    /* ── RESPONSIVE ── */
    @media (min-width: 1024px) {
      .container {
        max-width: 100%;
      }

      .hero-wrap,
      .stats-strip,
      .section,
      .brand-blocks,
      .cta-strip {
        max-width: 1100px !important;
        margin-left: auto !important;
        margin-right: auto !important;
      }

      .hero-wrap {
        margin-top: 20px;
        margin-bottom: 0;
        border-radius: 28px;
      }

      .stats-strip {
        margin-top: 16px;
      }

      .prod-card {
        flex: 0 0 210px;
      }

      .prod-img-wrap {
        height: 148px;
      }

      .topnav {
        padding: 0 48px;
      }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
      .prod-card {
        flex: 0 0 190px;
      }
    }

    /* ── ANIMATIONS ── */
    @keyframes fadeUp {
      from {
        opacity: 0;
        transform: translateY(16px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-wrap {
      animation: fadeUp 0.55s ease both;
    }

    .stats-strip {
      animation: fadeUp 0.65s ease 0.08s both;
    }

    .section {
      animation: fadeUp 0.65s ease 0.12s both;
    }

    .brand-blocks {
      animation: fadeUp 0.65s ease 0.16s both;
    }

    /* ── HELP/CS MODAL ── */
    .help-modal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s, visibility 0.25s;
    }

    .help-modal.active {
      opacity: 1;
      visibility: visible;
    }

    .help-modal-content {
      width: 100%;
      max-width: 440px;
      background: var(--surface);
      border-radius: var(--r-lg);
      padding: 22px 20px 20px;
      position: relative;
      box-shadow: var(--shadow-lg);
      max-height: 90vh;
      overflow-y: auto;
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
    }

    .help-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .help-modal-title {
      font-size: 15px;
      font-weight: 800;
      color: var(--ink);
    }

    .help-modal-close {
      font-size: 22px;
      color: var(--ink-3);
      background: transparent;
      border: none;
      cursor: pointer;
    }

    .help-modal-body {
      font-size: 12px;
      color: var(--ink-2);
      line-height: 1.6;
    }

    .cs-section {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .cs-section-label {
      font-size: 11.5px;
      font-weight: 700;
      color: var(--ink);
    }

    .cs-admin-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 8px;
    }

    .cs-admin-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 10px 4px;
      border-radius: 12px;
      border: 1.5px solid var(--border);
      background: var(--surface-2);
      cursor: pointer;
      transition: all 0.2s ease;
      position: relative;
      user-select: none;
    }

    .cs-admin-card input[type="radio"] {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .cs-admin-card.active,
    .cs-admin-card:has(input:checked) {
      border-color: #25D366;
      background: rgba(37, 211, 102, 0.08);
      box-shadow: 0 0 0 1px #25D366;
    }

    .cs-admin-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: linear-gradient(135deg, #25D366, #128C7E);
      color: #fff;
      font-weight: 800;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 6px;
      box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
    }

    .cs-admin-info {
      display: flex;
      flex-direction: column;
      gap: 1px;
    }

    .cs-admin-name {
      font-size: 12px;
      font-weight: 800;
      color: var(--ink);
    }

    .cs-category-select {
      width: 100%;
      padding: 10px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--ink);
      font-size: 12px;
      font-weight: 600;
      outline: none;
      font-family: inherit;
      cursor: pointer;
    }

    .cs-note-input {
      width: 100%;
      height: 60px;
      padding: 8px 12px;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: var(--surface-2);
      color: var(--ink);
      font-size: 12px;
      outline: none;
      resize: none;
      font-family: inherit;
    }

    .cs-submit-wa-btn {
      width: 100%;
      height: 44px;
      margin-top: 16px;
      background: #25D366;
      color: #ffffff;
      border-radius: var(--r-md);
      font-weight: 800;
      font-size: 13.5px;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: opacity 0.2s, transform 0.1s;
      box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    }

    .cs-submit-wa-btn:hover {
      opacity: 0.92;
    }

    .cs-submit-wa-btn:active {
      transform: scale(0.98);
    }
