/* Custom theme tokens */

/* Site component helpers (Tailwind-friendly) */

/* Legacy site layout styles (kept until full Tailwind conversion of every page) */
/* GloveArabia — Flexible Theme System
   Default: white (light)
   Switch later: <html data-theme="dark">
*/

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

/* ========== THEME VARIABLES ========== */
:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --bg-card: #ffffff;
  --bg-topbar: #f1f3f5;
  --bg-hero: #f8f9fb;
  --bg-cta: #fff7ed;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #1f2937;
  --text-heading: #111827;
  --text-muted: #6b7280;
  --text-inverse: #ffffff;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: #fff7ed;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --container: 1120px;
  --whatsapp: #16a34a;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #171717;
  --bg-topbar: #050505;
  --bg-hero: #0c0c0c;
  --bg-cta: #1a0f05;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #e5e5e5;
  --text-heading: #ffffff;
  --text-muted: #a3a3a3;
  --text-inverse: #111111;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: #1a0f05;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
  --whatsapp: #25d366;
}

/* ========== BASE ========== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container.narrow {
  max-width: 720px;
}

/* ========== TOP BAR ========== */
.topbar {
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-contacts {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.topbar-contacts a:hover {
  color: var(--accent);
}

.whatsapp-link {
  color: var(--whatsapp);
  font-weight: 600;
}

/* ========== HEADER ========== */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0.75rem 1.25rem;
  gap: 0.65rem;
  position: relative;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-left: auto;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: #0f172a;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-heading);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
  min-width: 0;
}
.nav-mobile-only {
  display: none !important;
}

.nav > a,
.dropdown-btn {
  padding: 0.4rem 0.55rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav > a:hover,
.dropdown-btn:hover,
.nav > a.active,
.dropdown-btn.active {
  color: var(--accent);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid #3b6ea5;
  border-radius: 0 0 8px 8px;
  padding: 0.45rem 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 50;
}

/* Desktop hover + .open for click/touch */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    display: block;
  }
}
@media (max-width: 768px) {
  .dropdown.open .dropdown-menu {
    display: block;
  }
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #374151;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.01em;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: #f3f4f6;
  color: #1e3a5f;
}

.nav-caret {
  font-size: 0.7em;
  opacity: 0.75;
  margin-left: 0.15rem;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border-strong);
}

.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ========== HERO ========== */
.hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem 0 5rem;
}

.hero-inner {
  max-width: 720px;
}

.page-hero {
  background: var(--bg-hero);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  margin: 0 0.4rem;
  color: var(--border-strong);
}

/* ========== SECTIONS ========== */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.narrow p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ========== CARDS ========== */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.countries-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

a.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

/* ========== CHECK LIST ========== */
.check-list {
  list-style: none;
  margin-top: 1.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ========== CTA ========== */
.cta-section {
  background: var(--bg-cta);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-inner h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner .hero-actions {
  justify-content: center;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 1.25rem;
}

.contact-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-list strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--text-heading);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent);
}

