@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@500&display=swap');

:root {
  /* Canvas & surfaces — porcelain, cool-bright */
  --bg:        #f3f6fc;
  --surface:   #ffffff;
  --border:    #e2e7f2;
  --border-soft: #ecf0f9;

  /* Text — ink navy, not flat black */
  --text:      #0d1526;
  --text-dim:  #5b6478;
  --text-faint:#94a0b8;

  /* Brand accent — "Verified Blue" (primary) */
  --accent:      #2f5fff;
  --accent-hover:#2347d9;
  --accent-soft: #eaf0ff;
  --accent-ring: rgba(47, 95, 255, 0.16);
  --accent-dark: #1b3aad;

  /* Secondary accent — "Pulse Pink", used sparingly in the signature gradient */
  --accent-2:    #ff3d77;
  --accent-2-soft: #ffe9f0;

  /* Bridge accent — used only inside the signature gradient */
  --accent-mid:  #8b5cf6;

  /* Signature gradient: Verified Blue -> Violet -> Pulse Pink */
  --gradient-signature: linear-gradient(120deg, var(--accent) 0%, var(--accent-mid) 55%, var(--accent-2) 100%);

  /* Status */
  --ok:      #0a7d47;
  --ok-bg:   #e8faf1;
  --ok-bd:   #a9edc7;
  --err:     #c8221b;
  --err-bg:  #fef1f0;
  --err-bd:  #f7bab6;

  /* Header-specific tokens */
  --header-h: 64px;
  --header-bg: #ffffff;
  --header-border: #eef0f3;
  --brand-grad: linear-gradient(135deg, #6d5efc, #e0399a);
  --text-dark: #1a1d29;
  --text-muted: #7a7f8c;

  --radius:  14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(13,21,38,0.04), 0 16px 36px -14px rgba(21,45,120,0.18);

  --font:       'Inter', -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --font-mono:  'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 12% -8%, rgba(47,95,255,0.10) 0%, transparent 60%),
    radial-gradient(760px 420px at 108% 8%, rgba(255,61,119,0.08) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }

/* ============================================================
   AUTH PAGES (login/register/forgot/active/reactive)
   ============================================================ */

/* body override only for auth pages — center the card */
body.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-shell {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.auth-side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 34px;
  background: var(--gradient-signature);
  color: #fff;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(360px 260px at 8% 100%, rgba(255,255,255,0.18) 0%, transparent 60%),
    radial-gradient(420px 300px at 100% 0%, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
}
.auth-side-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.auth-side-top .brand-mark { box-shadow: 0 4px 14px -2px rgba(0,0,0,0.25); }
.auth-side-top .brand-name { color: #fff; }
.auth-side-mid { position: relative; z-index: 1; margin-top: auto; margin-bottom: auto; padding: 30px 0; }
.auth-side-mid h2 { font-family: var(--font-display); font-size: 22px; line-height: 1.35; margin: 0 0 12px; letter-spacing: -0.01em; }
.auth-side-mid p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.86); margin: 0; max-width: 320px; }
.auth-side-points { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 11px; }
.auth-side-points div { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.94); }
.auth-side-points span.dot {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.auth-form-pane { display: flex; align-items: center; justify-content: center; padding: 40px 36px; }
.auth-shell .card {
  border: none; box-shadow: none; padding: 0; max-width: 340px; width: 100%;
}

/* ---------------- Card (standalone fallback, e.g. active.php / 404s) ---------------- */

.card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  margin: 24px auto;
}

/* ---------------- Brand mark ---------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: var(--gradient-signature);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 10px -2px var(--accent-ring);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ---------------- Headings ---------------- */

.card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}

.card .subtitle {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 26px;
}

/* ---------------- Form fields ---------------- */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  background: #f8faff;
  border: 1px solid #d7deec;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field input::placeholder { color: var(--text-faint); }

.field input:focus {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  min-height: 16px;
}
.field-hint.hint-ok  { color: var(--ok); }
.field-hint.hint-err { color: var(--err); }
.field-hint.hint-checking { color: var(--text-dim); }

/* ---------------- Button ---------------- */

.btn {
  position: relative;
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px -6px var(--accent-ring);
  transition: box-shadow .15s, transform .05s, filter .15s;
}
.btn:hover   { filter: brightness(1.06); box-shadow: 0 8px 20px -6px var(--accent-ring); }
.btn:active  { transform: translateY(1px); }
.btn:focus-visible { box-shadow: 0 0 0 4px var(--accent-ring); }

.btn .btn-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
.btn.is-loading { color: transparent; pointer-events: none; }
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------------- Links ---------------- */

