/* ═══════════════════════════════════════════════════════════
   Enedril Store — Public Frontend Styles
   Uses CSS custom properties injected via PHP from DB settings
   ═══════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg, #f7f9fc);
  color: var(--color-text, #1a1a2e);
}

/* ── Section spacing ──────────────────────────────────────── */
.section-pad { padding-top: 80px; padding-bottom: 80px; }
@media (max-width: 768px) { .section-pad { padding-top: 56px; padding-bottom: 56px; } }

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary, #012a4a);
}
@media (max-width: 640px) { .section-heading { font-size: 1.625rem; } }

.section-subheading {
  font-size: 1.0625rem;
  color: #6b7280;
  max-width: 600px;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent, #f2a900);
  margin-bottom: 0.75rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent, #f2a900);
  border-radius: 2px;
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled .main-nav {
  box-shadow: 0 4px 24px rgba(1, 42, 74, 0.12);
}
.top-bar { font-size: 0.8125rem; }
.main-nav { transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }

/* Non-hero pages: spacer div pushes content below fixed header */
.header-spacer {
  height: 64px;          /* mobile: nav bar only */
}
@media (min-width: 768px) {
  .header-spacer {
    height: 108px;       /* desktop: top-bar (36px) + nav (72px) */
  }
}

/* ── header-solid: white background, dark text ────────────── */
.header-solid .main-nav {
  background: #fff !important;
  border-bottom: 1px solid #f3f4f6;
}
.header-solid.scrolled .main-nav {
  box-shadow: 0 4px 24px rgba(1, 42, 74, 0.1);
}

/* ── header-dark: dark/primary background, white text ──────── */
.header-dark .main-nav {
  background: var(--color-primary, #012a4a) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-dark .nav-link { color: rgba(255,255,255,0.88) !important; }
.header-dark .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.1) !important; }
.header-dark .nav-link.nav-active { color: var(--color-accent,#f2a900) !important; background: rgba(255,255,255,0.08) !important; }
.header-dark .logo-brand-name { color: #fff !important; }
.header-dark .logo-brand-icon { background: rgba(255,255,255,0.15) !important; }
.header-dark .hamburger-btn svg { color: #fff !important; }
.header-dark .cart-icon-btn svg { color: rgba(255,255,255,0.88) !important; }
.header-dark .sign-in-link { color: rgba(255,255,255,0.8) !important; }
.header-dark .sign-in-link:hover { color: #fff !important; background: rgba(255,255,255,0.1) !important; }
.header-dark .site-logo-light       { display: none;  }
.header-dark .site-logo-transparent { display: block; }
@media (max-width: 1023px) {
  .header-dark .site-logo-light       { display: block !important; }
  .header-dark .site-logo-transparent { display: none  !important; }
}

/* ── header-static: removes position:fixed (non-sticky) ────── */
.header-static {
  position: relative !important;
}

/* ── header-transparent: clear bg, white text (hero pages) ── */
.header-transparent .main-nav {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
.header-transparent .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}
.header-transparent .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}
.header-transparent .nav-link.nav-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}
/* Logo white version */
.header-transparent .logo-brand-icon {
  background: rgba(255, 255, 255, 0.15) !important;
}
.header-transparent .logo-brand-name {
  color: #fff !important;
}
/* Hamburger icon white */
.header-transparent .hamburger-btn svg {
  color: #fff !important;
}
/* Cart icon white */
.header-transparent .cart-icon-btn svg {
  color: rgba(255, 255, 255, 0.9) !important;
}
/* Sign-in link white */
.header-transparent .sign-in-link {
  color: rgba(255, 255, 255, 0.85) !important;
}
.header-transparent .sign-in-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* ── Dual-logo header swap ────────────────────────────────── */
/* Light logo (dark text on white bg) shown by default */
.site-logo-light       { display: block; }
.site-logo-transparent { display: none;  }
/* On transparent hero header, swap to white/transparent logo */
.header-transparent .site-logo-light       { display: none;  }
.header-transparent .site-logo-transparent { display: block; }
/* Mobile: always show light logo regardless of header state */
@media (max-width: 1023px) {
  .header-transparent .site-logo-light       { display: block !important; }
  .header-transparent .site-logo-transparent { display: none  !important; }
}

/* ── Get Quote button — ALWAYS gold on both header states ─── */
.btn-get-quote {
  background: var(--color-accent, #f2a900) !important;
  color: var(--color-primary, #012a4a) !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(242, 169, 0, 0.35) !important;
}
.btn-get-quote:hover {
  background: #e09900 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(242, 169, 0, 0.45) !important;
}

/* ── Mobile: ALWAYS solid white header, never transparent ─── */
@media (max-width: 1023px) {
  .header-transparent .main-nav {
    background: #fff !important;
    border-bottom: 1px solid #f3f4f6 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
  }
  .header-transparent .nav-link {
    color: #374151 !important;
  }
  .header-transparent .hamburger-btn svg {
    color: #374151 !important;
  }
  .header-transparent .cart-icon-btn svg {
    color: #6b7280 !important;
  }
  .header-transparent .logo-brand-icon {
    background: var(--color-primary, #012a4a) !important;
    filter: none !important;
  }
  .header-transparent .logo-brand-name {
    color: var(--color-primary, #012a4a) !important;
  }
}

/* ── Nav links ────────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.625rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-primary, #012a4a); background: rgba(1,42,74,0.05); }
.nav-link.nav-active {
  color: var(--color-primary, #012a4a);
  background: rgba(1,42,74,0.06);
  font-weight: 600;
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.mobile-nav-link:hover { background: rgba(1,42,74,0.05); color: var(--color-primary, #012a4a); }
.mobile-nav-link.active { color: var(--color-primary, #012a4a); font-weight: 600; }

/* ── Mega dropdown ────────────────────────────────────────── */
.mega-dropdown {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
}

/* ── Mobile overlay menu ──────────────────────────────────── */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--color-primary, #012a4a);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.mobile-menu-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu-link.active { color: var(--color-accent, #f2a900); }

/* ── Cart badge ───────────────────────────────────────────── */
.cart-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--color-secondary, #d90429);
  color: #fff;
  position: absolute;
  top: -4px;
  right: -4px;
  line-height: 1;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-secondary, #d90429);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(217,4,41,0.3);
}
.btn-primary:hover { background: #b80222; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(217,4,41,0.35); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); transform: translateY(-1px); }

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent, #f2a900);
  color: var(--color-primary, #012a4a);
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-accent:hover { background: #e09900; transform: translateY(-1px); }

/* ── Hero Section ─────────────────────────────────────────── */
.hero-section { position: relative; overflow: hidden; }

.hero-swiper { height: 100svh; min-height: 600px; max-height: 920px; }

/* Push hero text content below the fixed transparent header */
.is-hero-page .hero-content { padding-top: 80px; }
@media (min-width: 768px) { .is-hero-page .hero-content { padding-top: 120px; } }

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1,22,39,0.88) 0%, rgba(1,42,74,0.72) 60%, rgba(1,22,39,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(242,169,0,0.15);
  border: 1px solid rgba(242,169,0,0.4);
  color: var(--color-accent, #f2a900);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Hero Swiper customization */
.hero-swiper .swiper-pagination-bullet {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.4);
  opacity: 1;
  transition: background 0.3s, width 0.3s;
}
.hero-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent, #f2a900);
  width: 40px;
}
.hero-swiper .swiper-pagination { bottom: 28px; }

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: #fff;
}
.hero-nav-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
@media (max-width: 640px) { .hero-prev { left: 12px; } .hero-next { right: 12px; } }

/* Hero decorative elements */
.hero-geo {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar { background: var(--color-accent, #f2a900); }
.stat-counter {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-primary, #012a4a);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 480px) { .stat-counter { font-size: 2rem; } }

/* ── Cards ────────────────────────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  box-shadow: 0 12px 40px rgba(1,42,74,0.1);
  transform: translateY(-4px);
  border-color: rgba(1,42,74,0.12);
}
.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: rgba(1,42,74,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
  flex-shrink: 0;
}
.feature-card:hover .feature-icon { background: var(--color-primary, #012a4a); }
.feature-icon svg { color: var(--color-primary, #012a4a); transition: color 0.3s; }
.feature-card:hover .feature-icon svg { color: #fff; }

/* ── Product Cards ────────────────────────────────────────── */
.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.125rem;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 16px 48px rgba(1,42,74,0.12);
  transform: translateY(-4px);
}
.product-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f3f4f6;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
}
.badge-new { background: rgba(1,42,74,0.85); color: #fff; }
.badge-used { background: rgba(107,114,128,0.85); color: #fff; }
.badge-sale { background: var(--color-secondary, #d90429); color: #fff; }
.product-card-body { padding: 1.125rem; flex: 1; display: flex; flex-direction: column; }
.product-card-title { font-weight: 700; font-size: 0.9375rem; line-height: 1.35; color: #111827; margin-bottom: 0.375rem; }
.product-card-cat { font-size: 0.75rem; color: #9ca3af; font-weight: 500; margin-bottom: 0.75rem; }
.product-price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: auto; }
.product-price-sale { font-size: 1.1875rem; font-weight: 800; color: var(--color-primary, #012a4a); }
.product-price-orig { font-size: 0.875rem; color: #9ca3af; text-decoration: line-through; }
.product-card-cta {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  background: rgba(1,42,74,0.05);
  color: var(--color-primary, #012a4a);
  font-size: 0.875rem;
  font-weight: 600;
  border-top: 1px solid #f3f4f6;
  border-radius: 0 0 1.125rem 1.125rem;
  transition: background 0.2s, color 0.2s;
}
.product-card:hover .product-card-cta { background: var(--color-primary, #012a4a); color: #fff; }

/* ── Category Cards ───────────────────────────────────────── */
.category-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s, background 0.3s;
  gap: 1rem;
}
.category-card:hover {
  box-shadow: 0 16px 48px rgba(1,42,74,0.1);
  transform: translateY(-5px);
  border-color: var(--color-primary, #012a4a);
  background: var(--color-primary, #012a4a);
  color: #fff;
}
.category-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(1,42,74,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.category-card:hover .category-icon { background: rgba(255,255,255,0.15); }
.category-icon svg { color: var(--color-primary, #012a4a); transition: color 0.3s; }
.category-card:hover .category-icon svg { color: #fff; }
.category-card-name { font-size: 0.9375rem; font-weight: 700; line-height: 1.3; }
.category-card-count { font-size: 0.8125rem; color: #6b7280; transition: color 0.3s; }
.category-card:hover .category-card-count { color: rgba(255,255,255,0.7); }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary, #012a4a) 0%, #021d3a 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(242,169,0,0.05);
  pointer-events: none;
}

/* ── How It Works ─────────────────────────────────────────── */
.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--color-primary, #012a4a);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(1,42,74,0.2);
}
.step-connector {
  position: absolute;
  top: 2rem;
  left: calc(50% + 2rem);
  width: calc(100% - 4rem);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-accent, #f2a900) 0, var(--color-accent, #f2a900) 8px, transparent 8px, transparent 16px);
  opacity: 0.5;
}

/* ── Resource Cards ───────────────────────────────────────── */
.resource-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.3s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.resource-card:hover { box-shadow: 0 8px 32px rgba(1,42,74,0.1); transform: translateY(-2px); }
.resource-type-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.resource-catalog  { background: rgba(1,42,74,0.1);  color: var(--color-primary, #012a4a); }
.resource-manual   { background: rgba(217,4,41,0.08); color: var(--color-secondary, #d90429); }
.resource-datasheet { background: rgba(242,169,0,0.12); color: #b07d00; }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.testimonial-stars { display: flex; gap: 2px; margin-bottom: 1rem; }
.testimonial-quote { font-size: 0.9375rem; line-height: 1.7; color: #374151; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 0.875rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #f3f4f6; }
.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary, #012a4a);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Testimonials Swiper */
.testimonials-swiper { padding-bottom: 3rem !important; }
.testimonials-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
}
.testimonials-pagination .swiper-pagination-bullet-active { background: var(--color-primary, #012a4a); }

/* ── Blog Preview Cards ───────────────────────────────────── */
.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { box-shadow: 0 16px 48px rgba(1,42,74,0.1); transform: translateY(-4px); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary, #012a4a);
  background: rgba(1,42,74,0.07);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.blog-card-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.35; color: #111827; margin-bottom: 0.625rem; }
.blog-card-excerpt { font-size: 0.875rem; color: #6b7280; line-height: 1.6; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid #f3f4f6; font-size: 0.8125rem; color: #9ca3af; }

/* ── Contact Callout ──────────────────────────────────────── */
.contact-callout {
  background: linear-gradient(135deg, #011627 0%, #012a4a 100%);
  position: relative;
  overflow: hidden;
}

/* ── Mobile Bottom Nav ────────────────────────────────────── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  height: 60px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s;
  padding: 0;
}
.mobile-tab:hover, .mobile-tab.active { color: var(--color-primary, #012a4a); }
.mobile-tab svg { flex-shrink: 0; }

/* Pad body for mobile bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 60px; }
}

/* ── Utilities ────────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin-inline: auto; }

/* Line clamp */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Divider dot */
.dot-divider::before { content: '·'; margin: 0 0.375rem; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent, #f2a900) 0%, #ffcc40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll reveal (AOS supplement) */
[data-aos] { will-change: transform, opacity; }

/* Fix Alpine cloak */
[x-cloak] { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   Phase 4 R2 — Transparent header, parallax, quick view,
   mobile slide menu, back-to-top, newsletter, payment icons,
   frosted glass mobile nav
   ═══════════════════════════════════════════════════════════ */

/* (transparent header styles moved to base CSS section above) */

/* ── Hero parallax background ─────────────────────────────── */
.hero-parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1,22,39,0.88) 0%, rgba(1,42,74,0.72) 60%, rgba(1,22,39,0.50) 100%);
  z-index: 1;
}
/* Ensure hero content sits above parallax layers */
.hero-swiper .swiper-slide { overflow: hidden; }
.hero-swiper .swiper-slide .hero-content { z-index: 10; }

/* ── CTA Banner parallax ──────────────────────────────────── */
.cta-parallax-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 0;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(1,22,39,0.90) 0%, rgba(1,42,74,0.85) 100%);
  z-index: 1;
}
.cta-banner > .container { position: relative; z-index: 2; }

/* ── Product quick-view overlay ───────────────────────────── */
.product-quick-view {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  background: rgba(1,42,74,0.92);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.625rem;
  transition: bottom 0.25s ease;
  z-index: 5;
}
.product-card:hover .product-quick-view { bottom: 0; }

/* ── Product star rating ──────────────────────────────────── */
.product-star-rating {
  display: flex;
  gap: 1px;
  margin-bottom: 0.625rem;
}

/* ── Mobile menu backdrop ─────────────────────────────────── */
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.55);
}

/* ── Mobile menu panel (left-slide) ──────────────────────── */
.mobile-menu-panel {
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 320px;
  max-width: 85vw;
  z-index: 50;
  background: var(--color-primary, #012a4a);
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.mobile-menu-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.mobile-menu-link.active { color: var(--color-accent, #f2a900); }

/* ── Back to top button ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 5rem;
  z-index: 998;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary, #012a4a);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(1,42,74,0.3);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--color-secondary, #d90429); }
@media (min-width: 769px) { .back-to-top { bottom: 1.5rem; } }

/* ── Newsletter form ──────────────────────────────────────── */
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.5rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input[type="email"]:focus { border-color: var(--color-accent, #f2a900); background: rgba(255,255,255,0.1); }
.newsletter-btn {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.625rem;
  border: none;
  background: var(--color-accent, #f2a900);
  color: var(--color-primary, #012a4a);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #e09900; }
.newsletter-success {
  display: none;
  font-size: 0.8125rem;
  color: #4ade80;
  margin-top: 0.5rem;
}

/* ── Payment icons (footer) ───────────────────────────────── */
.payment-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.payment-icon {
  padding: 0.25rem 0.625rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ── Frosted glass mobile bottom nav ─────────────────────── */
@supports (backdrop-filter: blur(20px)) {
  .mobile-bottom-nav {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255,255,255,0.85) !important;
  }
}

/* ── Top bar contact links ────────────────────────────────── */
.topbar-contact-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topbar-contact-link:hover { color: var(--color-accent, #f2a900); }
.topbar-contact-link svg  { width: 14px; height: 14px; }
.topbar-divider           { color: rgba(255,255,255,0.3); }

/* ── Footer contact items ─────────────────────────────────── */
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-contact-item:hover { color: var(--color-accent, #f2a900); }
.footer-contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-accent, #f2a900);
}
.btn-quote-footer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-quote-footer:hover { background: #d4940a !important; }

/* ── Contact page map section ─────────────────────────────── */
.contact-map-section {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
}
.contact-map-section iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: none;
  margin: 0;
  padding: 0;
}
.contact-map-section-placeholder {
  margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════
   Phase 5 — All public page styles
   ═══════════════════════════════════════════════════════════ */

/* ── Page hero heights ────────────────────────────────────── */
.page-hero-sm { min-height: 160px; }
.page-hero-lg { min-height: 340px; }
@media (max-width: 768px) {
  .page-hero-sm { padding-top: 3rem; padding-bottom: 3rem; }
  .page-hero-lg { min-height: 260px; }
}

/* ── Secondary button ─────────────────────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: #fff;
  color: var(--color-primary, #012a4a);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.75rem;
  border: 2px solid #e5e7eb;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--color-primary, #012a4a); transform: translateY(-1px); }

/* ── Form inputs ──────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
}
.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #111827;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.5;
  font-family: inherit;
}
.form-input:focus {
  border-color: var(--color-primary, #012a4a);
  box-shadow: 0 0 0 3px rgba(1,42,74,0.08);
}
.form-input::placeholder { color: #9ca3af; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.875rem center; background-size: 1.1em; padding-right: 2.5rem; }
textarea.form-input { min-height: 110px; }

/* ── Shop filter sidebar ──────────────────────────────────── */
.filter-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.filter-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 0.875rem;
}
.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.filter-link:hover { background: rgba(1,42,74,0.05); color: var(--color-primary, #012a4a); }
.filter-link.active { background: var(--color-primary, #012a4a); color: #fff; font-weight: 600; }
.filter-link.active .filter-count { background: rgba(255,255,255,0.2); color: #fff; }
.filter-count {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #6b7280;
}

/* ── Product detail gallery ───────────────────────────────── */
.product-gallery-main {
  aspect-ratio: 4/3;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f3f4f6;
  margin-bottom: 0.75rem;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumb {
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f4f6;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.product-gallery-thumb.active { border-color: var(--color-primary, #012a4a); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery Swiper thumbs */
.gallery-swiper-thumbs .swiper-slide { cursor: pointer; opacity: 0.6; transition: opacity 0.2s; }
.gallery-swiper-thumbs .swiper-slide-thumb-active { opacity: 1; }

/* ── Product specs table ──────────────────────────────────── */
.specs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.specs-table th, .specs-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #f3f4f6; text-align: left; vertical-align: top; }
.specs-table th { width: 40%; font-weight: 600; color: #6b7280; background: #fafafa; }
.specs-table td { color: #111827; font-weight: 500; }
.specs-table tr:last-child th, .specs-table tr:last-child td { border-bottom: none; }

/* ── Sticky mobile add-to-cart ────────────────────────────── */
.sticky-mobile-cta {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 990;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.07);
}
@media (min-width: 769px) { .sticky-mobile-cta { display: none; } }

/* ── Cart items ───────────────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.qty-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.qty-display { width: 2.5rem; text-align: center; font-weight: 700; font-size: 0.9375rem; }

/* ── Order status badges ──────────────────────────────────── */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.625rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 9999px;
}
.badge-pending    { background: #fef9c3; color: #854d0e; }
.badge-processing { background: #dbeafe; color: #1e3a8a; }
.badge-shipped    { background: #d1fae5; color: #065f46; }
.badge-delivered  { background: #dcfce7; color: #14532d; }
.badge-cancelled  { background: #fee2e2; color: #7f1d1d; }

/* ── Order card ───────────────────────────────────────────── */
.order-card {
  transition: box-shadow 0.2s, transform 0.2s;
}
.order-card:hover {
  box-shadow: 0 8px 24px rgba(1,42,74,0.08);
  transform: translateY(-1px);
}

/* ── Service cards ────────────────────────────────────────── */
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  height: 100%;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(1,42,74,0.1);
  transform: translateY(-4px);
  border-color: rgba(1,42,74,0.15);
}
.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(1,42,74,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}
.service-card:hover .service-icon { background: var(--color-primary, #012a4a); }
.service-icon svg { color: var(--color-primary, #012a4a); transition: color 0.3s; }
.service-card:hover .service-icon svg { color: #fff; }

/* ── Blog prose content (rich HTML) ──────────────────────── */
.prose-content { color: #374151; line-height: 1.75; font-size: 1rem; }
.prose-content h1, .prose-content h2, .prose-content h3, .prose-content h4 {
  color: #111827;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}
.prose-content h1 { font-size: 1.875rem; }
.prose-content h2 { font-size: 1.5rem; }
.prose-content h3 { font-size: 1.25rem; }
.prose-content h4 { font-size: 1.0625rem; }
.prose-content p { margin-bottom: 1.25rem; }
.prose-content ul, .prose-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-content li { margin-bottom: 0.375rem; }
.prose-content ul li { list-style-type: disc; }
.prose-content ol li { list-style-type: decimal; }
.prose-content a { color: var(--color-primary, #012a4a); font-weight: 600; text-decoration: underline; }
.prose-content a:hover { color: var(--color-secondary, #d90429); }
.prose-content strong { color: #111827; font-weight: 700; }
.prose-content blockquote {
  border-left: 4px solid var(--color-accent, #f2a900);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: #fffbeb;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: #6b7280;
}
.prose-content code {
  font-family: monospace;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.9em;
}
.prose-content pre { background: #1f2937; color: #f9fafb; padding: 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin-bottom: 1.25rem; }
.prose-content pre code { background: none; padding: 0; color: inherit; font-size: 0.9rem; }
.prose-content img { max-width: 100%; border-radius: 0.75rem; margin: 1.5rem 0; }
.prose-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; font-size: 0.9rem; }
.prose-content th { background: #f3f4f6; font-weight: 700; padding: 0.625rem 0.875rem; text-align: left; border: 1px solid #e5e7eb; }
.prose-content td { padding: 0.625rem 0.875rem; border: 1px solid #e5e7eb; }
.prose-content hr { border: none; border-top: 2px solid #f3f4f6; margin: 2rem 0; }

/* ── About page — timeline ────────────────────────────────── */
.timeline-item { position: relative; padding-left: 3rem; padding-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: 0.9375rem; top: 1.75rem; bottom: 0; width: 2px; background: #e5e7eb; }
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: var(--color-primary, #012a4a);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary, #012a4a);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent, #f2a900);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

/* ── Resources page ───────────────────────────────────────── */
.resource-group-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f3f4f6;
}

/* ── Checkout ─────────────────────────────────────────────── */
.checkout-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.checkout-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
}
.payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 0.5rem;
}
.payment-method-option:has(input:checked) {
  border-color: var(--color-primary, #012a4a);
  background: rgba(1,42,74,0.04);
}
.payment-method-option input[type="radio"] { accent-color: var(--color-primary, #012a4a); }

/* ── Pagination ───────────────────────────────────────────── */
.pagination-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pagination-link:hover { border-color: var(--color-primary, #012a4a); color: var(--color-primary, #012a4a); }
.pagination-link.active { background: var(--color-primary, #012a4a); border-color: var(--color-primary, #012a4a); color: #fff; }

/* ── Input range (price filter) ───────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #e5e7eb;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--color-primary, #012a4a);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}


/* ═══════════════════════════════════════════════════════════
   Phase 7 — Flash Messages, Breadcrumbs, Mobile QA
   ═══════════════════════════════════════════════════════════ */

/* ── Flash messages ───────────────────────────────────────── */
.flash-bar {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 320px;
  max-width: 600px;
  width: calc(100vw - 2rem);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  animation: flashSlide .35s ease;
}
@keyframes flashSlide { from { opacity:0; transform:translateX(-50%) translateY(-16px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.flash-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 1.25rem;
}
.flash-text  { font-size: .9375rem; font-weight: 600; flex: 1; }
.flash-close { background: none; border: none; cursor: pointer; opacity: .7; line-height: 1; padding: 0; }
.flash-close:hover { opacity: 1; }
.flash-close svg { display: block; }
.flash-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #15803d; }
.flash-error   { background: #fff1f2; border: 1.5px solid #fca5a5; color: #be123c; }
.flash-warning { background: #fffbeb; border: 1.5px solid #fde68a; color: #92400e; }
.flash-info    { background: #eff6ff; border: 1.5px solid #93c5fd; color: #1d4ed8; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb-nav {
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  padding: .625rem 0;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: .8125rem;
  color: #6b7280;
}
.breadcrumb-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
}
.breadcrumb-link:hover { color: var(--color-primary, #012a4a); }
.breadcrumb-current { color: var(--color-primary, #012a4a); font-weight: 600; }
.breadcrumb-sep { width: 14px; height: 14px; margin: 0 .25rem; flex-shrink: 0; color: #d1d5db; }

/* ── Mobile bottom nav fixes ──────────────────────────────── */
.mobile-bottom-nav {
  height: calc(64px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 1000;
}
/* Push page content above bottom nav on mobile */
@media (max-width: 767px) {
  body { padding-bottom: 80px; }
}

/* ── Mobile header ────────────────────────────────────────── */
@media (max-width: 767px) {
  .site-logo img { max-width: 140px; }
  .logo-brand-name { font-size: 1rem !important; }
  .hamburger-btn { width: 44px; height: 44px; }
}

/* ── Mobile product card grid ─────────────────────────────── */
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .product-card { padding: 0.75rem !important; }
  .product-card .text-lg { font-size: 1rem !important; }
  .product-card .btn-primary { width: 100%; justify-content: center; }
}

/* ── Mobile forms: prevent iOS zoom ──────────────────────── */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
  button, .btn, .btn-primary, .btn-outline, .btn-accent {
    min-height: 48px;
  }
  .form-group { margin-bottom: 1.25rem; }
}

/* ── Mobile tables ────────────────────────────────────────── */
.table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Lazy load placeholder ────────────────────────────────── */
img.lazy {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
img.lazy-loaded { animation: none; background: none; }
