/*
======================================================
 PLATFORM DEVELOPED BY: Isiaka Kamana (Isaac)
 Role: Lead Web Developer & Database Architect at IZZO Tech Group Ltd
 Website: https://izzotech.rw
 Contact: info@izzotech.rw
======================================================
*/

/* ======================================================
   izzoshop — Core Design System & Shared Components
   Palette: Deep Navy (#0B1221), Crisp White (#FFFFFF),
            Izzo Cobalt Blue (#0044A9), Brand Orange (#F78C2D), Emerald Health (#10B981)
   ====================================================== */

:root {
  /* Core Surfaces & Brand Navy (Derived from Izzo SHOP Logo) */
  --navy-950: #061024;
  --navy-900: #091732;
  --navy-800: #10244a;
  --navy-700: #183468;

  /* Neutrals */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --studio-bg: #f4f7fb;
  --white: #ffffff;

  /* Official Izzo SHOP Logo Accents */
  --blue-600: #0044a9;
  --blue-700: #003382;
  --blue-500: #1358c4;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --brand-orange: #f78c2d;
  --brand-orange-hover: #e47819;
  --brand-orange-soft: #fff4eb;

  --neon-green: #f78c2d;
  --neon-green-hover: #e47819;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --amber-600: #d97706;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --red-600: #dc2626;
  --red-50: #fef2f2;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation & Borders */
  --border-subtle: 1px solid var(--slate-200);
  --shadow-xs: 0 1px 2px rgba(11, 18, 33, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 18, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 33, 0.09);
  --shadow-lg: 0 16px 40px rgba(11, 18, 33, 0.14);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1280px;
  --header-height: 72px;
  --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-900);
  background-color: var(--slate-50);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@media (min-width: 768px) {
  .container {
    padding-inline: 24px;
  }
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ======================================================
   Buttons & Badges
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 15px;
  min-height: 48px;
}

.btn-sm {
  padding: 9px 14px;
  font-size: 13px;
  min-height: 36px;
  border-radius: var(--radius-sm);
}

.btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 68, 169, 0.25);
}

.btn-primary:hover {
  background-color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 68, 169, 0.35);
}

.btn-neon {
  background-color: var(--brand-orange);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(247, 140, 45, 0.3);
}

.btn-neon:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(247, 140, 45, 0.42);
}

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

.btn-navy:hover {
  background-color: var(--navy-800);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: var(--white);
  color: var(--slate-900);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background-color: var(--slate-50);
}

.btn-outline-light {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.48);
}

.btn-added {
  background-color: var(--emerald-600) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

/* Condition & Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-new {
  background-color: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid #bfdbfe;
}

.badge-used-excellent {
  background-color: var(--emerald-50);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-used-good {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-used-fair {
  background-color: var(--amber-50);
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-savings {
  background-color: var(--navy-900);
  color: var(--neon-green);
  font-family: var(--font-mono);
}

/* ======================================================
   Top Announcement Bar & Header / Navigation
   ====================================================== */
.top-trust-bar {
  background-color: var(--navy-950);
  color: var(--slate-300);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}

.top-trust-items {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top-trust-items::-webkit-scrollbar {
  display: none;
}

.top-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.top-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--neon-green);
  flex-shrink: 0;
}

.top-trust-link {
  color: var(--neon-green);
  font-weight: 600;
  white-space: nowrap;
  display: none;
}

.top-trust-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .top-trust-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-height);
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--navy-900);
  flex-shrink: 0;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.site-footer .brand-logo-img {
  height: 48px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  display: grid;
  place-items: center;
  color: var(--neon-green);
  box-shadow: 0 2px 8px rgba(11, 18, 33, 0.2);
}

.brand-wordmark span {
  color: var(--blue-600);
}

/* Desktop Nav Links & Categories Dropdown */
.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
  }
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link[aria-expanded='true'],
.nav-link.is-active {
  color: var(--navy-900);
  background-color: var(--slate-100);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  background-color: var(--white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-item.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.dropdown-link:hover {
  background-color: var(--slate-50);
}

.dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background-color: var(--blue-50);
  color: var(--blue-600);
}

.dropdown-icon.is-green {
  background-color: var(--emerald-50);
  color: var(--emerald-600);
}

.dropdown-icon.is-navy {
  background-color: var(--slate-100);
  color: var(--navy-900);
}

.dropdown-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  display: block;
}

.dropdown-desc {
  font-size: 12px;
  color: var(--slate-500);
  display: block;
  margin-top: 2px;
}

/* Search Bar */
.header-search-wrap {
  position: relative;
  flex: 1;
  max-width: 420px;
  display: none;
}

@media (min-width: 640px) {
  .header-search-wrap {
    display: block;
  }
}

.header-search-form {
  display: flex;
  align-items: center;
  background-color: var(--slate-100);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0 6px 0 14px;
  height: 42px;
  transition: all var(--transition-fast);
}

.header-search-form:focus-within {
  background-color: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0, 68, 169, 0.14);
}

.header-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--slate-900);
  outline: none;
  padding-inline: 8px;
}

.header-search-input::placeholder {
  color: var(--slate-500);
}

.header-search-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--navy-900);
  color: var(--white);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast);
}

