/* ============================================================
   GAMU-STORE — Production CSS v4 — Mobile-First Consistency
   ============================================================ */

:root {
  --primary: #FF6B35;
  --primary-dark: #e55a26;
  --primary-light: #fff3ee;
  --secondary: #1a202c;
  --secondary-light: #2d3a4e;
  --text: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f0f4f8;
  --success: #38a169;
  --success-light: #f0fff4;
  --error: #e53e3e;
  --error-light: #fff5f5;
  --warning: #d69e2e;
  --warning-light: #fffff0;
  --info: #3182ce;
  --info-light: #ebf8ff;
  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-md: 0 8px 28px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.16);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: .18s cubic-bezier(.4,0,.2,1);
  --section-pad: 32px 0;
  --section-pad-lg: 52px 0;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* FIX: always show scrollbar track so page doesn't shift */
  overflow-y: scroll;
}
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  /* FIX: prevent body scroll hiding */
  overflow-x: hidden;
}
/* Mobile nav open — only prevent scroll without hiding scrollbar */
body.mobile-nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ──────────────────────────────── */
h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.05rem, 3vw, 1.6rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(.9rem, 2vw, 1.15rem); font-weight: 600; }
p  { line-height: 1.7; }
.text-sm   { font-size: .85rem; }
.text-xs   { font-size: .75rem; }
.text-muted  { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-center  { text-align: center; }

/* ── LAYOUT ──────────────────────────────────── */
/*
 * Global gutter — single source of truth for all horizontal breathing room.
 * Every page, every component inherits from this one variable.
 *
 * Mobile  (< 640px):    20px each side
 * Tablet  (640–1023px): 28px each side
 * Desktop (1024–1279px): 48px each side  ← generous, prevents edge-hugging
 * Wide    (≥ 1280px):   content centres within 1280px max-width automatically
 */
:root {
  --gutter: 20px;
}
@media (min-width: 640px)  { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Standard page section — matches home spacing.
 * NOTE: uses padding-top/bottom only — never the shorthand —
 * so it never clobbers the horizontal gutter set by .container */
.py-section { padding-top: 32px; padding-bottom: 32px; }
@media (min-width: 768px) { .py-section { padding-top: 52px; padding-bottom: 52px; } }

/* Page header row used on cart, checkout, shop, track */
.page-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.page-hd h1 { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 900; color: var(--secondary); line-height: 1.2; }
.page-hd-sub { font-size: .84rem; color: var(--text-muted); margin-top: 5px; }

.divider { border: none; border-top: 1px solid var(--border-light); margin: 16px 0; }

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-ghost    { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline  { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger   { background: var(--error-light); color: var(--error); border: 1px solid #fca5a5; }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn-sm   { padding: 7px 14px; font-size: .8rem; }
.btn-xs   { padding: 4px 10px; font-size: .74rem; }
.btn-lg   { padding: 13px 24px; font-size: .95rem; }
.btn-xl   { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.disabled, [disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ── FORMS ───────────────────────────────────── */
.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.1);
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-label  { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-hint   { font-size: .74rem; color: var(--text-muted); margin-top: 4px; display: block; }
.form-group  { display: flex; flex-direction: column; gap: 0; }
.form-row    { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 540px) { .form-row.cols-2 { grid-template-columns: 1fr; } }
.req { color: var(--error); }

/* ── CARD ────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
}
.card-body   { padding: 18px; }
.card-footer { padding: 14px 18px; border-top: 1px solid var(--border-light); }

/* ── BADGES ──────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-full); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-primary   { background: var(--primary-light); color: var(--primary-dark); }
.badge-success   { background: var(--success-light); color: #276749; }
.badge-error     { background: var(--error); color: #fff; }
.badge-warning   { background: var(--warning-light); color: #744210; }
.badge-info      { background: var(--info-light); color: #2c5282; }
.badge-secondary { background: #edf2f7; color: #4a5568; }

/* ── ALERTS ──────────────────────────────────── */
.alert { padding: 11px 16px; border-radius: var(--radius); display: flex; align-items: flex-start; gap: 12px; font-size: .88rem; }
.alert-success { background: var(--success-light); border: 1px solid #9ae6b4; color: #276749; }
.alert-error   { background: var(--error-light); border: 1px solid #feb2b2; color: #9b2c2c; }
.alert-warning { background: var(--warning-light); border: 1px solid #f6e05e; color: #744210; }
.alert-info    { background: var(--info-light); border: 1px solid #90cdf4; color: #2c5282; }
.alert-close   { margin-left: auto; opacity: .6; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.flash-container { min-height: 0; }

/* ── MISC ────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .76rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: .4; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.img-placeholder { background: linear-gradient(135deg, #f0f4f8, #e2e8f0); display: flex; align-items: center; justify-content: center; color: var(--text-light); }
.hidden  { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full  { width: 100%; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: block; } }

.empty-state { text-align: center; padding: 64px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 14px; opacity: .3; }
.empty-state h2 { font-size: 1.15rem; margin-bottom: 8px; }
.empty-state p  { color: var(--text-muted); font-size: .88rem; margin-bottom: 22px; }

.section-eyebrow { font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }

/* ── TOGGLE ──────────────────────────────────── */
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: var(--border); border-radius: var(--radius-full); position: relative; transition: background .18s; flex-shrink: 0; }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ==============================================
   SITE HEADER — sticky 3-row
   ============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--secondary);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Row 1: Brand */
.header-brand-bar { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.header-brand-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header-logo { display: flex; align-items: center; flex-shrink: 0; }
.header-logo img { height: 38px; width: auto; object-fit: contain; }
.header-logo-text { font-size: 1.5rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), #ff9f66); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -.02em; }
.header-brand-actions { display: flex; align-items: center; gap: 6px; }
.header-action-link { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); font-size: .8rem; padding: 7px 12px; border-radius: var(--radius); transition: var(--transition); }
.header-action-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.header-cart-btn { display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 8px 16px; border-radius: var(--radius); font-size: .84rem; font-weight: 700; transition: var(--transition); position: relative; }
.header-cart-btn:hover { background: var(--primary-dark); }
.header-cart-icon { position: relative; }
.header-cart-count { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; background: #fff; color: var(--primary-dark); border-radius: var(--radius-full); font-size: .64rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* Row 2: Search */
.header-search-bar { padding: 8px 0; }
.header-search-inner { display: flex; align-items: stretch; height: 42px; }
.dept-wrap { position: relative; flex-shrink: 0; }
.dept-btn { display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.22); border-right: none; border-radius: var(--radius) 0 0 var(--radius); padding: 0 14px; height: 42px; font-size: .8rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s; }
.dept-btn:hover { background: rgba(255,255,255,.18); }
.dept-chevron { transition: transform .2s; }
.dept-btn[aria-expanded="true"] .dept-chevron { transform: rotate(180deg); }
.dept-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; width: 248px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); z-index: 200; overflow: hidden; }
.dept-dropdown.open { display: block; animation: dropIn .15s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.dept-dropdown-header { padding: 9px 16px; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); background: var(--bg); border-bottom: 1px solid var(--border-light); }
.dept-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: .84rem; color: var(--text); transition: background .12s; border-bottom: 1px solid var(--border-light); }
.dept-item:last-child { border-bottom: none; }
.dept-item:hover { background: var(--primary-light); color: var(--primary); }
.dept-item-all { font-weight: 700; }
.dept-item-img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.dept-item-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.dept-item-count { margin-left: auto; font-size: .66rem; color: var(--text-muted); background: var(--bg); padding: 1px 6px; border-radius: var(--radius-full); }
.header-search-field { flex: 1; position: relative; display: flex; }
.header-search-field input { flex: 1; height: 42px; padding: 0 14px; border: 1.5px solid rgba(255,255,255,.22); border-left: none; border-right: none; border-radius: 0; background: #fff; font-size: .88rem; outline: none; color: var(--text); }
.header-search-field input:focus { border-color: var(--primary); }
.header-search-btn { width: 48px; height: 42px; background: var(--primary); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.header-search-btn:hover { background: var(--primary-dark); }
.search-dropdown { display: none; position: absolute; top: calc(100% + 5px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 300; max-height: 380px; overflow-y: auto; }
.search-dropdown.open { display: block; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-light); transition: background .12s; }
.search-item:last-of-type { border-bottom: none; }
.search-item:hover { background: var(--bg); }
.search-item-img   { width: 44px; height: 44px; object-fit: contain; border-radius: var(--radius); background: #fff; flex-shrink: 0; border: 1px solid var(--border-light); }
.search-item-name  { font-size: .84rem; font-weight: 600; color: var(--text); }
.search-item-price { font-size: .78rem; color: var(--primary); font-weight: 700; margin-top: 2px; }

/* Row 3: Sub-nav */
.header-subnav { background: #111827; border-top: 1px solid rgba(255,255,255,.05); }
.subnav-inner { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link { display: block; padding: 8px 14px; font-size: .79rem; font-weight: 500; color: rgba(255,255,255,.65); white-space: nowrap; transition: color .12s, background .12s; }
.subnav-link:hover, .subnav-link.active { color: #fff; background: rgba(255,255,255,.07); }

/* ==============================================
   MOBILE HEADER
   ============================================== */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 101;
  background: var(--secondary);
  padding: 9px var(--gutter);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 52px;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.mobile-search-bar {
  display: none;
  position: sticky;
  top: 52px;
  z-index: 100;
  background: var(--secondary);
  padding: 0 var(--gutter) 9px;
  gap: 8px;
  align-items: center;
}
.mobile-search-wrap { position: relative; flex: 1; }
.mobile-search-input { width: 100%; height: 38px; padding: 0 44px 0 12px; border: none; border-radius: var(--radius); background: rgba(255,255,255,.96); font-size: .86rem; outline: none; color: var(--text); }
.mobile-search-go { position: absolute; right: 0; top: 0; bottom: 0; width: 42px; background: var(--primary); color: #fff; border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mobile-menu-btn { color: #fff; padding: 5px; border-radius: var(--radius-sm); transition: background .12s; flex-shrink: 0; }
.mobile-menu-btn:hover { background: rgba(255,255,255,.1); }
.mobile-cart-btn { position: relative; color: #fff; padding: 5px; flex-shrink: 0; display: flex; }

@media (max-width: 767px) {
  .site-header { display: none; }
  .mobile-header { display: flex; }
  .mobile-search-bar { display: flex; }
}

/* Mobile Nav Drawer */
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; backdrop-filter: blur(2px); }
.mobile-nav-drawer  { position: fixed; top: 0; left: 0; bottom: 0; width: min(288px, 84vw); background: var(--surface); z-index: 999; overflow-y: auto; transform: translateX(-100%); transition: transform .28s cubic-bezier(.4,0,.2,1); box-shadow: 4px 0 28px rgba(0,0,0,.18); }
body.mobile-nav-open .mobile-nav-overlay { display: block; }
body.mobile-nav-open .mobile-nav-drawer  { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--secondary); border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-close  { color: rgba(255,255,255,.8); padding: 4px; border-radius: 4px; }
.mobile-nav-links  { padding: 6px 0; }
.mobile-nav-section-label { padding: 10px 16px 3px; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.mobile-nav-links a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; font-size: .88rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border-light); transition: background .12s; }
.mobile-nav-links a:hover { background: var(--primary-light); color: var(--primary); }

/* ==============================================
   HERO SLIDER
   ============================================== */
.hero-section { padding: 12px 0; background: var(--bg); }
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 200px;
  background: var(--secondary);
  user-select: none;
}
@media (min-width: 600px)  { .hero-slider { height: 250px; } }
@media (min-width: 1024px) { .hero-slider { height: 320px; } }

.hero-slider--fallback { display: flex; align-items: center; padding: 32px 24px; background: linear-gradient(135deg, #1a202c, #2d3a4e); }
.hero-fallback-content { color: #fff; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-content { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); color: #fff; max-width: 200px; z-index: 2; }
@media (min-width: 600px)  { .hero-content { max-width: 280px; } }
@media (min-width: 1024px) { .hero-content { max-width: 380px; } }

.hero-badge { background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 600; display: inline-block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.hero-title { font-size: 20px; font-weight: 700; line-height: 1.15; margin-bottom: 6px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
@media (min-width: 600px)  { .hero-title { font-size: 28px; } }
@media (min-width: 1024px) { .hero-title { font-size: 38px; } }
.hero-subtitle { font-size: 11px; margin-bottom: 12px; opacity: .88; line-height: 1.5; }
@media (min-width: 600px)  { .hero-subtitle { font-size: 13px; } }
@media (min-width: 1024px) { .hero-subtitle { font-size: 15px; } }
.hero-cta { display: inline-block; background: var(--primary); color: #fff; border: none; padding: 9px 18px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s; }
.hero-cta:hover { background: var(--primary-dark); }
@media (min-width: 600px)  { .hero-cta { padding: 11px 22px; font-size: 13px; } }
@media (min-width: 1024px) { .hero-cta { padding: 13px 28px; font-size: 15px; } }

.hero-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s, background .2s; z-index: 10; }
.hero-slider:hover .hero-slider-btn { opacity: 1; }
.hero-slider-btn:hover { background: rgba(0,0,0,.75); }
.hero-slider-btn.prev { left: 10px; }
.hero-slider-btn.next { right: 10px; }
@media (hover: none) { .hero-slider-btn { opacity: 1; } }
@media (max-width: 479px) { .hero-slider-btn { width: 28px; height: 28px; opacity: .7; } }

.hero-indicators { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 10; }
.indicator { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); cursor: pointer; transition: all .25s; padding: 0; }
.indicator.active { background: #fff; width: 22px; border-radius: 4px; }

/* ==============================================
   TRUST STRIP
   ============================================== */
.trust-strip { background: #fff; border-top: 1px solid #e9ecef; border-bottom: 1px solid #e9ecef; padding: 10px 0; }
.trust-strip__inner { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.trust-strip__inner::-webkit-scrollbar { display: none; }
.trust-strip__item { display: flex; align-items: center; gap: 7px; padding: 4px 16px; font-size: 12px; font-weight: 500; color: #555; white-space: nowrap; flex-shrink: 0; border-right: 1px solid #e9ecef; }
.trust-strip__item:last-child { border-right: none; }
.trust-strip__item svg { color: var(--primary); flex-shrink: 0; }
@media (max-width: 480px) {
  .trust-strip__item { padding: 4px 10px; font-size: 11px; }
  .trust-strip__item:nth-child(3), .trust-strip__item:nth-child(4) { display: none; }
}

/* ==============================================
   SHOP BY CATEGORY
   ============================================== */
.hero-categories { padding: var(--section-pad); background: #fff; }
@media (min-width: 768px) { .hero-categories { padding: var(--section-pad-lg); } }
.categories-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.categories-header h3 { font-size: 17px; font-weight: 700; color: var(--secondary); }
@media (min-width: 768px) { .categories-header h3 { font-size: 19px; } }
.category-nav-controls { display: flex; gap: 8px; }
.category-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted); transition: all .2s; line-height: 1; }
.category-arrow:hover { border-color: var(--primary); color: var(--primary); }
.categories-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.categories-carousel::-webkit-scrollbar { display: none; }
.category-item { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius); cursor: pointer; transition: all .2s; scroll-snap-align: start; text-align: center; min-height: 88px; text-decoration: none; color: var(--text); }
.category-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,.08); color: var(--primary); }
.category-icon { font-size: 24px; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; }
.category-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.category-item span { font-size: 11px; font-weight: 600; color: inherit; line-height: 1.3; }
@media (min-width: 600px)  { .category-item { flex: 0 0 108px; } }
@media (min-width: 1024px) { .category-item { flex: 0 0 118px; } }

/* ==============================================
   PRODUCT CARD  — 237 × 364 px desktop | 169 × 273 px mobile
   Hover: shadow lift only — no image zoom, no card scale
   ============================================== */

/* Carousel context — fixed width cards */
.products-carousel .product-card { flex: 0 0 169px; width: 169px; }
@media (min-width: 600px)  { .products-carousel .product-card { flex: 0 0 210px; width: 210px; } }
@media (min-width: 1024px) { .products-carousel .product-card { flex: 0 0 237px; width: 237px; } }

/* Grid context — natural height, no fixed constraint */
.products-grid .product-card { height: auto; }

.product-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  height: 100%;
}
/* Hover: clean shadow lift, no translate, no scale */
.product-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.11);
  border-color: #d8dde6;
}
/* Active tap feedback — only on touch, very subtle */
.product-card:active { opacity: .96; }

/* Image area — proportional to card height (mobile 273px: 140px img | desktop 364px: 220px img) */
.product-image {
  position: relative;
  height: 140px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
}
@media (min-width: 600px)  { .product-image { height: 165px; } }
@media (min-width: 768px)  { .product-image { height: 190px; } }
@media (min-width: 1024px) { .product-image { height: 220px; } }

/* Image — NO transform/scale on hover */
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 12px;
  /* No transition needed — image stays still */
}
.product-no-img { font-size: 2.5rem; color: #ccc; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: #fff; }

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  z-index: 1;
}

/* Info area — 144px budget at desktop (364 total − 220 image) */
.product-info {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
  border-top: 1px solid var(--border-light);
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Fixed 2-line height keeps all cards uniform */
  min-height: calc(1.4em * 2);
  flex-shrink: 0;
}
.product-title:hover { color: var(--primary); }

.product-rating { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.stars { display: flex; gap: 1px; }
.star { font-size: 12px; color: #ddd; }
.star.filled { color: #f5a623; }
.star.half { background: linear-gradient(90deg, #f5a623 50%, #ddd 50%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.rating-count { font-size: 11px; color: var(--text-muted); }

.product-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 4px;
}
.current-price { font-size: 15px; font-weight: 800; color: var(--secondary); }
@media (min-width: 768px) { .current-price { font-size: 16px; } }
.original-price { font-size: 12px; color: var(--text-muted); text-decoration: line-through; }

.product-cart-form { flex-shrink: 0; margin-top: 2px; }
.product-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
  letter-spacing: .01em;
}
.product-add-btn:hover { background: var(--primary-dark); }
.product-add-btn--out { background: #edf0f5; color: var(--text-muted); cursor: not-allowed; }

/* ==============================================
   PRODUCT GRID — shop, category, search pages
   ============================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (min-width: 600px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
@media (min-width: 1280px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

/* ==============================================
   PRODUCT SECTIONS (carousels)
   ============================================== */
.products-section { padding: var(--section-pad); background: var(--bg); }
@media (min-width: 768px) { .products-section { padding: var(--section-pad-lg); } }
.products-section--alt { background: var(--surface); }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.section-header h2 { font-size: 17px; font-weight: 700; color: var(--secondary); }
@media (min-width: 768px)  { .section-header h2 { font-size: 19px; } }
@media (min-width: 1024px) { .section-header h2 { font-size: 21px; } }
.section-header .view-all { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.section-header .view-all:hover { text-decoration: underline; }

.carousel-controls { display: flex; gap: 6px; }
.carousel-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-muted); transition: all .2s; }
.carousel-btn:hover { border-color: var(--primary); color: var(--primary); }
@media (min-width: 768px) { .carousel-btn { width: 34px; height: 34px; } }

.products-carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.products-carousel::-webkit-scrollbar { display: none; }

.view-all-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--primary); }
.view-all-link:hover { text-decoration: underline; }

/* ==============================================
   PROMO BANNER
   ============================================== */
.promo-section { padding: var(--section-pad); background: var(--bg); }
@media (min-width: 768px) { .promo-section { padding: var(--section-pad-lg); } }
.promo-section .container { display: flex; flex-direction: column; gap: 10px; }
.promo-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; min-height: 148px; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.promo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.promo-card__text { padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.promo-card__eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.promo-card__title { font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 800; line-height: 1.2; }
.promo-card__desc  { font-size: 12px; opacity: .75; line-height: 1.5; max-width: 280px; }
.promo-card__cta { display: inline-block; margin-top: 4px; padding: 8px 16px; background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.4); border-radius: 4px; font-size: 12px; font-weight: 700; width: fit-content; transition: background .15s; text-decoration: none; }
.promo-card__cta:hover { background: rgba(255,255,255,.32); }
.promo-card__img { position: relative; overflow: hidden; min-height: 148px; }
.promo-card__img img { width: 100%; height: 100%; object-fit: cover; }
.promo-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; background: rgba(0,0,0,.08); }
@media (max-width: 480px) { .promo-card { grid-template-columns: 1fr; min-height: auto; } .promo-card__img { height: 120px; } }

/* ==============================================
   ARTICLES SECTION (homepage)
   ============================================== */
.articles-section { padding: var(--section-pad); background: var(--bg); }
@media (min-width: 768px) { .articles-section { padding: var(--section-pad-lg); } }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 600px)  { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .22s ease, border-color .22s ease;
  cursor: pointer;
}
.article-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.11);
  border-color: #d8dde6;
}
.article-image { width: 100%; height: 192px; overflow: hidden; display: block; background: var(--border-light); }
.article-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #ccc; background: var(--border-light); }
.article-content { padding: 16px; }
.article-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 7px; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card:hover .article-title { color: var(--primary); }
.article-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.article-date { font-size: 11px; color: var(--text-muted); }
.article-category { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 4px; }

/* ==============================================
   SHOP PAGE — listing & category
   ============================================== */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
@media (max-width: 480px) {
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .shop-sort-form { align-self: flex-end; }
}
.shop-toolbar-left h1 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 4px;
  line-height: 1.2;
}
.shop-toolbar-count { font-size: .82rem; color: var(--text-muted); margin: 0; }
.shop-sort-form { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.shop-sort-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.shop-sort-select { width: auto; padding: 8px 34px 8px 12px; font-size: .83rem; border-radius: var(--radius); border: 1.5px solid var(--border); background: var(--surface); color: var(--text); }

/* Category pill row */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: .8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  line-height: 1;
}
.cat-pill:hover   { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-pill--active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Category page hero */
.cat-hero {
  position: relative;
  background: var(--secondary);
  color: #fff;
  padding: 28px 0 24px;
  overflow: hidden;
}
@media (min-width: 768px) { .cat-hero { padding: 44px 0 38px; } }
.cat-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .18; }
.cat-hero-inner { position: relative; }
.cat-hero-title {
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 900;
  margin: 10px 0 6px;
  color: #fff;
  line-height: 1.2;
}
.cat-hero-desc  { opacity: .72; font-size: .88rem; max-width: 500px; margin: 0; line-height: 1.6; }
.breadcrumb--light a              { color: rgba(255,255,255,.65); }
.breadcrumb--light .breadcrumb-sep { color: rgba(255,255,255,.35); }
.breadcrumb--light span:last-child { color: rgba(255,255,255,.9); }

/* ==============================================
   BLOG
   ============================================== */
/* Blog hero */
.blog-hero {
  background: var(--secondary);
  padding: 40px 0 34px;
}
@media (min-width: 768px) { .blog-hero { padding: 56px 0 48px; } }
.blog-hero-title {
  color: #fff;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-weight: 900;
  margin: 8px 0 10px;
  line-height: 1.15;
}
.blog-hero-sub { color: rgba(255,255,255,.62); font-size: .92rem; max-width: 500px; margin: 0; line-height: 1.6; }

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px)  { .blog-grid { grid-template-columns: repeat(2,1fr); gap: 22px; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3,1fr); gap: 24px; } }

.blog-card {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Shadow-only hover — no image zoom */
  transition: box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  color: var(--text);
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.11);
  border-color: #d8dde6;
}
.blog-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border-light);
  display: block;
  flex-shrink: 0;
}
/* No scale on image hover */
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--border-light); }
.blog-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card-cat {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
}
.blog-card-title {
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .71rem;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}
.blog-read-more { color: var(--primary); font-weight: 700; }
.blog-pagination { margin-top: 36px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* Blog post article */
.blog-post-container { padding-top: 28px; padding-bottom: 64px; }
@media (min-width: 768px) { .blog-post-container { padding-top: 36px; padding-bottom: 80px; } }
.blog-post-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
@media (min-width: 900px) { .blog-post-layout { grid-template-columns: 1fr 272px; gap: 40px; } }
.blog-post-article { min-width: 0; }

.blog-post-header { padding-bottom: 20px; border-bottom: 1px solid var(--border-light); margin-bottom: 20px; }
.blog-post-title { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 900; line-height: 1.2; margin: 10px 0 14px; color: var(--secondary); }
.blog-post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-muted); font-size: .82rem; }
.blog-post-author { display: flex; align-items: center; gap: 6px; }
.blog-author-avatar { width: 26px; height: 26px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.blog-meta-sep { opacity: .4; }

.blog-post-cover { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; aspect-ratio: 16/8; background: var(--border-light); }
.blog-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-excerpt { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 22px; font-style: italic; padding-left: 14px; border-left: 3px solid var(--primary); }
.blog-post-content { font-size: .9rem; line-height: 1.85; color: var(--text); }
.blog-post-content h2 { font-size: 1.2rem; margin: 22px 0 8px; }
.blog-post-content h3 { font-size: 1rem; margin: 16px 0 6px; }
.blog-post-content p  { margin-bottom: 12px; }
.blog-post-content ul, .blog-post-content ol { padding-left: 20px; margin-bottom: 12px; }
.blog-post-content li { margin-bottom: 4px; }
.blog-post-content blockquote { border-left: 4px solid var(--primary); padding: 10px 16px; background: var(--primary-light); border-radius: 0 var(--radius) var(--radius) 0; margin: 14px 0; font-style: italic; }
.blog-post-back { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-light); }

