/* ── Design system ────────────────────────────────────────────────── */
    :root {
      --brand:        #005F73;
      --brand-dark:   #003F4E;
      --brand-mid:    #0A9396;
      --brand-light:  #E8F5F7;
      --brand-border: #B2D8DF;
      --accent:       #CA6702;
      --accent-bg:    #FFF3E0;
      --dark:         #1A202C;
      --text:         #2D3748;
      --muted:        #718096;
      --border:       #E2E8F0;
      --surface:      #F7FAFC;
      --white:        #FFFFFF;
      --success:      #276749;
      --danger:       #C53030;
      --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
      --shadow:       0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
      --shadow-lg:    0 10px 40px rgba(0,0,0,.11), 0 4px 10px rgba(0,0,0,.06);
      --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-full: 999px;
      --t: .2s ease;
    }

    /* ── Base ─────────────────────────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; }
    body {
      font-family: 'Inter', system-ui, sans-serif;
      background: var(--surface);
      color: var(--text);
      font-size: 15px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; }
    img { max-width: 100%; }

    /* ── Topbar ───────────────────────────────────────────────────────── */
    .topbar {
      background: var(--brand-dark);
      color: rgba(255,255,255,.75);
      font-size: 12.5px;
      padding: 7px 0;
      letter-spacing: .01em;
    }
    .topbar a { color: rgba(255,255,255,.85); text-decoration: none; transition: color var(--t); }
    .topbar a:hover { color: #fff; }
    .topbar .sep { opacity: .35; margin: 0 10px; }

    /* ── Navbar ───────────────────────────────────────────────────────── */
    .site-nav {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      position: sticky; top: 0; z-index: 1000;
      transition: box-shadow var(--t);
    }
    .site-nav.scrolled { box-shadow: var(--shadow); }
    .navbar-brand {
      display: flex; align-items: center; gap: 10px;
      font-weight: 800; font-size: 1.15rem;
      color: var(--brand) !important; text-decoration: none;
      letter-spacing: -.01em;
    }
    .navbar-brand .brand-icon {
      width: 36px; height: 36px; border-radius: 10px;
      background: var(--brand); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; flex-shrink: 0;
    }
    .navbar-brand .brand-sub {
      font-size: 10.5px; font-weight: 500; color: var(--muted);
      display: block; line-height: 1; margin-top: 2px; letter-spacing: .02em;
    }

    /* Mobile header: logo left, menu top-right — avoid toggler drifting to the middle */
    @media (max-width: 991.98px) {
      .site-nav > .container.d-flex {
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: flex-start;
      }
      .site-nav .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0 !important;
      }
      .site-nav .navbar-brand > div:last-child {
        max-width: 100%;
      }
      .site-nav .navbar-toggler.d-lg-none {
        flex-shrink: 0;
        align-self: flex-start;
        margin-left: auto;
      }
    }
    .nav-link {
      font-weight: 500; font-size: 14px;
      color: var(--text) !important; padding: 8px 14px !important;
      border-radius: var(--r-sm); transition: background var(--t), color var(--t);
    }
    .nav-link:hover { background: var(--surface); color: var(--brand) !important; }
    .nav-link.active { color: var(--brand) !important; background: var(--brand-light); }

    /* Search form in navbar */
    .nav-search { max-width: 360px; width: 100%; }
    .nav-search .form-control {
      border-color: var(--border); border-radius: var(--r-full) 0 0 var(--r-full);
      font-size: 14px; background: var(--surface);
      padding-left: 18px;
    }
    .nav-search .form-control:focus {
      border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,95,115,.12);
    }
    .nav-search .btn {
      background: var(--brand); color: #fff;
      border: none; border-radius: 0 var(--r-full) var(--r-full) 0;
      padding: 8px 18px;
    }
    .nav-search .btn:hover { background: var(--brand-mid); }

    /* ── Buttons ──────────────────────────────────────────────────────── */
    .btn-brand {
      background: var(--brand); color: #fff; border: none;
      font-weight: 600; border-radius: var(--r-full);
      transition: background var(--t), transform var(--t), box-shadow var(--t);
    }
    .btn-brand:hover {
      background: var(--brand-mid); color: #fff;
      transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,95,115,.3);
    }
    .btn-accent {
      background: var(--accent); color: #fff; border: none;
      font-weight: 600; border-radius: var(--r-full);
      transition: background var(--t), transform var(--t);
    }
    .btn-accent:hover { background: #a85600; color: #fff; transform: translateY(-1px); }
    .btn-outline-brand {
      background: transparent; color: var(--brand);
      border: 1.5px solid var(--brand); font-weight: 600; border-radius: var(--r-full);
      transition: all var(--t);
    }
    .btn-outline-brand:hover { background: var(--brand); color: #fff; }

    /* ── Product card ─────────────────────────────────────────────────── */
    .pcard {
      background: var(--white); border-radius: var(--r);
      box-shadow: var(--shadow-sm); overflow: hidden;
      display: flex; flex-direction: column;
      transition: box-shadow var(--t), transform var(--t);
      height: 100%; border: 1px solid transparent;
    }
    .pcard:hover {
      box-shadow: var(--shadow-lg); transform: translateY(-4px);
      border-color: var(--brand-border);
    }
    .pcard-img {
      height: 196px; background: var(--surface);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden; position: relative;
    }
    .pcard-img img {
      max-height: 180px; max-width: 100%;
      object-fit: contain; padding: 12px;
      transition: transform .35s ease;
    }
    .pcard:hover .pcard-img img { transform: scale(1.07); }
    .pcard-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
    .pcard-title {
      font-size: .875rem; font-weight: 600; color: var(--dark);
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden; min-height: 2.75em; line-height: 1.4; margin-bottom: 6px;
    }
    .pcard-summary {
      font-size: .75rem; color: var(--muted); line-height: 1.45;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden; flex: 1; margin-bottom: 8px;
    }
    .pcard-price {
      font-size: .95rem; font-weight: 700; color: var(--accent);
      letter-spacing: -.01em;
    }
    .pcard-footer {
      padding: 10px 14px;
      border-top: 1px solid var(--border);
    }
    .pcard-btn {
      display: block; width: 100%; text-align: center;
      padding: 8px; font-size: .82rem; font-weight: 600;
      border-radius: var(--r-full); text-decoration: none;
      background: var(--brand-light); color: var(--brand);
      border: 1.5px solid var(--brand-border);
      transition: background var(--t), color var(--t), border-color var(--t);
    }
    .pcard:hover .pcard-btn {
      background: var(--brand); color: #fff; border-color: var(--brand);
    }

    /* ── Category card ────────────────────────────────────────────────── */
    .cat-card {
      background: var(--white); border-radius: var(--r);
      box-shadow: var(--shadow-sm); padding: 24px 16px;
      text-align: center; text-decoration: none; color: var(--text);
      display: flex; flex-direction: column; align-items: center; gap: 12px;
      border: 1px solid var(--border);
      transition: all var(--t);
    }
    .cat-card:hover {
      border-color: var(--brand); box-shadow: var(--shadow);
      transform: translateY(-3px); color: var(--brand);
    }
    .cat-card .cat-icon {
      width: 56px; height: 56px; border-radius: 16px;
      background: var(--brand-light); color: var(--brand);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; transition: background var(--t), color var(--t);
    }
    .cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
    .cat-card .cat-name { font-weight: 600; font-size: .875rem; line-height: 1.35; }
    .cat-card .cat-cnt { font-size: .75rem; color: var(--muted); }

    /* ── Sidebar ──────────────────────────────────────────────────────── */
    .sidebar { position: sticky; top: 84px; }
    .sidebar-card {
      background: var(--white); border-radius: var(--r);
      border: 1px solid var(--border); overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .sidebar-title {
      font-size: .75rem; font-weight: 700; color: var(--muted);
      text-transform: uppercase; letter-spacing: .07em;
      padding: 14px 16px 10px; border-bottom: 1px solid var(--border);
    }
    .sidebar-link {
      display: flex; align-items: center; justify-content: space-between;
      padding: 9px 16px; font-size: .875rem; font-weight: 500;
      text-decoration: none; color: var(--text);
      border-bottom: 1px solid var(--border);
      transition: background var(--t), color var(--t);
    }
    .sidebar-link:last-child { border-bottom: none; }
    .sidebar-link:hover { background: var(--surface); color: var(--brand); }
    .sidebar-link.active {
      background: var(--brand-light); color: var(--brand);
      font-weight: 600; border-left: 3px solid var(--brand);
    }
    .sidebar-link .cnt {
      font-size: .72rem; background: var(--surface);
      color: var(--muted); padding: 2px 7px; border-radius: var(--r-full);
      border: 1px solid var(--border); font-weight: 500;
    }
    .sidebar-link.active .cnt { background: var(--brand); color: #fff; border-color: transparent; }

    /* ── Pagination ───────────────────────────────────────────────────── */
    .page-link {
      color: var(--brand); border-color: var(--border); border-radius: var(--r-sm) !important;
      font-weight: 500; font-size: .875rem; padding: 6px 13px;
    }
    .page-link:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand-border); }
    .page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
    .page-item.disabled .page-link { color: var(--muted); }

    /* ── Section titles ───────────────────────────────────────────────── */
    .section-label {
      font-size: .7rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: .1em; color: var(--brand); margin-bottom: 6px;
    }
    .section-title {
      font-size: 1.6rem; font-weight: 800; color: var(--dark);
      letter-spacing: -.02em; line-height: 1.2;
    }

    /* ── Trust strip ─────────────────────────────────────────────────── */
    .trust-item {
      display: flex; align-items: center; gap: 12px;
    }
    .trust-icon {
      width: 44px; height: 44px; border-radius: 12px;
      background: var(--brand-light); color: var(--brand);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; flex-shrink: 0;
    }

    /* ── Product detail ───────────────────────────────────────────────── */
    .gallery-main {
      border-radius: var(--r); overflow: hidden;
      background: var(--surface);
      display: flex; align-items: center; justify-content: center;
      height: 360px; position: relative;
    }
    .gallery-main img {
      max-height: 340px; max-width: 100%;
      object-fit: contain; padding: 16px;
      transition: opacity .18s ease;
    }
    .gallery-thumb {
      width: 72px; height: 72px; border-radius: var(--r-sm);
      border: 2px solid var(--border); cursor: pointer;
      background: var(--surface); object-fit: contain; padding: 4px;
      transition: border-color var(--t), transform var(--t);
      flex-shrink: 0;
    }
    .gallery-thumb:hover { border-color: var(--brand-mid); }
    .gallery-thumb.active { border-color: var(--brand); transform: scale(1.05); }

    /* Spec table */
    .spec-table td:first-child {
      color: var(--muted); font-weight: 500; width: 44%;
      padding: 7px 10px; vertical-align: top; font-size: .875rem;
    }
    .spec-table td:last-child {
      font-weight: 600; color: var(--dark);
      padding: 7px 10px; font-size: .875rem;
    }

    /* ── Tag badge ────────────────────────────────────────────────────── */
    .tag-badge {
      display: inline-block; font-size: .72rem; font-weight: 500;
      background: var(--surface); color: var(--muted);
      border: 1px solid var(--border); border-radius: var(--r-full);
      padding: 3px 10px; text-decoration: none;
      transition: all var(--t);
    }
    .tag-badge:hover { background: var(--brand-light); color: var(--brand); border-color: var(--brand-border); }

    /* ── WhatsApp FAB ─────────────────────────────────────────────────── */
    .whatsapp-fab {
      position: fixed; bottom: 28px; right: 28px; z-index: 9999;
      width: 56px; height: 56px; border-radius: 50%;
      background: #25D366; color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,.4);
      text-decoration: none;
      transition: transform var(--t), box-shadow var(--t);
    }
    .whatsapp-fab:hover {
      transform: scale(1.1); color: #fff;
      box-shadow: 0 6px 28px rgba(37,211,102,.55);
    }

    /* ── Footer ───────────────────────────────────────────────────────── */
    .site-footer {
      background: var(--dark); color: rgba(255,255,255,.6);
      font-size: 14px;
    }
    .site-footer .footer-brand {
      font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 8px;
    }
    .site-footer h6 {
      color: rgba(255,255,255,.9); font-weight: 700;
      font-size: .8rem; text-transform: uppercase; letter-spacing: .07em;
      margin-bottom: 14px;
    }
    .site-footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color var(--t); }
    .site-footer a:hover { color: #fff; }
    .site-footer ul { list-style: none; padding: 0; margin: 0; }
    .site-footer ul li { margin-bottom: 8px; }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,.1);
      padding: 14px 0;
      font-size: 12.5px; color: rgba(255,255,255,.35);
    }

    /* ── Toast ────────────────────────────────────────────────────────── */
    #cart-toast { position: fixed; bottom: 100px; right: 28px; z-index: 9998; min-width: 260px; }

    /* ── Empty state ──────────────────────────────────────────────────── */
    .empty-state { padding: 64px 0; text-align: center; color: var(--muted); }
    .empty-state .icon { font-size: 3rem; opacity: .25; margin-bottom: 16px; }

    /* ── Utility ──────────────────────────────────────────────────────── */
    .text-brand  { color: var(--brand) !important; }
    .text-accent { color: var(--accent) !important; }
    .bg-brand    { background: var(--brand) !important; }
    .bg-surface  { background: var(--surface) !important; }
    .rounded-brand { border-radius: var(--r) !important; }

    /* ── Responsive tweaks ───────────────────────────────────────────── */
    @media (max-width: 768px) {
      .section-title { font-size: 1.3rem; }
      .gallery-main { height: 260px; }
      .sidebar { position: static; }
      .whatsapp-fab { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.4rem; }
    }
