/* =========================================================================
   Jersey Chemicals — Shared Store Styles (Premium)
   Design system: Inter font, Minimalist palette
   #0474ac deep pool | #9ad5e7 light pool | #127782 teal | #2cc3c3 aqua | #0592cd bright blue
   ========================================================================= */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0474ac;
  --primary-hover: #035e8a;
  --primary-glow: rgba(4, 116, 172, 0.2);
  --secondary: #127782;
  --accent: #9ad5e7;
  --accent-strong: #2cc3c3;
  --accent-shimmer: linear-gradient(135deg, #9ad5e7, #2cc3c3, #0592cd);
  --gold: #0592cd;
  --gold-light: #9ad5e7;
  --dark: #0a1628;
  --dark-lighter: #112240;
  --dark-gradient: linear-gradient(135deg, #0a1628, #0d2137, #061220);
  --bg: #f0f8fb;
  --white: #ffffff;
  --cream: #e8f4f8;
  --border: #c8e3ed;
  --border-focus: #0474ac;
  --text-primary: #0a1628;
  --text-secondary: #3a5a6e;
  --text-light: #6e99ab;
  --success: #2d7a3a;
  --danger: #b82e2e;
  --warning: #c4a820;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(4,116,172,0.06), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px -2px rgba(4,116,172,0.08), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 28px -6px rgba(4,116,172,0.1), 0 4px 8px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 24px 48px -12px rgba(4,116,172,0.14), 0 8px 16px -8px rgba(0,0,0,0.06);
  --glow-primary: 0 0 20px rgba(4, 116, 172, 0.15), 0 0 40px rgba(4, 116, 172, 0.05);
  --glow-accent: 0 0 20px rgba(154, 213, 231, 0.25), 0 0 40px rgba(44, 195, 195, 0.1);

  /* ---- Typography tokens (1.125x modular scale anchored at 1rem) ----
     Reference these rather than hardcoding sizes, so future copy changes
     stay consistent with the rest of the site. Not every existing
     declaration has been migrated yet — introduced in the B1 audit. */
  --fs-xs: 0.75rem;      /* 12px — metadata, timestamps, footer copyright */
  --fs-sm: 0.875rem;     /* 14px — small text, form labels */
  --fs-base: 0.9375rem;  /* 15px — body paragraphs site-wide */
  --fs-md: 1.0625rem;    /* 17px — hero subtitles, lead text */
  --fs-lg: 1.125rem;     /* 18px — component headings (cards, sidebars) */
  --fs-xl: 1.25rem;      /* 20px — small section headings */
  --fs-2xl: 1.5rem;      /* 24px — section H2 */
  --fs-3xl: 1.875rem;    /* 30px — page-level H1 */
  --fs-4xl: 2.25rem;     /* 36px — hero H1 tablet */
  --fs-hero: 2.75rem;    /* 44px — hero H1 desktop */

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --lh-tight: 1.2;       /* headings */
  --lh-normal: 1.6;      /* UI text */
  --lh-relaxed: 1.7;     /* prose */
}

html { scroll-behavior: smooth; }

/* Defensive: prevent stray elements (decorative blurs, marquees, etc.)
   from creating horizontal page scroll on narrow viewports. `clip`
   blocks scrolling without creating a new scroll container, so sticky
   headers keep working. */
html, body { overflow-x: clip; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---- Typography — tighter headings, better rhythm ---- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); letter-spacing: -0.01em; }
h1 { font-size: 2.5rem; letter-spacing: -0.025em; }
h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p { line-height: 1.7; }

.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }

/* ---- Layout ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

/* ---- Announcement Bar ---- */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary), #4a5c24, var(--primary));
  color: var(--white);
  text-align: center;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: none;
}