/* Blog sidebar */
.blog-post-sidebar { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .blog-post-sidebar { position: sticky; top: 80px; } }
.blog-sidebar-item { display: flex; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--border-light); align-items: center; transition: background var(--transition); color: var(--text); }
.blog-sidebar-item:last-child { border-bottom: none; }
.blog-sidebar-item:hover { background: var(--bg); }
.blog-sidebar-thumb { width: 50px; height: 50px; border-radius: var(--radius); overflow: hidden; flex-shrink: 0; background: var(--border-light); }
.blog-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-sidebar-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.blog-sidebar-title { font-size: .8rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-sidebar-date { font-size: .7rem; color: var(--text-muted); margin-top: 2px; }
.blog-sidebar-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border-radius: var(--radius-lg); padding: 20px; text-align: center; color: #fff; }
.blog-sidebar-cta-icon { font-size: 1.6rem; margin-bottom: 7px; }
.blog-sidebar-cta-title { font-size: .9rem; font-weight: 800; margin-bottom: 4px; color: #fff; }
.blog-sidebar-cta-desc { font-size: .76rem; opacity: .82; margin-bottom: 12px; }
.blog-sidebar-cta-btn { background: #fff; color: var(--primary-dark); font-weight: 700; }

/* ==============================================
   PRODUCT DETAIL PAGE — Takealot-style
   Mobile: stacked | Tablet 540+: gallery+info | Desktop 900+: thumbs+gallery+info
   ============================================== */
.tl-breadcrumb-bar { background: var(--bg); border-bottom: 1px solid var(--border-light); padding: 10px 0; }

.tl-product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin: 12px 0;
}

/* Tablet: gallery left, info right — thumbstrip stays hidden */
@media (min-width: 540px) {
  .tl-product-layout {
    grid-template-columns: minmax(0, 360px) 1fr;
    align-items: start;
    gap: 24px;
  }
  .tl-thumbstrip  { display: none; }
  .tl-gallery-col { grid-column: 1; grid-row: 1; }
  .tl-info-col    { grid-column: 2; grid-row: 1; }
}

/* Desktop: thumbstrip | gallery | info — 3 columns */
@media (min-width: 900px) {
  .tl-product-layout {
    grid-template-columns: 76px minmax(0, 420px) 1fr;
    padding: 28px 32px;
    gap: 24px;
  }
  .tl-thumbstrip  { display: flex !important; grid-column: 1; grid-row: 1; }
  .tl-gallery-col { grid-column: 2; grid-row: 1; }
  .tl-info-col    { grid-column: 3; grid-row: 1; position: sticky; top: 80px; }
}

/* Thumbnail strip — vertical left column */
.tl-thumbstrip {
  display: none;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.tl-thumb {
  width: 60px;
  height: 60px;
  border: 2px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  flex-shrink: 0;
}
.tl-thumb:hover { border-color: #aaa; }
.tl-thumb.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.tl-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }

/* Gallery column */
.tl-gallery-col { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.tl-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 420px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s ease;
  display: block;
}
.tl-main-image:hover img { transform: scale(1.05); }
.tl-img-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--error); color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: 3px 8px; border-radius: 5px;
}
.tl-zoom-hint {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .65rem; font-weight: 600;
  color: var(--text-muted);
  padding: 4px 10px;
  display: flex; align-items: center; gap: 4px;
  pointer-events: none;
}
.tl-no-image {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: var(--text-muted); font-size: .8rem;
}

/* Mobile thumbnails (horizontal scroll) */
.tl-mobile-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.tl-mobile-thumbs::-webkit-scrollbar { display: none; }
.tl-mobile-thumbs .tl-thumb { flex-shrink: 0; scroll-snap-align: start; display: flex; width: 54px; height: 54px; }
@media (min-width: 900px) { .tl-mobile-thumbs { display: none; } }

.tl-thumb-dots { display: flex; gap: 5px; justify-content: center; }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .18s; }
.tl-dot.active { background: var(--primary); }
@media (min-width: 900px) { .tl-thumb-dots { display: none; } }

