/* ══════════════════════════════════════════════════════════
   SHIVYA FORGE — products.css
   Theme: #ff6600 (orange), grey, white  |  Font: Nunito
   Includes: base, topbar, header (FIXED), page hero,
             product sections, CTA strip, footer, responsive

   CROSS-BROWSER FIXES APPLIED:
   - Safari: -webkit-sticky, -webkit-backdrop-filter,
             aspect-ratio fallback via padding-bottom hack,
             -webkit-overflow-scrolling, grid-gap fallback
   - All: clamp() fallback values, scroll-behavior prefix,
          object-fit explicit height, backdrop-filter prefix
══════════════════════════════════════════════════════════ */

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --orange:        #ff6600;
  --orange-dark:   #e05500;
  --orange-light:  #ff8533;
  --orange-bg:     #fff4ee;
  --grey-dark:     #1a1a2e;
  --grey-mid:      #4a4a6a;
  --grey-light:    #f4f4f6;
  --grey-border:   #e0e0e8;
  --white:         #ffffff;
  --text-primary:  #1a1a2e;
  --text-body:     #4a4a6a;
  --topbar-h:      38px;
  --header-h:      80px;
  --radius:        14px;
  --shadow-sm:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:     0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.18);
  --transition:    0.3s cubic-bezier(.4,0,.2,1);

  /* Footer tokens */
  --sf-bg:          #0d0d0d;
  --sf-body:        #161616;
  --sf-border:      rgba(255,255,255,.08);
  --sf-orange:      #ff6600;
  --sf-orange-dim:  rgba(255,102,0,.15);
  --sf-white:       #ffffff;
  --sf-muted:       rgba(255,255,255,.50);
  --sf-link:        rgba(255,255,255,.72);
  --sf-link-hover:  #ff6600;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* FIX: -webkit- prefix for scroll-behavior (Safari <14) */
html {
  -webkit-scroll-behavior: smooth;
          scroll-behavior: smooth;
  /* FIX: prevent horizontal overflow on all browsers */
  overflow-x: hidden;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--white);
  overflow-x: hidden;
  /* FIX: prevent text size adjust on mobile Safari */
  -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  /* FIX: prevent broken img icons from taking up space on all browsers */
  min-height: 0;
}
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Utility ──────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-bg);
  border: 1.5px solid rgba(255,102,0,.35);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: -webkit-inline-flex;
  display:         inline-flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 13px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  -webkit-transition: background var(--transition), -webkit-transform var(--transition), -webkit-box-shadow var(--transition);
          transition: background var(--transition),         transform var(--transition),         box-shadow var(--transition);
  -webkit-box-shadow: 0 4px 20px rgba(255,102,0,.35);
          box-shadow: 0 4px 20px rgba(255,102,0,.35);
  white-space: nowrap;
  /* FIX: remove tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover {
  background: var(--orange-dark);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 8px 28px rgba(255,102,0,.45);
          box-shadow: 0 8px 28px rgba(255,102,0,.45);
}

.btn-outline {
  display: -webkit-inline-flex;
  display:         inline-flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.55);
  cursor: pointer;
  -webkit-transition: background var(--transition), border-color var(--transition), -webkit-transform var(--transition);
          transition: background var(--transition), border-color var(--transition),         transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

.btn-cta {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 22px;
  border-radius: 50px;
  white-space: nowrap;
  -webkit-transition: background var(--transition), -webkit-box-shadow var(--transition), -webkit-transform var(--transition);
          transition: background var(--transition),         box-shadow var(--transition),         transform var(--transition);
  -webkit-box-shadow: 0 3px 14px rgba(255,102,0,.3);
          box-shadow: 0 3px 14px rgba(255,102,0,.3);
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.btn-cta:hover {
  background: var(--orange-dark);
  -webkit-box-shadow: 0 6px 20px rgba(255,102,0,.4);
          box-shadow: 0 6px 20px rgba(255,102,0,.4);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════════════════════ */
.top-bar {
  background: var(--grey-dark);
  height: var(--topbar-h);
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  position: relative;
  z-index: 110;
}
.top-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: -webkit-linear-gradient(left, transparent, var(--orange), transparent);
  background:         linear-gradient(90deg, transparent, var(--orange), transparent);
}

.top-bar__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 28px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}