.note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-form-wrap h2 {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 768px) {
  /* Compact topbar — single line or hide long labels */
  .topbar {
    font-size: 0.75rem;
  }
  .topbar-inner {
    padding: 0.4rem 1rem;
    justify-content: center;
    gap: 0.75rem;
  }
  .topbar-inner > span:first-child {
    display: none; /* hide "Wholesale · UAE..." on small screens */
  }
  .topbar-contacts {
    width: 100%;
    justify-content: center;
    gap: 0.85rem;
  }

  .header {
    position: sticky;
    top: 0;
  }
  .header-inner {
    position: relative;
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
  }
  .logo {
    font-size: 1.2rem;
  }
  .header-cta {
    display: none !important;
  }
  .nav-cta {
    display: inline-flex !important;
    margin-top: 0.35rem;
    width: fit-content;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: var(--shadow-lg);
    z-index: 120;
  }
  .nav.open {
    display: flex;
  }
  .nav > a,
  .dropdown-btn {
    padding: 0.75rem 0.85rem;
    width: 100%;
    text-align: left;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 0.75rem;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .carousel {
    margin: 0.5rem auto 1rem;
    padding: 0 0.5rem;
  }
  .carousel-track {
    aspect-ratio: 16 / 9;
    max-height: 220px;
    min-height: 140px;
    border-radius: 8px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .page-simple {
    padding: 1rem 0 2.5rem;
  }
  .page-simple-head {
    margin-bottom: 1.5rem;
  }
  .contact-card {
    padding: 1.15rem;
  }
}

@media (max-width: 480px) {
  .topbar {
    display: none; /* hide topbar on very small phones — contacts stay in footer/header */
  }
  .topbar-contacts a {
    font-size: 0.72rem;
  }
  .carousel-track {
    aspect-ratio: 4 / 3;
    max-height: 200px;
  }
}

/* Desktop: actions live in .header-actions; mobile-only items stay in drawer */
@media (min-width: 981px) {
  .nav-mobile-only {
    display: none !important;
  }
  .header-actions {
    display: flex;
  }
  .menu-toggle {
    display: none !important;
  }
}


/* ========== CAROUSEL (Amazon / Flipkart style) ========== */
.carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto 1.25rem;
  padding: 0 1rem;
  overflow: hidden;
  background: transparent;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 380px;
  min-height: 160px;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
}

/* Old browsers without aspect-ratio */
@supports not (aspect-ratio: 21 / 9) {
  .carousel-track {
    height: clamp(160px, 42vw, 380px);
  }
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
}

.carousel-slide > a {
  display: block;
  width: 100%;
  height: 100%;
}

.carousel-slide > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Arrows — gold accent */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(212, 160, 23, 0.95);
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.carousel:hover .carousel-btn,
.carousel:focus-within .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: #c4920f;
  transform: translateY(-50%) scale(1.06);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel-btn-prev { left: 16px; }
.carousel-btn-next { right: 16px; }
.carousel-btn svg { display: block; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(212, 160, 23, 0.85);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: #d4a017;
  transform: scale(1.15);
}

.carousel-dot:hover {
  background: rgba(212, 160, 23, 0.5);
}

/* Mobile: do NOT override .carousel-track height — aspect-ratio handles it */
@media (max-width: 768px) {
  .carousel-btn {
    width: 36px;
    height: 36px;
    opacity: 1;
  }
  .carousel-btn-prev { left: 8px; }
  .carousel-btn-next { right: 8px; }
  .carousel-btn svg { width: 18px; height: 18px; }
  .carousel-dots { bottom: 10px; gap: 6px; }
  .carousel-dot { width: 8px; height: 8px; }
}

/* ========== HOME INTRO (image + text after carousel) ========== */
.home-intro {
  background: #fff;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.home-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  align-items: center;
}

.home-intro-media img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.home-intro-copy h2 {
  font-size: 1.5rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.home-intro-copy p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.home-intro-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .home-intro-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .home-intro {
    padding: 2.5rem 0;
  }
}

/* ========== HOME PRODUCTS SECTION ========== */
.home-products {
  background: #fff;
  padding: 3.5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.home-products-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #3b6fb6;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.home-products-body {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.8;
}

.home-products-body p {
  margin-bottom: 0.85rem;
}

.home-products-body p:last-child {
  margin-bottom: 0;
}

.home-products-body strong,
.home-products-body b {
  font-weight: 700;
  color: var(--text-heading);
}

.home-products-body h1,
.home-products-body h2,
.home-products-body h3 {
  color: var(--text-heading);
  margin: 0.75rem 0;
}

.home-intro-copy p {
  margin-bottom: 1rem;
}

.home-intro-copy strong,
.home-intro-copy b {
  font-weight: 700;
}

/* ========== HOME SHIPPING SECTION ========== */
.home-shipping {
  background: linear-gradient(90deg, #f0f4f8 0%, #f7f5f9 55%, #faf6f4 100%);
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.home-shipping-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem 3rem;
  align-items: center;
}

.home-shipping-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.home-shipping-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #3b6fb6;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.home-shipping-body {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
}

.home-shipping-body p {
  margin-bottom: 0.75rem;
}

.home-shipping-body strong,
.home-shipping-body b {
  font-weight: 700;
  color: var(--text-heading);
}

@media (max-width: 900px) {
  .home-shipping-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .home-shipping-media {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ========== HOME CALL CTA ========== */
.home-cta {
  background: #3b6fb6;
  padding: 3rem 1rem;
  text-align: center;
  color: #fff;
}

.home-cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.home-cta-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.home-cta-body {
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.home-cta-body p {
  margin-bottom: 0.35rem;
  color: #fff;
}

.home-cta-body strong,
.home-cta-body b {
  font-weight: 800;
  color: #fff;
}

.home-cta-body a {
  color: #fff;
  text-decoration: underline;
}

/* ========== SHARED PRODUCT CARDS (Home + product-country) ========== */
.product-grid-section {
  padding: 2.5rem 0 3rem;
  background: #f8fafc;
}
.product-grid-section .container > .section-header,
.product-grid-section .product-grid-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}
.product-grid-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
}
.product-grid-sub {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
/* One row of related / featured cards */
.product-grid--row {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .product-grid--row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .product-grid--row {
    grid-template-columns: 1fr;
  }
}
.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.product-card__media {
  background: #eef2f7;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  max-height: 160px;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e3a5f 0%, #3b6ea5 100%);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.product-card__body {
  padding: 0.75rem 0.9rem 0.9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.product-card__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.product-card__specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #334155;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 0.15rem;
}
.product-card__specs li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.product-card__label {
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.product-card__price {
  font-weight: 700;
  color: #c4920f;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* legacy class aliases so old markup does not break */
.home-prices {
  padding: 2.5rem 0 3rem;
  background: #f8fafc;
}
.home-prices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}
.home-price-card { display: none; }
.home-price-image img { object-fit: cover; }


/* ===== Modern page layout (About / Contact) — no page-hero ===== */
.page-simple {
  padding: 1.5rem 0 4rem;
  background: var(--bg);
}
.page-simple .breadcrumb {
  margin-bottom: 1.25rem;
}
.page-simple-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}
.page-simple-head h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--text-heading);
  margin: 0.35rem 0 0.75rem;
}
.page-simple-head .lead,
.page-simple-head .lead p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}
.about-copy h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-heading);
}
.about-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.about-point {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
}
.about-point strong {
  color: var(--text-heading);
  font-size: 0.95rem;
}
.about-point span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.about-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}
.about-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3f4f6;
}
.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.about-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--text-heading);
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form .form-group {
  margin-bottom: 1rem;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.contact-side .contact-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}
