:root {
  --brand-navy: #032564;
  --brand-blue: #124b8b;
  --brand-blue-dark: #0b3b7a;
  --brand-orange: #fc7406;
  --brand-orange-dark: #b84e00;
  --brand-blue-soft: #eaf2fb;
  --brand-orange-soft: #fff3e8;
  --ink: #0f172a;
  --text: #475569;
  --muted: #64748b;
  --surface: #ffffff;
  --background: #f6f8fb;
  --border: #e2e8f0;
  --success: #16803c;
  --danger: #c62828;
  --warning: #b45309;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 6px 18px rgba(3, 37, 100, 0.07);
  --shadow: 0 16px 42px rgba(3, 37, 100, 0.12);
  --header-height: 172px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-orange-dark); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible {
  outline: 3px solid rgba(252, 116, 6, 0.45);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--brand-navy);
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.section-space { padding: 68px 0; }
.section-space-sm { padding: 42px 0; }
.section-head { margin-bottom: 28px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--brand-orange-dark);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
}
.section-copy { max-width: 680px; margin: 8px 0 0; color: var(--muted); }
.surface-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.text-brand { color: var(--brand-blue) !important; }
.text-orange { color: var(--brand-orange-dark) !important; }
.bg-brand-soft { background: var(--brand-blue-soft); }
.bg-orange-soft { background: var(--brand-orange-soft); }