.links {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}
.links a {
  color: var(--accent);
  font-weight: 500;
}
.links a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------------- Alerts ---------------- */

.alert {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-err { background: var(--err-bg); border-color: var(--err-bd); color: var(--err); }
.alert-ok  { background: var(--ok-bg);  border-color: var(--ok-bd);  color: var(--ok); }
.alert a   { color: inherit; text-decoration: underline; font-weight: 600; }

.g-recaptcha { margin-bottom: 20px; }

.center-text { text-align: center; }
.center-text .brand { justify-content: center; }

.mono { font-family: var(--font-mono); }

/* ---------------- Dashboard key-value rows (index.php) ---------------- */

.kv {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--text-dim); }
.kv span:last-child   { font-family: var(--font-mono); font-size: 13px; color: var(--text); }

/* ---------------- Toggle switch ---------------- */

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
}

.toggle-field-text { min-width: 0; }

.toggle-field-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.toggle-field-desc {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.toggle-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 25px;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.toggle-switch .toggle-track {
  position: absolute;
  inset: 0;
  background: #d0d5dd;
  border-radius: 999px;
  transition: background .18s ease;
}

.toggle-switch .toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .25);
  transition: transform .18s ease;
}

.toggle-switch input:checked ~ .toggle-track { background: var(--accent); }
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(19px); }

.toggle-switch input:focus-visible ~ .toggle-track {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.toggle-switch input:disabled ~ .toggle-track {
  opacity: .55;
  cursor: not-allowed;
}

/* ---------------- Legal notice (thay cho .trust-strip cũ) ---------------- */

.legal-notice {
  background: var(--err-bg);
  border: 1px solid var(--err-bd);
  border-left: 4px solid var(--err);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 14px 0;
  padding: 14px 18px;
}

.legal-notice-title {
  align-items: center;
  color: var(--err);
  display: flex;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 8px;
}

.legal-notice p { margin: 0 0 8px; }
.legal-notice p:last-of-type { margin-bottom: 0; }

.legal-notice-warn {
  color: var(--text);
  font-size: 13.5px;
}
.legal-notice-warn strong { color: var(--err); }

/* ============================================================
   SHOP HEADER
   ============================================================ */

.shop-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.shop-topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: var(--header-h);
}

.brand-logo-img { border-radius: 8px; }

/* ---------- Search ---------- */
.shop-search {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 460px;
}
.shop-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--header-border);
  background: #f6f7fb;
  border-radius: 20px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color .15s, background .15s;
}
.shop-search input:focus {
  border-color: var(--accent);
  background: #fff;
}
.shop-search input::placeholder { color: var(--text-muted); }

.shop-spacer { flex: 1 1 auto; display: none; }