.contact-side .contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-side .contact-list strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
.alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

@media (max-width: 900px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .about-side {
    position: static;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* Phase T3 leftovers — product-country uses .product-grid now */
.pc-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pc-contact-line {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.pc-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.product-grid-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #475569;
}
.product-grid-empty .btn {
  margin-top: 1rem;
}


/* Home intro — readable size (match live site density) */
.home-intro {
  padding: 2.5rem 0 3rem;
}
.home-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.home-intro-media img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}
.home-intro-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #0f172a;
}
.home-intro-copy .prose,
.home-intro-copy .prose p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #1e293b;
}
.home-intro-copy .prose p + p {
  margin-top: 1rem;
}
@media (max-width: 800px) {
  .home-intro-inner {
    grid-template-columns: 1fr;
  }
}

/* Home products highlights block */
.home-highlights {
  padding: 3.5rem 0;
  text-align: center;
  background: #fff;
}
.home-highlights-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #3b6ea5;
  margin: 0 0 1.75rem;
  text-transform: uppercase;
}
.home-highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  margin-inline: auto;
}
.home-highlights-list li {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0.85rem 0;
  line-height: 1.45;
}

/* Home shipping band */
.home-shipping-band {
  padding: 3rem 0;
  background: linear-gradient(90deg, #e8f0f8 0%, #f5f7fa 55%, #eef2f7 100%);
}
.home-shipping-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.home-shipping-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #3b6ea5;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-transform: uppercase;
}
.home-shipping-band .prose,
.home-shipping-band .prose p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #334155;
}
.home-shipping-media img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}
@media (max-width: 800px) {
  .home-shipping-inner {
    grid-template-columns: 1fr;
  }
}

/* Home call CTA */
.home-call-cta {
  background: #3b6ea5;
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
}
.home-call-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.home-call-cta p {
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin: 0.35rem 0;
  line-height: 1.35;
}
.home-call-cta a {
  color: #fff;
  text-decoration: none;
}

/* ========== Product-country page (light, live-site style) ========== */
.pc-page {
  background: #fff;
  padding: 2rem 0 3.5rem;
}
.pc-page-inner {
  max-width: 960px;
}
.pc-header {
  margin-bottom: 1.75rem;
}
.pc-h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 1rem;
  line-height: 1.2;
}
.pc-h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
  margin: 0 0 0.85rem;
}
.pc-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}
.pc-lead p {
  margin: 0.5rem 0 0;
}
.pc-block {
  margin: 2rem 0;
}
.pc-block .prose,
.pc-block .prose p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}
.pc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.pc-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.pc-simple-card {
  background: #d1d5db;
  color: #111;
  border-radius: 6px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  min-height: 110px;
}
.pc-simple-card p {
  margin: 0.2rem 0;
}
.pc-simple-name {
  font-weight: 700;
  margin-bottom: 0.4rem !important;
}
.pc-empty {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
}
.pc-order {
  border-top: 1px solid #e5e7eb;
  padding-top: 2rem;
}
.pc-supply {
  margin: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
}
@media (max-width: 900px) {
  .pc-simple-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .pc-simple-grid {
    grid-template-columns: 1fr;
  }
}