.top-bar__item {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: rgba(255,255,255,.72);
  font-weight: 500;
}
.top-bar__item svg { color: var(--orange); -webkit-flex-shrink: 0; flex-shrink: 0; }
.top-bar__item a {
  color: var(--orange);
  font-weight: 700;
  -webkit-transition: color var(--transition);
          transition: color var(--transition);
}
.top-bar__item a:hover { color: var(--orange-light); }

/* ══════════════════════════════════════════════════════════
   HEADER — STICKY
   FIX: Added -webkit-sticky for Safari support
══════════════════════════════════════════════════════════ */
.header {
  position: -webkit-sticky; /* FIX: Safari requires -webkit-sticky */
  position:         sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  height: var(--header-h);
  -webkit-box-shadow: 0 2px 20px rgba(0,0,0,.10);
          box-shadow: 0 2px 20px rgba(0,0,0,.10);
  -webkit-transition: height var(--transition), -webkit-box-shadow var(--transition);
          transition: height var(--transition),         box-shadow var(--transition);
}
.header.scrolled {
  height: 64px;
  -webkit-box-shadow: 0 4px 28px rgba(0,0,0,.15);
          box-shadow: 0 4px 28px rgba(0,0,0,.15);
}

.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: space-between;
          justify-content: space-between;
  gap: 16px;
}

/* ── Logo ─────────────────────────────────────────────── */
.header__logo {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 52px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-transition: height var(--transition);
          transition: height var(--transition);
}
.header.scrolled .logo-img { height: 42px; }

.logo-fallback {
  display: -webkit-flex;
  display:         flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  line-height: 1;
}
.logo-fallback__main {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: .04em;
}
.logo-fallback__sub {
  font-size: .65rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* ── Nav ──────────────────────────────────────────────── */
.nav {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 8px;
}

.nav__list {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  /* FIX: margin: 0 instead of gap for wider browser support at list level */
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 8px 12px;
  font-size: .855rem;
  font-weight: 700;
  color: var(--text-body);
  position: relative;
  -webkit-transition: color var(--transition);
          transition: color var(--transition);
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2.5px;
  background: var(--orange);
  border-radius: 2px;
  -webkit-transition: left var(--transition), right var(--transition);
          transition: left var(--transition), right var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--orange); }
.nav__link:hover::after,
.nav__link.active::after { left: 12px; right: 12px; }

