/* ============================================================
   iBuyRobotics — Complete Design System
   Brand: Clear. Helpful. Trusted. Modern.
   No purple. No gradients. Mobile-first.
   ============================================================ */

/* ── Google Fonts ── */
/* Loaded via <link> in header.php for parallel non-blocking download */

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --color-navy: #0F172A;
  --color-teal: #0F766E;
  --color-teal-hover: #0D6B63;
  --color-teal-light: #14B8A6;
  --color-mint: #DFF7F2;
  --color-mint-dark: #C8EFE8;
  --color-gray-cool: #475569;
  --color-white: #FFFFFF;
  --color-light-gray: #F8FAFC;
  --color-border: #E2E8F0;
  --color-dark-text: #1E293B;
  --color-green: #10B981;
  --color-green-light: #D1FAE5;
  --color-red: #EF4444;
  --color-red-light: #FEE2E2;
  --color-amber: #F59E0B;
  --color-amber-light: #FEF3C7;

  /* Typography */
  --font-family: 'Inter', Arial, sans-serif;
  --font-size-hero: clamp(36px, 5vw, 58px);
  --font-size-h1: clamp(28px, 4vw, 42px);
  --font-size-h2: clamp(24px, 3.5vw, 36px);
  --font-size-h3: clamp(20px, 2.5vw, 26px);
  --font-size-h4: 20px;
  --font-size-body: 17px;
  --font-size-small: 16px;
  --font-size-xs: 14px;
  --font-size-xxs: 12px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Spacing (8pt system) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 56px;
  --space-11: 64px;
  --space-12: 80px;
  --space-section: clamp(48px, 8vw, 96px);

  /* Layout */
  --max-width: 1290px;
  --max-width-narrow: 900px;
  --max-width-wide: 1440px;
  --container-padding: clamp(16px, 4vw, 40px);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --border-default: 1px solid var(--color-border);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 24px rgba(15,23,42,0.10);
  --shadow-xl: 0 16px 48px rgba(15,23,42,0.12);
  --shadow-card: 0 2px 8px rgba(15,23,42,0.05);
  --shadow-card-hover: 0 8px 24px rgba(15,23,42,0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-default: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-dark-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Skip to Main Content (A11y) ── */
.skip-to-main {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xs);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-to-main:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  overflow: visible;
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-teal-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-navy);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

.text-hero {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.text-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-cool);
}

.text-overline {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-teal);
}

.text-small { font-size: var(--font-size-small); color: var(--color-gray-cool); }
.text-xs { font-size: var(--font-size-xs); }
.text-center { text-align: center; }
.text-teal { color: var(--color-teal); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }
.text-green { color: var(--color-green); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-alt { background-color: var(--color-light-gray); }
.section-mint { background-color: var(--color-mint); }
.section-navy { background-color: var(--color-navy); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-9);
}

.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { color: var(--color-gray-cool); font-size: 18px; }

/* ── Grid System ── */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--transition-default);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-primary:hover {
  background-color: var(--color-teal-hover);
  border-color: var(--color-teal-hover);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-teal);
  border-color: var(--color-teal);
}

.btn-secondary:hover {
  background-color: var(--color-mint);
  color: var(--color-teal-hover);
}

.btn-navy {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy:hover {
  background-color: #1E293B;
  border-color: #1E293B;
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn-white:hover {
  background-color: var(--color-light-gray);
  color: var(--color-teal);
}

.btn-sm { padding: 12px 20px; font-size: var(--font-size-small); min-height: 44px; }
.btn-lg { padding: 18px 36px; font-size: 18px; }
.btn-full { width: 100%; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-4); }

@media (max-width: 480px) {
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
}

/* ── Cards ── */
.card {
  background: var(--color-white);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  transition: all var(--transition-default);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--color-white);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
}

.card-mint {
  background: var(--color-mint);
  border: 1px solid var(--color-mint-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  color: var(--color-teal);
  font-size: 24px;
}

.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--color-gray-cool); }

/* ── Product Card ── */
.product-card {
  background: var(--color-white);
  border: var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-default);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  color: inherit;
}

