@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
/* font-display:swap set via URL param above — prevents render-blocking FOIT */

:root {
  --c-bg:       #f4f5f7;
  --c-surface:  #ffffff;
  --c-border:   #e3e6ea;
  --c-accent:   #c8102e;
  --c-accent-d: #a00d23;
  --c-navy:     #0d2137;
  --c-navy-l:   #163552;
  --c-text:     #1a1f2e;
  --c-muted:    #6b7280;
  --c-subtle:   #9ca3af;
  --c-green:    #065f46;
  --c-green-bg: #d1fae5;
  --c-gold:     #92400e;
  --c-gold-bg:  #fef3c7;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.14);
  --max-w:      1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow-x: clip;
}
a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── LAYOUT ──────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.section    { padding: 36px 0; }
.section-sm { padding: 20px 0; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .card-grid > *, .shop-layout > * { min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media(max-width:900px) { .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px) { .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
  background: var(--c-navy);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: .01em;
}
.topbar a { color: rgba(255,255,255,.9); }
.topbar strong { color: #fff; }

/* ── HEADER ──────────────────────────────────────── */
.sticky-header {
  position: sticky; top: 0; z-index: 200;
  box-shadow: var(--shadow);
}
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--c-accent);
}
.header-inner {
  display: flex; align-items: center; gap: 20px;
  padding: 10px 20px; max-width: var(--max-w); margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-logo-img {
  display: block;
  width: 128px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
}
.footer-logo-img {
  width: 180px;
  max-height: 138px;
  background: #fff;
  border-radius: 6px;
}
.logo-mark {
  width: 42px; height: 42px; background: var(--c-accent);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff;
}
.logo-text { line-height: 1.1; }
.logo-text strong { display: block; font-size: 1.1rem; font-weight: 800; color: var(--c-navy); letter-spacing: -.02em; }
.logo-text span   { font-size: .7rem; color: var(--c-muted); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.site-logo:hover .logo-text strong { color: var(--c-accent); }
@media(max-width:700px) {
  .site-logo-img { width: 96px; max-height: 44px; }
  .footer-logo-img { width: 150px; max-height: 114px; }
}

.header-search { flex: 1; max-width: 420px; position: relative; }
.header-search input {
  width: 100%; padding: 9px 14px 9px 38px;
  border: 1.5px solid var(--c-border); border-radius: 8px;
  font-size: .88rem; font-family: inherit; outline: none; background: var(--c-bg);
  transition: border-color .2s, box-shadow .2s;
}
.header-search input:focus { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.header-search .search-icon {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--c-muted); pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-icon {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: all .15s; text-decoration: none;
  color: var(--c-navy);
}
.btn-icon:hover { background: var(--c-bg); text-decoration: none; }
.btn-icon .badge {
  background: var(--c-accent); color: #fff;
  font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}
.btn-icon.cart-btn { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-icon.cart-btn:hover { background: var(--c-accent-d); border-color: var(--c-accent-d); color: #fff; }

/* ── MAIN NAV ─────────────────────────────────────── */
.main-nav {
  background: var(--c-navy);
}
.nav-inner {
  display: flex; align-items: center; gap: 0;
  max-width: var(--max-w); margin: 0 auto; padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.82); font-size: .92rem; font-weight: 500;
  padding: 10px 16px; text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-inner a:hover, .nav-inner a.active {
  color: #fff; border-bottom-color: var(--c-accent);
  text-decoration: none;
}
.nav-inner .nav-sep { color: rgba(255,255,255,.2); padding: 0 4px; font-size: .7rem; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; font-family: inherit;
  text-decoration: none; line-height: 1;
}
.btn-primary   { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-d); color: #fff; text-decoration: none; }
.btn-secondary { background: var(--c-navy); color: #fff; }
.btn-secondary:hover { background: var(--c-navy-l); color: #fff; text-decoration: none; }
.btn-outline   { background: transparent; border: 1.5px solid var(--c-border); color: var(--c-text); }
.btn-outline:hover { border-color: var(--c-accent); color: var(--c-accent); text-decoration: none; }
.btn-ghost     { background: transparent; color: var(--c-muted); }
.btn-ghost:hover { color: var(--c-text); background: var(--c-bg); text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; text-decoration: none; color:#fff; }

/* ── CARDS ───────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
@media(max-width:480px){
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc-title { font-size: .82rem; }
  .pc-meta { font-size: .75rem; }
}
.product-card {
  background: #fff; border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card a { text-decoration: none; }

.pc-img {
  position: relative; background: #f8f9fa;
  border-bottom: 1px solid var(--c-border);
}
.pc-img img {
  width: 100%; aspect-ratio: 63/88; object-fit: cover; display: block;
}
.pc-img .no-img {
  width: 100%; aspect-ratio: 63/88;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--c-subtle); background: #f3f4f6;
}
.pc-badges {
  position: absolute; bottom: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 2;
}
.pc-wishlist {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(255,255,255,.9); border: none; border-radius: 50%;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--c-muted); font-size: .9rem; transition: all .15s;
  z-index: 2;
}
.pc-wishlist:hover { background: #fff; color: var(--c-accent); }

.pc-has-back {
  position: absolute; top: 8px; right: 8px;
  background: rgba(13,33,55,.78); color: rgba(255,255,255,.9);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 20px; pointer-events: none;
  backdrop-filter: blur(2px);
}
.pc-img:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }

.pc-body { padding: 12px 13px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pc-title {
  font-size: .78rem; font-weight: 600; line-height: 1.35; color: var(--c-text);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-meta { font-size: .72rem; color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 4px; }
.pc-rating { display: flex; align-items: center; gap: 5px; margin-top: -2px; }
.pc-stars { color: #f59e0b; font-size: .82rem; letter-spacing: -1px; }
.pc-rating-count { font-size: .68rem; color: var(--c-subtle); }

.pc-footer {
  padding: 9px 13px 12px;
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: #fafbfc;
}
.pc-price { font-size: .95rem; font-weight: 700; color: var(--c-green); }
.pc-add   {
  background: var(--c-accent); color: #fff; border: none;
  border-radius: 6px; padding: 5px 10px; font-size: .75rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.pc-add:hover { background: var(--c-accent-d); }

/* BADGE */
.badge {
  display: inline-block; font-size: .63rem; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; line-height: 1.5; letter-spacing: .04em; white-space: nowrap;
}
.badge-sport    { background: #e8edf5; color: #334155; }
.badge-graded   { background: #f5f0e0; color: #5c4a2a; }
.badge-auto     { background: #e5ebe6; color: #374a3a; }
.badge-parallel { background: #edeaf3; color: #4a3f5c; }
.badge-new      { background: #f0e8e8; color: #5c3a3a; }
.badge-offer    { background: #e5ebe6; color: #374a3a; }
.badge-sale     { background: #f0e0e0; color: #5c2a2a; }

/* ── FORMS ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--c-text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--c-border);
  border-radius: 8px; font-size: .88rem; font-family: inherit;
  outline: none; background: #fff; color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: #dc2626; font-size: .8rem; margin-top: 4px; }
.form-help  { color: var(--c-muted); font-size: .78rem; margin-top: 3px; }

/* ── ALERTS ──────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: .88rem; margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, #1e3a5a 50%, var(--c-navy-l) 100%);
  padding: 20px 0 28px; color: #fff; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 8px; letter-spacing: -.03em; position: relative; }
.hero h1 span { color: var(--c-accent); }
.hero p  { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 18px; position: relative; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── SECTION TITLES ──────────────────────────────── */
.section-title { text-align: center; margin-bottom: 22px; }
.section-title h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; color: var(--c-navy); }
.section-title p  { color: var(--c-muted); margin-top: 8px; font-size: .95rem; }
.section-title .line {
  width: 48px; height: 4px; background: var(--c-accent);
  border-radius: 2px; margin: 12px auto 0;
}

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header {
  background: var(--c-navy); color: #fff; padding: 16px 0 12px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.page-header p  { color: rgba(255,255,255,.72); margin-top: 3px; font-size: .88rem; }
.breadcrumb { display: flex; gap: 6px; align-items: center; font-size: .75rem;
  color: rgba(255,255,255,.55); margin-bottom: 4px; }
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb span { color: rgba(255,255,255,.35); }

/* ── SIDEBAR FILTER ──────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
@media(max-width:820px) { .shop-layout { grid-template-columns: 1fr; } .filter-sidebar { display: none; } }
.filter-sidebar { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.filter-section { margin-bottom: 24px; }
.filter-section h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); margin-bottom: 12px; }
.filter-section label { display: flex; align-items: center; gap: 8px; font-size: .84rem; cursor: pointer; padding: 3px 0; }
.filter-section input[type=checkbox] { accent-color: var(--c-accent); width: 15px; height: 15px; }
.filter-section input[type=range]    { width: 100%; accent-color: var(--c-accent); }

/* ── PRODUCT DETAIL ──────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 0.40fr 1fr; gap: 32px; }
@media(max-width:740px) { .product-detail { grid-template-columns: 1fr; } }
.pd-images img { width: 100%; max-width: 280px; border-radius: var(--radius); border: 1px solid var(--c-border); }
.pd-price      { font-size: 2rem; font-weight: 800; color: var(--c-green); letter-spacing: -.03em; }
/* ── CART TABLE ──────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 10px 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); border-bottom: 2px solid var(--c-border); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--c-border); font-size: .88rem; vertical-align: middle; }
.cart-table img { width: 56px; aspect-ratio: 63/88; object-fit: cover; border-radius: 4px; }

/* ── ORDER SUMMARY ───────────────────────────────── */
.order-summary { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.order-summary .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .88rem; }
.order-summary .row.total { font-size: 1.05rem; font-weight: 700; border-top: 2px solid var(--c-border); margin-top: 8px; padding-top: 12px; }

/* ── BLOG ────────────────────────────────────────── */
.blog-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card img   { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-header {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-decoration: none; aspect-ratio: 16/9;
  position: relative; overflow: hidden;
}
.blog-card-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 50%);
}
.blog-card-icon  { font-size: 2.4rem; line-height: 1; z-index: 1; }
.blog-card-cat-overlay { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); z-index: 1; background: rgba(0,0,0,.18); padding: 3px 10px; border-radius: 20px; }
.blog-card-body  { padding: 18px; }
.blog-card-cat   { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--c-accent); }
.blog-card-title { font-size: 1rem; font-weight: 700; margin: 8px 0 10px; line-height: 1.35; color: var(--c-text); }
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--c-accent); text-decoration: none; }
.blog-card-meta  { font-size: .75rem; color: var(--c-muted); }
.blog-post-body  { max-width: 760px; margin: 0 auto; }
.blog-post-body p { margin-bottom: 1.2em; }
.blog-post-body h2 { font-size: 1.4rem; font-weight: 700; margin: 1.8em 0 .7em; color: var(--c-navy); }
.blog-post-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5em 0 .6em; }
.blog-post-body ul,
.blog-post-body ol { margin: .8em 0 1em 1.5em; }
.blog-post-body li { margin-bottom: .4em; }

/* ── ACCOUNT / ADMIN ─────────────────────────────── */
.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
@media(max-width:700px){ .account-layout { grid-template-columns: 1fr; } }
.account-nav { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.account-nav a {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  font-size: .86rem; font-weight: 500; color: var(--c-text);
  border-left: 3px solid transparent; text-decoration: none; transition: all .15s;
}
.account-nav a:hover { background: var(--c-bg); text-decoration: none; }
.account-nav a.active { border-left-color: var(--c-accent); background: #fef2f4; color: var(--c-accent); font-weight: 600; }
.account-nav .nav-sep { height: 1px; background: var(--c-border); }
.panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 24px; }
.panel-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }

/* ── ADMIN TABLE ─────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.admin-table th { background: var(--c-bg); text-align: left; padding: 10px 14px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); border-bottom: 2px solid var(--c-border); white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--c-bg); }
.admin-table img { width: 44px; aspect-ratio: 63/88; object-fit: cover; border-radius: 4px; }

/* ── STAT CARDS ──────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media(max-width:900px){ .stat-grid { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 20px; }
.stat-card .stat-val  { font-size: 2rem; font-weight: 800; color: var(--c-navy); letter-spacing: -.03em; }
.stat-card .stat-label{ font-size: .78rem; color: var(--c-muted); font-weight: 500; margin-top: 4px; }
.stat-card .stat-icon { font-size: 1.6rem; margin-bottom: 8px; }

/* ── MISC ────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--c-border); margin: 24px 0; }
.text-muted  { color: var(--c-muted); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1  { margin-top:  6px; }  .mt-2 { margin-top: 12px; }
.mt-3  { margin-top: 18px; }  .mt-4 { margin-top: 28px; }
.mb-1  { margin-bottom:  6px; }.mb-2 { margin-bottom: 12px; }
.mb-3  { margin-bottom: 18px; }.mb-4 { margin-bottom: 28px; }
.gap-2 { gap: 8px; }
.flex  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.tag { display: inline-block; background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 20px; font-size: .72rem; padding: 2px 10px; color: var(--c-muted); font-weight: 500; }

/* ── FOOTER ──────────────────────────────────────── */
.site-footer { background: var(--c-navy); color: rgba(255,255,255,.75); padding: 32px 0 0; margin-top: 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
@media(max-width:1100px){ .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; } }
@media(max-width:860px){ .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } .footer-brand { grid-column: 1 / -1; } }
@media(max-width:560px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } .footer-brand { grid-column: 1 / -1; } }
@media(max-width:400px){ .footer-grid { grid-template-columns: 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text span   { color: rgba(255,255,255,.45); }
.footer-brand p { font-size: .84rem; margin-top: 12px; max-width: 280px; line-height: 1.65; }
.footer-col h4 { color: #fff; font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .84rem; transition: color .15s; }
.footer-col ul a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.5); }

/* ── PAGINATION ──────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 32px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border-radius: 8px; border: 1px solid var(--c-border);
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--c-text);
  background: #fff; transition: all .15s;
}
.pagination a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; text-decoration: none; }
.pagination .cur    { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.pagination .dis    { opacity: .3; pointer-events: none; }

/* ── TRUST STRIP ─────────────────────────────────── */
.trust-strip { background: var(--c-navy); color: rgba(255,255,255,.8); padding: 18px 0; }
.trust-items { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item  { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 500; }
.trust-item .ti-icon { font-size: 1.2rem; }

/* ── GLOSSARY ────────────────────────────────────── */
.glossary-term { margin-bottom: 18px; }
.glossary-term dt {
  font-weight: 700; font-size: .95rem; color: var(--c-navy);
  margin-bottom: 4px;
}
.glossary-term dd,
.glossary-def {
  margin: 0; font-size: .87rem; color: var(--c-muted);
  line-height: 1.7; padding-left: 14px;
  border-left: 3px solid var(--c-border);
}

/* ── BLOG LISTING PAGE ─────────────────────────── */
.blog-cat-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.blog-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--c-border);
  background: #fff; color: var(--c-text); font-size: .82rem; font-weight: 600;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.blog-cat-pill:hover { border-color: var(--c-accent); color: var(--c-accent); }
.blog-cat-pill.active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }
.blog-cat-count {
  font-size: .68rem; font-weight: 700; background: var(--c-bg); color: var(--c-muted);
  padding: 1px 7px; border-radius: 10px; min-width: 18px; text-align: center;
}

.blog-featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; align-items: stretch;
  background: #fff; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden;
  margin-bottom: 40px; box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); }
.blog-featured-img {
  display: flex; align-items: center; justify-content: center; min-height: 260px;
  position: relative; overflow: hidden; text-decoration: none;
}
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.blog-featured-placeholder { display: flex; align-items: center; justify-content: center; }
.blog-featured-placeholder span { font-size: 5rem; opacity: .25; }
.blog-featured-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; }
.blog-featured-title { font-size: 1.55rem; font-weight: 800; line-height: 1.25; margin-bottom: 12px; letter-spacing: -.02em; }
.blog-featured-title a { color: var(--c-navy); text-decoration: none; }
.blog-featured-title a:hover { color: var(--c-accent); }

.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.blog-main { min-width: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.blog-card-v2 {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column;
}
.blog-card-v2:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-v2-img {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9;
  text-decoration: none; position: relative; overflow: hidden;
}
.blog-card-v2-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.blog-card-v2-icon { font-size: 3rem; opacity: .35; }
.blog-card-v2-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.blog-card-v2-title { font-size: .95rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.blog-card-v2-title a { color: var(--c-text); text-decoration: none; }
.blog-card-v2-title a:hover { color: var(--c-accent); }

.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }

@media(max-width:1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media(max-width:900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 200px; }
}
@media(max-width:600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .blog-cat-nav { gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .blog-featured-body { padding: 20px 22px; }
}

/* ── BLOG POST BODY ──────────────────────────────── */
.blog-post-body { font-size: .97rem; line-height: 1.8; color: var(--c-text); }
.blog-post-body h2 {
  font-size: 1.25rem; font-weight: 800; color: var(--c-navy);
  margin: 2.2em 0 .7em; padding-bottom: .4em;
  border-bottom: 2px solid var(--c-accent);
  letter-spacing: -.02em; line-height: 1.3;
}
.blog-post-body h3 {
  font-size: 1.05rem; font-weight: 700; color: var(--c-navy);
  margin: 1.8em 0 .5em;
}
.blog-post-body p  { margin-bottom: 1.1em; }
.blog-post-body ul,
.blog-post-body ol { margin: .6em 0 1.2em 1.4em; }
.blog-post-body li { margin-bottom: .4em; }
.blog-post-body strong { color: var(--c-navy); }
.blog-post-body a  { color: var(--c-accent); }
.blog-post-body a:hover { text-decoration: underline; }
.blog-post-body blockquote {
  border-left: 4px solid var(--c-accent); padding: 10px 18px;
  background: var(--c-bg); border-radius: 0 8px 8px 0;
  color: var(--c-muted); font-style: italic; margin: 1.4em 0;
}

/* ── BLOG INTERNAL CTA LINKS ─────────────────────── */
.blog-cta-links {
  margin: 36px 0 8px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: 10px;
  padding: 20px 22px;
}
.blog-cta-label {
  font-size: .82rem; font-weight: 700; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px;
}
.blog-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-cta-btns .btn { font-size: .82rem; padding: 8px 16px; }

/* ── CARD VIEWER MODAL ───────────────────────────── */
#cv-modal {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#cv-modal.cv-open {
  display: grid;
  place-items: center;
}

#cv-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82); backdrop-filter: blur(4px);
  animation: cv-fade-in .2s ease;
}
@keyframes cv-fade-in { from { opacity: 0; } to { opacity: 1; } }

#cv-box {
  position: relative;
  background: #0d2137; border-radius: 16px; padding: 24px 20px 20px;
  width: min(420px, 94vw); max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: cv-pop .22s cubic-bezier(.34,1.56,.64,1);
  overflow-y: auto;
}
@keyframes cv-pop {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

#cv-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#cv-close:hover { background: rgba(255,255,255,.25); }

#cv-label {
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.55);
  letter-spacing: .04em; text-transform: uppercase; text-align: center;
  max-width: 340px; line-height: 1.4;
}

#cv-img-wrap {
  width: 100%; display: flex; align-items: center; justify-content: center;
  min-height: 200px; overflow: hidden; touch-action: none;
}
#cv-img {
  max-width: 100%; max-height: 64vh;
  border-radius: 10px; display: block;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  object-fit: contain; transform-origin: center center;
}
#cv-img-wrap:hover #cv-img { cursor: zoom-in; }
#cv-img-wrap:active #cv-img { cursor: grabbing; }
#cv-no-img {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 3.5rem; color: rgba(255,255,255,.3); min-height: 240px;
}

