/**
 * OnlinePrinterMart - Master Stylesheet
 * Responsive, Modern, High-Conversion Design System
 * Focus: Epson Printer Lineup | Cart & Full Checkout Flow | AI Assistant Engine | 100% PHP Compliant
 */

:root {
  /* Brand Colors */
  --primary-navy: #0B2545;
  --primary-dark: #07192F;
  --primary-blue: #0066FF;
  --primary-hover: #0052CC;
  --accent-green: #00C853;
  --accent-dark-green: #009624;
  --accent-amber: #F59E0B;
  --accent-red: #EF4444;

  /* Neutrals */
  --bg-main: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-surface: #F1F5F9;
  --border-light: #E2E8F0;
  --border-dark: #CBD5E1;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(11, 37, 69, 0.5);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

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

ul, ol {
  list-style: none;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Trust Bar */
.top-bar {
  background-color: var(--primary-navy);
  color: #CBD5E1;
  font-size: 12.5px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-bar a:hover {
  color: #FFFFFF;
}

.top-bar-phone {
  color: #00FF66 !important;
  font-weight: 800 !important;
  font-size: 13.5px !important;
}

.badge-pill-trust {
  background-color: rgba(0, 200, 83, 0.2);
  color: #4ADE80;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Main Site Header */
.main-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 48px;
  width: auto;
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 45px 10px 16px;
  font-size: 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  outline: none;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary-blue);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.search-btn {
  position: absolute;
  right: 5px;
  background: var(--primary-blue);
  border: none;
  color: #FFFFFF;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.header-phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #E0F2FE;
  border: 1.5px solid #0066FF;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.header-phone-box:hover {
  background: #0066FF;
}

.header-phone-box:hover .phone-text-main {
  color: #FFFFFF;
}

.header-phone-box:hover .phone-text-sub {
  color: #BAE6FD;
}

.phone-icon-circle {
  width: 32px;
  height: 32px;
  background: #0066FF;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.header-phone-box:hover .phone-icon-circle {
  background: #FFFFFF;
  color: #0066FF;
}

.phone-text-wrapper {
  display: flex;
  flex-direction: column;
}

.phone-text-sub {
  font-size: 11px;
  color: #0369A1;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.phone-text-main {
  font-size: 15px;
  font-weight: 900;
  color: #0B2545;
  line-height: 1.2;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--primary-navy);
  background: #E2E8F0;
  border: 1.5px solid #CBD5E1;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--primary-blue);
  color: #FFFFFF;
  border-color: var(--primary-blue);
}

.cart-counter-badge {
  background: var(--accent-red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Primary Navbar */
.navbar-primary {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-block;
  padding: 12px 16px;
  color: #E2E8F0;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 2001;
  padding: 24px 20px;
  box-shadow: var(--shadow-xl);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-secondary {
  background-color: var(--primary-navy);
  color: #FFFFFF;
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
}

.btn-success {
  background-color: var(--accent-green);
  color: #07192F;
}

.btn-success:hover {
  background-color: var(--accent-dark-green);
  color: #FFFFFF;
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline-primary:hover {
  background-color: var(--primary-blue);
  color: #FFFFFF;
}

.btn-outline-secondary {
  background-color: transparent;
  border-color: var(--border-dark);
  color: var(--text-main);
}

.btn-outline-secondary:hover {
  background-color: var(--bg-surface);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 15.5px;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.badge-condition-new {
  background-color: #E0F2FE;
  color: #0369A1;
}

.badge-sale {
  background-color: #EF4444;
  color: #FFFFFF;
}

/* Sections */
.section {
  padding: 60px 0;
}

.section-bg-subtle {
  background-color: var(--bg-subtle);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px auto;
}

.section-kicker {
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #07192F 0%, #0B2545 60%, #003399 100%);
  color: #FFFFFF;
  padding: 56px 0 64px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: #93C5FD;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-title span {
  color: #38BDF8;
}

.hero-subtitle {
  font-size: 15.5px;
  color: #CBD5E1;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-chip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #E2E8F0;
}

.trust-chip-item svg {
  color: #00C853;
}

/* Products Catalog Grid (4 Epson Models) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.product-img-wrapper {
  background: var(--bg-subtle);
  padding: 24px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}

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

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

.product-brand-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.35;
  margin-bottom: 8px;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.product-specs-chips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #334155;
  margin-bottom: 16px;
}

.spec-chip {
  background: var(--bg-surface);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.product-card-actions {
  display: flex;
  gap: 8px;
}

/* Feature Grid Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background: #E0F2FE;
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.specs-table tr:nth-child(even) {
  background-color: var(--bg-subtle);
}

.specs-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--primary-navy);
  width: 35%;
  background: rgba(11, 37, 69, 0.02);
}

.specs-table td:last-child {
  color: var(--text-main);
}

/* Reviews Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: #F59E0B;
  font-size: 15px;
  margin-bottom: 8px;
}

.review-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.review-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.review-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.review-author-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-navy);
}

.review-author-loc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.verified-badge {
  font-size: 11.5px;
  color: #15803D;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* FAQ Accordion */
.faq-accordion-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.accordion-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  color: var(--primary-blue);
}

.accordion-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

.accordion-content {
  padding: 0 20px 18px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* ==========================================================================
   CART & CHECKOUT MODAL SYSTEM
   ========================================================================== */

/* Cart Overlay & Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.75);
  backdrop-filter: blur(4px);
  z-index: 99998;
  display: none;
}

.cart-drawer-overlay.active {
  display: block !important;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: #FFFFFF;
  z-index: 99999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
}

.cart-drawer.open {
  display: flex !important;
}

.cart-header {
  padding: 20px 24px;
  background: var(--primary-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header-title {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: none;
  border: none;
  color: #CBD5E1;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
  padding: 4px;
}

.cart-close-btn:hover {
  color: #FFFFFF;
}

.cart-items-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty-icon {
  font-size: 54px;
  margin-bottom: 16px;
}

.cart-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

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

.cart-item-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-qty-mini {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  overflow: hidden;
}

.cart-qty-mini button {
  background: #F1F5F9;
  border: none;
  width: 26px;
  height: 26px;
  font-weight: 800;
  cursor: pointer;
}

.cart-qty-mini span {
  width: 30px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.cart-item-remove-btn:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

.cart-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #64748B;
  margin-bottom: 8px;
}

.cart-calc-row.total {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-navy);
  border-top: 1.5px dashed var(--border-light);
  padding-top: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.cart-trust-bar-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11.5px;
  color: #15803D;
  font-weight: 700;
  margin-top: 12px;
}

/* Full Checkout Modal */
.checkout-modal-container {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 37, 69, 0.85);
  backdrop-filter: blur(4px);
}

.checkout-modal-container.open {
  display: flex !important;
}

.checkout-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 860px;
  max-width: 98vw;
  max-height: 90vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.checkout-header {
  padding: 18px 24px;
  background: var(--primary-navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-header h2 {
  font-size: 18px;
  font-weight: 800;
}

.checkout-body {
  padding: 28px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
}

.checkout-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-summary-sidebar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

/* Order Success Modal */
.order-success-card {
  text-align: center;
  padding: 40px 30px;
}

.order-success-icon {
  width: 72px;
  height: 72px;
  background: #DCFCE7;
  color: #15803D;
  border-radius: 50%;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.order-id-badge {
  background: #E0F2FE;
  color: #0369A1;
  font-size: 16px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin: 14px 0 24px 0;
  letter-spacing: 1px;
}

/* ==========================================================================
   FLOATING AI CHATBOT ASSISTANT (HIGH Z-INDEX + ROBUST)
   ========================================================================== */
.opm-chatbot-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0B2545 0%, #0066FF 100%);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 102, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 700;
  font-size: 14px;
  user-select: none;
}

.opm-chatbot-launcher:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.55);
}

.chatbot-launcher-icon {
  width: 34px;
  height: 34px;
  background: #FFFFFF;
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  position: relative;
}

.chatbot-status-indicator {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #00FF66;
  border: 2px solid var(--primary-navy);
  border-radius: 50%;
}

.chatbot-launcher-label {
  display: flex;
  flex-direction: column;
}

.chatbot-launcher-sub {
  font-size: 10.5px;
  color: #CBD5E1;
  font-weight: 500;
}

.opm-chatbot-modal {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 120px);
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(11, 37, 69, 0.35);
  border: 1.5px solid var(--primary-blue);
  display: none;
  flex-direction: column;
  z-index: 99995;
  overflow: hidden;
}

.opm-chatbot-modal.open {
  display: flex !important;
}

.chatbot-header {
  background: linear-gradient(135deg, #07192F 0%, #0B2545 100%);
  color: #FFFFFF;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chatbot-header-title {
  font-size: 14.5px;
  font-weight: 800;
}

.chatbot-header-status {
  font-size: 11px;
  color: #4ADE80;
}

.chatbot-header-btn {
  background: none;
  border: none;
  color: #CBD5E1;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.chatbot-header-btn:hover {
  color: #FFFFFF;
}

.chatbot-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chatbot-message {
  display: flex;
  gap: 10px;
  max-width: 90%;
}

.chatbot-message.bot {
  align-self: flex-start;
}

.chatbot-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar-circle {
  width: 28px;
  height: 28px;
  background: var(--primary-blue);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.message-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.chatbot-message.bot .message-bubble {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.chatbot-message.user .message-bubble {
  background: var(--primary-blue);
  color: #FFFFFF;
}

.chatbot-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chatbot-chip-btn {
  background: #E0F2FE;
  border: 1px solid #BAE6FD;
  color: #0369A1;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-chip-btn:hover {
  background: #BAE6FD;
}

.chatbot-footer {
  padding: 12px 16px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

.chatbot-input-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chatbot-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-full);
  outline: none;
}

.chatbot-input:focus {
  border-color: var(--primary-blue);
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  background: var(--primary-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-disclaimer {
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* Toast Notifications */
.opm-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.opm-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Global Footer */
.site-footer {
  background-color: var(--primary-dark);
  color: #CBD5E1;
  padding: 60px 0 24px 0;
}

.footer-trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 40px;
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.footer-trust-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-trust-desc {
  font-size: 12px;
  color: #94A3B8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 13.5px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #CBD5E1;
  font-size: 13.5px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #64748B;
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #94A3B8;
  font-size: 12.5px;
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

.payment-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-badge-pill {
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Legal Pages Styling */
.legal-content-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.legal-content-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 28px 0 12px 0;
  border-bottom: 2px solid var(--bg-surface);
  padding-bottom: 8px;
}

.legal-content-card h2:first-child {
  margin-top: 0;
}

.legal-content-card p, .legal-content-card ul {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content-card ul {
  padding-left: 24px;
  list-style-type: disc;
}

.legal-content-card li {
  margin-bottom: 8px;
}

/* Contact Form Styling */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}

.contact-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.alert-box {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.alert-success {
  background-color: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.alert-error {
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .contact-grid, .checkout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }
  
  .top-bar-inner {
    justify-content: center;
  }

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

  .navbar-primary {
    display: none;
  }

  .header-search {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .opm-chatbot-modal {
    right: 12px;
    bottom: 80px;
    width: calc(100vw - 24px);
    height: 500px;
  }

  .cart-drawer {
    width: 100vw;
  }
}
