/* Mobile-first styles for 480x800 header/nav */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  /* use Sansation as default, fall back to system fonts */
  font-family: 'Sansation', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f3f3f3;
  color: #111;
}

/* Smooth scrolling for the document */
html {
  scroll-behavior: smooth;
}

/* global logo & header sizes */
:root {
  --logo-size: 36px; /* change here if you want a different visual size */
  --header-height: 56px; /* height of the top header */
}

/* slide width and centering helpers */
:root {
  --slide-basis: 88%; /* visible slide width (adjust to taste) */
  --slide-gap: 12px;  /* gap between slides */
}

/* Product chip strip (horizontal, centered chips, swipe + snap) */
:root { --chip-width: 110px; --chip-gap: 12px; }

/* Product carousel cards (larger for product detail pages) */
:root { --card-size: 414px; --card-gap: 24px; }

/* Header wrapper */
.mobile-header {
  width: 100%;
  height: var(--header-height);
  background: #f5f5f5;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 60; /* keep header above overlay & side menu so it stays interactive */
}

/* Nav layout: logo | search | burger */
.mobile-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  max-width: 480px; /* target mobile width */
  margin: 0 auto;
  height: 56px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo img {
  display: block;
  height: var(--logo-size);
  width: auto;
}

/* Ensure video or fallback image scales cleanly inside the button and matches logo size */
.nav-burger video.nav-anim,
.nav-burger img {
  display: block;
  width: var(--logo-size);   /* visual size matches logo */
  height: var(--logo-size);
  object-fit: contain;
  pointer-events: none; /* clicks are handled by the button */
  border-radius: 6px;
}

/* Search (center) */
.nav-search {
  display: block;
  width: 100%;
  margin: 0;
}
.nav-search input[type="search"] {
  width: 100%;
  height: 36px;
  padding: 6px 12px;
  border-radius: 18px;
  border: 1px solid #0D427F;
  background: #f7f7f7;
  font-size: 15px;
  font-family: 'Sansation', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #111; /* fallback/default color */
  outline: none;
  -webkit-appearance: none;
}
.nav-search input[type="search"]::placeholder {
  color: #9b9b9b;
}

/* Change input text color when user is typing (on focus) or when it has content */
.nav-search input[type="search"]:focus,
.nav-search input[type="search"]:not(:placeholder-shown) {
  color: #0D427F;
}

/* Search focus */
.nav-search input[type="search"]:focus {
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.08);
  border-color: rgba(0,0,0,0.2);
}

/* Make burger/menu video fit and provide an accessible touch target (44x44) */
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 4px;
  min-width: 44px;   /* accessible touch target */
  min-height: 44px;  /* accessible touch target */
  width: 44px;
  height: 44px;
  cursor: pointer;
}

/* Overlay used when side menu is open — start below the header so header stays usable */
.menu-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 40;
}

/* Side menu panel that slides from the right — positioned below header */
.side-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  height: calc(100vh - var(--header-height));
  width: min(84%, 320px);
  background: #fff;
  box-shadow: -8px 0 24px rgba(15,15,15,0.12);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.2,.9,.2,1);
  z-index: 50;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}

/* visible/open state */
.side-menu.open {
  transform: translateX(0);
}

/* overlay visible state */
.menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* close button inside panel */
.side-menu-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 4px;
  align-self: flex-end;
  cursor: pointer;
}

