/* ==========================================================================
   Global Dharan Pvt. Ltd. — Website Stylesheet
   --------------------------------------------------------------------------
   DESIGN CONCEPT: "Engineering Spec Sheet"
   This site borrows its visual language from the world the client actually
   sells into: pipe fittings, valves, and meters that live on engineering
   drawings and spec sheets. Blueprint grids, dimension callout lines, and
   mono-font spec codes are used throughout instead of generic stock-photo
   "hardware store" styling.

   FILE MAP:
   1. CSS Custom Properties (design tokens)
   2. Reset & base styles
   3. Typography
   4. Layout utilities
   5. Header / Navigation
   6. Hero section
   7. Stats bar
   8. Category index
   9. Product catalog (filter tabs + search + cards)
   10. About section
   11. Contact / Footer
   12. Image lightbox (click-to-enlarge product photos)
   13. Responsive breakpoints
   14. Accessibility (focus states, reduced motion)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --color-ink-deep: #0e2338;       /* Darkest navy — footer, deep backgrounds */
  --color-blueprint: #16324f;      /* Primary navy — header, headings on light bg */
  --color-blueprint-line: #6fa8c4; /* Pale cyan — blueprint grid lines, dividers */
  --color-paper: #eef0ef;          /* Cool off-white — main page background */
  --color-paper-raised: #ffffff;   /* Pure white — cards sitting on the paper */
  --color-orange: #e8622c;         /* Safety orange — primary CTA / accent */
  --color-orange-dark: #c4501f;    /* Hover state for orange elements */
  --color-brass: #b98b4e;          /* Brass/copper — secondary accent, ties to real fittings */
  --color-text: #1a2530;           /* Body text */
  --color-text-muted: #5a6a75;     /* Secondary/caption text */
  --color-border: #d4d9d6;         /* Hairline borders on paper background */

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-width: 1240px;
  --radius-sm: 4px;
  --header-height: 100px;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-paper);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

section {
  padding: var(--space-2xl) 0;
}

/* Prevents the page behind the lightbox from scrolling while it's open. */
body.lightbox-locked {
  overflow: hidden;
}


/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-blueprint);
  line-height: 1.1;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-orange);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-orange);
}

.section-intro {
  max-width: 620px;
  margin-bottom: var(--space-lg);
}

.section-intro p {
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
  font-size: 1.05rem;
}


/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
  background: var(--color-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(232, 98, 44, 0.35);
}

.btn-outline {
  border: 1.5px solid var(--color-blueprint-line);
  color: var(--color-blueprint);
}

.btn-outline:hover {
  background: var(--color-blueprint);
  color: #fff;
  transform: translateY(-2px);
}


/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(238, 240, 239, 0.98);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--color-blueprint);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.logo img {
  flex-shrink: 0;
}

.logo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo span {
  color: var(--color-orange);
}

.logo .logo-suffix {
  color: var(--color-text-muted);
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.04em;
  align-self: center;
}

.main-nav ul {
  display: flex;
  gap: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.icon-link img {
  height: 34px;
  width: 34px;
  transition: transform 0.15s ease;
}

.icon-link:hover img {
  transform: scale(1.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-blueprint);
}


/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-blueprint);
  color: #fff;
  padding: var(--space-2xl) 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(111, 168, 196, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 168, 196, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blueprint-line);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-orange);
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.15rem;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero .btn-outline:hover {
  background: #fff;
  color: var(--color-blueprint);
}

.hero-diagram {
  position: relative;
}

.hero-diagram svg {
  width: 100%;
  height: auto;
}

.blueprint-line {
  stroke: var(--color-blueprint-line);
  stroke-width: 1.5;
  fill: none;
}

.blueprint-dim-line {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1;
  stroke-dasharray: 4 3;
}

.blueprint-fill {
  fill: rgba(111, 168, 196, 0.08);
  stroke: var(--color-blueprint-line);
  stroke-width: 1.5;
}

.blueprint-accent {
  stroke: var(--color-orange);
  stroke-width: 2;
  fill: none;
}

.blueprint-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: rgba(255, 255, 255, 0.65);
}


/* --------------------------------------------------------------------------
   7. STATS BAR
   -------------------------------------------------------------------------- */
.stats-bar {
  background: var(--color-ink-deep);
  padding: var(--space-md) 0;
}

.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 480px;
  text-align: center;
}

.stat {
  border-left: 1px solid rgba(111, 168, 196, 0.25);
}

.stat:first-child {
  border-left: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-orange);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}


/* --------------------------------------------------------------------------
   8. CATEGORY INDEX
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
}

.category-card {
  background: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.category-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-3px);
}

.category-index-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-brass);
}

.category-card h3 {
  color: var(--color-blueprint);
}

.category-card .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}


/* --------------------------------------------------------------------------
   9. PRODUCT CATALOG — filter tabs, search, and spec-sheet product cards
   -------------------------------------------------------------------------- */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-paper-raised);
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