.home-call-cta-body,
.home-call-cta-body p {
  color: #fff !important;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem) !important;
  font-weight: 700 !important;
  margin: 0.35rem 0 !important;
  line-height: 1.35 !important;
}
.home-call-cta-body a {
  color: #fff !important;
  text-decoration: none;
}
.home-call-cta-body a:hover {
  text-decoration: underline;
}

/* ========== Product detail + cart (enquiry) ========== */
.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.product-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #c4920f;
}
.nav-cart,
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  margin-right: 0.5rem;
  position: relative;
}
.nav-cart:hover,
.header-cart:hover {
  color: #c4920f;
}
.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #c4920f;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
  pointer-events: none;
  z-index: 1;
}
.cart-badge[hidden] {
  display: none !important;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  /* top/bottom only — keep .container horizontal padding (x-axis) */
  padding-top: 2rem;
  padding-bottom: 3rem;
  align-items: start;
}
.product-detail-section {
  padding-left: 0;
  padding-right: 0;
}
.container.product-detail {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (max-width: 768px) {
  .container.product-detail {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.product-detail__media {
  background: #eef2f7;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.product-detail__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: #0f172a;
}
.product-detail__meta {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.product-detail__meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 0.95rem;
  color: #334155;
}
.product-detail__meta li span:first-child {
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.product-add-form .form-row {
  margin-bottom: 0.9rem;
}
.product-add-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #334155;
}
.product-add-form select,
.product-add-form input[type="number"],
.checkout-form input,
.checkout-form textarea,
.cart-qty-form input[type="number"] {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  background: #fff;
}
.product-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.product-detail__note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: #64748b;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #64748b;
}
.breadcrumb a {
  color: #c4920f;
  text-decoration: none;
}
.cart-section,
.checkout-section {
  padding: 1.5rem 0 3rem;
}
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}
.cart-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.cart-table th {
  background: #1e3a5f;
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}
.cart-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  font-size: 0.9rem;
}
.cart-product {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.cart-product img {
  width: 72px;
  height: 54px;
  object-fit: contain;
  background: #f1f5f9;
  border-radius: 6px;
  flex-shrink: 0;
}
.cart-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
}
.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cart-qty-form input[type="number"] {
  width: 4.5rem;
  max-width: 4.5rem;
}
.cart-remove {
  background: transparent;
  border: 1px solid #fecaca;
  color: #b91c1c;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.cart-remove:hover {
  background: #fef2f2;
}
.cart-summary,
.checkout-order {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  background: #f8fafc;
}
.cart-summary h2,
.checkout-order h2,
.checkout-form-wrap h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.6rem;
}
.cart-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.form-errors {
  background: #fef2f2;
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.form-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.checkout-form .form-row {
  margin-bottom: 0.85rem;
}
.checkout-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}
.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.checkout-line-main {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
}
.checkout-line-main img {
  width: 56px;
  height: 42px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  flex-shrink: 0;
}
.checkout-line-price {
  font-size: 0.85rem;
  color: #c4920f;
  font-weight: 600;
  white-space: nowrap;
}
.checkout-total {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .product-detail,
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .header-cart {
    margin-right: 0.35rem;
  }
}
@media (max-width: 640px) {
  .cart-table {
    min-width: 0;
  }
  .cart-table thead {
    display: none;
  }
  .cart-table tr {
    display: block;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .cart-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 0;
    padding: 0.35rem 0;
  }
  .cart-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-right: 0.5rem;
  }
}

.product-detail__description {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #334155;
}
.product-detail__description p { margin: 0 0 0.6rem; }
.product-detail__description p:last-child { margin-bottom: 0; }