/* Info column */
.tl-info-col { display: flex; flex-direction: column; gap: 11px; }
.tl-brand-link { font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); background: var(--primary-light); padding: 2px 9px; border-radius: var(--radius-full); display: inline-block; }
.tl-product-title { font-size: clamp(.95rem, 2.5vw, 1.4rem); font-weight: 800; line-height: 1.25; color: var(--secondary); }
.tl-rating-row { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.tl-stars { display: flex; gap: 1px; }
.tl-rating-val { font-weight: 700; }
.tl-review-count { color: var(--text-muted); }
.tl-divider { border: none; border-top: 1px solid var(--border-light); }
.tl-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-price { font-size: 1.8rem; font-weight: 900; color: var(--secondary); letter-spacing: -.02em; }
@media (max-width: 540px) { .tl-price { font-size: 1.5rem; } }
.tl-price-was { font-size: .92rem; color: var(--text-muted); text-decoration: line-through; }
.tl-save-pct { font-size: .67rem; font-weight: 800; background: #e8f5e9; color: #2e7d32; padding: 2px 7px; border-radius: var(--radius-full); border: 1px solid #c8e6c9; }
.tl-short-desc { font-size: .84rem; color: var(--text-muted); line-height: 1.7; }
.tl-stock-row { display: flex; flex-direction: column; gap: 5px; }
.tl-instock  { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #2e7d32; }
.tl-lowstock { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: #e65100; }
.tl-outstock { font-size: .8rem; font-weight: 600; color: var(--error); }
.tl-free-ship     { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; color: #1565c0; }
.tl-delivery-info { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--text-muted); }
.tl-qty-label { font-size: .76rem; font-weight: 600; color: var(--text-muted); }
.tl-qty-row   { display: flex; align-items: center; gap: 10px; }
.tl-qty-max   { font-size: .7rem; color: var(--text-muted); }
.tl-btn-cart { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; background: var(--primary); color: #fff; border-radius: var(--radius); font-weight: 700; font-size: .92rem; border: none; cursor: pointer; transition: background .15s, transform .12s; margin-top: 2px; }
.tl-btn-cart:hover { background: var(--primary-dark); transform: translateY(-1px); }
.tl-btn-buy { width: 100%; display: flex; align-items: center; justify-content: center; padding: 11px; background: var(--secondary); color: #fff; border-radius: var(--radius); font-weight: 700; font-size: .88rem; border: none; cursor: pointer; transition: background .15s; }
.tl-btn-buy:hover { background: var(--secondary-light); }
.tl-trust-list { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 0; }
.tl-trust-list li { display: flex; align-items: flex-start; gap: 7px; font-size: .76rem; color: var(--text-muted); }
.tl-trust-list svg { flex-shrink: 0; margin-top: 1px; }
.tl-meta-small { display: flex; gap: 14px; flex-wrap: wrap; font-size: .71rem; color: var(--text-muted); }

/* Tabs */
.tl-tabs-section { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin: 12px 0; overflow: hidden; }
.tl-tab-nav { display: flex; border-bottom: 2px solid var(--border-light); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.tl-tab-nav::-webkit-scrollbar { display: none; }
.tl-tab-btn { padding: 12px 18px; font-weight: 600; font-size: .84rem; color: var(--text-muted); border: none; background: none; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; cursor: pointer; transition: color .14s; }
.tl-tab-btn:hover { color: var(--text); }
.tl-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tl-tab-panel { display: none; padding: 20px; }
.tl-tab-panel.active { display: block; }
@media (max-width: 540px) { .tl-tab-panel { padding: 14px; } }
.tl-description { font-size: .89rem; line-height: 1.85; color: var(--text); }
.tl-description p { margin-bottom: 10px; }
.tl-specs-table { width: 100%; border-collapse: collapse; font-size: .85rem; max-width: 460px; }
.tl-specs-table th { text-align: left; padding: 9px 13px; color: var(--text-muted); font-weight: 600; width: 35%; background: var(--bg); border: 1px solid var(--border-light); }
.tl-specs-table td { padding: 9px 13px; border: 1px solid var(--border-light); }
.tl-related { padding: 8px 0 36px; }

/* Mobile sticky buy bar for product detail */
.tl-sticky-buy {
  display: none;
}
@media (max-width: 539px) {
  .tl-sticky-buy {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--surface);
    border-top: 1px solid var(--border-light);
    padding: 10px 16px;
    gap: 10px;
    align-items: center;
    box-shadow: 0 -4px 16px rgba(0,0,0,.12);
  }
  .tl-sticky-buy-price {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--secondary);
    flex-shrink: 0;
  }
  .tl-sticky-buy .tl-btn-cart {
    margin-top: 0;
    padding: 11px 18px;
    font-size: .85rem;
  }
  /* Push page content up so sticky bar doesn't overlap */
  body.has-product-page { padding-bottom: 70px; }
}

/* Lightbox */
.tl-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.tl-lightbox.open { display: flex; }
.tl-lightbox-bg { position: absolute; inset: 0; background: rgba(0,0,0,.9); cursor: pointer; }
.tl-lightbox img { position: relative; z-index: 1; max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-lg); background: #fff; padding: 10px; }
.tl-lightbox-close { position: fixed; top: 16px; right: 16px; z-index: 2; width: 38px; height: 38px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .14s; }
.tl-lightbox-close:hover { background: rgba(255,255,255,.24); }

/* ==============================================
   CART
   ============================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .cart-layout { grid-template-columns: 1fr 320px; align-items: start; gap: 28px; }
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  border: 1px solid var(--border-light);
  padding: 4px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-weight: 600; font-size: .9rem; margin-bottom: 4px; display: block; color: var(--text); line-height: 1.4; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-price { color: var(--primary); font-weight: 800; font-size: .95rem; margin-bottom: 10px; display: block; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-item-total { font-size: .88rem; color: var(--text-muted); }
.cart-item-total strong { color: var(--secondary); font-weight: 700; }
.cart-remove-btn {
  color: var(--error);
  font-size: .8rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: opacity .15s;
}
.cart-remove-btn:hover { opacity: .65; }
@media (max-width: 480px) {
  .cart-item { padding: 14px 16px; gap: 12px; }
  .cart-item-img { width: 64px; height: 64px; }
  .cart-item-name { font-size: .85rem; }
}

/* Qty control */
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.qty-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-muted); transition: background .12s; flex-shrink: 0; }
.qty-btn:hover { background: var(--bg); color: var(--primary); }
.qty-input { width: 46px; height: 34px; border: none; text-align: center; font-size: .88rem; font-weight: 700; border-left: 1px solid var(--border); border-right: 1px solid var(--border); -moz-appearance: textfield; color: var(--secondary); }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Order summary box (shared: cart + checkout) */
.order-summary-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.order-summary-head {
  padding: 16px 20px;
  font-weight: 700;
  font-size: .95rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  color: var(--secondary);
  letter-spacing: -.01em;
}
.order-summary-body { padding: 20px; }
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: .88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}
.summary-line:last-of-type { border-bottom: none; }
.summary-line.total {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--secondary);
  margin-top: 8px;
  padding-top: 14px;
  border-top: 2px solid var(--border);
  border-bottom: none;
}
.summary-line .amount { color: var(--primary); font-size: 1.2rem; font-weight: 900; }
.free-label { color: var(--success); font-weight: 700; }

/* Shipping promo bar in cart */
.shipping-nudge {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 11px 14px;
  margin-top: 14px;
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
  line-height: 1.5;
}

/* ==============================================
   CHECKOUT
   ============================================== */
/* Mobile order banner — simple total strip, no accordion */
.co-mobile-banner { background: #f0f4ff; border-top: 1px solid #dde6ff; border-bottom: 1px solid #dde6ff; padding: 11px 0; }
.co-mobile-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co-mobile-banner-label { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--primary); }
.co-mobile-banner-total { font-size: .95rem; font-weight: 800; color: var(--secondary); }
@media (min-width: 768px) { .co-mobile-banner { display: none; } }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
}
/* Mobile: form first, summary below */
.checkout-left { display: flex; flex-direction: column; gap: 20px; order: 1; }
.checkout-summary-wrap { order: 2; }