/* ── Hamburger ────────────────────────────────────────── */
.hamburger {
  display: none;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
  -webkit-tap-highlight-color: transparent;
  /* FIX: prevent button outline on mobile Safari */
  outline: none;
  -webkit-appearance: none;
          appearance: none;
}
.hamburger:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  -webkit-transition: -webkit-transform var(--transition), opacity var(--transition);
          transition:         transform var(--transition), opacity var(--transition);
  -webkit-transform-origin: center;
          transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  -webkit-transform: translateY(7.5px) rotate(45deg);
          transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  -webkit-transform: translateY(-7.5px) rotate(-45deg);
          transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile overlay ───────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  /* FIX: fallback for browsers without inset support */
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,.55);
  z-index: 98;
  /* FIX: -webkit- prefix for backdrop-filter (Safari) */
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  opacity: 0;
  -webkit-transition: opacity var(--transition);
          transition: opacity var(--transition);
}
.nav-overlay.show {
  display: block;
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   PAGE HERO BANNER
══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: var(--grey-dark);
  padding: 80px 24px 70px;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  /* FIX: fallback for browsers without inset */
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background:
    -webkit-radial-gradient(70% 120% ellipse at 80% 60%, rgba(255,102,0,.18) 0%, transparent 65%),
    -webkit-radial-gradient(50% 80% ellipse at 20% 30%, rgba(255,102,0,.08) 0%, transparent 60%);
  background:
    radial-gradient(ellipse 70% 120% at 80% 60%, rgba(255,102,0,.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 20% 30%, rgba(255,102,0,.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__bg::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 28px,
    rgba(255,255,255,.022) 28px,
    rgba(255,255,255,.022) 29px
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero__breadcrumb {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: 18px;
}
.page-hero__breadcrumb a {
  color: var(--orange);
  -webkit-transition: color var(--transition);
          transition: color var(--transition);
}
.page-hero__breadcrumb a:hover { color: var(--orange-light); }
.page-hero__breadcrumb span { margin: 0 8px; opacity: .4; }

.page-hero__title {
  /* FIX: clamp() fallback for browsers that don't support it */
  font-size: 2.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.01em;
}
.page-hero__title em {
  font-style: normal;
  color: var(--orange);
}

.page-hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

.page-hero__bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: -webkit-linear-gradient(left, transparent, var(--orange), transparent);
  background:         linear-gradient(90deg, transparent, var(--orange), transparent);
}

/* ══════════════════════════════════════════════════════════
   PRODUCT SECTIONS
══════════════════════════════════════════════════════════ */
.products-main {
  width: 100%;
}

.product-section {
  padding: 80px 0;
  position: relative;
}

.product-section:nth-child(odd) {
  background: var(--white);
}
.product-section.product-section--alt {
  background: var(--grey-light);
}

.product-section + .product-section {
  border-top: 1px solid var(--grey-border);
}

.product-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: -webkit-grid;
  display:         grid;
  -webkit-grid-template-columns: 1fr 1fr;
          grid-template-columns: 1fr 1fr;
  /* FIX: grid-gap is the old syntax; use gap with grid-gap fallback */
  grid-gap: 64px;
  gap: 64px;
  -webkit-align-items: center;
          align-items: center;
}

/* ── Image wrap ───────────────────────────────────────── */
.product-section__image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  -webkit-box-shadow: 0 24px 64px rgba(0,0,0,.14);
          box-shadow: 0 24px 64px rgba(0,0,0,.14);
  background: var(--grey-dark);

  /* FIX: aspect-ratio is not supported in Safari < 15.
     Use the padding-bottom hack as a universal fallback.
     aspect-ratio: 4/3 = 75% padding-bottom */
  padding-bottom: 75%; /* fallback */
  height: 0;           /* fallback */
}

/* FIX: Override padding hack for browsers that DO support aspect-ratio */
@supports (aspect-ratio: 4/3) {
  .product-section__image-wrap {
    aspect-ratio: 4/3;
    padding-bottom: 0;
    height: auto;
  }
}

.product-section__img {
  /* FIX: when padding-bottom hack is active, image must be absolutely positioned */
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform .55s ease;
          transition:         transform .55s ease;
}

/* FIX: for browsers supporting aspect-ratio, reset to normal flow */
@supports (aspect-ratio: 4/3) {
  .product-section__img {
    position: relative;
    top: auto; left: auto;
  }
}

.product-section__image-wrap:hover .product-section__img {
  -webkit-transform: scale(1.04);
          transform: scale(1.04);
}

.product-section__img-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: -webkit-linear-gradient(
    315deg,
    rgba(255,102,0,.08) 0%,
    transparent 50%,
    rgba(0,0,0,.2) 100%
  );
  background: linear-gradient(
    135deg,
    rgba(255,102,0,.08) 0%,
    transparent 50%,
    rgba(0,0,0,.2) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Number badge */
.product-section__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  background: var(--orange);
  color: var(--white);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .1em;
  padding: 4px 10px;
  border-radius: 50px;
  -webkit-box-shadow: 0 4px 14px rgba(255,102,0,.4);
          box-shadow: 0 4px 14px rgba(255,102,0,.4);
}

/* ── Content block ────────────────────────────────────── */
.product-section__content {
  display: -webkit-flex;
  display:         flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 0;
}

.product-section__heading {
  /* FIX: clamp() fallback */
  font-size: 2rem;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.product-section__heading em {
  font-style: normal;
  color: var(--orange);
}

.product-section__lead {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.product-section__desc {
  font-size: .9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 22px;
}

/* ── Specs table ──────────────────────────────────────── */
.product-specs {
  display: -webkit-flex;
  display:         flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  overflow: hidden;
}

.product-spec {
  display: -webkit-grid;
  display:         grid;
  -webkit-grid-template-columns: 145px 1fr;
          grid-template-columns: 145px 1fr;
  border-bottom: 1px solid var(--grey-border);
}
.product-spec:last-child { border-bottom: none; }

.product-spec__label {
  font-size: .78rem;
  font-weight: 800;
  color: var(--white);
  background: var(--grey-dark);
  padding: 9px 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.product-spec__value {
  font-size: .82rem;
  color: var(--text-body);
  padding: 9px 14px;
  background: var(--white);
  font-weight: 600;
  line-height: 1.5;
}

.product-section--alt .product-spec__value {
  background: var(--grey-light);
}

/* ── Product types grid ───────────────────────────────── */
.product-types {
  margin-bottom: 28px;
}

.product-types__heading {
  font-size: .78rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.product-types__grid {
  display: -webkit-grid;
  display:         grid;
  -webkit-grid-template-columns: 1fr 1fr;
          grid-template-columns: 1fr 1fr;
  grid-gap: 8px 16px;
  gap: 8px 16px;
  margin-top: 12px;
}

.product-types__grid li {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.4;
}

.pt-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  /* FIX: min-width prevents dot from collapsing on Safari */
  min-width: 6px;
}

/* ══════════════════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════════════════ */
.cta-strip {
  background: var(--grey-dark);
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  background: -webkit-radial-gradient(80% 150% ellipse at 80% 50%, rgba(255,102,0,.15), transparent 65%);
  background:         radial-gradient(ellipse 80% 150% at 80% 50%, rgba(255,102,0,.15), transparent 65%);
  pointer-events: none;
}
.cta-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: -webkit-linear-gradient(left, transparent, var(--orange), transparent);
  background:         linear-gradient(90deg, transparent, var(--orange), transparent);
}

.cta-strip__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: space-between;
          justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.cta-strip__text h2 {
  /* FIX: clamp() fallback */
  font-size: 1.8rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.22;
}
.cta-strip__text h2 em {
  font-style: normal;
  color: var(--orange);
}
.cta-strip__text p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}

.cta-strip__actions {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 14px;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  -webkit-transform: translateY(36px);
          transform: translateY(36px);
  -webkit-transition: opacity .65s ease, -webkit-transform .65s ease;
          transition: opacity .65s ease,         transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.sf-footer {
  background: var(--sf-bg);
  color: var(--sf-white);
  position: relative;
}
.sf-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: -webkit-linear-gradient(left, transparent, var(--sf-orange), transparent);
  background:         linear-gradient(90deg, transparent, var(--sf-orange), transparent);
}

.sf-footer__body {
  background: var(--sf-body);
}

.sf-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 32px 56px;
  display: -webkit-grid;
  display:         grid;
  -webkit-grid-template-columns: 1.4fr 1fr 1fr;
          grid-template-columns: 1.4fr 1fr 1fr;
  grid-gap: 48px;
  gap: 48px;
}

/* ── Brand col ────────────────────────────────────────── */
.sf-logo {
  display: -webkit-inline-flex;
  display:         inline-flex;
  -webkit-align-items: center;
          align-items: center;
  margin-bottom: 20px;
}
.sf-logo__img {
  height: 52px;
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-filter: brightness(1.05);
          filter: brightness(1.05);
}
.sf-logo__fallback {
  -webkit-flex-direction: column;
          flex-direction: column;
  line-height: 1;
}
.sf-logo__main {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--sf-white);
}
.sf-logo__sub {
  font-size: .62rem;
  font-weight: 700;
  color: var(--sf-orange);
  letter-spacing: .24em;
  text-transform: uppercase;
}