.product-card-image {
  aspect-ratio: 1;
  background: var(--color-light-gray);
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-4);
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-medium);
  color: var(--color-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.product-card-title {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  margin-bottom: var(--space-3);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  margin-top: auto;
  font-size: 18px;
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

.product-card-price .compare-price {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
  color: var(--color-gray-cool);
  text-decoration: line-through;
  margin-left: var(--space-2);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: var(--font-size-xxs);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1.2;
}

.badge-teal { background: var(--color-mint); color: var(--color-teal); }
.badge-green { background: var(--color-green-light); color: #065F46; }
.badge-red { background: var(--color-red-light); color: #991B1B; }
.badge-amber { background: var(--color-amber-light); color: #92400E; }
.badge-gray { background: var(--color-light-gray); color: var(--color-gray-cool); }
.badge-navy { background: var(--color-navy); color: var(--color-white); }

/* ── Status Indicators ── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-ready { background-color: var(--color-green); }
.status-updating { background-color: var(--color-teal-light); }
.status-review { background-color: var(--color-amber); }
.status-attention { background-color: var(--color-red); }
.status-delayed { background-color: var(--color-gray-cool); }

/* ── Forms ── */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  color: var(--color-dark-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  outline: none;
}

.form-input::placeholder { color: #94A3B8; }

.form-textarea { min-height: 120px; resize: vertical; }
.form-error { font-size: var(--font-size-xs); color: var(--color-red); margin-top: var(--space-1); }
.form-hint { font-size: var(--font-size-xs); color: var(--color-gray-cool); margin-top: var(--space-1); }

/* ── Tables ── */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: var(--border-default);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-small);
}

.table th {
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  background: var(--color-light-gray);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: var(--border-default);
  vertical-align: middle;
}

.table tbody tr:hover { background-color: var(--color-light-gray); }
.table tbody tr:last-child td { border-bottom: none; }

/* ── Header ── */
.site-header {
  background: var(--color-white);
  border-bottom: var(--border-default);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.header-top {
  background: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-2) 0;
  font-size: var(--font-size-xs);
}

.header-main {
  padding: var(--space-4) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.header-logo img {
  height: 64px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.header-nav a {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-text);
  transition: color var(--transition-fast);
  position: relative;
  padding: var(--space-2) var(--space-1);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-teal);
}

.header-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-teal);
  border-radius: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-text);
  min-width: 44px;
  min-height: 44px;
}

.header-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-teal);
  color: var(--color-white);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.mobile-menu-toggle span::before { top: -7px; }
.mobile-menu-toggle span::after { top: 7px; }

@media (max-width: 900px) {
  .mobile-menu-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-6) var(--container-padding);
    border-bottom: var(--border-default);
    box-shadow: var(--shadow-lg);
    gap: var(--space-4);
  }
  .header-nav.is-open { display: flex; }
  .header-nav a { padding: var(--space-3) 0; font-size: var(--font-size-body); min-height: 44px; }
}

/* ── Footer ── */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--font-size-small);
  line-height: var(--line-height-relaxed);
  color: rgba(255,255,255,0.65);
}

.footer-brand img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { display: flex; flex-direction: column; gap: var(--space-1); }
.footer-col a {
  color: rgba(255,255,255,0.65);
  font-size: var(--font-size-small);
  transition: color var(--transition-fast);
  display: inline-block;
  padding: var(--space-1) 0;
  min-height: 44px;
  line-height: 36px;
}
.footer-col a:hover { color: var(--color-white); }

.footer-bottom {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Hero Section ── */
.hero {
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 680px;
}

.hero-content .text-hero { margin-bottom: var(--space-6); }
.hero-content .text-subtitle { margin-bottom: var(--space-8); }

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-11);
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-image { order: -1; }
  .hero .btn-group { justify-content: center; }
}

/* ── Feature Blocks ── */
.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-mint);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  color: var(--color-teal);
}

.feature-icon svg { width: 28px; height: 28px; }

/* ── Trust Strip ── */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-8);
  padding: var(--space-7) 0;
  border-top: var(--border-default);
  border-bottom: var(--border-default);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-cool);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-teal);
  flex-shrink: 0;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  font-size: var(--font-size-xs);
  color: var(--color-gray-cool);
}