#cv-controls {
  display: flex; justify-content: center; gap: 10px; align-items: center; flex-wrap: wrap;
}
#cv-view-card {
  display: inline-flex; align-items: center;
  color: rgba(255,255,255,.7); font-size: .82rem; font-weight: 600;
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  transition: all .15s;
}
#cv-view-card:hover { color: #fff; background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.3); }
#cv-flip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-accent); color: #fff; border: none;
  border-radius: 8px; padding: 10px 22px; font-size: .86rem;
  font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s, transform .12s;
}
#cv-flip:hover { background: var(--c-accent-d); transform: scale(1.04); }
#cv-flip:active { transform: scale(.97); }

#cv-zoom-controls {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; padding: 4px;
}
#cv-zoom-controls button {
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 28px; height: 28px; border-radius: 6px; font-size: 1rem;
  font-weight: 700; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-family: inherit; line-height: 1;
  transition: background .15s;
}
#cv-zoom-controls button:hover { background: rgba(255,255,255,.3); }
#cv-zoom-controls button#cv-zoom-reset { width: auto; padding: 0 10px; font-size: .72rem; font-weight: 600; }
#cv-zoom-lbl {
  font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.7);
  min-width: 36px; text-align: center; user-select: none;
}

#cv-dots {
  display: flex; gap: 8px; justify-content: center;
}
.cv-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.25); cursor: pointer;
  transition: background .15s, transform .15s;
}
.cv-dot.active { background: var(--c-accent); transform: scale(1.3); }
.cv-dot:hover  { background: rgba(255,255,255,.5); }

