/* ============================================================
   UADEPOT Replica — Global Design System
   Static MPA shared stylesheet
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #161616;
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}
body.has-fixed-header { padding-top: 148px; }
img { max-width: 100%; display: block; }
a { color: #00438B; text-decoration: none; transition: color .15s; }
a:hover { color: #0a5bb0; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Design Tokens --- */
:root {
  --primary: #00438B;
  --primary-dark: #063b78;
  --primary-darker: #00306b;
  --primary-light: #0a5bb0;
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --text: #161616;
  --text-dark: #0e0e11;
  --text-muted: #6b7280;
  --text-light: #9aa0a6;
  --text-lighter: #9ca3af;
  --red: #E60B09;
  --price-accent: #0f766e;
  --bg: #fff;
  --bg-light: #f7f7f8;
  --bg-lighter: #eef1f5;
  --bg-blue: #f2f6fc;
  --border: #eef1f5;
  --border-dark: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(6,42,86,.10);
  --shadow-md: 0 4px 16px rgba(6,42,86,.12);
  --shadow-lg: 0 12px 40px rgba(6,42,86,.16);
  --shadow-xl: 0 24px 60px -14px rgba(16,24,40,.30);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: .2s ease;
  --container-max: 1320px;
}

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; }
p { margin-bottom: 1em; }

/* --- Buttons --- */
.ua-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: all var(--transition); cursor: pointer; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.ua-btn svg { width: 16px; height: 16px; }
.ua-btn-primary { background: var(--primary); color: #fff; }
.ua-btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ua-btn-gold { background: var(--gold); color: var(--text-dark); }
.ua-btn-gold:hover { background: var(--gold-dark); color: #fff; }
.ua-btn-light { background: #fff; color: var(--primary); }
.ua-btn-light:hover { background: var(--bg-blue); color: var(--primary-dark); }
.ua-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.ua-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.ua-btn-outline-dark { background: transparent; color: var(--primary); border-color: var(--primary); }
.ua-btn-outline-dark:hover { background: var(--primary); color: #fff; }
.ua-btn-block { width: 100%; }
.ua-btn:disabled, .ua-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.ua-btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.ua-btn-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite; color: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Header (Top Bar) --- */
.header-top {
  background: var(--primary-darker);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  padding: 6px 0;
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top-links { display: flex; gap: 20px; }
.header-top-links a { color: rgba(255,255,255,.85); font-size: 12px; }
.header-top-links a:hover { color: #fff; }
.header-top-right { display: flex; align-items: center; gap: 16px; }

/* --- Main Header --- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.header-main {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  grid-template-areas: "logo search actions";
  align-items: center;
  gap: 30px;
  padding: 10px 0;
}
.header-logo { grid-area: logo; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.header-logo .logo-mark {
  background: var(--primary); color: #fff; font-weight: 800; font-size: 14px;
  padding: 6px 8px; border-radius: 6px; letter-spacing: .5px;
}
.header-logo .logo-word { font-weight: 800; font-size: 20px; color: var(--text-dark); letter-spacing: 1px; }

/* Search */
.header-search { grid-area: search; max-width: 560px; width: 100%; margin: 0 auto; position: relative; }
.search-bar {
  display: flex; align-items: center; gap: 10px; height: 44px;
  padding: 0 16px; border: 2px solid var(--primary); border-radius: 10px;
  background: #fff; width: 100%;
}
.search-bar i { color: var(--primary); font-size: 15px; }
.search-bar input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); }
.search-bar input::placeholder { color: var(--text-light); }
.search-clear { display: none; color: var(--text-light); cursor: pointer; font-size: 13px; }
.search-clear.visible { display: block; }
.search-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto;
  display: none; z-index: 1100;
}
.search-dropdown.visible { display: block; }
.search-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  cursor: pointer; border-bottom: 1px solid var(--border); transition: background .15s;
}
.search-item:hover { background: var(--bg-blue); }
.search-item img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--bg-lighter); }
.search-item-info { flex: 1; min-width: 0; }
.search-item-info .si-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-info .si-price { font-size: 12px; color: var(--primary); font-weight: 700; }
.search-empty { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

/* Header Actions */
.header-actions { grid-area: actions; display: flex; align-items: center; gap: 22px; }
.header-icon {
  display: flex; align-items: center; gap: 8px; color: var(--text);
  font-size: 13px; position: relative; padding: 4px 0; cursor: pointer;
  text-decoration: none; transition: color .15s;
}
.header-icon:hover { color: var(--primary); }
.header-icon i { font-size: 20px; }
.header-icon .hi-label { display: flex; flex-direction: column; line-height: 1.2; }
.header-icon .hi-label small { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.header-icon .hi-label b { font-size: 13px; font-weight: 700; }
.cart-badge {
  position: absolute; top: -6px; left: 14px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.fav-badge {
  position: absolute; top: -6px; left: 14px; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.fav-badge.visible { display: flex; }

/* Account dropdown */
.acct-wrap { position: relative; }
.acct-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 230px; background: #fff; border: 1px solid var(--border-dark);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transition: all .18s ease; z-index: 1200;
}
.acct-wrap:hover .acct-menu, .acct-wrap:focus-within .acct-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(5px);
}
.acct-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.acct-menu a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.acct-menu a i { font-size: 14px; width: 16px; color: var(--text-muted); }
.acct-menu a:hover { background: var(--bg-blue); color: var(--primary); }
.acct-menu a:hover i { color: var(--primary); }
.acct-primary { background: var(--primary); color: #fff !important; justify-content: center; font-weight: 700 !important; margin-bottom: 4px; }
.acct-primary:hover { background: var(--primary-dark) !important; color: #fff !important; }
.acct-sub { font-size: 12px; color: var(--text-muted); padding: 2px 12px 8px; }
.acct-sub a { display: inline !important; padding: 0 !important; color: var(--primary) !important; }
.acct-div { height: 1px; background: var(--border); margin: 6px 4px; }

/* Currency dropdown */
.currency-wrap { position: relative; }
.currency-menu {
  position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--border-dark);
  border-radius: 8px; box-shadow: var(--shadow-md); min-width: 120px; padding: 4px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .15s; z-index: 1200;
}
.currency-wrap:hover .currency-menu { opacity: 1; visibility: visible; transform: translateY(2px); }
.currency-menu a { display: block; padding: 7px 12px; font-size: 13px; color: var(--text); border-radius: 5px; }
.currency-menu a:hover { background: var(--bg-blue); color: var(--primary); }
.currency-menu a.active { background: var(--bg-blue); color: var(--primary); font-weight: 700; }

/* --- Navigation Bar --- */
.nav-bar {
  background: #fff; border-top: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none;
  transition: color .15s; border-radius: 6px;
}
.nav-item > a:hover { color: var(--primary); }
.nav-item > a i { font-size: 9px; opacity: .5; }
.nav-item.all-cat > a { color: var(--primary); font-weight: 700; }
.nav-item.wholesale > a { color: var(--gold-dark); font-weight: 700; }
.nav-item.wholesale > a:hover { color: var(--gold); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg); opacity: 0; visibility: hidden; pointer-events: none;
  overflow: hidden; transition: all .2s ease; z-index: 1300;
}
.nav-item:hover .mega-menu, .nav-item:focus-within .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(4px);
}
.mega-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega-inner { display: grid; grid-template-columns: auto 226px; }
.mega-links { padding: 20px 22px; }
.mega-grid { display: grid; gap: 1px 14px; }
.mega-grid.c2 { grid-template-columns: repeat(2, minmax(142px, 1fr)); }
.mega-grid.c4 { grid-template-columns: repeat(4, minmax(134px, 1fr)); }
.mega-col h6 {
  margin: 0 0 7px; padding: 0 10px; font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-light); font-weight: 700;
}
.mega-col a {
  display: block; padding: 7px 10px; border-radius: 8px; color: var(--text);
  font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: all .14s;
}
.mega-col a:hover { background: var(--bg-blue); color: var(--primary); padding-left: 14px; }
.mega-allrow { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--border); }
.mega-allrow a { color: var(--primary); font-weight: 600; font-size: 13.5px; padding: 0 0 0 10px; }
.mega-allrow a:hover { text-decoration: underline; }
.mega-gender-row { display: flex; align-items: center; gap: 12px; }
.mega-gender-row a.gcard {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 84px; text-decoration: none;
}
.gcard-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--bg-lighter); box-shadow: var(--shadow-sm); }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.gcard-lbl { font-size: 13px; font-weight: 600; color: #2a3744; }
.gcard:hover .gcard-lbl { color: var(--primary); }
.mega-feature { position: relative; min-height: 270px; background: var(--primary-dark); overflow: hidden; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-feature .mf-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(6,42,86,.82) 0%, rgba(8,74,150,.36) 52%, rgba(8,74,150,0) 100%); }
.mega-feature .mf-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.mega-feature .mf-kicker { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: .92; font-weight: 600; margin-bottom: 6px; }
.mega-feature .mf-title { display: block; font-size: 18px; line-height: 1.22; font-weight: 700; color: #fff; margin: 0 0 14px; max-width: 14ch; }
.mega-feature .mf-btn {
  display: inline-block; background: #fff; color: var(--primary-dark); font-weight: 600;
  font-size: 12.5px; padding: 8px 16px; border-radius: 999px; text-decoration: none;
}
.mega-feature .mf-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0,0,0,.28); }