.sf-brand-desc {
  font-size: .84rem;
  line-height: 1.8;
  color: var(--sf-muted);
  margin-bottom: 24px;
}
.sf-brand-desc strong {
  color: var(--sf-white);
  font-weight: 700;
}

.sf-socials {
  display: -webkit-flex;
  display:         flex;
  gap: 10px;
}
.sf-social {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--sf-border);
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  color: var(--sf-muted);
  background: rgba(255,255,255,.04);
  -webkit-transition: background .2s, border-color .2s, color .2s, -webkit-transform .2s;
          transition: background .2s, border-color .2s, color .2s,         transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.sf-social:hover {
  background: var(--sf-orange);
  border-color: var(--sf-orange);
  color: var(--sf-white);
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* ── Links col ────────────────────────────────────────── */
.sf-col__heading {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sf-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  position: relative;
}
.sf-col__heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px;
  height: 2px;
  background: var(--sf-orange);
  border-radius: 2px;
}

.sf-links {
  display: -webkit-flex;
  display:         flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}
.sf-link {
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  gap: 8px;
  font-size: .855rem;
  color: var(--sf-link);
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid var(--sf-border);
  -webkit-transition: color .2s, padding-left .2s;
          transition: color .2s, padding-left .2s;
}
.sf-link:last-child { border-bottom: none; }
.sf-link svg {
  color: var(--sf-orange);
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  opacity: .7;
  -webkit-transition: opacity .2s;
          transition: opacity .2s;
}
.sf-link:hover { color: var(--sf-link-hover); padding-left: 4px; }
.sf-link:hover svg { opacity: 1; }