.header-search-btn:hover {
  background-color: var(--blue-600);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 110;
  display: none;
}

.search-results-dropdown.is-open {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-100);
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--slate-50);
}

.search-result-thumb {
  width: 48px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--studio-bg);
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-meta {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 12px;
  color: var(--slate-500);
}

.search-result-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

/* Header Action Icons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--navy-900);
  border-color: var(--slate-300);
  background-color: var(--slate-50);
}

.cart-trigger-btn {
  width: auto;
  padding: 0 14px;
  gap: 8px;
  background-color: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  font-weight: 600;
  font-size: 13px;
}

.cart-trigger-btn:hover {
  background-color: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background-color: var(--neon-green);
  color: var(--navy-950);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mobile-menu-btn {
  display: inline-flex;
}

@media (min-width: 960px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Search & Drawer Nav */
.mobile-search-strip {
  padding: 0 16px 12px;
  border-bottom: var(--border-subtle);
  background-color: var(--white);
}

@media (min-width: 640px) {
  .mobile-search-strip {
    display: none;
  }
}

.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.mobile-nav-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 13, 26, 0.55);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background-color: var(--white);
  z-index: 210;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: var(--border-subtle);
}

.mobile-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links a:hover {
  background-color: var(--slate-100);
}

/* ======================================================
   Shared Product Card
   ====================================================== */
.product-card {
  background-color: var(--white);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--slate-300);
}

.product-card-media {
  position: relative;
  background-color: var(--studio-bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-media img {
  transform: scale(1.04);
}

.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--slate-200);
  display: grid;
  place-items: center;
  color: var(--slate-500);
  transition: all var(--transition-fast);
}

.wishlist-btn:hover,
.wishlist-btn.is-saved {
  color: var(--red-600);
  border-color: #fecaca;
  background-color: var(--white);
}

.wishlist-btn.is-saved svg {
  fill: var(--red-600);
}

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

.product-card-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--slate-500);
  font-weight: 600;
}

.product-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--slate-700);
  font-weight: 600;
}

.product-card-rating svg {
  color: #f59e0b;
  fill: #f59e0b;
}

.product-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title:hover {
  color: var(--blue-600);
}

.product-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-700);
  background-color: var(--slate-100);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.spec-pill.is-battery {
  background-color: var(--emerald-50);
  color: #065f46;
  font-family: var(--font-mono);
}

.product-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-current {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.price-msrp {
  font-size: 12px;
  color: var(--slate-400);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ======================================================
   Slide-out Cart Drawer
   ====================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background-color: var(--white);
  z-index: 250;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.shipping-progress-banner {
  padding: 12px 20px;
  background-color: var(--slate-50);
  border-bottom: var(--border-subtle);
}

.shipping-progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.shipping-progress-track {
  height: 6px;
  background-color: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.shipping-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--neon-green));
  border-radius: var(--radius-full);
  transition: width 300ms ease;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty-state {
  text-align: center;
  padding: 48px 16px;
  margin: auto 0;
}

.cart-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--slate-100);
  color: var(--slate-500);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.cart-item-img {
  width: 76px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-color: var(--studio-bg);
  object-fit: cover;
  border: var(--border-subtle);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
}

.cart-item-remove {
  color: var(--slate-400);
  padding: 2px;
  border-radius: 4px;
}

.cart-item-remove:hover {
  color: var(--red-600);
  background-color: var(--red-50);
}

.cart-item-sub {
  font-size: 12px;
  color: var(--slate-500);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  background-color: var(--white);
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--slate-700);
}

.qty-stepper button:hover {
  background-color: var(--slate-100);
}

.qty-stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}

.cart-drawer-footer {
  padding: 18px 20px;
  border-top: var(--border-subtle);
  background-color: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--slate-600);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
  padding-top: 8px;
  border-top: var(--border-subtle);
}

/* ======================================================
   Modals (Account, Grading Guide Quick View, Toast)
   ====================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 13, 26, 0.65);
  backdrop-filter: blur(4px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: var(--border-subtle);
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--slate-500);
}

.modal-close-btn:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.toast-stack {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--navy-900);
  color: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--neon-green);
  font-size: 13px;
  font-weight: 500;
  max-width: 340px;
  animation: toastSlideIn 220ms ease forwards;
}

.toast-action {
  color: var(--neon-green);
  font-weight: 700;
  margin-left: auto;
  white-space: nowrap;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   Shared Section Typography
   ====================================================== */
.section-pad {
  padding-block: 56px;
}

@media (min-width: 768px) {
  .section-pad {
    padding-block: 72px;
  }
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 15px;
  color: var(--slate-600);
  margin-top: 6px;
  max-width: 58ch;
}

/* ======================================================
   Footer
   ====================================================== */
.site-footer {
  background-color: var(--navy-950);
  color: var(--slate-300);
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  }
}

.footer-brand .brand-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--slate-400);
  max-width: 34ch;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--slate-300);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
  color: var(--white);
}

.footer-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.footer-links a {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

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

.footer-newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 14px;
}

.footer-newsletter-form input::placeholder {
  color: var(--slate-400);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--slate-400);
}

.payment-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.payment-pill {
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--slate-200);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