/* ========== Phase 3: header search + catalog filters ========== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.header-search {
  display: flex;
  align-items: center;
  flex: 0 1 200px;
  max-width: 220px;
  margin: 0 0.35rem 0 0.5rem;
  min-width: 120px;
}
.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  background: #fff;
}
.header-search input[type="search"]:focus {
  outline: none;
  border-color: #c4920f;
}
.header-search-btn {
  border: 1px solid #c4920f;
  background: #c4920f;
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.header-search-btn:hover {
  background: #a67c0c;
  border-color: #a67c0c;
}
.catalog-section {
  padding: 1.5rem 0 3rem;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.catalog-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}
.filter-block {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}
.filter-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0.5rem;
}
.filter-heading {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.4rem;
}
.filter-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
  background: #fff;
}
.filter-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 11rem;
  overflow-y: auto;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #334155;
  cursor: pointer;
}
.filter-clear {
  display: inline-block;
  margin-top: 0.5rem;
}
.catalog-search-note {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #64748b;
}
.catalog-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.catalog-empty .btn {
  margin: 0.35rem;
}
.catalog-pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.catalog-pagination nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}
.catalog-pagination span,
.catalog-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  color: #334155;
  background: #fff;
}
.catalog-pagination a:hover {
  border-color: #c4920f;
  color: #c4920f;
}
.catalog-pagination [aria-current="page"] span,
.catalog-pagination .active span {
  background: #c4920f;
  border-color: #c4920f;
  color: #fff;
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .header-search {
    margin-left: 0;
    margin-right: 0;
  }
}

.product-detail__tags { margin: 0 0 1rem; }
.product-detail__tag-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 1px dashed #e2e8f0;
  color: #334155;
}


.quote-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}


/* Phase 5 — customer auth */
.auth-section { padding: 1.5rem 0 3rem; }
.container.narrow { max-width: 480px; margin-left: auto; margin-right: auto; }
.auth-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.auth-card .form-row { margin-bottom: 0.9rem; }
.auth-card label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
}
.auth-switch { margin-top: 1rem; font-size: 0.9rem; }
.auth-switch a { color: #c4920f; font-weight: 600; }
.nav-account,
.header-account {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  margin-right: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav-account:hover,
.header-account:hover { color: #c4920f; }

/* Phase 6 — Quick view + card actions */
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card__actions {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.85rem 0.85rem;
  margin-top: auto;
}
.product-card__actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}
.qv-modal[hidden] { display: none !important; }
.qv-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.qv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.qv-modal__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  padding: 1.25rem;
}
.qv-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.qv-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
.qv-modal__media {
  background: #f8fafc;
  border-radius: 10px;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qv-modal__media img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.qv-modal__placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}
.qv-modal__body h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  padding-right: 1.5rem;
}
.qv-modal__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
}
.qv-modal__meta li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed #e2e8f0;
}
.qv-modal__meta span:first-child {
  color: #64748b;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.qv-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
body.qv-open { overflow: hidden; }
@media (max-width: 720px) {
  .qv-modal__grid { grid-template-columns: 1fr; }
}

/* Mobile filter drawer (catalog) */
.catalog-mobile-bar {
  display: none;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  align-items: center;
}
.catalog-filters-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.catalog-filters-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.catalog-filters-backdrop {
  display: none;
}
@media (max-width: 900px) {
  .catalog-mobile-bar { display: flex; }
  .catalog-filters-head { display: flex; }
  .catalog-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 1200;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    border-radius: 0;
    margin: 0;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
  }
  .catalog-filters.is-open {
    transform: translateX(0);
  }
  .catalog-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1190;
  }
  .catalog-filters-backdrop[hidden] {
    display: none !important;
  }
  body.filters-open { overflow: hidden; }
}

/* Account page */
.account-section { padding: 1.5rem 0 3rem; }
.account-toolbar { margin-bottom: 1.25rem; }
.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}
.account-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.account-side { min-width: 0; }
.account-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.account-card--soft { background: #f8fafc; }
.account-card__head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.account-card__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.account-card__head .muted { margin: 0; font-size: 0.9rem; }
/* Stack label above input — do NOT use global .form-row (2-col) */
.account-field,
.auth-field {
  display: block;
  margin-bottom: 0.9rem;
}
.account-field label,
.auth-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.account-field input,
.auth-field input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
}
.account-form .form-row {
  display: block;
  grid-template-columns: 1fr;
  margin-bottom: 0.9rem;
}
.auth-card .form-row {
  display: block;
  grid-template-columns: 1fr;
  margin-bottom: 0.9rem;
}
.account-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
}
.account-link:hover { color: #c4920f; }
@media (max-width: 900px) {
  .account-layout { grid-template-columns: 1fr; }
}

/* Toast notify */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  max-width: min(92vw, 420px);
  text-align: center;
}
.site-toast.is-on {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.site-toast a {
  color: #fbbf24;
  margin-left: 0.35rem;
}

/* Catalog filter apply bar + mobile filter chip */
.catalog-filters {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
}
.catalog-filters-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.15rem;
}
.catalog-filters-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding-top: 0.85rem;
  margin-top: 0.5rem;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 2;
}
.catalog-apply-btn {
  flex: 1;
}
.catalog-clear-link {
  flex: 0 0 auto;
}
.catalog-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
}
.catalog-filter-btn:hover {
  border-color: #c4920f;
  color: #c4920f;
}
.catalog-filter-btn__count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #c4920f;
  color: #fff;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.catalog-clear-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.catalog-clear-btn:hover { color: #c4920f; border-color: #c4920f; }