/* ── Contact col ──────────────────────────────────────── */
.sf-contact-items {
  display: -webkit-flex;
  display:         flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 18px;
}
.sf-contact-item {
  display: -webkit-flex;
  display:         flex;
  gap: 14px;
  -webkit-align-items: flex-start;
          align-items: flex-start;
}
.sf-contact-icon {
  width: 36px;
  height: 36px;
  background: var(--sf-orange-dim, rgba(255,102,0,.15));
  border: 1px solid rgba(255,102,0,.25);
  border-radius: 8px;
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: center;
          justify-content: center;
  -webkit-flex-shrink: 0;
          flex-shrink: 0;
  color: var(--sf-orange);
  /* FIX: min-width ensures it doesn't collapse in Safari flex */
  min-width: 36px;
}
.sf-contact-info {
  display: -webkit-flex;
  display:         flex;
  -webkit-flex-direction: column;
          flex-direction: column;
  gap: 2px;
}
.sf-contact-label {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--sf-orange);
  text-transform: uppercase;
}
.sf-contact-value {
  font-size: .84rem;
  color: var(--sf-link);
  font-weight: 600;
  line-height: 1.5;
  -webkit-transition: color .2s;
          transition: color .2s;
  /* FIX: allow email/url to wrap on narrow screens */
  word-break: break-all;
}
a.sf-contact-value:hover { color: var(--sf-orange); }