/* Step card */
.step-card {
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.step-card-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.step-card-hd h3 {
  font-weight: 700;
  font-size: .95rem;
  margin: 0;
  color: var(--secondary);
  letter-spacing: -.01em;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 540px) { .step-card-body { padding: 16px; gap: 14px; } }

/* Collapse cols-2 to single column on small mobile */
@media (max-width: 480px) {
  .form-row.cols-2 { grid-template-columns: 1fr !important; }
}

/* Checkout summary sticky on desktop, collapsible on mobile */
.checkout-summary-wrap { }
@media (min-width: 768px) { .checkout-summary-wrap { position: sticky; top: 84px; } }

/* Checkout item row in summary */
.co-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.co-item:last-child { border-bottom: none; }
.co-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  overflow: hidden;
}
.co-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name  { font-size: .83rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.co-item-qty   { font-size: .74rem; color: var(--text-muted); margin-top: 2px; }
.co-item-price { font-weight: 700; font-size: .88rem; flex-shrink: 0; color: var(--secondary); }

/* Payment options */
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.payment-option:hover, .payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.payment-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.payment-option-label { font-weight: 700; font-size: .88rem; color: var(--secondary); }
.payment-option-desc  { font-size: .78rem; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }

.checkout-submit { margin-top: 16px; }
/* Desktop-only submit in summary panel — hidden on mobile where sticky bar is used */
@media (max-width: 767px) { .checkout-submit-desktop { display: none !important; } }
.checkout-secure-note {
  font-size: .73rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

/* Mobile sticky checkout bar */
.checkout-sticky-bar {
  display: none;
}
@media (max-width: 767px) {
  .checkout-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 2px solid var(--border-light);
    padding: 12px 16px 14px;
    z-index: 300;
    box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  }
  /* Ensure page content is not hidden behind the sticky bar */
  .container[style*="padding-bottom:100px"] { padding-bottom: 100px !important; }
}

/* ==============================================
   CONTACT PAGE
   ============================================== */
.contact-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a2540 100%);
  color: #fff;
  padding: 48px 0 44px;
  text-align: center;
}
.contact-hero-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
@media (min-width: 768px) { .contact-hero-title { font-size: 2.6rem; } }
.contact-hero-sub {
  font-size: .95rem;
  opacity: .75;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}
