/* =====================================================================
   FRDR GARAGE STORE — DESIGN SYSTEM (APPLE SPECIFICATION COMPLIANT)
   Matching https://frdrgarage.com/
   Dual Mode: Dark (Default) & Light Theme, Action Blue, SF Pro / Inter
   ===================================================================== */

:root, [data-theme="dark"] {
  /* Brand & Accent (Apple Action Blue) */
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --primary-hover: #0077ed;

  /* Surfaces */
  --canvas: #000000;
  --surface-tile-1: #161617;
  --surface-tile-2: #212124;
  --surface-card: #1c1c1e;
  --surface-card-hover: #262629;
  --surface-input: #121214;
  --surface-switch-bg: #121214;
  --surface-elevated: #2c2c2e;

  /* Hairlines & Borders */
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-subtle: rgba(255, 255, 255, 0.06);
  --hairline-focus: #2997ff;

  /* Typography Colors */
  --text-white: #ffffff;
  --text-muted: #a1a1a6;
  --text-dim: #86868b;
  --text-ink: #1d1d1f;

  /* Glass & Shadows */
  --header-bg: rgba(0, 0, 0, 0.82);
  --modal-bg: rgba(28, 28, 30, 0.95);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --box-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --input-border: rgba(255, 255, 255, 0.14);

  /* Functional Signals */
  --success: #30d158;
  --success-bg: rgba(48, 209, 88, 0.14);
  --warn: #ff9f0a;
  --warn-bg: rgba(255, 159, 10, 0.14);
  --danger: #ff453a;
  --danger-bg: rgba(255, 69, 58, 0.14);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 11px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1140px;
  --header-height: 52px;

  /* Typography */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}

[data-theme="light"] {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #0066cc;
  --primary-hover: #0077ed;

  --canvas: #f5f5f7;
  --surface-tile-1: #ffffff;
  --surface-tile-2: #f0f0f2;
  --surface-card: #ffffff;
  --surface-card-hover: #f7f7f9;
  --surface-input: #ffffff;
  --surface-switch-bg: #e5e5ea;
  --surface-elevated: #e5e5ea;

  --hairline: rgba(0, 0, 0, 0.12);
  --hairline-subtle: rgba(0, 0, 0, 0.06);
  --hairline-focus: #0066cc;

  --text-white: #000000;
  --text-muted: #1d1d1f;
  --text-dim: #444446;
  --text-ink: #ffffff;

  --header-bg: rgba(245, 245, 247, 0.88);
  --modal-bg: rgba(255, 255, 255, 0.98);
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --box-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --input-border: rgba(0, 0, 0, 0.18);
}

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

html {
  font-family: var(--font-text);
  color: var(--text-white);
  background-color: var(--canvas);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

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

/* =====================================================================
   HEADER & NAVIGATION (Matches frdrgarage.com)
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-white);
  line-height: 1.1;
}

.brand-text small {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--primary-on-dark);
  font-weight: 600;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-link {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-white);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--surface-card);
  border-color: var(--hairline-focus);
  transform: scale(1.05);
}

/* Cart Button */
.cart-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.cart-header-btn:hover {
  border-color: var(--primary);
  background: var(--surface-elevated);
}

.cart-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Pill Buttons */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--primary);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-pill-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--surface-card);
  color: var(--text-white);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-pill-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--hairline-focus);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-white);
  cursor: pointer;
  padding: 4px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--surface-card);
  border-bottom: 1px solid var(--hairline);
  padding: 16px 20px 24px;
  box-shadow: var(--card-shadow);
}

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

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  border-bottom: 1px solid var(--hairline-subtle);
}

/* =====================================================================
   HERO SECTION
   ===================================================================== */
.store-hero {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--hairline-subtle);
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-on-dark);
  margin-bottom: 16px;
}

.hero-pill-badge .status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 14px;
}

.hero-title em {
  font-style: normal;
  color: var(--primary-on-dark);
}

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Trust Strip */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.trust-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.trust-card:hover {
  border-color: var(--hairline-focus);
}

.trust-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.trust-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--text-white);
  line-height: 1.2;
}

.trust-info small {
  font-size: 11.5px;
  color: var(--text-dim);
}

/* =====================================================================
   CATALOG TOOLBAR (SEARCH & CATEGORIES)
   ===================================================================== */
.catalog-section {
  padding: 40px 0 60px;
}

.catalog-header {
  margin-bottom: 24px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-on-dark);
  margin-bottom: 6px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-white);
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: var(--surface-input);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-pill);
  padding: 12px 20px 12px 42px;
  font-size: 14px;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--hairline-focus);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--text-dim);
  pointer-events: none;
}

.category-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.category-btn {
  white-space: nowrap;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  background: var(--surface-elevated);
  color: var(--text-white);
  border-color: var(--hairline-focus);
}

.category-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* =====================================================================
   PRODUCT GRID & CARDS
   ===================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-on-dark);
  box-shadow: var(--card-shadow);
}

.product-visual-box {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 70%, transparent 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--hairline-subtle);
}