/* Mobile menu toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); transition: .3s; border-radius: 2px; }

/* --- Hero --- */
.ua-hero {
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.ua-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(212,175,55,.12) 0%, transparent 50%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 60px 20px; max-width: var(--container-max); margin: 0 auto; position: relative;
}
.hero-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 12px; display: block; }
.hero-text h1 { color: #fff; margin-bottom: 16px; }
.hero-text h1 strong { color: var(--gold); }
.hero-text p { color: rgba(255,255,255,.85); font-size: 16px; margin-bottom: 28px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-chips a {
  padding: 7px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  color: rgba(255,255,255,.9); font-size: 13px; font-weight: 500; transition: all .15s;
}
.hero-chips a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats div[hidden], .hero-card[hidden] { display: none !important; }
.hero-stats b { font-size: 26px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero-visual { position: relative; }
.hero-card {
  display: block; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); aspect-ratio: 4/3; background: var(--primary-dark);
  position: relative;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; bottom: 16px; left: 16px; background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--text-dark); display: flex; align-items: center; gap: 6px;
}
.hero-float i { color: var(--gold); }

/* --- Trust Bar --- */
.trust-bar { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: var(--container-max); margin: 0 auto; padding: 20px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item svg { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.trust-item span { font-size: 14px; font-weight: 600; color: var(--text); }

/* --- Sections --- */
.ua-section { padding: 56px 0; }
.ua-section.alt { background: var(--bg-light); }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head .ua-eyebrow {
  display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-dark); font-weight: 700; margin-bottom: 8px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }
.section-head-left { text-align: left; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; }
.section-head-left .ua-eyebrow { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: 6px; }
.see-all { font-size: 14px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.see-all svg { width: 14px; height: 14px; }

/* --- Category Grid --- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; display: block; background: var(--bg-lighter);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,42,86,.85) 0%, rgba(6,42,86,.2) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
}
.cat-overlay h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.cat-overlay span { color: rgba(255,255,255,.75); font-size: 13px; margin-bottom: 10px; }
.cat-go { color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cat-go svg { width: 14px; height: 14px; }

/* --- Product Grid & Cards --- */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; min-height: 420px; align-content: start; }
.prod-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); transition: all .2s; text-decoration: none;
  display: flex; flex-direction: column; min-width: 0;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--border-dark); }
.prod-thumb { position: relative; aspect-ratio: 3 / 2; background: var(--bg-light); overflow: hidden; }
.prod-thumb > a { display:block; width:100%; height:100%; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .05em; z-index: 2;
}
.prod-badge.gold { background: var(--gold); color: var(--text-dark); }
.prod-badge.blue { background: var(--primary); }
.prod-fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  background: rgba(255,255,255,.95); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; z-index: 2; transition: all .15s; border: none;
}
.prod-fav:hover { background: #fff; transform: scale(1.1); }
.prod-fav i { font-size: 15px; color: var(--text-muted); }
.prod-fav.active i { color: var(--red); }
.prod-thumb .quick-add {
  position:absolute; right:8px; bottom:8px; z-index:2; min-height:34px;
  padding:6px 10px; border-radius:4px; background:rgba(255,255,255,.96);
  color:var(--primary); font-size:12px; font-weight:700; box-shadow:var(--shadow-sm);
}
.prod-thumb .quick-add:hover { background:var(--primary); color:#fff; }
.prod-thumb .quick-add:disabled { display:none; }
.prod-info { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.prod-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; margin-bottom: 8px; min-height:2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap:anywhere; }
.prod-name a { color:inherit; }
.prod-name a:hover { color:var(--primary); }
.prod-price-row { display: flex; align-items: baseline; gap: 8px; margin-top:auto; min-width:0; flex-wrap:wrap; }
.prod-price { font-size: 17px; font-weight: 800; color: var(--primary); white-space:nowrap; }
.prod-retail { font-size: 13px; color: var(--text-light); text-decoration: line-through; white-space:nowrap; }

/* Product placeholder (CSS-generated) */
.prod-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-blue) 100%);
  position: relative;
}
.prod-placeholder i { font-size: 48px; color: var(--text-light); opacity: .4; }
.prod-placeholder .ph-label {
  position: absolute; bottom: 12px; font-size: 10px; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .1em;
}