/* menu list */
.side-menu-list {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

/* menu links */
.side-menu-link {
  display: block;
  padding: 12px 10px;
  color: #0D427F;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Sansation', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* link hover / focus */
.side-menu-link:hover,
.side-menu-link:focus {
  background: rgba(13,66,127,0.06);
  outline: none;
}

/* Products submenu visuals */
.side-menu-item.has-submenu { display: block; }

/* Make the toggle look like other links */
.side-menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  text-align: left;
  width: 100%;
  padding: 12px 10px;
  font-weight: 700;
  color: #0D427F;
  font-family: 'Sansation', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  border-radius: 8px;
  cursor: pointer;
}

/* Highlighted (open) Products state */
.side-menu-item.open > .side-menu-toggle,
.side-menu-toggle[aria-expanded="true"] {
  background: transparent !important;
  color: #0D427F !important;
}

/* When a sub-submenu (ZIPPERS) is open, keep Products highlighted */
.side-menu-item.sub-active > .side-menu-toggle {
  background: #BD1E2D !important;
  color: #ffffff !important;
}

/* Submenu: hidden by default, expand when parent has .open */
.side-submenu {
  margin: 6px 0 0 0;
  padding: 0 6px;
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 260ms ease, opacity 220ms ease;
  opacity: 0;
}

/* when open, allow the submenu to be visible */
.side-menu-item.open > .side-submenu {
  opacity: 1;
  /* large enough to contain items; adjust if you change item padding/size */
  max-height: 480px;
}

/* submenu links smaller visual */
.side-submenu .side-menu-link {
  padding: 10px 8px;
  font-weight: 600;
  color: #0D427F;
  border-radius: 6px;
  display: block;
}

/* focus/hover states for submenu items */
.side-submenu .side-menu-link:hover,
.side-submenu .side-menu-link:focus {
  background: rgba(13,66,127,0.06);
}

/* Sub-submenu (under ZIPPERS) */
.side-sub-submenu {
  margin: 6px 0 0 0;
  padding: 0 8px;
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 220ms ease, opacity 180ms ease;
  opacity: 0;
}

/* when ZIPPERS is active/open, reveal sub-submenu */
.side-submenu-item.has-sub-submenu.open > .side-sub-submenu,
.side-submenu-toggle[aria-expanded="true"] + .side-sub-submenu {
  opacity: 1;
  max-height: 320px;
}

/* Highlight selected ZIPPERS state */
.side-submenu-item.has-sub-submenu.open > .side-submenu-toggle,
.side-submenu-toggle[aria-expanded="true"] {
  background: #0D427F; /* selected background */
  color: #ffffff;      /* selected text color */
}

/* make sub-submenu links slightly indented and smaller */
.side-sub-submenu .side-menu-link {
  padding: 10px 10px;
  font-weight: 600;
  color: #0D427F;
  border-radius: 6px;
  display: block;
  margin-left: 6px;
  font-size: 14px;
}

/* when hovering/focusing sub-submenu items */
.side-sub-submenu .side-menu-link:hover,
.side-sub-submenu .side-menu-link:focus {
  background: rgba(13,66,127,0.06);
  outline: none;
}

/* Slide strip: responsive, centered slides, small gap, rounded viewport */
.slide-strip-viewport {
  width: 100%;
  max-width: 980px;
  /* create more white space below the header so slideshow sits lower */
  margin: 20px auto;
  box-sizing: border-box;
  border-radius: 20px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 0; /* ensure viewport has no inner padding */
}

/* show one centered slide at a time with gaps; inset padding centers first/last */
.slides {
  display: flex;
  gap: var(--slide-gap);
  /* inset so first/last slide are centered in viewport */
  padding-left: calc((100% - var(--slide-basis)) / 2);
  padding-right: calc((100% - var(--slide-basis)) / 2);
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
  scrollbar-width: none;
}
.slides::-webkit-scrollbar { display: none; }

/* each slide uses the basis so it visually sits centered */
.slide {
  flex: 0 0 var(--slide-basis);
  width: var(--slide-basis);
  /* height: calc(min(56vw, 320px)); */
  scroll-snap-align: center;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  background: #f3f3f3;
}

/* image fills slide */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* smaller screens: slightly larger basis so slide feels dominant */
@media (max-width: 480px) {
  :root { --slide-basis: 84%; --slide-gap: 10px; }
  .slide-strip-viewport { border-radius: 15px; }
  .slide { height: calc(min(62vw, 260px)); border-radius: 14px; }
}

/* Specific adjustments for the target 480x800 mobile viewport */
@media (max-width: 480px) and (max-height: 1260px) {
  .mobile-nav {
    max-width: 480px;
    padding: 8px 10px;
    gap: 8px;
    height: 56px;
  }

  /* Keep the touch target but slightly adjust spacing for narrow screens */
  .nav-burger {
    width: 44px;
    height: 44px;
    padding: 6px;
  }

  .nav-burger video.nav-anim,
  .nav-burger img {
    width: var(--logo-size);
    height: var(--logo-size);
  }

  /* small tweaks so logo/search stay balanced */
  .nav-logo img {
    height: var(--logo-size);
  }

  .nav-search input[type="search"] {
    height: 36px;
    padding: 6px 10px;
    font-size: 15px;
  }
}

/* Small adjustments for very narrow viewports */
@media (max-width: 360px) {
  .mobile-nav {
    gap: 6px;
    padding: 6px 10px;
    height: 52px;
  }
  .nav-search input[type="search"] {
    font-size: 14px;
    height: 32px;
    padding: 6px 10px;
  }
  .nav-logo img {
    height: 32px;
  }
  .nav-burger {
    height: 32px;
    width: 32px;
  }
}

/* Mobile (480x800) — keep content scrollable but hide native scrollbars */
@media (max-width: 480px) and (max-height: 800px) {
  html, body {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch; /* momentum scrolling on iOS */
  }

  /* Firefox */
  html, body {
    scrollbar-width: none;
  }

  /* IE/Edge */
  body {
    -ms-overflow-style: none;
  }

  /* WebKit (Chrome, Safari) */
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /* Also hide scrollbars for any scrollable containers if needed */
  .scrollable, .container {
    scrollbar-width: none;
  }
  .scrollable::-webkit-scrollbar,
  .container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

/* subtle centered divider below slideshow for a minimalist break */
.post-slideshow-divider {
  width: 64%;
  max-width: 420px;
  height: 1px;
  background: rgba(0,0,0,0.06);
  margin: 18px auto;
  border-radius: 1px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}

@media (max-width: 480px) {
  .post-slideshow-divider {
    width: 72%;
    margin: 14px auto;
  }
}

/* About section (matches slideshow corner radius) */
.about-section {
  max-width: 980px;
  margin: 18px auto 36px;
  /* inset to match slide center area so heading/text align with slides */
  padding-left: calc((100% - var(--slide-basis)) / 2);
  padding-right: calc((100% - var(--slide-basis)) / 2);
  box-sizing: border-box;
}

.about-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 8px auto 12px;
  color: #0D427F;
  font-family: inherit;
  max-width: var(--slide-basis); /* keep heading aligned with slide width */
  text-align: center;            /* center the heading above the card */
}

/* Use the same corner radius as the slideshow viewport */
.about-card {
  background: #fafafa;
  border-radius: 24px;            /* same as .slide-strip-viewport */
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  color: #222;
  line-height: 1.6;
  font-size: 14px;
}

/* smaller screens: keep parity with slideshow radius */
@media (max-width: 480px) {
  .about-card { border-radius: 18px; padding: 14px; }
  /* on small screens fall back to a comfortable inset */
  .about-section { padding: 0 12px; margin: 14px auto 26px;

  }
}

/* Today's News block — aligned with About / slides */
.news-section {
  max-width: 980px;
  margin: 12px auto 28px;
  padding-left: calc((100% - var(--slide-basis)) / 2);
  padding-right: calc((100% - var(--slide-basis)) / 2);
  box-sizing: border-box;
}

.news-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 8px auto 12px;
  color: #0D427F;
  font-family: inherit;
  max-width: var(--slide-basis);
  text-align: center;
}