/* ---------- Top links (tool, liên hệ, quản trị) ---------- */
.topbar-admin-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-dark);
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background .15s;
}
.topbar-admin-link:hover { background: #f2f2f7; }

/* ---------- Account menu ---------- */
.account-menu { position: relative; flex-shrink: 0; }

.account-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--header-border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  cursor: pointer;
  font-family: inherit;
}
.account-badge img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.acc-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.acc-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dark);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.acc-balance-inline {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.acc-caret {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 2px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--header-border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
  z-index: 200;
}
.account-menu.is-open .account-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.acc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid var(--header-border);
  margin-bottom: 6px;
}
.acc-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.acc-uname { font-size: 13.5px; font-weight: 700; color: var(--text-dark); }
.acc-email {
  font-size: 11.5px;
  color: var(--text-muted);
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7fb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.acc-balance span:last-child { color: var(--accent); font-weight: 700; font-size: 13.5px; }

.account-dropdown a,
.acc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  font-size: 13.5px;
  color: var(--text-dark);
  border-radius: 8px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.account-dropdown a:hover,
.acc-link:hover { background: #f6f7fb; }
.acc-logout { color: #e0333f; }

/* ---------- Guest links ---------- */
.guest-auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.guest-link {
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.guest-link-login { color: var(--text-dark); }
.guest-link-register {
  background: var(--brand-grad);
  color: #fff;
}

/* ---------- Category tabs ---------- */
.cat-tabs-wrap {
  border-top: 1px solid var(--header-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-tabs-wrap::-webkit-scrollbar { display: none; }

.cat-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 16px;
  white-space: nowrap;
}
.cat-tab {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 16px;
  transition: background .15s, color .15s;
}
.cat-tab:hover { background: #f6f7fb; color: var(--text-dark); }
.cat-tab.active { background: var(--accent); color: #fff; }

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* ---- Header ---- */
  .shop-topbar-inner {
    flex-wrap: wrap;
    padding: 8px 10px;
    gap: 8px;
  }

  .brand-name { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }

  .topbar-admin-link span { display: none; }
  .topbar-admin-link { padding: 6px; font-size: 16px; }

  .shop-search {
    order: 3;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .shop-search input { height: 36px; font-size: 13px; }

  .shop-spacer { display: none; }

  .acc-text { display: none; }
  .account-badge { padding: 2px; border: none; background: transparent; }
  .account-badge img { width: 32px; height: 32px; }
  .acc-caret { display: none; }

  .account-dropdown {
    right: -8px;
    min-width: 220px;
  }

  .guest-link {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .cat-tabs { padding: 6px 10px; gap: 3px; }
  .cat-tab { font-size: 12.5px; padding: 5px 12px; }

  .toggle-field { flex-wrap: wrap; }

  /* ---- Shop wrap / breadcrumb ---- */
  .shop-wrap { padding: 12px !important; }

  .pd-breadcrumb {
    font-size: 13px;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin-bottom: 10px;
  }
  .pd-breadcrumb::-webkit-scrollbar { display: none; }

  /* ---- Hero banner ---- */
  .shop-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 14px;
  }
  .shop-hero-main h1 { font-size: 20px; line-height: 1.3; }
  .shop-hero-main p { font-size: 13px; }
  .shop-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
  }
  .shop-hero-stat {
    text-align: center;
    padding: 10px 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
  }
  .shop-hero-stat b { font-size: 15px; display: block; }
  .shop-hero-stat span { font-size: 11px; opacity: 0.8; }
  .shop-hero-cta {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  /* ---- Legal notice: thu gọn trên mobile, KHÔNG ẩn ---- */
  .legal-notice {
    font-size: 12.5px;
    padding: 12px 14px;
    margin: 10px 0;
  }
  .legal-notice-title { font-size: 13px; }
  .legal-notice-warn { font-size: 12.5px; }

  /* ---- Heading khu vực sản phẩm ---- */
  .shop-heading h1 { font-size: 18px; }
  .shop-heading p { font-size: 13px; }

  /* ---- Panel + head (số lượng / trang) ---- */
  .products-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 10px;
  }
  .products-count { font-size: 12.5px; }
  .products-page-indicator { font-size: 12px; }

  /* ---- Grid sản phẩm: 3 cột trên điện thoại ---- */
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .product-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 8px;
    overflow: hidden;
  }
  .product-card .thumb {
    aspect-ratio: 1 / 1;
    width: 100% !important;
    height: auto !important;
  }
  .product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .no-img { font-size: 18px; }
  .stock-flag {
    font-size: 8.5px;
    padding: 1.5px 5px;
    top: 4px;
    right: 4px;
    border-radius: 4px;
  }
  .product-card .body { padding: 6px; gap: 1px; }
  .cat-name { font-size: 9px; }
  .p-name {
    font-size: 11.5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .p-price { font-size: 12.5px; font-weight: 700; }
  .p-price-contact { font-size: 11.5px; }
  .from { font-size: 9.5px; margin-right: 1px; }

  /* ---- Empty state ---- */
  .empty-shop { padding: 40px 16px; }
  .empty-shop .e-icon { font-size: 36px; }
  .empty-shop p { font-size: 13.5px; }

  /* ---- Pagination ---- */
  .pagination {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 18px;
  }
  .page-link { min-width: 34px; height: 34px; font-size: 13px; padding: 0 8px; }
  .page-nav { min-width: 34px; }
  .page-ellipsis { padding: 0 2px; }

  /* ---- Auth shell ---- */
  .auth-shell { grid-template-columns: 1fr; max-width: 420px; }
  .auth-side { display: none; }
  .auth-form-pane { padding: 32px 26px; }
}

/* ============================================================
   RESPONSIVE — MÀN HÌNH RẤT NHỎ (≤380px)
   ============================================================ */
@media (max-width: 380px) {
  .brand-name { display: none; }
  .topbar-admin-link:nth-of-type(1),
  .topbar-admin-link:nth-of-type(2) { padding: 4px; }

  .product-grid { gap: 5px; }
  .shop-hero-main h1 { font-size: 18px; }
  .product-card .body { padding: 5px; }
  .p-name { font-size: 11px; }
  .p-price { font-size: 11.5px; }
}

/* ============================================================
   RESPONSIVE — TABLET NHỎ (481px – 768px)
   ============================================================ */
@media (min-width: 481px) and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}