/* --- Brand Grid --- */
.brand-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand-item {
  aspect-ratio: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; transition: all .15s;
  text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: 12px;
  text-align: center; padding: 8px;
}
.brand-item:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* --- Footer --- */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.7); margin-top: auto; }
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 56px 20px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; text-decoration: none; }
.footer-brand .logo-mark { background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 8px; border-radius: 6px; }
.footer-brand .logo-word { font-weight: 800; font-size: 20px; color: #fff; letter-spacing: 1px; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8);
  font-size: 16px; transition: all .15s;
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-trust { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); flex-wrap: wrap; gap: 16px; }
.footer-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-payments span { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.pay-icon {
  display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,.06);
  padding: 6px 14px; border-radius: 6px;
}
.pay-icon svg { width: 20px; height: 20px; }
.pay-icon span { color: #fff; font-size: 12px; font-weight: 600; }
.footer-secure { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-secure svg { width: 16px; height: 16px; }
.footer-copyright {
  border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
  max-width: var(--container-max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-copyright-links { display: flex; gap: 20px; }
.footer-copyright-links a { color: rgba(255,255,255,.5); }
.footer-copyright-links a:hover { color: #fff; }

/* --- Chat Widget --- */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
}
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer; transition: all .2s; font-size: 22px;
  border: none;
}
.chat-toggle:hover { background: var(--primary-dark); transform: scale(1.08); }
.chat-panel {
  position: absolute; bottom: 70px; right: 0; width: 340px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  overflow: hidden; display: none; flex-direction: column;
}
.chat-panel.open { display: flex; animation: slideUp .25s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.chat-header { background: var(--primary); color: #fff; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-header h4 { color: #fff; font-size: 15px; }
.chat-header .chat-status { font-size: 11px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 5px; }
.chat-header .chat-status::before { content: ''; width: 7px; height: 7px; background: #4ade80; border-radius: 50%; }
.chat-close { color: rgba(255,255,255,.7); cursor: pointer; font-size: 18px; background: none; border: none; }
.chat-body { padding: 16px; height: 280px; overflow-y: auto; background: var(--bg-light); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.chat-msg.bot { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-sm); }
.chat-msg.user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input input { flex: 1; border: 1px solid var(--border-dark); border-radius: 999px; padding: 9px 16px; font-size: 13px; outline: none; }
.chat-input input:focus { border-color: var(--primary); }
.chat-input button { background: var(--primary); color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* --- Toast --- */
.toast-container { position: fixed; top: 90px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px; min-width: 280px;
  max-width: 380px; animation: toastIn .3s ease; border-left: 4px solid var(--primary);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-left-color: #16a34a; }
.toast.error { border-left-color: var(--red); }
.toast.warning { border-left-color: var(--gold); }
.toast i { font-size: 18px; flex-shrink: 0; }
.toast.success i { color: #16a34a; }
.toast.error i { color: var(--red); }
.toast.warning i { color: var(--gold-dark); }
.toast.info i { color: var(--primary); }
.toast-content { flex: 1; }
.toast-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.toast-msg { font-size: 13px; color: var(--text-muted); }
.toast-close { color: var(--text-light); cursor: pointer; font-size: 14px; background: none; border: none; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary));
  color: #fff; padding: 36px 0; text-align: center;
}
.page-header h1 { color: #fff; margin-bottom: 6px; }
.page-header .breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); }
.page-header .breadcrumb a { color: rgba(255,255,255,.85); }
.page-header .breadcrumb a:hover { color: var(--gold); }

/* --- Store / Listing Page --- */
.store-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 32px 0; width: 100%; min-width: 0; }
.store-sidebar { position: sticky; top: 160px; align-self: start; }
.filter-group { margin-bottom: 28px; }
.filter-group h4 { font-size: 14px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); display: inline-block; }
.filter-list label { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13.5px; color: var(--text); cursor: pointer; }
.filter-list label:hover { color: var(--primary); }
.filter-list input[type="checkbox"], .filter-list input[type="radio"] { accent-color: var(--primary); width: 15px; height: 15px; }
.filter-list .count { margin-left: auto; font-size: 12px; color: var(--text-light); }
.price-range { padding: 0 4px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--primary); }
.price-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

.store-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding: 14px 18px; background: var(--bg-light); border-radius: var(--radius-md);
}
.store-toolbar .result-count { font-size: 14px; color: var(--text-muted); }
.store-toolbar { gap: 16px; }
.store-toolbar .result-count { min-width: 0; }
.store-toolbar .result-count b { color: var(--text); }
.sort-select {
  padding: 8px 14px; border: 1px solid var(--border-dark); border-radius: 8px;
  font-size: 13px; background: #fff; cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--primary); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-dark); border-radius: 8px; font-size: 14px; font-weight: 600;
  color: var(--text); text-decoration: none; transition: all .15s; padding: 0 10px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { opacity: .4; pointer-events: none; }

.empty-state {
  text-align: center; padding: 60px 20px; grid-column: 1 / -1;
}
.empty-state i { font-size: 56px; color: var(--text-light); margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; color: var(--text); }
.empty-state p { color: var(--text-muted); margin-bottom: 20px; }

/* --- Product Detail --- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0; }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-light);
  margin-bottom: 12px; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-thumb {
  aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color .15s; background: var(--bg-light);
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info .prod-cat { font-size: 12px; }
.product-info h1 { font-size: 26px; margin: 6px 0 14px; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.product-rating .stars { color: var(--gold); font-size: 14px; }
.product-rating .rating-count { font-size: 13px; color: var(--text-muted); }
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-price { font-size: 30px; font-weight: 800; color: var(--primary); }
.product-retail { font-size: 18px; color: var(--text-light); text-decoration: line-through; }
.product-save { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.variant-group { margin-bottom: 20px; }
.variant-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.variant-group label .selected-val { color: var(--primary); font-weight: 600; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn {
  padding: 8px 16px; border: 1.5px solid var(--border-dark); border-radius: 8px;
  font-size: 13px; font-weight: 600; background: #fff; cursor: pointer; transition: all .15s;
  min-width: 44px; text-align: center;
}
.variant-btn:hover { border-color: var(--primary); color: var(--primary); }
.variant-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.variant-btn.disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.variant-btn.disabled:hover { border-color: var(--border-dark); color: inherit; }

.stock-status { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.stock-status.in-stock { color: #16a34a; }
.stock-status.low-stock { color: var(--gold-dark); }
.stock-status.out-of-stock { color: var(--red); }
.stock-status i { font-size: 12px; }

.quantity-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border-dark); border-radius: 8px; overflow: hidden; }
.qty-control button { width: 40px; height: 42px; font-size: 18px; color: var(--text); background: #fff; transition: background .15s; }
.qty-control button:hover { background: var(--bg-light); }
.qty-control button:disabled { opacity: .3; cursor: not-allowed; }
.qty-control input { width: 50px; height: 42px; text-align: center; border: none; outline: none; font-size: 15px; font-weight: 700; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }

.product-actions { display: flex; gap: 12px; margin-bottom: 24px; }
.product-actions .ua-btn { flex: 1; padding: 14px 24px; font-size: 15px; }
.product-actions .fav-btn {
  width: 52px; height: 52px; border: 1.5px solid var(--border-dark); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted);
  background: #fff; cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.product-actions .fav-btn:hover { border-color: var(--red); color: var(--red); }
.product-actions .fav-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

.product-meta { border-top: 1px solid var(--border); padding-top: 20px; }
.product-meta-row { display: flex; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.product-meta-row b { color: var(--text); min-width: 80px; }
.product-meta-row span { color: var(--text-muted); }

.product-tabs { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.tab-nav { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all .15s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p { color: var(--text); line-height: 1.8; }
.tab-content ul { padding-left: 20px; }
.tab-content ul li { list-style: disc; margin-bottom: 8px; color: var(--text); }

/* --- Cart Page --- */
.cart-page { padding: 32px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-items { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto auto; gap: 16px;
  padding: 20px; border-bottom: 1px solid var(--border); align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 100px; height: 100px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-light); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info h4 { font-size: 14px; margin-bottom: 4px; line-height: 1.4; }
.cart-item-info .ci-variant { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.cart-item-info .ci-remove { font-size: 12px; color: var(--red); cursor: pointer; background: none; border: none; padding: 0; }
.cart-item-info .ci-remove:hover { text-decoration: underline; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--primary); text-align: right; min-width: 80px; }
.cart-item .qty-control { margin: 0; }

.cart-summary {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; position: sticky; top: 160px;
}
.cart-summary h3 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; }
.summary-row.total { border-top: 2px solid var(--border); padding-top: 14px; margin-top: 14px; font-size: 18px; }
.summary-row.total .value { color: var(--primary); font-weight: 800; }
.promo-row { display: flex; gap: 8px; margin: 16px 0; }
.promo-row input { flex: 1; padding: 10px 14px; border: 1px solid var(--border-dark); border-radius: 8px; font-size: 13px; outline: none; }
.promo-row input:focus { border-color: var(--primary); }
.promo-row button { padding: 10px 18px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty i { font-size: 64px; color: var(--text-light); margin-bottom: 16px; }
.cart-empty h3 { margin-bottom: 8px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 24px; }

/* --- Checkout --- */
.checkout-page { padding: 32px 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.checkout-section { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
.checkout-section h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 .step-num {
  width: 28px; height: 28px; background: var(--primary); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group label .req { color: var(--red); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border-dark); border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color .15s; background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group input.error { border-color: var(--red); }
.form-group .error-msg { color: var(--red); font-size: 12px; margin-top: 4px; display: none; }
.form-group input.error + .error-msg { display: block; }
.form-group.full { grid-column: 1 / -1; }

.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border: 1.5px solid var(--border-dark); border-radius: var(--radius-md); cursor: pointer; transition: all .15s;
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.active { border-color: var(--primary); background: var(--bg-blue); }
.payment-method input { accent-color: var(--primary); }
.payment-method i { font-size: 22px; color: var(--text-muted); }
.payment-method .pm-name { font-weight: 600; font-size: 14px; }
.payment-method .pm-desc { font-size: 12px; color: var(--text-muted); }

.order-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 160px; }
.order-summary h3 { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.os-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.os-item:last-of-type { border-bottom: none; }
.os-item .os-name { flex: 1; }
.os-item .os-qty { color: var(--text-muted); margin: 0 12px; }
.os-item .os-price { font-weight: 600; }

/* --- Auth Pages --- */
.auth-page { min-height: calc(100vh - 148px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--bg-light); }
.auth-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 40px; width: 100%; max-width: 440px;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 24px; }
.auth-card h2 { text-align: center; margin-bottom: 6px; font-size: 24px; }
.auth-card .auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-card .ua-btn { width: 100%; padding: 13px; font-size: 15px; margin-top: 8px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-light); text-transform: uppercase; letter-spacing: .1em; }

/* --- Account / Client Area --- */
.account-page { padding: 32px 0; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; position: sticky; top: 160px; }
.account-user { padding: 24px; text-align: center; border-bottom: 1px solid var(--border); background: var(--bg-blue); }
.account-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  margin: 0 auto 12px;
}
.account-user h4 { font-size: 16px; margin-bottom: 2px; }
.account-user .user-email { font-size: 12px; color: var(--text-muted); }
.account-nav a {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 14px;
  color: var(--text); border-left: 3px solid transparent; transition: all .15s;
}
.account-nav a i { width: 18px; color: var(--text-muted); }
.account-nav a:hover { background: var(--bg-light); color: var(--primary); }
.account-nav a.active { background: var(--bg-blue); color: var(--primary); border-left-color: var(--primary); font-weight: 600; }
.account-nav a.active i { color: var(--primary); }
.account-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; min-height: 400px; min-width: 0; }
.account-layout { min-width: 0; }
.account-sidebar { min-width: 0; }
.account-content > .ca-tab { min-width: 0; }
.table-scroll { min-width: 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.account-content h2 { font-size: 22px; margin-bottom: 20px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-light); border-radius: var(--radius-md); padding: 20px; text-align: center; }
.stat-card .stat-val { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

.order-table { width: 100%; border-collapse: collapse; }
.order-table th { text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.order-table td { padding: 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.order-table tr:hover { background: var(--bg-light); }
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.status-badge.pending { background: #fef3c7; color: #92400e; }
.status-badge.processing { background: #dbeafe; color: #1e40af; }
.status-badge.shipped { background: #e0e7ff; color: #3730a3; }
.status-badge.delivered { background: #dcfce7; color: #166534; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }
.status-badge.refunded { background: #f3e8ff; color: #6b21a8; }

/* --- Affiliate / Refer Page --- */
.refer-hero {
  background: linear-gradient(135deg, var(--primary-darker), var(--primary-light));
  color: #fff; padding: 48px 0; text-align: center;
}
.refer-hero h1 { color: #fff; margin-bottom: 10px; }
.refer-hero p { color: rgba(255,255,255,.85); font-size: 16px; max-width: 560px; margin: 0 auto; }
.refer-rate { font-size: 48px; font-weight: 800; color: var(--gold); margin: 16px 0; }
.refer-section { padding: 40px 0; }
.refer-link-box {
  background: #fff; border: 2px solid var(--primary); border-radius: var(--radius-md);
  padding: 20px; display: flex; gap: 12px; align-items: center; margin: 24px 0;
}
.refer-link-box input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border-dark); border-radius: 8px;
  font-size: 13px; background: var(--bg-light); color: var(--text); outline: none;
}
.refer-link-box button { padding: 10px 20px; background: var(--primary); color: #fff; border-radius: 8px; font-weight: 600; font-size: 13px; }

.commission-table { width: 100%; border-collapse: collapse; }
.commission-table th { text-align: left; padding: 12px 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.commission-table td { padding: 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.commission-table .amount { font-weight: 700; color: var(--primary); }

/* --- Favorites --- */
.favorites-page { padding: 32px 0; }

/* --- Info Pages (About, Contact, etc.) --- */
.info-page { padding: 40px 0; max-width: 900px; margin: 0 auto; }
.info-page h1 { margin-bottom: 24px; }
.info-page h2 { margin: 32px 0 14px; font-size: 22px; }
.info-page p { line-height: 1.8; color: var(--text); }
.info-page ul { padding-left: 24px; margin-bottom: 16px; }
.info-page ul li { list-style: disc; margin-bottom: 8px; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px; }
.contact-info-card { background: var(--bg-light); border-radius: var(--radius-md); padding: 28px; }
.contact-info-card h3 { margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 18px; }
.contact-item i { font-size: 20px; color: var(--primary); width: 24px; text-align: center; margin-top: 2px; }
.contact-item div b { display: block; font-size: 14px; margin-bottom: 2px; }
.contact-item div span { font-size: 13px; color: var(--text-muted); }

/* --- Blog --- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: all .2s; text-decoration: none; }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); font-size: 40px; }
.blog-card-body { padding: 20px; }
.blog-card-body .blog-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); font-weight: 700; margin-bottom: 8px; }
.blog-card-body h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Loading spinner --- */
.loading-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 3000;
}
.loading-overlay.hidden { display: none; }
.spinner {
  width: 44px; height: 44px; border: 3px solid var(--bg-lighter); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
.skeleton { background: linear-gradient(90deg, var(--bg-lighter) 25%, var(--bg-light) 50%, var(--bg-lighter) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- Responsive --- */
@media (max-width: 1199px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-stats { gap: 24px; }
}

@media (max-width: 991px) {
  body.has-fixed-header { padding-top: 0; }
  .site-header { position: relative; }
  .header-main { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search toggle"; gap: 16px; }
  .header-actions { display: none; }
  .header-search { max-width: none; }
  .mobile-toggle { display: flex; grid-area: toggle; }
  .nav-bar { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); z-index: 999; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav-bar.open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; padding: 10px 0; }
  .nav-item > a { padding: 12px 20px; justify-content: space-between; }
  .mega-menu { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border: none; border-radius: 0; display: none; }
  .nav-item.open .mega-menu { display: block; }
  .mega-inner { grid-template-columns: 1fr; }
  .mega-feature { display: none; }
  .mega-grid.c4 { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 20px; text-align: center; }
  .hero-text p { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-chips, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }

  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .store-layout { grid-template-columns: 1fr; }
  .store-sidebar { position: static; display: none; }
  .store-sidebar.open { display: block; }
  .store-layout.filters-open .store-sidebar { display: block; }
  .mobile-filter-btn { display: inline-flex !important; }

  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .order-summary { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .container { padding: 0 14px; }
  .header-main { grid-template-columns: auto 1fr auto; gap: 10px; }
  .header-logo .logo-word { display: none; }
  .search-bar { height: 40px; }
  .trust-inner { grid-template-columns: 1fr; gap: 14px; }
  .cat-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .prod-info { padding: 10px 12px 14px; }
  .prod-name { font-size: 13px; }
  .prod-price { font-size: 15px; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-copyright { flex-direction: column; gap: 8px; text-align: center; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stats b { font-size: 20px; }
  .ua-section { padding: 36px 0; }
  .cart-item { grid-template-columns: 70px 1fr; grid-template-rows: auto auto; }
  .cart-item-img { width: 70px; height: 70px; }
  .cart-item-price { grid-column: 2; text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-toggle { width: 48px; height: 48px; font-size: 18px; }
  .toast-container { top: auto; bottom: 80px; right: 12px; left: 12px; }
  .toast { min-width: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-card .stat-val { font-size: 22px; }
  .blog-grid { grid-template-columns: 1fr; }
  .product-actions { flex-direction: column; }
  .product-actions .fav-btn { width: 100%; height: 48px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
}

/* Mobile filter button (hidden on desktop) */
.mobile-filter-btn { display: none; }

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================================
   SUPPLEMENT — components used by app.js controllers
   ============================================================ */

/* Safety net against horizontal overflow */
html { overflow-x: clip; }
.prod-grid > *, .cat-grid > *, .brand-grid > * { min-width: 0; }

/* --- Buttons (.btn) --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1.5px solid transparent; transition: all .18s ease; white-space: nowrap;
  text-decoration: none; line-height: 1.1;
}
.btn svg, .btn i { width: 15px; height: 15px; font-size: 14px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--bg-blue); color: var(--primary-dark); }
.btn.block { width: 100%; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Small spinner inside buttons */
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite; background: transparent; flex-shrink: 0;
}
.btn-outline .spinner { border-color: rgba(0,67,139,.3); border-top-color: var(--primary); }
.page-loading .spinner {
  width: 40px; height: 40px; border: 3px solid var(--bg-lighter);
  border-top-color: var(--primary);
}

/* --- Product cards (data.js productCard) --- */
.product-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: all .2s ease; min-width: 0;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 1; background: var(--bg-light); }
.product-img-link { display: block; width: 100%; height: 100%; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media .fav-btn {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,.92); z-index: 4;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); padding: 0;
}
.product-media .fav-btn svg { width: 16px; height: 16px; color: var(--text-muted); }
.product-media .fav-btn.active svg { color: var(--red); }
.product-badge {
  position: absolute; top: 10px; left: 10px; z-index: 4; font-size: 10.5px;
  font-weight: 700; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-soldout { background: #374151; color: #fff; }
.badge-bestseller { background: var(--gold); color: #1a1a1a; }
.badge-new { background: var(--primary); color: #fff; }
.badge-sale { background: var(--red); color: #fff; }
.product-card .product-info {
  padding: 12px 14px 16px; display: flex; flex-direction: column;
  gap: 5px; flex: 1;
}
.product-brand {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-light); font-weight: 700;
}
.product-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .star { font-style: normal; font-size: inherit; line-height: 1; }
.stars .star.empty { color: #d8dce1; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.product-price .price-current { font-size: 17px; font-weight: 800; color: var(--primary); }
.product-price .price-original { font-size: 13px; color: var(--text-light); text-decoration: line-through; font-weight: 500; }

/* Skeleton cards */
.skeleton-card { padding: 0; }
.skeleton-media { aspect-ratio: 1; }
.skeleton-lines { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.skeleton-line { height: 13px; border-radius: 4px; }
.skeleton-line.short { width: 55%; }

/* Empty state */
.empty-state {
  text-align: center; padding: 56px 20px; min-height: 360px; grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.empty-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--bg-light);
  color: var(--text-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.empty-icon svg { width: 34px; height: 34px; }
.empty-state h3 { margin-bottom: 2px; }
.empty-state p { color: var(--text-muted); max-width: 420px; margin-bottom: 14px; }

/* --- Store / filters --- */
.store-main { min-width: 0; width: 100%; }
.filter-group { margin-bottom: 26px; }
.filter-group h5 {
  font-size: 13px; margin-bottom: 12px; padding-bottom: 7px;
  border-bottom: 2px solid var(--primary); display: inline-block;
}
.filter-opt {
  display: flex; align-items: center; gap: 8px; padding: 5px 0;
  font-size: 13.5px; color: var(--text); cursor: pointer;
}
.filter-opt:hover { color: var(--primary); }
.filter-opt input { accent-color: var(--primary); width: 15px; height: 15px; flex-shrink: 0; }
.sort-wrap { display: flex; align-items: center; gap: 10px; }
.sort-wrap label { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.mobile-filter-btn {
  display: none; align-items: center; gap: 7px; padding: 9px 16px;
  background: #fff; border: 1.5px solid var(--border-dark); border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filter-panel-head h2 { margin: 0; font-size: 18px; }
.filter-close { display: none; width: 34px; height: 34px; border: 1px solid var(--border-dark); border-radius: 8px; background: #fff; color: var(--text); }

/* --- Search page --- */
.search-page-wrap { padding: 34px 0; min-width: 0; }
.search-page-form {
  display: flex; gap: 10px; align-items: center; background: var(--bg-light);
  padding: 8px 14px; border-radius: 12px; margin-bottom: 26px;
}
.search-page-form i { color: var(--text-muted); }
.search-page-form input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 15px; }
.search-head h1 { font-size: 26px; margin-bottom: 4px; word-break: break-word; }
.search-count { color: var(--text-muted); font-size: 14px; }
.search-all {
  display: block; text-align: center; padding: 12px; font-size: 13px;
  font-weight: 700; color: var(--primary); border-top: 1px solid var(--border);
}
.search-all:hover { background: var(--bg-blue); }
.si-brand { font-size: 11.5px; color: var(--text-muted); }

/* --- Product detail (PDP) --- */
.product-root { padding: 30px 0; min-width: 0; }
.page-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 70px 20px; color: var(--text-muted);
}
.pdp-layout {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 40px; align-items: start;
}
.pdp-gallery { min-width: 0; }
.pdp-main-img {
  position: relative; aspect-ratio: 1; border-radius: 14px;
  overflow: hidden; background: var(--bg-light);
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-fav {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255,255,255,.92); z-index: 5;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); padding: 0;
}
.pdp-fav i { color: var(--text-muted); }
.pdp-fav.active i { color: var(--red); }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 12px; }
.pdp-thumb {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: var(--bg-light); padding: 0;
}
.pdp-thumb.active { border-color: var(--primary); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { min-width: 0; }
.breadcrumb { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.pdp-brand { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.pdp-brand span { font-weight: 400; }
.pdp-title { font-size: clamp(22px,3vw,30px); margin-bottom: 10px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.pdp-price { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pdp-price .price-current { font-size: 28px; font-weight: 800; color: var(--primary); }
.pdp-price .price-original { font-size: 17px; color: var(--text-light); text-decoration: line-through; }
.save-tag { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pdp-stock { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; color: #16a34a; }
.pdp-stock.out { color: var(--red); }
.pdp-option { margin-bottom: 18px; }
.option-head {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 700; margin-bottom: 9px; flex-wrap: wrap;
}
.option-head b { color: var(--primary); font-weight: 600; }
.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-dark);
  padding: 0; position: relative;
}
.color-swatch.active { outline: 2px solid var(--primary); outline-offset: 2px; }
.size-mode { display: inline-flex; border: 1.5px solid var(--border-dark); border-radius: 8px; overflow: hidden; }
.size-mode button { padding: 5px 12px; font-size: 12px; font-weight: 700; background: #fff; color: var(--text-muted); }
.size-mode button.active { background: var(--primary); color: #fff; }
.size-guide-link { font-size: 12px; font-weight: 600; margin-left: auto; }
.size-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt {
  min-width: 46px; padding: 9px 12px; border: 1.5px solid var(--border-dark);
  border-radius: 8px; font-size: 13px; font-weight: 600; background: #fff;
}
.size-opt:hover { border-color: var(--primary); color: var(--primary); }
.size-opt.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.size-error { color: var(--red); font-size: 12.5px; margin-top: 8px; min-height: 16px; }
.pdp-buy { display: flex; gap: 12px; margin: 20px 0; flex-wrap: wrap; align-items: center; }
.add-cart { flex: 1; min-width: 190px; padding: 14px; font-size: 15px; border-radius: 10px; }
.pdp-perks {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.pdp-perks div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); text-align: center; }
.pdp-perks i { color: var(--primary); font-size: 18px; }

/* PDP tabs */
.pdp-tabs { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 28px; }
.tab-head { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 22px; flex-wrap: wrap; }
.pdp-tabs .tab-btn {
  padding: 12px 20px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; background: none;
}
.pdp-tabs .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; min-width: 0; }
.tab-panel.active { display: block; }
.feature-list { display: grid; gap: 8px; margin-top: 12px; }
.feature-list li { display: flex; gap: 9px; font-size: 14px; }
.feature-list i { color: #16a34a; margin-top: 4px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; color: var(--text-muted); font-weight: 600; }
.review-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.review-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.review-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.write-review, .ask-qa {
  margin-top: 24px; background: var(--bg-light); border-radius: 12px;
  padding: 20px; display: grid; gap: 10px;
}
.write-review h4, .ask-qa h4 { font-size: 15px; }
.star-pick { display: flex; gap: 4px; font-size: 26px; }
.star-pick button { color: #d8dce1; line-height: 1; padding: 2px; }
.star-pick button.active { color: var(--gold); }
.write-review input, .write-review textarea, .ask-qa textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border-dark);
  border-radius: 8px; outline: none; resize: vertical;
}
.qa-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
.qa-q { font-weight: 700; font-size: 14px; margin-bottom: 6px; display: flex; gap: 8px; }
.qa-q i { color: var(--primary); }
.qa-a { font-size: 13.5px; color: var(--text); display: flex; gap: 8px; margin-bottom: 6px; }
.qa-a i { color: var(--text-muted); }
.qa-meta { font-size: 12px; color: var(--text-light); }
.pdp-related { margin-top: 48px; }
.pdp-related h2 { font-size: 22px; margin-bottom: 20px; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 2500; padding: 16px;
}
.modal.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 14px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow: auto;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 17px; }
.modal-head button { color: var(--text-muted); font-size: 16px; }
.modal-body { padding: 22px; }
.size-guide-table { width: 100%; border-collapse: collapse; }
.size-guide-table th, .size-guide-table td { padding: 9px; text-align: center; font-size: 13px; border-bottom: 1px solid var(--border); }
.size-guide-table th { background: var(--bg-light); }
.size-note { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; margin-bottom: 0; }

/* --- Cart --- */
.cart-head {
  display: grid; grid-template-columns: minmax(0,1fr) 90px 140px 90px 44px;
  gap: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); padding: 14px 18px; border-bottom: 2px solid var(--border);
  background: var(--bg-light);
}
.cart-line {
  display: grid; grid-template-columns: minmax(0,1fr) 90px 140px 90px 44px;
  gap: 14px; align-items: center; padding: 18px; border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: none; }
.cart-item { display: flex; gap: 14px; min-width: 0; align-items: center; }
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item > div { min-width: 0; }
.cart-name { font-size: 14px; font-weight: 600; color: var(--text); display: block; line-height: 1.35; }
.cart-name:hover { color: var(--primary); }
.cart-variant { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-price, .cart-total { font-weight: 800; color: var(--price-accent); white-space: nowrap; }
.cart-remove { color: var(--text-light); padding: 8px; }
.cart-remove:hover { color: var(--red); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 10px; align-items: baseline; }
.sum-row b { font-weight: 700; text-align: right; }
.sum-row.total { border-top: 2px solid var(--border); padding-top: 14px; margin-top: 14px; font-size: 17px; }
.sum-row.total b { color: var(--primary); font-size: 19px; }

/* --- Checkout --- */
.auth-required { text-align: center; padding: 60px 20px; max-width: 580px; margin: 0 auto; }
.ar-icon {
  width: 74px; height: 74px; border-radius: 50%; background: var(--bg-blue);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 20px;
}
.auth-required h1 { font-size: 28px; margin-bottom: 10px; }
.auth-required p { color: var(--text-muted); }
.ar-actions { display: flex; gap: 12px; justify-content: center; margin: 22px 0; flex-wrap: wrap; }
.back-link { font-size: 13px; color: var(--text-muted); }
.checkout-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 28px; align-items: start; }
.checkout-main { min-width: 0; }
.test-pay-banner {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 10px; padding: 12px 16px; font-size: 13px;
  margin-bottom: 18px; display: flex; gap: 10px; align-items: center;
}
.co-section {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; margin-bottom: 18px;
}
.co-section h2 { font-size: 17px; margin-bottom: 16px; }
.co-section input, .co-section select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border-dark);
  border-radius: 8px; font-size: 14px; outline: none; background: #fff;
}
.co-section input:focus, .co-section select:focus { border-color: var(--primary); }
.co-section input.invalid { border-color: var(--red); }
.form-row { margin-bottom: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ship-opt, .pay-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1.5px solid var(--border-dark); border-radius: 10px;
  margin-bottom: 10px; cursor: pointer; font-size: 14px; transition: border-color .15s;
}
.ship-opt:hover, .pay-opt:hover { border-color: var(--primary); }
.ship-opt input, .pay-opt input { accent-color: var(--primary); width: auto; flex-shrink: 0; }
.ship-opt > span { display: flex; flex-direction: column; flex: 1; }
.ship-opt small { color: var(--text-muted); }
.opt-price { font-weight: 700; white-space: nowrap; }
.pay-opt i { font-size: 20px; color: var(--text-muted); width: 22px; text-align: center; }
.pay-opt b { flex: 1; font-size: 14px; }
.test-tag {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  background: #fed7aa; color: #9a3412; padding: 2px 8px; border-radius: 999px;
}
.card-fields {
  margin: -4px 0 12px 26px; padding: 14px 0 4px 16px;
  border-left: 2px solid var(--border); display: grid; gap: 10px;
}
.card-fields input { width: 100%; }
.checkout-side {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; position: sticky; top: 160px; min-width: 0;
}
.checkout-side h2 { font-size: 17px; margin-bottom: 14px; }
.co-item {
  display: flex; gap: 10px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.co-item img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.co-item div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-item small { color: var(--text-muted); }
.co-item b { font-weight: 700; white-space: nowrap; }
.coupon-row { display: flex; gap: 8px; margin: 14px 0 6px; }
.coupon-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--border-dark); border-radius: 8px; outline: none; }
.coupon-ok { color: #16a34a; font-size: 13px; font-weight: 600; }
.coupon-err { color: var(--red); font-size: 13px; }
.co-note { font-size: 11.5px; color: var(--text-muted); margin-top: 12px; margin-bottom: 0; }

/* --- Order confirmation --- */
.order-confirm { max-width: 900px; margin: 0 auto; padding: 30px 0; }
.confirm-icon { text-align: center; }
.confirm-icon i { font-size: 64px; color: #16a34a; }
.order-confirm h1 { text-align: center; font-size: 28px; margin: 14px 0 10px; }
.confirm-note {
  text-align: center; color: var(--text-muted); font-size: 14px;
  background: var(--bg-light); padding: 12px 16px; border-radius: 10px;
}
.confirm-num { text-align: center; font-size: 14px; margin: 18px 0; word-break: break-word; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.confirm-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; min-width: 0; }
.confirm-card h3 { font-size: 15px; margin-bottom: 14px; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.com-status {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap;
}
.com-status.processing { background: #dbeafe; color: #1e40af; }
.com-status.pending { background: #fef3c7; color: #92400e; }
.com-status.approved, .com-status.delivered, .com-status.paid { background: #dcfce7; color: #166534; }
.com-status.cancelled { background: #fee2e2; color: #991b1b; }
.com-status.shipped, .com-status.withdrawn { background: #e0e7ff; color: #3730a3; }

/* --- Auth pages extras --- */
.form-alert {
  display: none; background: #fee2e2; color: #991b1b; border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}
.form-alert:not(:empty) { display: block; }
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 44px; }
.pwd-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); padding: 9px; background: none;
}
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.remember-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.remember-label input { accent-color: var(--primary); width: auto; }
.forgot-link { font-size: 13px; font-weight: 600; }
.affiliate-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; text-align: center; }

/* --- Client area --- */
.ca-tab { display: none; min-width: 0; }
.ca-tab.active { display: block; }
.ca-tab h2 { font-size: 21px; margin-bottom: 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ca-table { width: 100%; border-collapse: collapse; min-width: 580px; }
.ca-table th {
  text-align: left; padding: 12px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border);
}
.ca-table td { padding: 12px; font-size: 13px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.ca-actions { white-space: normal; }
.mini-btn {
  display: inline-block; padding: 5px 11px; font-size: 11.5px; border-radius: 6px;
  border: 1px solid var(--border-dark); background: #fff; color: var(--text);
  margin: 2px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--primary); color: var(--primary); }
.empty-mini { padding: 26px 8px; color: var(--text-muted); font-size: 14px; }
.dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 18px 0 26px; }
.dash-card {
  background: var(--bg-light); border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  color: var(--text); border: 1px solid transparent;
}
a.dash-card:hover { border-color: var(--border-dark); }
.dash-card span { font-size: 22px; font-weight: 800; color: var(--primary); word-break: break-word; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.set-card {
  background: var(--bg-light); border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.set-card h3 { font-size: 15px; }
.set-card input, .set-card textarea {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--border-dark);
  border-radius: 8px; background: #fff; outline: none; resize: vertical;
}
.set-card input:focus, .set-card textarea:focus { border-color: var(--primary); }

/* --- Refer dashboard --- */
.refer-code-box {
  background: var(--bg-blue); border: 1px solid #cfe0f5;
  border-radius: 12px; padding: 22px; margin-bottom: 20px;
}
.refer-code-box small { color: var(--text-muted); display: block; }
.refer-link { display: flex; gap: 10px; margin: 10px 0; }
.refer-link input { flex: 1; min-width: 0; padding: 10px 13px; border: 1.5px solid var(--border-dark); border-radius: 8px; }
.refer-code b { color: var(--primary); }
.refer-stats {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 14px; margin-bottom: 22px;
}
.refer-stats .stat-card {
  background: var(--bg-light); border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.refer-stats .stat-card span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.refer-stats .stat-card b { font-size: 19px; color: var(--primary); word-break: break-word; }
.refer-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.refer-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; min-width: 0; }
.refer-card h3 { font-size: 15px; margin-bottom: 14px; }
.refer-table { width: 100%; border-collapse: collapse; min-width: 440px; }
.refer-table th { text-align: left; padding: 11px; font-size: 11px; text-transform: uppercase; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.refer-table td { padding: 11px; font-size: 13px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.withdraw-row { display: flex; gap: 10px; flex-wrap: wrap; }
.withdraw-row input { flex: 1; min-width: 130px; padding: 10px 13px; border: 1.5px solid var(--border-dark); border-radius: 8px; outline: none; }
.withdraw-row select { padding: 10px; border-radius: 8px; border: 1.5px solid var(--border-dark); }
.muted { color: var(--text-muted); font-size: 13.5px; }

/* --- Favorites notice --- */
.fav-notice {
  display: flex; align-items: center; gap: 10px; background: var(--bg-blue);
  border: 1px solid #cfe0f5; border-radius: 10px; padding: 12px 16px;
  font-size: 13.5px; margin-bottom: 22px;
}

/* --- Contact success --- */
.form-success { text-align: center; padding: 36px 20px; }
.form-success i { font-size: 48px; color: #16a34a; display: block; margin-bottom: 14px; }

/* --- Legal pages --- */
.legal-page { max-width: 860px; }
.legal-updated { color: var(--text-muted); font-size: 13px; font-style: italic; }
.legal-page h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page ul li { list-style: disc; margin-bottom: 7px; }
.legal-page code { background: var(--bg-light); padding: 2px 6px; border-radius: 5px; font-size: 13px; }

/* Footer payment text badges */
.pay-icon.pay-text { gap: 6px; padding: 7px 13px; }
.pay-icon.pay-text b { color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.pay-icon.pay-text.mc b { color: #f5b301; }
.pay-icon.pay-text.amex b { color: #4da3ff; }
.pay-icon.pay-text.pp b { color: #9bc1ff; }

/* Toast icon */
.toast-icon { display: flex; flex-shrink: 0; }
.toast-icon svg { width: 20px; height: 20px; }
.toast.success .toast-icon { color: #16a34a; }
.toast.error .toast-icon { color: var(--red); }
.toast.warning .toast-icon { color: var(--gold-dark); }
.toast.info .toast-icon { color: var(--primary); }
.toast.hide { opacity: 0; transform: translateX(30px); transition: all .3s ease; }
.toast-close svg { width: 14px; height: 14px; color: var(--text-light); }

/* Chat extras */
.chat-launch-label { display: none; }
.chat-header .chat-status::before { display: none; }
.chat-tools { display: flex; gap: 4px; }
.chat-tools button { color: rgba(255,255,255,.8); padding: 6px 8px; background: none; }
.chat-tools button:hover { color: #fff; }
.chat-quick { display: flex; gap: 6px; padding: 0 12px 10px; flex-wrap: wrap; }
.chat-quick button {
  font-size: 11.5px; border: 1px solid var(--border-dark); border-radius: 999px;
  padding: 5px 12px; color: var(--primary); background: #fff;
}
.chat-quick button:hover { background: var(--bg-blue); }
.chat-msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.chat-msg.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-light);
  animation: typingBounce 1s infinite;
}
.chat-msg.typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-error { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.chat-retry {
  align-self: flex-start; border: 1px solid var(--border-dark); border-radius: 6px;
  padding: 5px 12px; font-size: 12px; background: #fff; color: var(--text);
}
.status-dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; display: inline-block; }

/* Mobile nav quick links */
.mobile-nav-quick { display: none; }

/* --- Responsive supplement --- */
@media (max-width: 991px) {
  .mobile-nav-quick {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
  }
  .mobile-nav-quick a {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    background: var(--bg-light); border-radius: 8px; font-size: 13px;
    font-weight: 600; color: var(--text); position: relative;
  }
  .mobile-nav-quick a .cart-badge { position: static; margin-left: auto; }
  .pdp-layout { grid-template-columns: 1fr; gap: 28px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
  .confirm-grid { grid-template-columns: 1fr; }
  .refer-two { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2,1fr); }
  .store-layout.filters-open .store-sidebar { display: block; }
  .filter-close { display: inline-grid; place-items: center; }
}

@media (max-width: 575px) {
  .cart-head { display: none; }
  .cart-line {
    grid-template-columns: 72px minmax(0,1fr) 40px;
    grid-template-areas: "img info remove" "img price remove" "qty qty remove" "total total remove";
    gap: 10px; padding: 16px;
  }
  .cart-line .cart-item { grid-area: img; }
  .cart-line .cart-item img { width: 72px; height: 72px; }
  .cart-line .cart-item > div { display: none; }
  .cart-line .cart-price { grid-area: price; font-size: 13px; }
  .cart-line .qty-control { grid-area: qty; justify-self: start; }
  .cart-line .cart-total { grid-area: total; }
  .cart-line .cart-remove { grid-area: remove; align-self: start; }
  .form-row.two { grid-template-columns: 1fr; }
  .pdp-buy .qty-control { width: 100%; justify-content: space-between; }
  .pdp-buy .qty-control input { flex: 1; }
  .add-cart { min-width: 0; width: 100%; }
  .pdp-perks { gap: 8px; }
  .pdp-perks div { font-size: 11px; }
  .card-fields { margin-left: 10px; padding-left: 12px; }
  .ar-actions .btn { flex: 1; }
}

/* ============================================================
   v2 COMPONENTS — API-driven storefront
   ============================================================ */
.content-page { padding: 34px 20px 60px; flex:1; }
.legal-doc { max-width: 880px; padding: 30px 20px 70px; flex:1; }
.legal-doc.narrow { max-width: 640px; }
.legal-doc h2 { margin: 28px 0 10px; font-size: 21px; }
.legal-doc h3 { margin: 18px 0 8px; }
.legal-doc p { margin-bottom: 12px; color: #333; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px 22px; }
.legal-doc ul { list-style: disc; } .legal-doc ol { list-style: decimal; }
.legal-doc li { margin-bottom: 7px; }
.legal-doc .updated { color: var(--text-muted); font-size: 13.5px; }
.legal-doc table, .product-tabs table, .table-wrap table { width:100%; border-collapse: collapse; }
.legal-doc th, .legal-doc td { border:1px solid var(--border); padding:9px 11px; text-align:left; font-size:14px; vertical-align:top; }
.legal-doc th { background: var(--bg-light); }

/* ---- product detail ---- */
.product-layout { display:grid; grid-template-columns: 1.05fr 1fr; gap: 40px; margin: 22px 0 40px; }
.product-gallery .main-image { border-radius: 14px; overflow:hidden; border:1px solid var(--border); background: var(--bg-light); }
.product-gallery .main-image img { width:100%; aspect-ratio:1; object-fit:cover; }
.thumbs { display:flex; gap:10px; margin-top:12px; }
.thumbs .thumb { width:72px; height:72px; border-radius:9px; overflow:hidden; border:2px solid transparent; padding:0; cursor:pointer; }
.thumbs .thumb img { width:100%; height:100%; object-fit:cover; }
.thumbs .thumb.active { border-color: var(--primary); }
.pd-brand { color: var(--gold-dark); font-weight:700; text-transform:uppercase; letter-spacing:.06em; font-size:12.5px; }
.pd-name { font-size:29px; line-height:1.2; margin:6px 0 8px; }
.pd-rating { display:flex; align-items:center; gap:8px; color:var(--text-muted); font-size:13.5px; margin-bottom:14px; }
.pd-price { display:flex; align-items:baseline; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.pd-price .now { font-size:27px; font-weight:800; }
.pd-price .was { color:var(--text-muted); text-decoration:line-through; }
.pd-price .save { color:var(--red); font-weight:700; font-size:14px; }
.pd-desc { color:#444; margin-bottom:18px; }
.opt-group { margin-bottom:18px; }
.opt-label { display:block; font-weight:600; margin-bottom:9px; font-size:14px; }
.color-swatches { display:flex; gap:10px; flex-wrap:wrap; }
.swatch { width:38px; height:38px; border-radius:50%; border:2px solid var(--border); cursor:pointer; font-size:11px; color:#333; display:flex; align-items:center; justify-content:center; }
.swatch.active { outline:2px solid var(--primary); outline-offset:2px; }
.size-options { display:flex; gap:9px; flex-wrap:wrap; }
.size-btn { min-width:52px; padding:10px 12px; border:1.5px solid var(--border); border-radius:9px; font-weight:600; background:#fff; }
.size-btn.active { border-color:var(--primary); background:var(--bg-blue); color:var(--primary); }
.qty-row { display:flex; align-items:center; gap:18px; margin:18px 0; flex-wrap:wrap; }
.qty-control { display:flex; align-items:center; border:1.5px solid var(--border); border-radius:9px; overflow:hidden; }
.qty-control button { width:38px; height:40px; font-size:18px; background:#fff; }
.qty-control input { width:54px; height:40px; text-align:center; border:none; border-left:1px solid var(--border); border-right:1px solid var(--border); }
.qty-control.sm button { width:28px; height:30px; font-size:14px; } .qty-control.sm .ci-qty { padding:0 8px; }
.stock-note { font-size:13.5px; color:var(--primary); display:flex; gap:7px; align-items:center; }
.stock-note.out { color:var(--red); }
.pd-actions { display:flex; gap:12px; margin:8px 0 16px; }
.btn-lg { padding:14px 22px; font-size:15.5px; }
.pd-trust { display:flex; flex-direction:column; gap:9px; color:#444; font-size:13.5px; border-top:1px solid var(--border); padding-top:16px; }
.pd-trust i { color:var(--primary); width:20px; }
.product-tabs { border:1px solid var(--border); border-radius:12px; overflow:hidden; margin-bottom:40px; }
.pt-headers { display:flex; border-bottom:1px solid var(--border); background:var(--bg-light); flex-wrap:wrap; }
.pt-tab { padding:15px 20px; font-weight:600; color:#555; border-bottom:3px solid transparent; }
.pt-tab.active { color:var(--primary); border-bottom-color:var(--primary); background:#fff; }
.pt-body { padding:22px 24px; }
.feature-list { margin-top:12px; }
.feature-list li { margin-bottom:9px; display:flex; gap:9px; }
.feature-list i { color:var(--primary); margin-top:5px; }
.spec-table th { width:200px; }
.review-item { border-bottom:1px solid var(--border); padding:14px 0; }
.review-head { display:flex; gap:12px; align-items:center; margin-bottom:6px; }
.qa-item { border-bottom:1px solid var(--border); padding:12px 0; }
.related-sec { margin-bottom:30px; }

/* ---- checkout ---- */
.checkout-layout { display:grid; grid-template-columns: 1.5fr 1fr; gap:26px; align-items:start; padding:26px 0 60px; }
.checkout-card { background:#fff; border:1px solid var(--border); border-radius:13px; padding:22px; margin-bottom:18px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.checkout-card h3 { font-size:16px; margin-bottom:15px; display:flex; gap:9px; align-items:center; }
.checkout-card h3 i { color:var(--primary); }
.addr-form input, .addr-form select { margin-bottom:10px; }
.block { width:100%; }
.form-row.two { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ship-option { display:flex; align-items:center; gap:12px; border:1.5px solid var(--border); border-radius:10px; padding:13px 15px; margin-bottom:10px; cursor:pointer; }
.ship-option input { width:auto; }
.so-main { flex:1; display:flex; flex-direction:column; } .so-main span { color:var(--text-muted); font-size:13px; }
.so-price { font-weight:700; }
.coupon-row { display:flex; gap:9px; } .coupon-row input { flex:1; }
.coupon-msg { margin-top:9px; font-size:13.5px; }
.coupon-msg .ok { color:var(--primary); } .coupon-msg .err { color:var(--red); }
.pay-methods { display:flex; flex-direction:column; gap:10px; }
.pay-option { display:flex; align-items:center; gap:11px; border:1.5px solid var(--border); border-radius:10px; padding:13px 15px; cursor:pointer; }
.pay-option input { width:auto; } .pay-option i { font-size:21px; color:var(--primary); }
.dev-pay-notice { background:#fff8e6; border:1px solid #f0d98c; color:#7a5b12; border-radius:10px; padding:12px 14px; font-size:13.5px; margin-top:12px; }
.checkout-summary { background:#fff; border:1px solid var(--border); border-radius:13px; padding:22px; position:sticky; top:20px; box-shadow:0 1px 3px rgba(0,0,0,.04); }
.checkout-summary h3 { margin-bottom:14px; }
.co-items { max-height:300px; overflow-y:auto; margin-bottom:14px; }
.co-item { display:flex; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); font-size:13.5px; }
.co-item img { width:46px; height:46px; border-radius:8px; object-fit:cover; }
.coi-info { flex:1; display:flex; flex-direction:column; }
.sum-row { display:flex; justify-content:space-between; padding:7px 0; font-size:14px; }
.sum-row.total { border-top:1px solid var(--border); margin-top:8px; padding-top:12px; font-size:16px; }
.sum-row.muted span { color:var(--text-muted); font-size:13px; }
.ftc-note { color:var(--text-muted); margin-top:12px; }
.ftc-note.sm, .muted.sm { font-size:12.5px; }

/* ---- confirmation ---- */
.confirm-card { max-width:620px; margin:30px auto; background:#fff; border:1px solid var(--border); border-radius:16px; padding:38px; text-align:center; box-shadow:0 4px 18px rgba(0,0,0,.05); }
.confirm-icon i { font-size:60px; color:var(--primary); }
.confirm-card.pending .confirm-icon i { color:#d4a017; }
.confirm-card h1 { font-size:25px; margin:14px 0 6px; }
.confirm-details { text-align:left; margin:20px 0; }
.confirm-items { text-align:left; border-top:1px solid var(--border); padding-top:14px; margin-bottom:16px; }

/* ---- client area ---- */
.dash-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin:18px 0; }
.dash-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px; display:flex; gap:14px; align-items:center; }
.dash-card i { font-size:24px; color:var(--primary); }
.dash-card b { font-size:22px; display:block; } .dash-card span { color:var(--text-muted); font-size:13px; }
.quick-links { display:flex; gap:12px; margin:16px 0 24px; flex-wrap:wrap; }
.settings-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; margin-bottom:18px; }
.settings-card h3 { margin-bottom:14px; }
.btn.danger, .danger { color:var(--red); }
.btn.outline.danger { border-color:#e6b8b7; }
.result-ok { text-align:center; color:var(--primary); }
.result-ok i { font-size:46px; margin-bottom:10px; }
.result-ok-inline { color:var(--primary); font-weight:600; }
.result-ok-inline i { margin-right:6px; }
.login-prompt { background:var(--bg-light); border:1px solid var(--border); border-radius:12px; padding:26px; text-align:center; }
.login-prompt i { font-size:30px; color:var(--primary); margin-bottom:10px; }

/* ---- status pills ---- */
.status-pill { display:inline-block; padding:3px 11px; border-radius:999px; font-size:12px; font-weight:700; text-transform:capitalize; }
.status-pill.pending { background:#fef3c7; color:#92660c; }
.status-pill.approved { background:#dcfce7; color:#15803d; }
.status-pill.cancelled { background:#fee2e2; color:#b91c1c; }
.status-pill.withdrawn { background:#e5e7eb; color:#374151; }

/* ---- affiliate dash ---- */
.aff-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:20px; }
.aff-stat { background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px; }
.aff-stat b { font-size:24px; display:block; margin-top:6px; }
.aff-stat b.gold { color:var(--gold-dark); }
.aff-label { color:var(--text-muted); font-size:13px; }
.aff-link-card, .aff-withdraw-card { background:#fff; border:1px solid var(--border); border-radius:12px; padding:20px; margin-bottom:18px; }
.aff-link-card h3, .aff-withdraw-card h3 { margin-bottom:12px; }
.aff-link-row { display:flex; gap:9px; } .aff-link-row input { flex:1; }
.withdraw-row { display:flex; gap:9px; flex-wrap:wrap; }
.withdraw-row input { flex:1; min-width:140px; } .withdraw-row select { width:auto; }
.aff-tables h3 { margin:20px 0 10px; }
.aff-table th, .aff-table td { padding:10px 12px; border-bottom:1px solid var(--border); text-align:left; font-size:14px; }
.aff-table th { background:var(--bg-light); font-size:12px; text-transform:uppercase; color:var(--text-muted); }
.table-wrap { overflow-x:auto; }

/* ---- support widget ---- */
.support-fab { position:fixed; right:20px; bottom:20px; width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff; font-size:22px; box-shadow:0 8px 22px rgba(0,67,139,.4); z-index:60; }
.support-panel { position:fixed; right:20px; bottom:86px; width:350px; max-width:calc(100vw - 40px); height:460px; max-height:calc(100vh - 120px); background:#fff; border:1px solid var(--border); border-radius:15px; box-shadow:0 18px 50px rgba(0,0,0,.22); display:none; flex-direction:column; overflow:hidden; z-index:61; }
.support-panel.open { display:flex; }
.contact-fabs { position:fixed; right:18px; bottom:calc(20px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:10px; z-index:60; }
.contact-fab { display:grid; place-items:center; width:62px; height:62px; border-radius:50%; color:#fff; font-size:31px; box-shadow:0 7px 22px rgba(0,0,0,.25); }
.contact-fab--telegram { background:#1685b7; }
.contact-fab--whatsapp { background:#20a862; box-shadow:0 8px 24px rgba(32,168,98,.45); animation:contact-whatsapp-bounce 2.6s ease-in-out infinite; }
.contact-fab--telegram:not(:has(.fa-telegram-plane)) { background:var(--primary); }
.contact-fab--whatsapp:not(:has(.fa-whatsapp)) { background:var(--primary); }
.contact-fab:hover, .contact-fab:focus-visible { color:#fff; transform:translateY(-3px) scale(1.04); animation-play-state:paused; }
@keyframes contact-whatsapp-bounce { 0%, 72%, 100% { transform:translateY(0) scale(1); } 78% { transform:translateY(-5px) scale(1.05); } 84% { transform:translateY(0) scale(1); } 90% { transform:translateY(-3px) scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .contact-fab--whatsapp { animation:none; } }
body:has(.cookie-banner) .contact-fabs { display:none; }
@media (max-width:767px) { .contact-fabs { right:12px; bottom:calc(96px + env(safe-area-inset-bottom)); gap:9px; } .contact-fab { width:56px; height:56px; font-size:28px; } }

/* ---- cookie banner ---- */
.cookie-banner { position:fixed; left:18px; bottom:18px; max-width:430px; width:calc(100vw - 36px); background:#fff; border:1px solid var(--border); border-radius:14px; padding:18px; box-shadow:0 16px 44px rgba(0,0,0,.2); z-index:70; }
.cb-text b { font-size:15px; } .cb-text p { font-size:13px; color:#444; margin:5px 0 12px; }
.cb-choices { display:flex; gap:14px; margin-bottom:12px; flex-wrap:wrap; }
.cb-opt { display:flex; gap:6px; align-items:center; font-size:13.5px; } .cb-opt input { width:auto; }
.cb-buttons { display:flex; gap:9px; justify-content:flex-end; }
@media (max-width: 575px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: min(32dvh, 250px);
    overflow-y: auto;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-radius: 8px 8px 0 0;
  }
  .cb-text p { margin-bottom: 8px; }
  .cb-choices { margin-bottom: 8px; }
  .cb-buttons .btn { min-height: 40px; }
  body:has(.cookie-banner) .support-fab { bottom: min(32dvh, 250px); }
}

/* ---- toast ---- */
#ua-toast-box { position:fixed; right:18px; bottom:18px; z-index:90; display:flex; flex-direction:column; gap:10px; }
.ua-toast { background:#1f2937; color:#fff; border-radius:11px; padding:12px 15px; font-size:13.5px; max-width:340px; box-shadow:0 10px 30px rgba(0,0,0,.3); display:flex; gap:10px; opacity:0; transform:translateY(8px); transition:.25s; }
.ua-toast.show { opacity:1; transform:none; }
.ua-toast i { margin-top:2px; } .ua-toast b { display:block; } .ua-toast span { color:#d1d5db; }
.ua-toast.success { background:#15803d; } .ua-toast.error { background:#b91c1c; } .ua-toast.warn { background:#b45309; }

/* ---- blog ---- */
.blog-listing-card { display:grid; grid-template-columns: 280px 1fr; gap:0; border:1px solid var(--border); border-radius:13px; overflow:hidden; margin-bottom:22px; background:#fff; }
.blc-img img { width:100%; height:100%; object-fit:cover; }
.blc-body { padding:22px; }
.blog-cat { color:var(--gold-dark); font-weight:700; font-size:12px; text-transform:uppercase; }
.blc-body h2 { margin:6px 0; font-size:21px; }
.blog-meta { color:var(--text-muted); font-size:12.5px; display:block; margin-bottom:8px; }
.read-more { font-weight:700; font-size:13.5px; }
.blog-post-article h1 { font-size:30px; margin:10px 0; }
.bp-cover { border-radius:12px; margin:16px 0; max-height:440px; object-fit:cover; width:100%; }
.bp-body p { margin-bottom:15px; color:#333; }
.comments-sec { border-top:1px solid var(--border); padding-top:24px; margin-bottom:50px; }
.comment { border-bottom:1px solid var(--border); padding:12px 0; }
.comment-form-wrap { margin-top:20px; }
.comment-form-wrap textarea { width:100%; border:1px solid var(--border); border-radius:10px; padding:11px; margin:8px 0; }

/* ---- empty / skeleton ---- */
.empty-state { grid-column:1/-1; text-align:center; padding:50px 20px; color:var(--text-muted); }
.empty-state i { font-size:42px; margin-bottom:14px; display:block; }
.skeleton-card .skeleton { background:linear-gradient(90deg,#eee 25%,#f6f6f6 37%,#eee 63%); background-size:400% 100%; animation:shimmer 1.3s infinite; border-radius:8px; }
.sk-img { height:200px; margin-bottom:12px; } .sk-line { height:14px; margin-bottom:8px; } .sk-line.short { width:60%; }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }

@media (max-width: 900px){
  .product-layout { grid-template-columns:1fr; gap:24px; }
  .checkout-layout { grid-template-columns:1fr; }
  .checkout-summary { position:static; }
  .blog-listing-card { grid-template-columns:1fr; }
  .blc-img { height:180px; }
}

/* ============================================================================
   Storefront shell 鈥?header & footer (matches markup rendered by app.js).
   Self-contained; later rules override the legacy header selectors.
   ============================================================================ */

/* ============================================================================
   Storefront shell footer (header lives in assets/css/header.css).
   The old single-row header rules (.ua-header/.header-inner/.main-nav/.ha-icon
   etc.) were removed; header.css is the single source of header styling.
   ============================================================================ */

/* Generic logo bits shared by the footer brand mark. */
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #111; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 800; }
.logo-word { font-weight: 800; font-size: 19px; color: #111; letter-spacing: .02em; }

/* ---- footer ---- */
.ua-footer { background: #101b2e; color: #c8d2e0; }
.ua-footer a { color: #c8d2e0; text-decoration: none; }
.ua-footer a:hover { color: #fff; }
.ua-footer .footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; max-width: var(--container-max); margin: 0 auto; padding: 56px 20px 32px; }
.footer-brand-col p { font-size: 14px; line-height: 1.6; margin: 12px 0; }
.social-row { display: flex; gap: 14px; }
.social-row a { font-size: 18px; color: #c8d2e0; }
.footer-col h4 { color: #fff; }
.ua-footer .footer-logo .logo-word { color: #fff; }
.ua-footer .footer-col > a:not(.footer-logo) { display: block; width: fit-content; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; max-width: var(--container-max); margin: 0 auto; }
.affiliate-disclosure-footer { color: #9fb0c8; }

/* ---- footer responsive ---- */
@media (max-width: 991px) {
  .ua-footer .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .ua-footer .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

/* Legal docs are flex items in a flex-column body; let them shrink so wide
   tables scroll inside .table-wrap instead of forcing horizontal overflow. */
.legal-doc { min-width: 0; }
.legal-doc .table-wrap { min-width: 0; max-width: 100%; }

.legal-doc { width: 100% !important; }