/* ── RESPONSIVE HELPERS ──────────────────────────── */
@media(max-width:768px){
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .header-search { order: 3; max-width: 100%; flex: 1 1 100%; }
  .nav-inner a { padding: 8px 10px; font-size: .8rem; white-space: nowrap; }
  .hero { padding: 18px 0 24px; }
  .product-detail { gap: 24px; }
  .section { padding: 28px 0; }
}
@media(max-width:480px){
  .btn-lg { padding: 12px 22px; font-size: .92rem; }
  .stat-card .stat-val { font-size: 1.5rem; }
}

/* ── CHATBOT WIDGET ──────────────────────────────── */
#cs-chatbot { position: fixed; bottom: 20px; right: 20px; z-index: 300; font-family: Inter, system-ui, sans-serif; }

/* ── BACK TO TOP BUTTON ──────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--c-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--c-accent); transform: scale(1.08); }
@media(max-width:480px){
  .back-to-top { bottom: 16px; left: 16px; width: 44px; height: 44px; }
  #cs-chatbot { bottom: 16px; right: 16px; }
}
#cs-chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--c-accent); color: #fff; font-size: 1.4rem;
  cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
#cs-chat-toggle:hover { transform: scale(1.08); }
#cs-chat-toggle.cs-chat-active { background: var(--c-navy); }
#cs-chat-toggle .cs-chat-close { display: none; font-size: 1.1rem; }
#cs-chat-toggle.cs-chat-active .cs-chat-icon { display: none; }
#cs-chat-toggle.cs-chat-active .cs-chat-close { display: block; }
#cs-chat-panel {
  position: absolute; bottom: 68px; right: 0; width: 320px; max-height: 0;
  background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
  overflow: hidden; opacity: 0; transform: translateY(10px); transition: all .25s ease;
  display: flex; flex-direction: column;
}
#cs-chat-panel.cs-chat-open { max-height: 460px; opacity: 1; transform: translateY(0); }
.cs-chat-header { background: var(--c-navy); color: #fff; padding: 14px 16px; }
.cs-chat-body { flex: 1; padding: 12px; overflow-y: auto; min-height: 180px; max-height: 320px; display: flex; flex-direction: column; gap: 10px; }
.cs-chat-msg { padding: 10px 12px; border-radius: 10px; font-size: .84rem; line-height: 1.5; max-width: 90%; word-break: break-word; }
.cs-chat-bot { background: var(--c-bg); color: var(--c-text); align-self: flex-start; border-bottom-left-radius: 2px; }
.cs-chat-user { background: var(--c-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.cs-chat-footer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-border); }
.cs-chat-footer input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--c-border); border-radius: 20px; font-family: inherit; font-size: .85rem; outline: none; }
.cs-chat-footer input:focus { border-color: var(--c-accent); }
.cs-chat-footer button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--c-accent); color: #fff; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
@media(max-width:480px){ #cs-chat-panel { width: calc(100vw - 40px); right: -10px; } }