/* single featured news card (image fills the card) */
.news-card {
  max-width: var(--slide-basis);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  background: #fff;
}

/* image fills the card proportionally */
.news-image {
  display: block;
  width: 100%;
  height: calc(min(56vw, 320px));
  object-fit: cover;
}

/* small screens parity */
@media (max-width: 480px) {
  .news-section { padding-left: 12px; padding-right: 12px; margin: 12px auto 24px; }
  .news-card { border-radius: 18px; }
  .news-image { height: calc(min(62vw, 260px)); }
}

/* Static banner used on about.html (replaces slideshow) */
.banner-section {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px; /* space below header — adjust if needed */
  margin-bottom: 18px;
  box-sizing: border-box;
}

.about-banner {
  width: 100%;
  max-width: 980px;
  height: calc(min(40vw, 260px)); /* responsive height */
  border-radius: 20px;            /* match slide radius */
  background-image: url("img/THUMBNAILS/ABOUT US.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* small screens */
@media (max-width: 480px) {
  .about-banner {
    border-radius: 15px;
    height: calc(min(52vw, 220px));
    margin: 0 12px;
  }
}

/* Product tools section (below slides, above content) */
.product-tools-section {
  max-width: 980px;
  margin: 12px auto;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

/* Product chip strip (horizontal, centered chips, swipe + snap) */
.product-chip-strip {
  display: flex;
  gap: var(--chip-gap);
  /* inset so first/last chip sit centered in the viewport */
  padding-left: calc((100% - var(--chip-width)) / 2);
  padding-right: calc((100% - var(--chip-width)) / 2);
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: center;
  scrollbar-width: none;
}
.product-chip-strip::-webkit-scrollbar { display: none; }

.product-chip {
  flex: 0 0 var(--chip-width);
  width: var(--chip-width);
  height: 31px;
  scroll-snap-align: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(13,66,127,0.12);
  color: #0D427F;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* visual for the selected chip (default: ZIPPERS) */
.product-chip.selected {
  background: #0D427F;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(13,66,127,0.18);
}

/* keep strong focus outline for accessibility */
.product-chip:focus {
  outline: 3px solid rgba(13,66,127,0.14);
}

.product-chip:active { transform: translateY(1px); }

@media (max-width: 480px) {
  :root { --chip-width: 110px; --chip-gap: 10px; }
  .product-tools-section { margin: 10px auto; }
}

/* Product carousel cards (updated: separate media + body) */
.product-card {
  flex: 0 0 var(--card-size);
  width: var(--card-size);
  height: var(--card-size);
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  padding: 18px;
  box-sizing: border-box;
  position: relative;
}

/* media block (centered at top of card) */
.product-card .card-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 2px;
}
.product-card .card-media img {
  width: 308px;
  height: 118px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

/* for specific rotation.. */

.product-card.is-zipper .card-media {
  margin-top: 60px;
  transform: rotate(90deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* card body sits at bottom-left inside card */
.product-card .card-body {
  margin-top: auto; /* push to bottom */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-left: 4px;
}
.product-card .card-title {
  font-size: 24px;
  font-weight: 600; /* Semi-bold */
  color: #0D427F;
  margin: 0;
}
.product-card .card-sub {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.2;
}

/* adjust centering inset so large cards sit centered on viewport */
.product-cards {
  display: flex;
  gap: var(--card-gap);
  /* larger inset so big cards appear centered on the page */
  padding-left: calc((100% - var(--card-size)) / 2 + 28px);
  padding-right: calc((100% - var(--card-size)) / 2 + 28px);
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  scrollbar-width: none;
}
.product-cards::-webkit-scrollbar { display: none; }

/* responsive fallback for small screens */
@media (max-width: 480px) {
  :root { --card-size: 320px; --card-gap: 16px; }
  .product-card .card-media img { width: 240px; height: 92px; }
  .product-card .card-title { font-size: 20px; }
  .product-card .card-sub { font-size: 13px; }
}


/* BELOW IS EXCLUDING PRODUCT.HTML */
/* ...existing code... */

/* Scoped styles for product detail pages only (do not affect product.html) */
.product-detail {
  --card-size: 414px;
  --card-gap: 24px;
  --chip-width: 72px;
  --chip-gap: 10px;
}

/* viewport & strip keep horizontal layout */
.product-detail .product-carousel-viewport { padding-left: 8px; padding-right: 8px; }
.product-detail .product-cards {
  display: flex;
  gap: var(--card-gap);
  padding-left: calc((100% - var(--card-size)) / 2 + 28px);
  padding-right: calc((100% - var(--card-size)) / 2 + 28px);
  margin: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  scrollbar-width: none;
}
.product-detail .product-cards::-webkit-scrollbar { display: none; }

/* card sizing for product detail pages */
.product-detail .product-card {
  flex: 0 0 var(--card-size);
  width: var(--card-size);
  height: 594px; /* requested */
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  padding: 18px;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
}

/* top-centered image sizes */
.product-detail .product-card .card-media {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.product-detail .product-card .card-media img {
  width: 308px;
  height: 118px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin-top: 6px;
}

/* title & sub at bottom-left inside card */
.product-detail .product-card .card-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-left: 8px;
  padding-bottom: 12px;
}
.product-detail .product-card .card-title {
  font-size: 24px;
  font-weight: 600; /* semi-bold */
  color: #0D427F;
  margin: 0;
}
.product-detail .product-card .card-sub {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin: 0;
  line-height: 1.2;
}

/* make chips narrower for detail pages and allow more buttons */
.product-detail .product-chip {
  flex: 0 0 auto;
  min-width: var(--chip-width);
  padding: 6px 10px;
  font-size: 15px;
}
.product-detail .product_chip_strip {
  gap: var(--chip-gap);
  padding-left: calc((100% - (var(--chip-width) * 3)) / 2);
  padding-right: calc((100% - (var(--chip-width) * 3)) / 2);
}

/* Sliders-type page styles — scoped to body.sliders-type so product.html is unaffected */
body.sliders-type .product-cards {
  display: grid;
  grid-template-columns: repeat(4, 180px); /* changed: 4 cols of 180 */
  grid-auto-rows: 180px;                    /* changed: card height 180 */
  gap: 14px;
  justify-content: center;
  padding: 18px;
  margin: 0 auto;
  overflow: visible;
  scroll-snap-type: none;
}

body.sliders-type .product-card {
  width: 180px;   /* changed: card width 180 */
  height: 180px;  /* changed: card height 180 */
  flex: none;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  position: relative;
  cursor: default;
}

body.sliders-type .product-card .card-media {
  display:flex;
  justify-content:center;
  align-items:flex-start;
  width:100%;
}
body.sliders-type .product-card .card-media img {
  width: 240px;   /* reduced to fit 180 card */
  height: 156px;   /* scale down */
  object-fit: contain;
  border-radius: 6px;
  display:block;
  margin-top: 2px;
}

body.sliders-type .product-card .card-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 4px;
  padding-bottom: 6px;
}
body.sliders-type .product-card .card-title {
  font-size: 14px; /* adjust to fit */
  font-weight: 600;
  margin: 0;
  color: #0D427F;
}
body.sliders-type .product-card .card-sub {
  font-size: 12px;
  margin: 0;
  color: #666;
  line-height: 1.1;
}

@media (max-width: 600px) {
  body.sliders-type .product-cards {
    grid-template-columns: repeat(1, min(92%, 180px));
    padding-left: 10px;
    padding-right: 10px;
  }
  body.sliders-type .product-card { margin: 0 auto; }
}

/* Header/nav + overlay + side-menu — apply only on the three pages listed */
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .mobile-header,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .mobile-nav,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-logo,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-search,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-burger,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .menu-overlay,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu.open,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu-close,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu-list,
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu-link {
  /* Scoped rules (copy of the existing header/menu rules) */
}

/* copy the actual declarations from the previous global header/menu rules into the scoped block */
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .mobile-header {
  width: 100%;
  height: var(--header-height);
  background: #f5f5f5;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 60;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .mobile-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  max-width: 480px;
  margin: 0 auto;
  height: 56px;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-logo img {
  display: block;
  height: var(--logo-size);
  width: auto;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-search { display:block; width:100%; }
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-search input[type="search"]{
  width:100%; height:36px; padding:6px 12px; border-radius:18px; border:1px solid #0D427F; background:#f7f7f7; font-size:15px; outline:none;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-burger {
  display:inline-flex; align-items:center; justify-content:center; background:transparent; border:none; padding:4px; min-width:44px; min-height:44px; width:44px; height:44px; cursor:pointer;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .nav-burger img {
  display:block; width:var(--logo-size); height:var(--logo-size); object-fit:contain; pointer-events:none; border-radius:6px;
}

/* overlay and side menu (scoped) */
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .menu-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 40;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .menu-overlay.visible { opacity:1; visibility:visible; }

:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  height: calc(100vh - var(--header-height));
  width: min(84%, 320px);
  background: #fff;
  box-shadow: -8px 0 24px rgba(15,15,15,0.12);
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(.2,.9,.2,1);
  z-index: 50;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
}
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu.open { transform: translateX(0); }
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu-close { background:transparent; border:none; font-size:28px; align-self:flex-end; cursor:pointer; }
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu-list { list-style:none; margin:6px 0 0 0; padding:0; display:flex; flex-direction:column; gap:12px; }
:is(body.sliders-type, body.magic-tape, body.logo-emblem) .side-menu-link { display:block; padding:12px 10px; color:#0D427F; font-weight:600; text-decoration:none; border-radius:8px; }

/* NAV: unified font across mobile and desktop nav elements */
.mobile-nav,
.mobile-nav .nav-logo,
.mobile-nav .nav-search,
.mobile-nav .nav-burger,
.mobile-nav .desktop-nav-list,
.mobile-nav .desktop-nav-list a,
.mobile-nav .desktop-nav-item .desktop-nav-link,
.mobile-nav .desktop-dropdown,
.mobile-nav .desktop-subdropdown,
.mobile-nav .desktop-subdropdown a {
  font-family: 'Sansation', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Desktop inline nav (activated by JS adding body.desktop-nav-active when >= 1920x1080) */
body.desktop-nav-active .nav-burger { display: none !important; }
body.desktop-nav-active .nav-search { display: block; max-width: 560px; margin: 0 12px; }

body.desktop-nav-active .mobile-nav {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

/* desktop nav list inserted to the right of search */
.desktop-nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* individual desktop nav items */
.desktop-nav-item { position: relative; }
.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #0D427F;
  font-weight: 700;
  background: transparent;
  cursor: pointer;
}

/* hover / focus */
.desktop-nav-link:hover,
.desktop-nav-link:focus { background: rgba(13,66,127,0.06); outline: none; }

/* product dropdown */
.desktop-dropdown {
  position: absolute;
  top: calc(100% + 2px); /* reduced gap so dropdown is closer to Products (desktop only) */
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 8px;
  display: none;
  z-index: 90;        /* ensure above other UI */
  overflow: visible;  /* allow right-hand submenu to extend outside this box */
}

/* reveal with .open */
.desktop-nav-item.open > .desktop-dropdown { display: block; }

/* dropdown links */
.desktop-dropdown a {
  display: block;
  padding: 8px 10px;
  color: #0D427F;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
}
.desktop-dropdown a:hover,
.desktop-dropdown a:focus { background: rgba(13,66,127,0.06); outline: none; }

/* right-hand submenu for ZIPPERS (desktop only)
   NOTE: subitems are NOT positioned themselves so the absolute submenu (.desktop-subdropdown)
   will be positioned relative to .desktop-dropdown, appearing to the RIGHT of the entire box. */
body.desktop-nav-active .desktop-nav-subitem {
  position: static; /* allow submenu absolute child to position against .desktop-dropdown */
  display: inline-flex;
  align-items: center;
}
body.desktop-nav-active .desktop-subdropdown {
  position: absolute;
  top: 0;
  left: calc(100% + 8px); /* appears to the right of the main dropdown box */
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  padding: 6px;
  display: none;
  z-index: 95;
  white-space: nowrap;
}
/* show on hover / focus-within / .open */
body.desktop-nav-active .desktop-nav-subitem.open > .desktop-subdropdown,
body.desktop-nav-active .desktop-nav-subitem:hover > .desktop-subdropdown,
body.desktop-nav-active .desktop-nav-subitem:focus-within > .desktop-subdropdown {
  display: block;
}
body.desktop-nav-active .desktop-subdropdown a {
  display: block;
  padding: 8px 10px;
  color: #0D427F;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}
body.desktop-nav-active .desktop-subdropdown a:hover,
body.desktop-nav-active .desktop-subdropdown a:focus {
  background: rgba(13,66,127,0.06);
  outline: none;
}

/* ensure the main dropdown remains visible while interacting */
body.desktop-nav-active .desktop-dropdown {
  z-index: 85;
}

/* only active on desktop gating (desktop-nav-active already manages visibility) */
@media (max-width: 1200px) {
  body.desktop-nav-active .nav-burger { display: inline-flex !important; } /* safety fallback */
}

/* Desktop: make header full-width, logo flush left, desktop nav next, search bar aligned right */
@media (min-width: 1280px) {
  body.desktop-nav-active .mobile-nav {
    max-width: none;
    width: 100%;
    margin: 0;               /* full width, no centering */
    padding: 8px 28px;       /* horizontal gutter */
    grid-template-columns: auto 1fr auto; /* logo | desktop-nav (fills) | search (far right) */
    align-items: center;
    gap: 12px;
  }

  /* ensure logo sits at the absolute left inside the nav */
  body.desktop-nav-active .nav-logo {
    justify-self: start;
    margin-right: 8px;
  }

  /* desktop nav sits immediately to the right of the logo */
  body.desktop-nav-active .desktop-nav-list {
    margin-left: 4px;
  }

  /* push the search area to the far right */
  body.desktop-nav-active .nav-search {
    justify-self: end;
    max-width: 560px;
    margin-left: 12px;
  }

  /* Desktop-only: keep product images contained inside their cards and avoid overlapping the title */
  body.desktop-nav-active .product-card {
    /* ensure predictable card sizing in desktop grid */
    display: flex;
    flex-direction: column;
    min-height: 320px; /* ensures there's room for media + body; tweak if you want larger cards */
    box-sizing: border-box;
  }

  body.desktop-nav-active .product-card .card-media {
    /* reserve vertical area for the visual and prevent it from pushing into the body */
    max-height: 50%;        /* at most this percentage of the card height */
    min-height: 120px;      /* ensure small images still have space */
    overflow: hidden;       /* crop any excess but keep image contained */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
  }

  body.desktop-nav-active .product-card .card-media img {
    /* keep image fully visible and never overflow into body */
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* ensure the card body (title/sub) stays visible and above the image area */
  body.desktop-nav-active .product-card .card-body {
    z-index: 2;
    margin-top: auto; /* always pinned to bottom of the card */
    background: transparent;
  }

  /* product-detail pages may use larger cards — provide a reasonable cap for their images too */
  body.desktop-nav-active.product-detail .product-card .card-media {
    max-height: 46%;
    min-height: 140px;
  }

  /* Desktop only: nudge zipper product images higher inside their cards so they sit near top-center
     without overlapping the title. Applies to coil / metal / delrin / waterproof pages. */
  body.coil-page .product-card .card-media,
  body.metal-page .product-card .card-media,
  body.delrin-page .product-card .card-media,
  body.waterproof-page .product-card .card-media {
    align-items: flex-start;       /* move image toward top of the media area */
    justify-content: center;
    padding-top: 8px;              /* small top inset so image sits higher */
    padding-bottom: 6px;           /* keep some space under media */
    min-height: 110px;             /* ensure media reserves vertical space */
    overflow: hidden;
  }

  body.coil-page .product-card .card-media img,
  body.metal-page .product-card .card-media img,
  body.delrin-page .product-card .card-media img,
  body.waterproof-page .product-card .card-media img {
    object-fit: contain;
    object-position: top center;   /* top-centered inside the media area */
    max-width: 100%;
    max-height: 100%;
    display: block;
  }

  /* Neutralize any large per-card margin-top used for rotated zipper images so they don't push too far down */
  body.coil-page .product-card.is-zipper .card-media,
  body.metal-page .product-card.is-zipper .card-media,
  body.delrin-page .product-card.is-zipper .card-media,
  body.waterproof-page .product-card.is-zipper .card-media {
    margin-top: 8px !important;
  }
}

/* Improve hit-area so right-hand ZIPPERS submenu doesn't disappear when moving mouse from dropdown -> submenu
   Desktop-only: gated by body.desktop-nav-active and existing submenu rules. */
body.desktop-nav-active .desktop-dropdown {
  /* allow an invisible bridge area to the right so pointer never leaves the dropdown briefly */
  position: absolute;
  overflow: visible; /* keep the bridge visible to pointer events */
}

/* invisible bridge on the edge of the main dropdown that connects to the submenu */
body.desktop-nav-active .desktop-dropdown::after {
  content: '';
  position: absolute;
  top: 0;
  right: -28px;     /* extend further into the gap */
  width: 28px;      /* wider bridge so movement is forgiving */
  height: 100%;
  background: transparent;
  pointer-events: auto; /* keeps hover active while crossing */
  z-index: 86;
}

/* anchor submenu closer and make it larger so it is easier to hit */
body.desktop-nav-active .desktop-subdropdown {
  left: calc(100% - 6px); /* reduce gap */
  min-width: 220px;       /* bigger hit box */
  padding: 10px;
}

/* keep submenu visible while hovering anywhere over the main dropdown (this prevents flicker
   when crossing the invisible bridge). The submenu still opens on hover/focus of ZIPPERS as before. */
body.desktop-nav-active .desktop-dropdown:hover .desktop-subdropdown {
  display: block;
}

/* subtle safety: ensure stacking order keeps bridge and submenu usable */
body.desktop-nav-active .desktop-dropdown { z-index: 85; }
body.desktop-nav-active .desktop-subdropdown { z-index: 95; }

/* DESKTOP ONLY: make all product carousels a 4-column vertical grid */
@media (min-width: 1280px) {
  body.desktop-nav-active .product-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    grid-auto-rows: auto;
    gap: var(--card-gap, 24px);
    padding-left: 28px;
    padding-right: 28px;
    margin: 0;
    overflow: visible;        /* no horizontal scroll */
    scroll-snap-type: none;   /* disable snap on desktop grid */
    justify-items: stretch;
    align-items: start;
  }

  /* ensure cards size correctly in grid */
  body.desktop-nav-active .product-card {
    flex: none;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scroll-snap-align: none;
  }

  /* media block: let images scale inside grid cards */
  body.desktop-nav-active .product-card .card-media {
    justify-content: center;
    align-items: center;
    margin-top: 8px;
  }
  body.desktop-nav-active .product-card .card-media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
  }

  /* keep product-detail large-card adjustments but flow into grid */
  body.desktop-nav-active.product-detail .product-card {
    height: auto;
    padding-bottom: 12px;
  }
  /* increase vertical gap between image and title in product cards (desktop only) */
  body.desktop-nav-active .product-card .card-body {
    padding-top: 18px; /* creates visible space between media and title without affecting bottom alignment */
  }

  /* slightly larger gap for zipper product pages */
  body.desktop-nav-active.coil-page .product-card .card-body,
  body.desktop-nav-active.metal-page .product-card .card-body,
  body.desktop-nav-active.delrin-page .product-card .card-body,
  body.desktop-nav-active.waterproof-page .product-card .card-body {
    padding-top: 24px;
  }
}

/* fix typo: ensure desktop image rule targets .product-card (not .product_card) */
@media (min-width: 1280px) {
  body.desktop-nav-active .product_card .card-media img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
  }
}

/* Desktop-only: remove the visible "outliner" for the product dropdown and match Products font-size */
@media (min-width: 1280px) {
  /* remove box/outline around the dropdown so it appears seamless on desktop */
  body.desktop-nav-active .desktop-nav-item > .desktop-dropdown {
    box-shadow: none; /* remove heavy shadow / visual outline */
    border: 0;        /* remove any border if present */
    background: #fff; /* keep background so contrast remains */
  }

  /* ensure Products text matches other desktop nav items */
  body.desktop-nav-active .desktop-nav-link {
    font-size: 15px;      /* same scale as other nav items/inputs */
    line-height: 1;       /* keep text vertically aligned */
  }

  /* keep focus keyboard-accessible but remove the default outline/box-shadow for desktop nav links */
  body.desktop-nav-active .desktop-nav-link:focus {
    outline: none;
    box-shadow: none;
    /* if you need a visible focus style for accessibility, replace the two lines above
       with something like: box-shadow: 0 0 0 3px rgba(13,66,127,0.12); */
  }

  /* remove the visual box/outline around the desktop "Products" control */
  body.desktop-nav-active .desktop-nav-item > .desktop-nav-link {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* remove hover/focus filled rectangle but keep keyboard focus and JS hover open */
  body.desktop-nav-active .desktop-nav-item > .desktop-nav-link:hover,
  body.desktop-nav-active .desktop-nav-item > .desktop-nav-link:focus {
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }
}

/* Desktop-only: highlight top-level desktop nav items (Products, Catalog, Clients, About Us)
   Hover / focus / open states change background color. Use !important to override earlier
   rules that made the Products control transparent on desktop. */
@media (min-width: 1280px) {
  body.desktop-nav-active .desktop-nav-item > .desktop-nav-link:hover,
  body.desktop-nav-active .desktop-nav-item > .desktop-nav-link:focus,
  body.desktop-nav-active .desktop-nav-item.open > .desktop-nav-link {
    background: rgba(13,66,127,0.08) !important;
    color: #0D427F !important;
  }

  /* Slightly stronger background when the item is open (persisted state) */
  body.desktop-nav-active .desktop-nav-item.open > .desktop-nav-link {
    background: rgba(13,66,127,0.12) !important;
  }
}

/* show on explicit .open or keyboard focus-within only (desktop only) */
body.desktop-nav-active .desktop-nav-subitem.open > .desktop-subdropdown,
body.desktop-nav-active .desktop-nav-subitem:focus-within > .desktop-subdropdown {
  display: block;
}

/* removed the broad :hover rule that showed all subdropdowns when hovering the main dropdown.
   We rely on JS to add/remove .open on the active subitem so only one submenu is visible at a time.
   Keep the invisible bridge so pointer movement between dropdown -> submenu remains forgiving. */

/* Desktop: position each right-submenu relative to its trigger so it aligns with the trigger text */
@media (min-width: 1280px) {
  body.desktop-nav-active .desktop-nav-subitem {
    position: relative; /* position submenu against this item, not the whole dropdown */
    display: inline-flex;
    align-items: center;
  }

  body.desktop-nav-active .desktop-subdropdown {
    position: absolute;
    top: 0;                     /* align top of submenu with the trigger text */
    left: calc(100% + 8px);     /* place immediately to the right of the trigger */
    transform: none;
    min-width: 180px;
    padding: 8px;
    display: none;              /* visibility controlled by .open / :focus-within (JS already manages .open) */
    z-index: 995;
    white-space: nowrap;
  }

  /* Ensure the broad rule that showed all submenus on .desktop-dropdown:hover does not force display */
  body.desktop-nav-active .desktop-dropdown:hover .desktop-subdropdown {
    display: none !important;
  }

  /* Keep the intended show conditions (explicit .open or focus-within) */
  body.desktop-nav-active .desktop-nav-subitem.open > .desktop-subdropdown,
  body.desktop-nav-active .desktop-nav-subitem:focus-within > .desktop-subdropdown {
    display: block;
    z-index: 995;
  }
}

/* Desktop only: align the OTHERS right-hand submenu to its trigger so it doesn't overlap ZIPPERS */
@media (min-width: 1280px) {
  body.desktop-nav-active .desktop-nav-subitem--align-trigger {
    position: relative; /* position submenu against this specific item */
  }
  body.desktop-nav-active .desktop-nav-subitem--align-trigger > .desktop-subdropdown {
    left: 100% !important; /* directly to the right of the trigger */
    top: 0 !important;     /* align top with trigger text */
    transform: none !important;
    min-width: 180px;
    z-index: 995;
  }
}

/* Precise desktop submenu trigger:
   - Show submenu only when the trigger link is hovered or focused,
     or when JS adds .open / focus-within.
   - Reduce the invisible bridge's pointer area so it doesn't falsely trigger.
*/
@media (min-width: 1280px) {
  /* keep subitem positioned relative for per-item alignment */
  body.desktop-nav-active .desktop-nav-subitem {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0; /* ensure only the inline link area is interactive */
  }

  /* submenu box */
  body.desktop-nav-active .desktop-subdropdown {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    min-width: 180px;
    padding: 8px;
    display: none;
    z-index: 995;
    white-space: nowrap;
  }

  /* show only when the actual link is hovered/focused, or when .open / focus-within is present */
  body.desktop-nav-active .desktop-nav-subitem.open > .desktop-subdropdown,
  body.desktop-nav-active .desktop-nav-subitem:focus-within > .desktop-subdropdown,
  body.desktop-nav-active .desktop-nav-subitem > .desktop-nav-link:hover + .desktop-subdropdown,
  body.desktop-nav-active .desktop-nav-subitem > .desktop-nav-link:focus + .desktop-subdropdown {
    display: block !important;
  }

  /* shrink/remove the broad pointer bridge so hover is precise */
  body.desktop-nav-active .desktop-dropdown::after {
    /* keep a very small invisible bridge to allow reaching the submenu, but avoid
       triggering the submenu while hovering the main dropdown surface */
    right: -8px;
    width: 8px;
    pointer-events: none; /* do not extend hover activation area */
  }
}