/* ---- Promo Banner (orange/red — replaces announcement bar during active coupon promos) ---- */
.promo-banner {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: filter 0.2s;
  line-height: 1.4;
}
.promo-banner:hover { filter: brightness(1.08); }
.promo-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.promo-banner-text { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.promo-banner-code {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255,255,255,0.22);
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.promo-countdown {
  display: inline-flex;
  padding: 3px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .promo-banner { padding: 9px 12px; font-size: 0.8125rem; }
  .promo-banner-inner { flex-direction: column; gap: 4px; }
}

/* ---- Promo Modal (desktop first-visit only) ---- */
.promo-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 22, 40, 0.6);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: promoFadeIn 0.3s ease-out;
}
@keyframes promoFadeIn { from { opacity: 0; } to { opacity: 1; } }
.promo-modal {
  background: #fff;
  max-width: 440px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: promoSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes promoSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.promo-modal-header {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  padding: 36px 28px 24px;
  text-align: center;
}
.promo-modal-headline { font-size: 1.5rem; font-weight: 800; margin: 0 0 8px; color: #fff; letter-spacing: -0.01em; }
.promo-modal-subtext { font-size: 0.9375rem; opacity: 0.94; margin: 0; line-height: 1.5; }
.promo-modal-body { padding: 24px 28px 28px; text-align: center; }
.promo-modal-countdown {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 22px;
}
.promo-modal-countdown-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 6px;
  flex: 1;
  max-width: 72px;
}
.promo-modal-countdown-box .num {
  font-size: 1.5rem; font-weight: 800; color: #9a3412;
  display: block; line-height: 1; font-variant-numeric: tabular-nums;
}
.promo-modal-countdown-box .lbl {
  font-size: 0.6875rem; font-weight: 700; color: #9a3412;
  text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; display: block;
}
.promo-modal-code-row {
  display: flex;
  align-items: stretch;
  border: 2px dashed #f97316;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
.promo-modal-code {
  flex: 1;
  padding: 14px 16px;
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #9a3412;
  background: #fff7ed;
  user-select: all;
  text-align: center;
}
.promo-modal-copy {
  padding: 14px 20px;
  background: #f97316;
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.promo-modal-copy:hover { background: #ea580c; }
.promo-modal-copy.copied { background: #16a34a; }
.promo-modal-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}
.promo-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: none;
  color: #fff;
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  font-family: inherit;
}
.promo-modal-close:hover { background: rgba(255,255,255,0.35); }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-logo span { color: var(--accent-strong); background: linear-gradient(135deg, var(--accent-strong), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.site-nav { display: flex; gap: 36px; list-style: none; }

.site-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav a:hover,
.site-nav a.active { color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 20px; }

.header-actions a {
  color: rgba(255,255,255,0.75);
  position: relative;
  transition: color 0.2s;
}

.header-actions a:hover { color: var(--white); text-decoration: none; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--accent-strong);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty { display: none; }

/* Header inline search */
.header-search-wrap { position: relative; display: flex; align-items: center; }
.header-search-toggle {
  background: none; border: none; color: rgba(255,255,255,0.75); cursor: pointer;
  padding: 0; display: flex; align-items: center; transition: color 0.2s;
}
.header-search-toggle:hover { color: #fff; }
.header-search-box {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 0;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: width 0.3s ease, opacity 0.25s ease;
}
.header-search-wrap.open .header-search-box {
  width: 320px;
  opacity: 1;
  pointer-events: auto;
}
input.header-search-input,
input.header-search-input[type="search"] {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font-size: 0.875rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  outline: none;
  font-family: inherit;
}
input.header-search-input::placeholder { color: rgba(255,255,255,0.5); }
input.header-search-input:focus { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); }
.header-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 100%;
  min-width: 320px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1000;
}
.header-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1a1a1a;
  transition: background 0.15s;
  border-bottom: 1px solid #f0eeea;
}
.header-search-item:last-child { border-bottom: none; }
.header-search-item:hover { background: #f5f4f0; text-decoration: none; color: #1a1a1a; }
.header-search-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: #f5f4f0; border: 1px solid #eee; }
.header-search-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.header-search-item-name { font-size: 0.875rem; font-weight: 600; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-search-item-price { font-size: 0.8125rem; color: #0474ac; font-weight: 700; }
.header-search-empty { padding: 20px 16px; text-align: center; color: #888; font-size: 0.875rem; }
.header-search-viewall {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid var(--border);
}
.header-search-viewall:hover { background: var(--cream); }

@media (max-width: 768px) {
  .header-search-wrap.open .header-search-box { width: 260px; }
  .header-search-results { min-width: 260px; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---- Buttons — rounder, more modern ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4a5c24);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(61, 74, 30, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(61, 74, 30, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}

.btn-sm { padding: 8px 18px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 40px; font-size: 0.9375rem; }

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--cream);
  text-decoration: none;
  color: var(--primary);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover { box-shadow: var(--shadow-lg); }

/* ---- Product Card — upgraded ---- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(0px);
}

.product-card a:has(.product-card-image) { display: block; overflow: hidden; }
.product-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.product-card-category {
  display: inline-block;
  background: linear-gradient(135deg, rgba(154, 213, 231, 0.2), rgba(143, 168, 119, 0.15));
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-bottom: 6px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
  line-height: 1.35;
}

.product-card-brand {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: auto;
  margin-bottom: 14px;
}

.product-card-price .original {
  text-decoration: line-through;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: 8px;
}

.product-card-price .sale { color: var(--danger); }

.product-card-stock {
  font-size: 0.6875rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--text-light);
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.stock-dot.in-stock { background: var(--success); }
.stock-dot.low-stock { background: var(--warning); }
.stock-dot.out-of-stock { background: var(--danger); }

.product-card .btn { width: 100%; }

/* ---- Inputs — taller, more refined ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(61, 74, 30, 0.18);
}

input::placeholder, textarea::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- Pill / Tag ---- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(154, 213, 231, 0.25);
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { color: var(--text-light); }

/* ---- Grid helpers ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Footer — premium, with newsletter ---- */
.site-footer {
  background: var(--dark-gradient);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 24px;
  margin-top: 80px;
  border-top: 1px solid rgba(154, 213, 231, 0.1);
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(154, 213, 231, 0.3), rgba(5, 146, 205, 0.2), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer-brand span { color: var(--accent-strong); background: linear-gradient(135deg, var(--accent-strong), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.site-footer h4 {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

/* Footer newsletter */
.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-newsletter-form input {
  flex: 1;
  height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.8125rem;
  border-radius: 6px;
  padding: 0 14px;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter-form input:focus {
  border-color: var(--accent-strong);
  outline: none;
  box-shadow: 0 0 0 2px rgba(44,195,195,0.3);
}
.footer-newsletter-form button {
  background: var(--accent-strong);
  color: var(--white);
  border: none;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-newsletter-form button:hover { background: #7a9562; }

/* Footer social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Footer payment icons */
.footer-payments {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.footer-payments span {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.03em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ---- Pagination ---- */
.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.pagination button,
.pagination a {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination button:hover,
.pagination a:hover { border-color: var(--primary); color: var(--primary); }

.pagination .active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---- Loading spinner ---- */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 48px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 32px 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 48px 0; }

  .site-header .container { height: 60px; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 16px 24px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .btn-lg { padding: 14px 24px; }
  .product-card-image { height: 180px; }
}

/* =========================================================================
   Products Showcase — Right-aligned Glassmorphic Cards over Video
   ========================================================================= */
section.products-showcase {
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  min-height: 520px;
}

/* Cards grid — pushed to the right */
section.products-showcase .products-right-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 16px !important;
  max-width: 520px;
  margin-left: auto;
  margin-right: 0;
  position: relative;
  z-index: 2;
}

/* Glassmorphic product cards */
section.products-showcase .product-card {
  background: rgba(255, 255, 255, 0.13) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
section.products-showcase .product-card:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35) !important;
}
section.products-showcase .product-card-image {
  height: 150px;
  object-fit: contain !important;
  background: rgba(255,255,255,0.92) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1) !important;
  padding: 8px;
}
section.products-showcase .product-card-body { color: #fff; padding: 10px 14px !important; gap: 2px !important; }
section.products-showcase .product-card-name { color: #fff !important; font-size: 0.82rem !important; line-height: 1.25 !important; }
section.products-showcase .product-card-category { margin-bottom: 2px !important; }
section.products-showcase .product-card-brand { color: rgba(255,255,255,0.5) !important; }
section.products-showcase .product-card-price { color: #fff !important; }
section.products-showcase .product-card-category {
  background: rgba(154, 213, 231, 0.18) !important;
  color: var(--accent) !important;
}
section.products-showcase .product-card-stock { color: rgba(255,255,255,0.6) !important; }
section.products-showcase .stock-dot.in-stock { background: #4ade80 !important; }
section.products-showcase .product-card .btn {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}
section.products-showcase .product-card .btn:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}

/* Section header text color */
section.products-showcase .section-header .gradient-text,
section.products-showcase .section-header h2 { color: #fff !important; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
section.products-showcase .section-header .line { background: rgba(255,255,255,0.2) !important; }

/* Responsive */
@media (max-width: 768px) {
  section.products-showcase .products-right-grid {
    max-width: 100%;
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  section.products-showcase .products-right-grid { grid-template-columns: 1fr !important; }
  section.products-showcase { padding: 48px 0; min-height: auto; }
}

/* =========================================================================
   Image Zoom Overlay
   ========================================================================= */
.img-zoomable { cursor: zoom-in; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.img-zoomable:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Small images (cart / checkout) — subtle highlight instead of scale */
.cart-item-img.img-zoomable:hover,
.summary-item-img.img-zoomable:hover { transform: none; box-shadow: 0 0 0 2px var(--primary); }
.thumb-grid img.img-zoomable:hover { transform: none; }

.zoom-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
  opacity: 0; transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.zoom-overlay.active { opacity: 1; }
.zoom-overlay img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
  transform: scale(0.92); transition: transform 0.3s ease;
}
.zoom-overlay.active img { transform: scale(1); }
.zoom-overlay .zoom-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
.zoom-overlay .zoom-close:hover { opacity: 1; }