@media (min-width: 901px) {
  .catalog-filters-head { display: none; }
}
@media (max-width: 900px) {
  .catalog-filters {
    max-height: 100vh;
    padding-bottom: 0;
  }
  .catalog-filters-body {
    padding: 0 0.15rem 0.5rem;
  }
  .catalog-filters-actions {
    padding: 0.75rem 0 0.25rem;
  }
}

/* Admin tag group accordion */
.tag-accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  color: #0f172a;
}
.tag-accordion__toggle:hover { background: #f1f5f9; }
.tag-accordion.is-open .tag-accordion__toggle {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.tag-accordion__caret {
  transition: transform 0.2s ease;
  color: #64748b;
}
.tag-accordion.is-open .tag-accordion__caret {
  transform: rotate(180deg);
}
.tag-accordion__body {
  background: #fff;
}


/* Header breakpoints — desktop flow vs compact */
@media (max-width: 1200px) {
  .header-search {
    flex: 0 1 160px;
    max-width: 170px;
  }
  .nav > a,
  .dropdown-btn {
    padding: 0.35rem 0.4rem;
    font-size: 0.82rem;
  }
  .header-account {
    font-size: 0.82rem;
  }
  .header-cart-label {
    display: none;
  }
}
@media (max-width: 980px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .header-search {
    order: 10;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    margin: 0;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 120;
  }
  .nav.open {
    display: flex;
  }
  .nav > a,
  .dropdown-btn {
    padding: 0.75rem 0.85rem;
    width: 100%;
    text-align: left;
    white-space: normal;
  }
  .nav-mobile-only {
    display: flex !important;
  }
  .nav-cta.nav-mobile-only {
    display: inline-flex !important;
    width: fit-content;
    margin-top: 0.35rem;
  }
  .header-actions .header-cta {
    display: none !important;
  }
  .menu-toggle {
    display: inline-flex !important;
    margin-left: 0.25rem;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 0.75rem;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
}

@media (max-width: 980px) {
  /* Keep search visible — full width under logo row */
  .header-search {
    display: flex !important;
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    width: 100%;
    margin: 0.5rem 0 0;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .header-cta {
    display: none !important;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card, #fff);
    border-bottom: 1px solid var(--border, #e5e7eb);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    box-shadow: 0 12px 28px rgba(15,23,42,0.12);
    z-index: 120;
  }
  .nav.open {
    display: flex;
  }
  .nav > a,
  .dropdown-btn {
    padding: 0.75rem 0.85rem;
    width: 100%;
    text-align: left;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .header-cart,
  .header-account {
    display: inline-flex !important;
  }
  .nav .nav-cart,
  .nav .nav-account {
    display: none !important;
  }
  .nav-cta {
    display: inline-flex !important;
    margin-top: 0.35rem;
    width: fit-content;
  }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 0.75rem;
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
}


/* catalog-filters overflow fix */
.catalog-filters {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 3rem);
  overflow: hidden;
  box-sizing: border-box;
}
.catalog-filters form#catalogFilterForm {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.catalog-filters-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}
.catalog-filters-actions {
  flex: 0 0 auto;
  position: relative;
  bottom: auto;
  margin-top: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.filter-tag-list {
  max-height: 9rem;
  overflow-y: auto;
}
@media (max-width: 900px) {
  .catalog-filters {
    max-height: 100vh;
    height: 100%;
    overflow: hidden;
  }
  .catalog-filters.is-open {
    display: flex;
    flex-direction: column;
  }
  .catalog-filters form#catalogFilterForm {
    padding: 0 0.15rem 0.75rem;
  }
}


/* catalog-filters drawer solid */
@media (max-width: 900px) {
  .catalog-filters {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 90vw);
    z-index: 1200;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    background: #fff;
    border-radius: 0;
    margin: 0;
    padding: 1rem;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    display: flex !important;
    flex-direction: column;
    max-height: 100vh;
    overflow: hidden;
  }
  .catalog-filters.is-open {
    transform: translateX(0);
  }
}

/* Cart / checkout estimated totals */
.cart-estimate {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 0.9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.cart-estimate__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.cart-estimate__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}
.cart-line-total {
  white-space: nowrap;
}
.product-line-estimate {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a !important;
}

/* Related products on detail page */
.related-products-section {
  padding: 2rem 0 3rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.related-products-section .section-header {
  margin-bottom: 1.25rem;
}
.related-products-section .product-grid-heading {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

/* Product detail — variants + responsive polish */
.product-detail-sub {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}
.product-variants {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}
.product-variants .form-row {
  margin: 0;
  min-width: 0;
}
.product-variants .form-row:last-of-type {
  margin: 0;
}
.product-variants label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: #334155;
}
.product-variants .muted {
  display: none; /* keep page short; options are self-explanatory */
}
.product-variants .filter-select,
.product-add-form select,
.product-add-form input[type="number"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  background: #fff;
}
.product-add-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  align-items: end;
}
.product-add-form .form-row { margin: 0; }
.product-add-form .subscribe-option,
.product-add-form .form-errors,
.product-add-form .product-add-actions {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .product-variants,
  .product-add-form {
    grid-template-columns: 1fr;
  }
}
.variant-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #b91c1c !important;
}
.product-detail-section {
  padding-bottom: 0.5rem;
}
.product-detail__info {
  min-width: 0;
}
.product-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.product-add-actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
  text-align: center;
  justify-content: center;
}
.product-line-estimate {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}
@media (max-width: 900px) {
  .product-detail {
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
  .product-detail__title {
    font-size: 1.2rem;
  }
  .product-variants {
    padding: 0.85rem;
  }
}
@media (max-width: 560px) {
  .product-add-actions {
    flex-direction: column;
  }
  .product-add-actions .btn {
    width: 100%;
  }
}

/* Checkout payment methods */
.payment-methods {
  border: 0;
  margin: 1.25rem 0 0;
  padding: 0;
}
.payment-methods legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.payment-methods-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.payment-method-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
}
.payment-method-option:has(input:checked) {
  border-color: var(--accent, #E85D04);
  background: rgba(232, 93, 4, 0.04);
}
.payment-method-option input {
  margin-top: 0.2rem;
}
.payment-method-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.payment-method-option__body .muted {
  font-size: 0.85rem;
}

/* Auth / account: never squeeze phone + company into half-width */
.auth-card .form-grid-2,
.account-form .form-grid-2 {
  grid-template-columns: 1fr;
}

/* Global site modal */
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.site-modal[hidden] { display: none !important; }
.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.site-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.25rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  text-align: center;
}
.site-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.site-modal__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}
.site-modal[data-type="success"] .site-modal__icon {
  background: #ecfdf5;
  color: #047857;
}
.site-modal[data-type="success"] .site-modal__icon::before { content: "✓"; }
.site-modal[data-type="error"] .site-modal__icon {
  background: #fef2f2;
  color: #b91c1c;
}
.site-modal[data-type="error"] .site-modal__icon::before { content: "!"; }
.site-modal[data-type="warning"] .site-modal__icon {
  background: #fff7ed;
  color: #c2410c;
}
.site-modal[data-type="warning"] .site-modal__icon::before { content: "!"; }
.site-modal[data-type="info"] .site-modal__icon,
.site-modal:not([data-type]) .site-modal__icon {
  background: #eff6ff;
  color: #1d4ed8;
}
.site-modal[data-type="info"] .site-modal__icon::before,
.site-modal:not([data-type]) .site-modal__icon::before { content: "i"; }
.site-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #0f172a;
}
.site-modal__body {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
  text-align: left;
}
.site-modal__body p { margin: 0 0 0.5rem; }
.site-modal__body p:last-child { margin-bottom: 0; }
.site-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
}
.site-modal__resend { display: inline; }