/* ── Footer bottom ────────────────────────────────────── */
.sf-footer__bottom {
  border-top: 1px solid var(--sf-border);
  background: rgba(0,0,0,.35);
}
.sf-footer__bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: -webkit-flex;
  display:         flex;
  -webkit-align-items: center;
          align-items: center;
  -webkit-justify-content: space-between;
          justify-content: space-between;
  gap: 16px;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
}
.sf-copy {
  font-size: .8rem;
  color: var(--sf-muted);
}
.sf-made {
  font-size: .8rem;
  color: var(--sf-muted);
}
.sf-heart {
  color: #e04444;
  display: inline-block;
  -webkit-animation: heartbeat 1.6s ease infinite;
          animation: heartbeat 1.6s ease infinite;
}
@-webkit-keyframes heartbeat {
  0%,100% { -webkit-transform: scale(1); transform: scale(1); }
  14%      { -webkit-transform: scale(1.25); transform: scale(1.25); }
  28%      { -webkit-transform: scale(1); transform: scale(1); }
  42%      { -webkit-transform: scale(1.18); transform: scale(1.18); }
  56%      { -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes heartbeat {
  0%,100% { -webkit-transform: scale(1); transform: scale(1); }
  14%      { -webkit-transform: scale(1.25); transform: scale(1.25); }
  28%      { -webkit-transform: scale(1); transform: scale(1); }
  42%      { -webkit-transform: scale(1.18); transform: scale(1.18); }
  56%      { -webkit-transform: scale(1); transform: scale(1); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  .top-bar__inner { gap: 18px; }
 

  .nav__link { padding: 8px 9px; font-size: .82rem; }

  .product-section__inner {
    grid-gap: 40px;
    gap: 40px;
    padding: 0 24px;
  }

  .sf-footer__inner {
    -webkit-grid-template-columns: 1fr 1fr;
            grid-template-columns: 1fr 1fr;
    grid-gap: 36px;
    gap: 36px;
  }
  .sf-col--brand { -webkit-grid-column: 1 / -1; grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 768px)
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── TOP BAR — FIX: show all 3 items on mobile ──────
     Previous code hid items 2 & 3 (.top-bar__item:nth-child(2)
     and :nth-child(3)), leaving only email visible.
     Now we show all items in a compact scrollable row.
  ──────────────────────────────────────────────────── */
  .top-bar {
    height: auto;
    padding: 0;
  }

  .top-bar__inner {
    padding: 8px 16px;
    gap: 20px;
    -webkit-flex-wrap: nowrap;
            flex-wrap: nowrap;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
    -webkit-align-items: center;
            align-items: center;
    overflow-x: visible;
  }

  .top-bar__item {
    font-size: .72rem;
    white-space: nowrap;
    -webkit-flex-shrink: 0;
            flex-shrink: 0;
    gap: 6px;
    -webkit-align-items: center;
            align-items: center;
  }

  .top-bar__item svg {
    width: 13px;
    height: 13px;
    display: block;
    -webkit-align-self: center;
            align-self: center;
  }

  /* HEADER MOBILE */
  .hamburger { display: -webkit-flex; display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* FIX: use max() alternative via min() or fallback */
    width: 320px;
    width: -webkit-min(320px, 88vw);
    width:         min(320px, 88vw);
    height: 100%;
    height: 100vh; /* FIX: fallback for browsers without dvh */
    height: 100dvh; /* FIX: dynamic viewport height for mobile Safari address bar */
    background: var(--white);
    -webkit-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: flex-start;
            align-items: flex-start;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
    padding: 90px 28px 40px;
    gap: 0;
    z-index: 199;
    -webkit-box-shadow: -8px 0 40px rgba(0,0,0,.18);
            box-shadow: -8px 0 40px rgba(0,0,0,.18);
    -webkit-transition: right var(--transition);
            transition: right var(--transition);
    /* FIX: momentum scrolling on iOS Safari */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { right: 0; }

  .nav__list {
    -webkit-flex-direction: column;
            flex-direction: column;
    -webkit-align-items: flex-start;
            align-items: flex-start;
    width: 100%;
    gap: 0;
  }
  .nav__list li { width: 100%; }

  .nav__link {
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--grey-border);
    width: 100%;
    color: var(--text-primary);
  }
  .nav__link::after { display: none; }
  .nav__link.active { color: var(--orange); }

  .btn-cta {
    margin-top: 24px;
    width: 100%;
    text-align: center;
    padding: 13px 22px;
    font-size: .92rem;
  }

  /* Page hero */
  .page-hero { padding: 52px 20px 48px; }
  .page-hero__title { font-size: 1.9rem; font-size: clamp(1.6rem, 6vw, 2.4rem); }

  /* Product sections — stack */
  .product-section { padding: 52px 0; }
  .product-section__inner {
    -webkit-grid-template-columns: 1fr;
            grid-template-columns: 1fr;
    grid-gap: 32px;
    gap: 32px;
    padding: 0 20px;
  }

  /* FIX: on alternating sections, keep correct reading order on mobile */
  .product-section--alt .product-section__content { -webkit-order: 1; order: 1; }
  .product-section--alt .product-section__image-wrap { -webkit-order: 2; order: 2; }

  /* FIX: image wrap override for mobile — use 16:9 aspect */
  .product-section__image-wrap {
    padding-bottom: 56.25%; /* 16:9 fallback */
    height: 0;
  }
  @supports (aspect-ratio: 16/9) {
    .product-section__image-wrap {
      aspect-ratio: 16/9;
      padding-bottom: 0;
      height: auto;
    }
  }

  /* Specs */
  .product-spec { -webkit-grid-template-columns: 120px 1fr; grid-template-columns: 120px 1fr; }

  /* Product types */
  .product-types__grid {
    -webkit-grid-template-columns: 1fr 1fr;
            grid-template-columns: 1fr 1fr;
    grid-gap: 6px 12px;
    gap: 6px 12px;
  }

  /* CTA strip */
  .cta-strip { padding: 48px 20px; }
  .cta-strip__inner {
    -webkit-flex-direction: column;
            flex-direction: column;
    text-align: center;
    gap: 28px;
  }
  .cta-strip__actions { -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; }

  /* Footer */
  .sf-footer__inner {
    -webkit-grid-template-columns: 1fr;
            grid-template-columns: 1fr;
    grid-gap: 36px;
    gap: 36px;
    padding: 48px 20px 40px;
  }
  .sf-col--brand { -webkit-grid-column: auto; grid-column: auto; }
  .sf-footer__bottom-inner { -webkit-flex-direction: column; flex-direction: column; text-align: center; gap: 8px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile (≤ 420px)
══════════════════════════════════════════════════════════ */
@media (max-width: 420px) {
  .product-types__grid { -webkit-grid-template-columns: 1fr; grid-template-columns: 1fr; }

  /* FIX: stack spec table on very small screens */
  .product-spec {
    -webkit-grid-template-columns: 1fr;
            grid-template-columns: 1fr;
  }
  .product-spec__label {
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding-bottom: 6px;
  }
  .cta-strip__actions { -webkit-flex-direction: column; flex-direction: column; width: 100%; }
  .cta-strip__actions .btn-primary,
  .cta-strip__actions .btn-outline { width: 100%; -webkit-justify-content: center; justify-content: center; }
}