.breadcrumbs a { color: var(--color-gray-cool); }
.breadcrumbs a:hover { color: var(--color-teal); }
.breadcrumbs .separator { color: var(--color-border); }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
}

.tab-btn {
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-cool);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover { color: var(--color-navy); }

.tab-btn.active {
  color: var(--color-teal);
  border-bottom-color: var(--color-teal);
}

/* ── Alerts / Notifications ── */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-info { background: var(--color-mint); color: var(--color-teal); border: 1px solid var(--color-mint-dark); }
.alert-success { background: var(--color-green-light); color: #065F46; border: 1px solid #A7F3D0; }
.alert-warning { background: var(--color-amber-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-error { background: var(--color-red-light); color: #991B1B; border: 1px solid #FECACA; }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
}

.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-dark-text);
  border: var(--border-default);
  transition: all var(--transition-fast);
}

.pagination a:hover { background: var(--color-light-gray); color: var(--color-teal); }
.pagination .active { background: var(--color-teal); color: var(--color-white); border-color: var(--color-teal); }

/* ── Spec Table ── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: var(--border-default); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-cool);
  width: 40%;
  font-size: var(--font-size-small);
  background: var(--color-light-gray);
}
.spec-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-small);
  color: var(--color-dark-text);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: var(--z-modal-backdrop);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-cool);
  border-radius: var(--radius-sm);
}

.modal-close:hover { background: var(--color-light-gray); color: var(--color-navy); }

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: var(--color-white);
  border: var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, var(--color-light-gray) 25%, var(--color-border) 50%, var(--color-light-gray) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Utility ── */
.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;
}

.hidden { display: none; }
.visible { display: block; }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* ── Print ── */
@media print {
  .site-header, .site-footer, .btn, .toast-container { display: none; }
  body { font-size: 12px; }
}

/* ── Shop Layout ── */
.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.shop-controls-desktop {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.shop-mobile-toolbar {
  display: none;
}

.shop-active-filters {
  margin-bottom: var(--space-4);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-7);
  position: relative;
}

/* Sidebar (desktop) */
.shop-sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-drawer-header,
.shop-drawer-footer {
  display: none;
}

.shop-drawer-backdrop {
  display: none;
}

/* Filter section accordion */
.shop-filter-section {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
}

.shop-filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.shop-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-2) 0;
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}

.shop-filter-heading:hover {
  color: var(--color-teal);
}

.shop-filter-chevron {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.shop-filter-heading[aria-expanded="false"] .shop-filter-chevron {
  transform: rotate(-90deg);
}

.shop-filter-heading[aria-expanded="false"] + .shop-filter-body {
  display: none;
}

.shop-filter-body {
  padding-top: var(--space-2);
}

.shop-filter-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--color-dark-text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.shop-filter-link:hover {
  background: var(--color-light-gray);
  color: var(--color-teal);
}

.shop-filter-link.is-active {
  background: var(--color-mint);
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

.shop-filter-count-label {
  font-size: 12px;
  color: var(--color-gray-cool);
  font-weight: var(--font-weight-regular);
}

/* Product grid */
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Mobile filter toggle button */
.shop-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.shop-filter-toggle:hover {
  border-color: var(--color-teal);
  color: var(--color-teal);
}

.shop-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  background: var(--color-teal);
  border-radius: 50%;
}

/* Shop mobile sort */
.shop-mobile-sort {
  padding: 10px 12px;
  font-size: 14px;
  min-width: 0;
  width: auto;
  border-radius: var(--radius-md);
}

/* ── Responsive: Tablet (<=1024px) ── */
@media (max-width: 1024px) {
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* ── Responsive: Mobile (<=900px) ── */
@media (max-width: 900px) {
  .shop-controls-desktop {
    display: none;
  }

  .shop-mobile-toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }

  .shop-mobile-search {
    width: 100%;
  }

  .shop-mobile-search .form-input {
    width: 100%;
  }

  .shop-mobile-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
  }

  .shop-mobile-sort-form {
    flex: 1;
    min-width: 0;
  }

  /* Layout: single column, sidebar hidden */
  .shop-layout {
    grid-template-columns: 1fr;
  }

  /* Drawer backdrop */
  .shop-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity var(--transition-default);
  }

  .shop-drawer-backdrop.is-visible {
    display: block;
    opacity: 1;
  }

  /* Sidebar becomes a slide-up drawer on mobile */
  .shop-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    max-height: 85vh;
    background: var(--color-white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transform: translateY(100%);
    transition: transform var(--transition-default);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .shop-sidebar.is-open {
    transform: translateY(0);
  }

  .shop-sidebar[aria-hidden="true"]:not(.is-open) {
    visibility: hidden;
  }

  .shop-sidebar.is-open {
    visibility: visible;
  }

  .shop-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .shop-drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-gray-cool);
    cursor: pointer;
    background: none;
    border: none;
    transition: background var(--transition-fast);
  }

  .shop-drawer-close:hover {
    background: var(--color-light-gray);
    color: var(--color-navy);
  }

  .shop-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-5) var(--space-6);
  }

  .shop-drawer-footer {
    display: block;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
    flex-shrink: 0;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* ── Responsive: Small Phone (<=480px) ── */
@media (max-width: 480px) {
  .shop-product-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .shop-header h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .shop-mobile-actions {
    flex-wrap: nowrap;
  }
}

/* ============================================================
   Share Buttons — Lightweight social sharing bar
   ============================================================ */

.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.share-bar__label {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-cool);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.share-bar__buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--color-white);
  background: var(--color-gray-cool);
  border: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  text-decoration: none;
  color: var(--color-white);
}