/* Buttons */
.btn {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-brand {
  color: #fff;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
}
.btn-brand:hover, .btn-brand:focus {
  color: #fff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 10px 22px rgba(18, 75, 139, .22);
}
.btn-orange {
  color: #fff;
  background: var(--brand-orange-dark);
  border-color: var(--brand-orange-dark);
}
.btn-orange:hover { color: #fff; background: #9f4300; border-color: #9f4300; }
.btn-soft { color: var(--brand-navy); background: var(--brand-blue-soft); border-color: transparent; }
.btn-soft:hover { color: #fff; background: var(--brand-blue); }
.icon-btn {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--brand-navy);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.icon-btn:hover { color: #fff; background: var(--brand-navy); border-color: var(--brand-navy); }
.count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  place-items: center;
  color: var(--brand-navy);
  background: var(--brand-orange);
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 900;
}

/* Header */
.announcement-bar { color: #fff; background: var(--brand-navy); font-size: .82rem; }
.announcement-bar .container { min-height: 36px; }
.announcement-link { color: #fff; opacity: .9; }
.announcement-link:hover { color: #fff; opacity: 1; }
.site-header {
  position: sticky;
  z-index: 1030;
  top: 0;
  background: #fff;
  box-shadow: 0 6px 22px rgba(3, 37, 100, .08);
}
.main-header { border-bottom: 1px solid var(--border); }
.main-header .container { min-height: 84px; }
.brand-crop {
  position: relative;
  display: block;
  flex: 0 0 202px;
  width: 202px;
  height: 72px;
  overflow: hidden;
}
.brand-crop img {
  position: absolute;
  top: -95px;
  left: -21px;
  width: 244px;
  max-width: none;
}
.header-search { position: relative; max-width: 640px; flex: 1 1 520px; }
.header-search .form-control {
  height: 48px;
  padding-left: 48px;
  padding-right: 110px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
}
.header-search .form-control:focus { background: #fff; border-color: var(--brand-blue); box-shadow: 0 0 0 .2rem rgba(18, 75, 139, .12); }
.header-search > i { position: absolute; z-index: 2; top: 13px; left: 18px; color: var(--brand-blue); }
.header-search .btn { position: absolute; top: 4px; right: 4px; min-height: 40px; padding: 6px 20px; border-radius: 999px; }
.search-suggestions {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  display: none;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.search-suggestions.show { display: block; }
.suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px; color: var(--ink); border-radius: 8px; }
.suggestion-item:hover { color: var(--brand-navy); background: var(--brand-blue-soft); }
.suggestion-item img { width: 42px; height: 42px; object-fit: contain; background: #f8fafc; border-radius: 7px; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.header-action-label { display: flex; flex-direction: column; color: var(--muted); font-size: .72rem; line-height: 1.25; }
.header-action-label strong { color: var(--ink); font-size: .86rem; }
.category-nav { background: #fff; }
.category-nav .nav-link { padding: 13px 12px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.category-nav .nav-link:hover, .category-nav .nav-link.active { color: var(--brand-orange-dark); }
.all-categories-btn { color: #fff !important; background: var(--brand-blue); border-radius: 7px; }
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: min(920px, 92vw);
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
}
.nav-item:hover > .mega-menu { display: block; }
.mega-title { color: var(--ink); font-size: .86rem; font-weight: 800; }
.mega-link { display: block; padding: 5px 0; color: var(--muted); font-size: .84rem; }
.mega-link:hover { color: var(--brand-orange-dark); transform: translateX(2px); }

/* Hero */
.hero-section { padding: 22px 0 0; }
.hero-slide {
  min-height: 452px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #032564 0%, #124b8b 55%, #1872bd 100%);
  border-radius: 22px;
}
.hero-slide.orange { background: linear-gradient(120deg, #542000 0%, #b84e00 48%, #fc7406 100%); }
.hero-slide.light { color: var(--ink); background: linear-gradient(120deg, #eef6ff 0%, #fff 55%, #fff0e4 100%); }
.hero-content { position: relative; z-index: 2; padding: clamp(34px, 6vw, 78px); }
.hero-kicker { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero-title { max-width: 670px; margin: 0 0 16px; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.05; }
.hero-text { max-width: 570px; margin-bottom: 26px; font-size: clamp(1rem, 1.8vw, 1.18rem); opacity: .88; }
.hero-visual { position: absolute; right: -20px; bottom: -60px; width: 48%; max-height: 115%; object-fit: contain; filter: drop-shadow(0 30px 25px rgba(0,0,0,.25)); }
.carousel-indicators [data-bs-target] { width: 26px; height: 5px; border: 0; border-radius: 99px; }

/* Category and trust */
.category-card {
  display: block;
  height: 100%;
  padding: 22px 14px;
  color: var(--ink);
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: .25s ease;
}
.category-card:hover { color: var(--brand-navy); border-color: #9ebcdc; transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.category-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 14px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 18px; font-size: 1.8rem; }
.category-card:hover .category-icon { color: var(--brand-navy); background: var(--brand-orange-soft); }
.category-card h3 { margin: 0; font-size: .94rem; font-weight: 800; }
.category-card span { color: var(--muted); font-size: .76rem; }
.trust-strip { padding: 22px 0; background: #fff; border-block: 1px solid var(--border); }
.trust-item { display: flex; gap: 13px; align-items: center; }
.trust-icon { display: grid; width: 46px; height: 46px; flex: 0 0 46px; place-items: center; color: var(--brand-blue); background: var(--brand-blue-soft); border-radius: 12px; font-size: 1.25rem; }
.trust-item h3 { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 800; }
.trust-item p { margin: 1px 0 0; color: var(--muted); font-size: .76rem; }

/* Product cards */
.product-card {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: .25s ease;
}
.product-card:hover { border-color: #b7c9dd; transform: translateY(-4px); box-shadow: var(--shadow); }
.product-media { position: relative; display: grid; aspect-ratio: 1/1; overflow: hidden; place-items: center; background: linear-gradient(145deg, #f8fafc, #eef4fa); }
.product-media img { width: 88%; height: 88%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-media img { transform: scale(1.045); }
.product-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 5px 9px; color: var(--brand-navy); background: var(--brand-orange); border-radius: 99px; font-size: .68rem; font-weight: 900; }
.product-actions { position: absolute; z-index: 2; top: 12px; right: 12px; display: grid; gap: 8px; opacity: 0; transform: translateX(8px); transition: .2s ease; }
.product-card:hover .product-actions, .product-actions:focus-within { opacity: 1; transform: none; }
.product-actions .icon-btn { width: 38px; height: 38px; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-brand { color: var(--brand-blue); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-title { min-height: 45px; margin: 6px 0 5px; color: var(--ink); font-size: .95rem; font-weight: 750; line-height: 1.45; }
.product-rating { display: flex; gap: 6px; align-items: center; margin-bottom: 9px; color: #d97706; font-size: .78rem; }
.product-rating span { color: var(--muted); }
.price-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-top: auto; }
.sale-price { color: var(--ink); font-size: 1.12rem; font-weight: 900; }
.regular-price { color: #94a3b8; font-size: .82rem; text-decoration: line-through; }
.discount-text { color: var(--success); font-size: .75rem; font-weight: 800; }
.product-card .add-cart { margin-top: 14px; }
.stock-line { margin-top: 6px; color: var(--success); font-size: .75rem; font-weight: 700; }

/* Promotional and content cards */
.promo-card { position: relative; min-height: 250px; overflow: hidden; padding: 34px; color: #fff; background: var(--brand-navy); border-radius: 20px; }
.promo-card.orange { background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange)); }
.promo-card.blue { background: linear-gradient(135deg, var(--brand-blue-dark), #2787d3); }
.promo-card::after { position: absolute; right: -60px; bottom: -80px; width: 230px; height: 230px; content: ""; border: 36px solid rgba(255,255,255,.11); border-radius: 50%; }
.promo-card h3 { position: relative; z-index: 2; max-width: 360px; margin: 8px 0 12px; font-size: 1.7rem; font-weight: 900; }
.promo-card p, .promo-card a { position: relative; z-index: 2; }
.compatible-finder { padding: 38px; background: linear-gradient(120deg, var(--brand-navy), var(--brand-blue)); border-radius: 22px; }
.compatible-finder .form-select { min-height: 50px; border: 0; }
.brand-pill { display: grid; min-height: 82px; padding: 16px; place-items: center; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 14px; font-weight: 900; letter-spacing: .02em; }
.brand-pill:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.testimonial-card { height: 100%; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.testimonial-stars { color: #d97706; letter-spacing: 2px; }
.avatar { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; background: var(--brand-blue); border-radius: 50%; font-weight: 900; }
.blog-card { height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.blog-cover { display: grid; min-height: 190px; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy)); font-size: 3rem; }
.blog-card-body { padding: 22px; }
.blog-card h3 { color: var(--ink); font-size: 1.08rem; font-weight: 800; }

/* Page headers and layouts */
.page-hero { padding: 46px 0; color: #fff; background: linear-gradient(120deg, var(--brand-navy), var(--brand-blue)); }
.page-hero h1 { margin: 6px 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
.breadcrumb { margin: 0; font-size: .82rem; }
.breadcrumb-item a { color: rgba(255,255,255,.8); }
.breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.62); }
.filter-card { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.filter-title { margin-bottom: 14px; color: var(--ink); font-size: .95rem; font-weight: 850; }
.filter-group + .filter-group { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--border); }
.filter-chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; color: var(--brand-navy); background: var(--brand-blue-soft); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.shop-toolbar { padding: 13px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.pagination .page-link { margin: 0 3px; color: var(--brand-navy); border: 0; border-radius: 8px; }
.pagination .active .page-link { background: var(--brand-navy); }

/* Product detail */
.product-gallery { position: sticky; top: 190px; }
.product-main-image { display: grid; min-height: 500px; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.product-main-image img { width: 88%; max-height: 460px; object-fit: contain; }
.gallery-thumb { display: grid; width: 72px; height: 72px; overflow: hidden; place-items: center; background: #fff; border: 2px solid var(--border); border-radius: 10px; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand-orange); }
.gallery-thumb img { width: 90%; height: 90%; object-fit: contain; }
.product-detail-title { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 900; line-height: 1.25; }
.detail-price { color: var(--ink); font-size: 2rem; font-weight: 900; }
.choice-btn { min-width: 52px; min-height: 42px; color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; font-weight: 700; }
.choice-btn.active { color: var(--brand-navy); background: var(--brand-orange-soft); border-color: var(--brand-orange); }
.quantity-box { display: inline-flex; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 8px; }
.quantity-box button, .quantity-box input { width: 42px; height: 44px; text-align: center; background: #fff; border: 0; }
.quantity-box input { width: 50px; border-inline: 1px solid #e2e8f0; }
.delivery-card { padding: 18px; background: var(--brand-blue-soft); border-radius: 12px; }
.product-tabs .nav-link { color: var(--muted); font-weight: 800; }
.product-tabs .nav-link.active { color: var(--brand-navy); border-bottom: 3px solid var(--brand-orange); }
.spec-table th { width: 32%; color: var(--ink); background: #f8fafc; }

/* Cart and checkout */
.cart-item { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.cart-image { display: grid; width: 110px; height: 110px; flex: 0 0 110px; place-items: center; background: #f8fafc; border-radius: 12px; }
.cart-image img { width: 90%; height: 90%; object-fit: contain; }
.summary-card { position: sticky; top: 190px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; }
.summary-total { padding-top: 14px; margin-top: 12px; color: var(--ink); border-top: 1px solid var(--border); font-size: 1.12rem; font-weight: 900; }
.checkout-step { display: flex; gap: 12px; align-items: center; }
.checkout-step-number { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: var(--brand-navy); border-radius: 50%; font-weight: 900; }
.form-control, .form-select { min-height: 46px; border-color: #cbd5e1; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 .2rem rgba(18,75,139,.12); }
.form-label { color: var(--ink); font-size: .86rem; font-weight: 750; }
.required { color: var(--danger); }

/* Account, support, article */
.account-nav { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.account-nav a { display: flex; gap: 11px; align-items: center; padding: 13px 18px; color: var(--text); border-bottom: 1px solid var(--border); font-weight: 700; }
.account-nav a:last-child { border: 0; }
.account-nav a.active, .account-nav a:hover { color: var(--brand-navy); background: var(--brand-blue-soft); }
.dashboard-stat { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.dashboard-stat i { color: var(--brand-blue); font-size: 1.5rem; }
.dashboard-stat strong { display: block; margin-top: 8px; color: var(--ink); font-size: 1.45rem; }
.support-card { display: block; height: 100%; padding: 26px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.support-card:hover { color: var(--text); border-color: var(--brand-blue); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.support-card i { color: var(--brand-blue); font-size: 1.8rem; }
.support-card h3 { margin: 14px 0 6px; color: var(--ink); font-size: 1.05rem; font-weight: 850; }
.article-content { padding: clamp(24px, 5vw, 50px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.article-content h2 { margin-top: 32px; color: var(--ink); font-size: 1.35rem; font-weight: 850; }
.article-content h3 { margin-top: 24px; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.article-content li { margin-bottom: 8px; }
.empty-state { padding: 70px 24px; text-align: center; background: #fff; border: 1px dashed #b9c7d7; border-radius: var(--radius-lg); }
.empty-state i { color: var(--brand-blue); font-size: 4rem; }
.empty-state h2 { margin-top: 16px; color: var(--ink); font-weight: 900; }

/* Footer */
.newsletter-band { padding: 34px 0; color: #fff; background: linear-gradient(100deg, var(--brand-blue), var(--brand-navy)); }
.newsletter-form { display: flex; max-width: 520px; overflow: hidden; margin-left: auto; background: #fff; border-radius: 10px; }
.newsletter-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 0; }
.newsletter-form button { border-radius: 0; }
.site-footer { color: #cbd5e1; background: #020f2d; }
.footer-main { padding: 56px 0 36px; }
.footer-logo-wrap { position: relative; width: 220px; height: 95px; overflow: hidden; background: #fff; border-radius: 10px; }
.footer-logo-wrap img { position: absolute; top: -78px; left: -13px; width: 245px; max-width: none; }
.footer-title { margin-bottom: 17px; color: #fff; font-size: .95rem; font-weight: 850; }
.footer-link { display: block; padding: 4px 0; color: #cbd5e1; font-size: .84rem; }
.footer-link:hover { color: var(--brand-orange); }
.social-link { display: inline-grid; width: 38px; height: 38px; margin-right: 7px; place-items: center; color: #fff; background: rgba(255,255,255,.08); border-radius: 50%; }
.social-link:hover { color: var(--brand-navy); background: var(--brand-orange); }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.payment-badge { display: inline-flex; padding: 5px 8px; color: #fff; background: rgba(255,255,255,.1); border-radius: 5px; font-size: .7rem; font-weight: 800; }

/* Floating UI */
.back-to-top { position: fixed; z-index: 1040; right: 22px; bottom: 24px; display: none; }
.back-to-top.show { display: grid; }
.cookie-banner { position: fixed; z-index: 1080; right: 22px; bottom: 22px; display: none; width: min(390px, calc(100vw - 32px)); padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.cookie-banner.show { display: block; }
.mobile-bottom-nav { display: none; }
.toast-container { z-index: 1100; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