.contact-alert {
  max-width: 820px;
  margin: 0 auto 28px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-alert svg { flex-shrink: 0; margin-top: 2px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 300px 1fr; gap: 36px; align-items: start; }
}
@media (min-width: 1024px) {
  .contact-layout { grid-template-columns: 340px 1fr; }
}

/* Info cards */
.contact-info-col { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light, #eef4ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 3px; }
.contact-info-value { font-size: .92rem; font-weight: 600; color: var(--secondary); text-decoration: none; display: block; }
.contact-info-value:hover { color: var(--primary); }
.contact-info-note { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

.contact-track-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--secondary);
}
.contact-track-box svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }

/* Contact form */
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.contact-form-card-hd {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
}
.contact-form-card-hd h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 5px;
  color: var(--secondary);
}
.contact-form-card-hd p {
  font-size: .83rem;
  color: var(--text-muted);
  margin: 0;
}
.contact-form {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 540px) {
  .contact-form { padding: 18px 16px 22px; }
  .contact-form-card-hd { padding: 18px 16px 14px; }
  .form-row.cols-2 { grid-template-columns: 1fr !important; }
}
.contact-textarea { min-height: 130px; resize: vertical; }
.contact-submit-btn {
  font-size: .95rem;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-privacy-note {
  font-size: .74rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ==============================================
   CHECKOUT SUCCESS & ORDERS
   ============================================== */
.success-wrap { max-width: 620px; margin: 0 auto; padding: 40px 0 72px; }
.order-ref-hd { background: var(--secondary); color: #fff; padding: 16px 20px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 480px) { .order-info-grid { grid-template-columns: 1fr; } }

/* Track order */
.track-wrap { max-width: 580px; margin: 0 auto; }

/* ==============================================
   PAGINATION
   ============================================== */
.pagination { display: flex; justify-content: center; margin-top: 28px; }
.pagination__list { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.pagination__link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius); border: 1.5px solid var(--border); font-size: .84rem; font-weight: 600; color: var(--text-muted); transition: var(--transition); }
.pagination__link:hover { border-color: var(--primary); color: var(--primary); }
.pagination__link--active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer { background: var(--secondary); color: #fff; padding: 44px 0 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.07); }
@media (max-width: 900px)  { .footer-main { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (max-width: 480px)  { .footer-main { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-about { font-size: .79rem; opacity: .54; line-height: 1.65; max-width: 260px; }
.footer-social { display: flex; gap: 7px; margin-top: 6px; flex-wrap: wrap; }
.footer-social-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.footer-social-btn:hover { transform: translateY(-2px); }
.footer-social-btn--fb:hover { background: #1877f2; }
.footer-social-btn--ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.footer-social-btn--tw:hover { background: #000; }
.footer-social-btn--tt:hover { background: #010101; }
.footer-social-btn--yt:hover { background: #ff0000; }
.footer-social-btn--wa:hover { background: #25D366; }

/* ── WhatsApp Floating Button ─────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 500;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 13px 18px 13px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  max-width: 180px;
}
.wa-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
  color: #fff;
}
.wa-float-label {
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100px;
  transition: max-width .3s ease;
}
/* Collapse label on very small screens */
@media (max-width: 400px) {
  .wa-float { padding: 13px; border-radius: 50%; }
  .wa-float-label { display: none; }
}
.footer-heading { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .36; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-links span { font-size: .8rem; opacity: .64; transition: opacity .12s; line-height: 1.4; }
.footer-links a:hover { opacity: 1; color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 0; flex-wrap: wrap; font-size: .74rem; opacity: .38; }

/* ==============================================
   MISC UI
   ============================================== */
.back-to-top { position: fixed; bottom: 22px; right: 18px; width: 40px; height: 40px; background: var(--secondary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; opacity: 0; transform: translateY(10px); transition: opacity .28s, transform .28s, background .18s; box-shadow: var(--shadow-md); border: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary); }

.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--secondary); color: #fff; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 -4px 18px rgba(0,0,0,.2); flex-wrap: wrap; }
.cookie-text { font-size: .82rem; opacity: .84; }
.cookie-actions { display: flex; gap: 9px; flex-shrink: 0; }

.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.auth-card { width: 100%; max-width: 410px; background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 32px; }

/* ==============================================
   ADMIN PANEL
   ============================================== */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 234px; background: var(--secondary); color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; overflow-y: auto; transition: transform .28s; }
.admin-sidebar-logo { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-sidebar-logo .sub { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; opacity: .36; margin-top: 3px; }
.sidebar-section { padding: 12px 10px 4px; }
.sidebar-section-label { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .34; padding: 0 6px 5px; }
.sidebar-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius); color: rgba(255,255,255,.68); font-size: .82rem; font-weight: 500; transition: background .13s, color .13s; margin-bottom: 1px; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link .icon { font-size: .9rem; flex-shrink: 0; }
.admin-main { flex: 1; margin-left: 234px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: var(--surface); border-bottom: 1px solid var(--border-light); padding: 0 22px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; position: sticky; top: 0; z-index: 50; }
.admin-topbar-left { display: flex; align-items: center; gap: 13px; }
.admin-topbar-right { display: flex; align-items: center; gap: 10px; }
.admin-page-title { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.admin-menu-toggle { padding: 6px; border-radius: var(--radius-sm); color: var(--text-muted); display: none; }
@media (max-width: 768px) { .admin-menu-toggle { display: flex; } }
.admin-content { padding: 22px; flex: 1; }
.admin-user-btn { display: flex; align-items: center; gap: 9px; padding: 6px 11px; border-radius: var(--radius); transition: background .13s; cursor: pointer; }
.admin-user-btn:hover { background: var(--bg); }
.admin-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; flex-shrink: 0; }
.admin-user-name { font-size: .82rem; font-weight: 600; }
.admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-page-sub { font-size: .77rem; color: var(--text-muted); margin-top: 2px; }
@media (max-width: 768px) { .admin-sidebar { transform: translateX(-100%); } .admin-sidebar.open { transform: translateX(0); } .admin-main { margin-left: 0; } }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 199; }
.sidebar-overlay.open { display: block; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th { background: var(--bg); padding: 9px 13px; text-align: left; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 13px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table-img { width: 42px; height: 42px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border-light); }
.stat-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border-light); padding: 15px; display: flex; align-items: center; gap: 13px; box-shadow: var(--shadow-sm); }
.stat-icon { width: 42px; height: 42px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-icon.green  { background: var(--success-light); }
.stat-icon.blue   { background: var(--info-light); }
.stat-icon.orange { background: var(--primary-light); }
.stat-icon.red    { background: var(--error-light); }
.stat-icon.purple { background: #f3e8ff; }
.stat-value { font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--text); }
.stat-label { font-size: .69rem; color: var(--text-muted); margin-top: 2px; font-weight: 500; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title  { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.article-status-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .67rem; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-full); }
.article-status-badge.published { background: var(--success-light); color: #276749; }
.article-status-badge.draft { background: var(--warning-light); color: #744210; }
.cover-preview { width: 100%; max-width: 380px; aspect-ratio: 16/9; border-radius: var(--radius-lg); border: 2px dashed var(--border); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: .84rem; margin-top: 7px; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.rich-editor-wrap { border: 1.5px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rich-editor-toolbar { display: flex; gap: 2px; padding: 7px 9px; background: var(--bg); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rich-editor-btn { padding: 4px 8px; border-radius: var(--radius-sm); font-size: .78rem; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: var(--transition); border: 1px solid transparent; }
.rich-editor-btn:hover { background: var(--border-light); border-color: var(--border); color: var(--text); }
.rich-editor-area { width: 100%; min-height: 300px; padding: 14px; border: none; outline: none; font-size: .9rem; line-height: 1.8; resize: vertical; background: #fff; }

/* ==============================================
   SCROLL ANIMATIONS
   ============================================== */
.anim-ready { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.anim-ready.anim-visible { opacity: 1; transform: translateY(0); }
.anim-visible .product-card:nth-child(1) { transition-delay: .04s; }
.anim-visible .product-card:nth-child(2) { transition-delay: .08s; }
.anim-visible .product-card:nth-child(3) { transition-delay: .12s; }
.anim-visible .product-card:nth-child(4) { transition-delay: .16s; }
.anim-visible .product-card:nth-child(5) { transition-delay: .20s; }
.anim-visible .product-card:nth-child(6) { transition-delay: .24s; }
.anim-visible .blog-card:nth-child(1) { transition-delay: .04s; }
.anim-visible .blog-card:nth-child(2) { transition-delay: .12s; }
.anim-visible .blog-card:nth-child(3) { transition-delay: .20s; }
.hp-scroll-track.anim-ready { opacity: 1; transform: none; }

/* ==============================================
   ORDER PAGES — shared utility classes
   Used on: checkout/success, orders/view, orders/track
   ============================================== */

/* Consistent item row (similar to co-item but for view/success pages) */
.order-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}
.order-row:last-child { border-bottom: none; }
.order-row-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--bg);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  padding: 4px;
}
.order-row-name { font-weight: 600; font-size: .88rem; color: var(--text); line-height: 1.4; }
.order-row-meta { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.order-row-price { font-weight: 700; font-size: .9rem; flex-shrink: 0; color: var(--secondary); }

/* Totals block inside card-body */
.order-totals { padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--border-light); }
.order-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--text-muted);
  padding: 5px 0;
}
.order-totals-grand {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  color: var(--secondary);
  border-top: 2px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.order-totals-grand .amount { color: var(--primary); font-size: 1.05rem; }

/* Page-level subtitle / intro line */
.page-intro {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 6px;
}

/* CTA button row */
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.cta-group--center { justify-content: center; }

/* Status row — used in order status cards */
.status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.status-label {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: block;
}

/* Page hero — centered intro block (track, success) */
.page-hero-block {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
}
.page-hero-icon { font-size: 3.2rem; margin-bottom: 14px; display: block; }
.page-hero-block h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 900; color: var(--secondary); margin-bottom: 8px; }