/* Header actions polish */
.header-actions .header-cart,
.header-actions .header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.header-actions .header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (min-width: 981px) {
  .header-inner > .logo {
    flex-shrink: 0;
  }
  .header-inner > .nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    margin-left: 0.25rem;
    margin-right: 0.35rem;
  }
}

/* User avatar circle (header + mobile nav) */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #c4920f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: 0;
}
.user-avatar--sm {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
}
.user-avatar--guest {
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
}
.user-avatar--guest i {
  font-size: 0.8rem;
}
.header-account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.875rem;
}
.header-account:hover .user-avatar {
  filter: brightness(1.05);
}
.header-account:hover {
  color: #c4920f;
}
.header-account-label {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account.nav-mobile-only {
  display: none;
  align-items: center;
  gap: 0.55rem;
}
@media (max-width: 980px) {
  .nav-account.nav-mobile-only {
    display: flex !important;
  }
  /* Header bar: circle only — saves space on phones */
  .header-actions .header-account-label {
    display: none;
  }
}
@media (min-width: 981px) and (max-width: 1200px) {
  /* Mid desktop: avatar + short space */
  .header-account-label {
    max-width: 5rem;
  }
}

/* Quick view fields — size is display-only from catalog */
.qv-field {
  margin-bottom: 0.75rem;
}
.qv-field label,
.qv-field__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.qv-field__value {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
}
.qv-field select,
.qv-field input[type="number"] {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.95rem;
  background: #fff;
}
.qv-hint { font-size: 0.85rem; margin: 0 0 0.75rem; }

/* Mobile header: avatar + cart tight on the right next to hamburger */
@media (max-width: 980px) {
  .header-actions {
    margin-left: auto;
    order: 3;
  }
  .menu-toggle {
    order: 4;
    margin-left: 0.15rem;
  }
  .logo {
    order: 1;
  }
  .header-search {
    order: 10;
  }
}

.payment-method-option__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.payment-info-btn {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid #94a3b8;
  background: #f8fafc;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.payment-info-btn:hover {
  border-color: #c4920f;
  color: #c4920f;
}

.cart-product-link {
  color: #0f172a;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 2px;
}
.cart-product-link:hover {
  color: #c4920f;
  text-decoration-color: #c4920f;
}
.alert-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a5f;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}