[data-theme="light"] .product-visual-box {
  background: radial-gradient(circle at center, #ffffff 0%, #ebebef 100%);
}

.product-img {
  max-height: 170px;
  max-width: 170px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.product-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 102, 204, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

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

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-on-dark);
  letter-spacing: 0.5px;
}

.product-vol {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface-elevated);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 40px;
}

.product-spec {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-compat {
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface-tile-2);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

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

.product-price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.product-price {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
}

.btn-add-cart {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--surface-card);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* =====================================================================
   SHOPPING CART DRAWER (SLIDE-OVER)
   ===================================================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--surface-card);
  border-left: 1px solid var(--hairline);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

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

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

.cart-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.cart-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 20px;
  scrollbar-width: thin;
}

.cart-drawer-body::-webkit-scrollbar {
  width: 6px;
}
.cart-drawer-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
}
.cart-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  background: var(--surface-tile-1);
  border: 1px solid var(--hairline-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  align-items: center;
}

.cart-item-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--surface-tile-2);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-on-dark);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 2px 6px;
}

.cart-qty-btn {
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-val {
  font-size: 12px;
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.cart-item-del {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
}

.cart-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-tile-1);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-white);
  padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  margin-bottom: 16px;
}

.btn-checkout-proceed {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-checkout-proceed:hover {
  background: var(--primary-hover);
}

/* =====================================================================
   CHECKOUT MODAL
   ===================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  width: 100%;
  max-width: 580px;
  max-height: min(90vh, 760px);
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-window {
  transform: translateY(0);
}

.modal-header {
  flex-shrink: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
}

#checkoutForm {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-on-dark);
}
[data-theme="light"] .modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-white);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface-input);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--hairline-focus);
}

.delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.delivery-card {
  background: var(--surface-tile-1);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.2s, background-color 0.2s;
}

.delivery-card input {
  display: none;
}

.delivery-card.active {
  border-color: var(--primary);
  background: rgba(0, 102, 204, 0.12);
}

.delivery-card strong {
  font-size: 13px;
  color: var(--text-white);
}

.delivery-card small {
  font-size: 11px;
  color: var(--text-dim);
}

.order-recap-box {
  background: var(--surface-tile-2);
  border: 1px solid var(--hairline-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12.5px;
}

.order-recap-box ul {
  list-style: none;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recap-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
}

.payment-gateway-notice {
  background: rgba(41, 151, 255, 0.08);
  border: 1px solid rgba(41, 151, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notice-icon {
  font-size: 18px;
  color: var(--primary-on-dark);
}

.notice-text strong {
  display: block;
  font-size: 12.5px;
  color: var(--text-white);
  margin-bottom: 2px;
}

.notice-text small {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.modal-footer {
  flex-shrink: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-card);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* =====================================================================
   PAYMENT GATEWAY COMPLIANCE & LEGAL SECTION
   (Strictly Required for Payment Gateway KYC Reviewers)
   ===================================================================== */
.compliance-section {
  padding: 50px 0;
  background: var(--surface-tile-1);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.payment-methods-showcase {
  margin-bottom: 36px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.payment-item-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.payment-item-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-on-dark);
  text-transform: uppercase;
}

.payment-item-card strong {
  font-size: 14px;
  color: var(--text-white);
}

.payment-item-card p {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Policies Accordion */
.policy-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.policy-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.policy-summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.policy-summary::-webkit-details-marker {
  display: none;
}

.policy-summary span {
  font-size: 16px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
}

details[open] .policy-summary span {
  transform: rotate(45deg);
}

.policy-content-box {
  padding: 0 18px 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--hairline-subtle);
  padding-top: 14px;
}

.policy-content-box ol, .policy-content-box ul {
  padding-left: 20px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* =====================================================================
   FOOTER (Matches frdrgarage.com)
   ===================================================================== */
.site-footer {
  padding: 48px 0 24px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand .brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-white);
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 380px;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

/* Floating Actions */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #ffffff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 99;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.floating-wa-btn:hover {
  transform: scale(1.08);
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 86px;
  right: 24px;
  background: var(--surface-card);
  border: 1px solid var(--hairline-focus);
  color: var(--text-white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--card-shadow);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* =====================================================================
   RESPONSIVE BREAKPOINTS
   ===================================================================== */
@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .delivery-options-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    max-width: 100%;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-body {
    padding: 12px 10px;
  }
  .product-title {
    font-size: 13.5px;
    min-height: 36px;
  }
  .product-visual-box {
    height: 150px;
    padding: 10px;
  }
  .product-img {
    max-height: 130px;
    max-width: 130px;
  }
  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-add-cart {
    justify-content: center;
  }
  .modal-overlay {
    padding: 8px;
  }
  .modal-window {
    max-height: calc(100vh - 16px);
  }
  .modal-header {
    padding: 14px 16px;
  }
  .modal-body {
    padding: 14px 16px;
    gap: 12px;
  }
  .modal-footer {
    padding: 12px 16px;
  }
}