.share-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.share-btn:focus-visible {
  outline: 2px solid var(--color-teal);
  outline-offset: 2px;
}

/* Official brand colors */
.share-btn--facebook { background: #1877F2; }
.share-btn--facebook:hover { background: #166FE5; }
.share-btn--x { background: #000000; }
.share-btn--x:hover { background: #1a1a1a; }
.share-btn--linkedin { background: #0A66C2; }
.share-btn--linkedin:hover { background: #094FB3; }
.share-btn--pinterest { background: #E60023; }
.share-btn--pinterest:hover { background: #CC001F; }
.share-btn--reddit { background: #FF4500; }
.share-btn--reddit:hover { background: #E63E00; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--whatsapp:hover { background: #20BD5A; }
.share-btn--email { background: var(--color-teal); }
.share-btn--email:hover { background: var(--color-teal-hover); }
.share-btn--copy { background: var(--color-navy); }
.share-btn--copy:hover { background: #1E293B; }
.share-btn--copy.copied { background: var(--color-green); }
.share-btn--native { background: var(--color-navy); display: none; }
.share-btn--native:hover { background: #1E293B; }

/* Show native share only on devices that support it (set via JS) */
.share-bar.has-native .share-btn--native { display: inline-flex; }

.share-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Product page variant: horizontal under trust strip */
.share-bar--product {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border-default);
}

/* Article/Learn variant: centered bottom CTA */
.share-bar--article {
  justify-content: center;
  padding: var(--space-6) 0;
  border-top: var(--border-default);
  border-bottom: var(--border-default);
  margin: var(--space-7) 0;
}

/* Compact sidebar variant */
.share-bar--sidebar .share-btn {
  width: 32px;
  height: 32px;
}

.share-bar--sidebar .share-btn svg {
  width: 15px;
  height: 15px;
}

/* ============================================================
   Trust & Security Badges
   ============================================================ */

.trust-badges {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: var(--border-default);
}

.trust-badges__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.trust-badges__label {
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-cool);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-badges__row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.trust-badges__item {
  flex-shrink: 0;
}

.trust-badges__item img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.trust-badges__item:hover img {
  opacity: 1;
}

/* Compact variant for sidebar / cart */
.trust-badges--compact {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
}

.trust-badges--compact .trust-badges__row {
  gap: var(--space-3);
}

.trust-badges--compact .trust-badges__item img {
  max-height: 28px;
}

@media (max-width: 640px) {
  .share-bar__buttons {
    gap: 5px;
  }

  .share-btn {
    width: 40px;
    height: 40px;
  }

  /* Hide less critical platforms on very small screens */
  .share-btn--pinterest,
  .share-btn--reddit {
    display: none;
  }

  .trust-badges__row {
    gap: var(--space-3);
  }

  .trust-badges__item img {
    max-height: 28px;
  }
}