/* Login — remember me inline */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.auth-remember input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #c4920f;
}
.auth-remember label {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}

/* Contact form locked profile fields */
.contact-form input.is-readonly,
.contact-form input[readonly] {
  background: #f1f5f9;
  color: #475569;
  cursor: default;
  border-color: #e2e8f0;
}

/* Active filter chips — top of results, no scroll needed */
.catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.catalog-active-filters__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  flex-shrink: 0;
}
.catalog-active-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.3rem 0.5rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.2;
}
.filter-chip span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 14rem;
}
.filter-chip__x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.filter-chip:hover {
  border-color: #c4920f;
  color: #0f172a;
}
.filter-chip:hover .filter-chip__x {
  background: #c4920f;
  color: #fff;
}
.catalog-active-filters__clear {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4920f;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.catalog-active-filters__clear:hover {
  text-decoration: underline;
}
@media (max-width: 640px) {
  .catalog-active-filters {
    align-items: flex-start;
  }
  .filter-chip span:first-child {
    max-width: 10rem;
  }
}

/* Free shipping / promo bar */
.promo-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%);
  color: #f8fafc;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.promo-bar__inner {
  padding: 0.55rem 1.25rem;
  text-align: center;
}
.promo-bar__text {
  margin: 0;
  line-height: 1.4;
}
.promo-bar__text p {
  margin: 0;
}
.promo-bar__text strong {
  color: #fbbf24;
}
.promo-bar a {
  color: #fde68a;
  text-decoration: underline;
}

/* Subscribe & Save */
.subscribe-option {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}
.subscribe-option__label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
}
.subscribe-option__label input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  accent-color: #c4920f;
  flex-shrink: 0;
}
.subscribe-option__help {
  margin: 0.4rem 0 0 1.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}
.subscribe-option__help p { margin: 0; }
.subscribe-badge {
  color: #b45309;
  font-weight: 600;
}
.cart-free-shipping {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.subscribe-option__off {
  font-weight: 600;
  color: #b45309;
  font-size: 0.9rem;
}
.subscribe-option__login { margin: 0; font-size: 0.9rem; }
.subscribe-option__login a { color: #c4920f; font-weight: 600; }
.cart-estimate__discount {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/* Cart / order promo status panel */
.cart-promo-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}
.cart-promo-panel__note {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.4;
}
.cart-promo-panel__note strong { color: #0f172a; }
.cart-promo-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  margin-top: 0.4rem;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.cart-promo-row.is-yes {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.cart-promo-row.is-progress {
  background: #fffbeb;
  border-color: #fde68a;
}
.cart-promo-row.is-no {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.cart-promo-row__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}
.cart-promo-row.is-yes .cart-promo-row__icon { color: #047857; }
.cart-promo-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.35;
}
.cart-promo-row__body strong { color: #0f172a; font-weight: 600; }
.cart-promo-panel--compact { margin-bottom: 0.75rem; }
.cart-promo-panel--compact .cart-promo-panel__note { margin-bottom: 0.4rem; }


/* Order summary (promos + ref total) */
.order-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.25rem;
  max-width: 420px;
}
.order-summary-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
}
.order-summary-card__head strong { font-size: 0.95rem; color: #0f172a; }
.order-summary-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: #334155;
}
.order-summary-card__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.95rem;
}
.order-summary-card__total strong { font-size: 1.05rem; color: #0f172a; }
.text-ok { color: #047857; font-weight: 600; }