.filter-tab.active {
  background: var(--color-blueprint);
  border-color: var(--color-blueprint);
  color: #fff;
}

.search-box {
  position: relative;
}

.search-box input {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-paper-raised);
  width: 240px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-orange);
}

.search-box::before {
  content: '⌕';
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--color-paper-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 12px 28px rgba(14, 35, 56, 0.12);
  transform: translateY(-4px);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--color-blueprint-line) 0,
    var(--color-blueprint-line) 1px,
    transparent 1px,
    transparent 10px
  );
  opacity: 0.5;
}

.product-image-wrap {
  aspect-ratio: 4 / 3;
  background: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
  transition: transform 0.3s ease;
  cursor: zoom-in; /* signals the photo is clickable to enlarge */
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.product-id-tag {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--color-ink-deep);
  color: var(--color-blueprint-line);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

/* Small "View larger" hint that fades in over the photo on hover, so the
   click-to-enlarge behavior is discoverable rather than hidden. Ignores
   clicks itself (pointer-events: none) so the click always lands on the
   image underneath it. */
.product-zoom-hint {
  position: absolute;
  left: var(--space-xs);
  bottom: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  background: rgba(14, 35, 56, 0.75);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.product-card:hover .product-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  padding: var(--space-sm);
  border-top: 1px dashed var(--color-border);
}

.product-category-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-brass);
  margin-bottom: 0.25rem;
}

.product-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}


/* --------------------------------------------------------------------------
   10. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about {
  background: var(--color-paper-raised);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about-points {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.about-point {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
}

.about-point-marker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* --------------------------------------------------------------------------
   11. CONTACT / FOOTER
   -------------------------------------------------------------------------- */
.contact {
  background: var(--color-blueprint);
  color: #fff;
}

.contact .eyebrow { color: var(--color-blueprint-line); }
.contact h2 { color: #fff; }

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-details {
  display: grid;
  gap: var(--space-md);
}

.contact-item {
  display: flex;
  gap: var(--space-sm);
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blueprint-line);
  min-width: 90px;
}

.contact-quick-links {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(111, 168, 196, 0.3);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: background 0.15s ease;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.quick-link img {
  height: 20px;
  width: 20px;
}

.contact-form {
  display: grid;
  gap: var(--space-sm);
}

.contact-form label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-blueprint-line);
  margin-bottom: 0.35rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(111, 168, 196, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-orange);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-blueprint-line);
  min-height: 1.2em;
}

.contact-map {
  margin-top: var(--space-lg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(111, 168, 196, 0.3);
}

.contact-map iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

.site-footer {
  background: var(--color-ink-deep);
  color: rgba(255, 255, 255, 0.55);
  padding: var(--space-md) 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}


/* --------------------------------------------------------------------------
   12. IMAGE LIGHTBOX
   --------------------------------------------------------------------------
   Full-screen overlay for viewing a product photo larger. Hidden by
   default; script.js toggles the "lightbox-open" class when a product
   image is clicked (see openLightbox()/closeLightbox() in script.js).
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(14, 35, 56, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox.lightbox-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fff;
  /* Slight pop-in so the swap doesn't feel abrupt when a new image loads. */
  animation: lightbox-pop 0.2s ease;
}

@keyframes lightbox-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.lightbox-content figcaption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}


/* --------------------------------------------------------------------------
   13. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-diagram {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }

  .about .container,
  .contact .container {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .logo {
    font-size: 1.3rem;
    gap: 0.5rem;
  }

  .logo img {
    height: 44px;
    width: 44px;
  }

  .logo .logo-suffix {
    font-size: 0.55em;
  }

  .header-actions .icon-link {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(78vw, 300px);
    background-color: #ffffff;
    opacity: 1;
    border-left: 1px solid var(--color-border);
    box-shadow: -8px 0 24px rgba(14, 35, 56, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    padding-top: var(--header-height);
    z-index: 90;
  }

  .main-nav.nav-open {
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(14, 35, 56, 0.4);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .nav-backdrop.backdrop-open {
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--space-sm) var(--space-lg);
  }

  .main-nav li {
    padding: var(--space-md) 0;
    border-bottom: 1px dashed var(--color-border);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    width: 100%;
  }

  .lightbox-close {
    top: var(--space-sm);
    right: var(--space-sm);
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-xl) 0;
  }

  h1 {
    font-size: 2.4rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-sm);
  }

  /* Zoom hint text is too cramped on very small cards — hide it there,
     the photo is still tappable/clickable either way. */
  .product-zoom-hint {
    display: none;
  }
}


/* --------------------------------------------------------------------------
   14. ACCESSIBILITY
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
