/* =========================================================
   LiftKala — Design tokens
   Primary: #0F3D68 (deep industrial blue)
   Deep:    #081C30 (navy / header-footer)
   Blue-500:#1C6DD0 (interactive)
   Amber:   #F2A93B (signal / CTA — hazard-stripe echo)
   Slate:   #55647A (secondary text)
   Bg:      #F4F7FB
   ========================================================= */

:root {
  --navy: #081c30;
  --blue-900: #0b2c4d;
  --blue-700: #0f3d68;
  --blue-500: #1c6dd0;
  --blue-100: #e7f0fc;
  --amber: #f2a93b;
  --amber-dark: #d68a17;
  --slate: #55647a;
  --slate-light: #8593a8;
  --line: #e3e9f1;
  --bg: #f4f7fb;
  --white: #ffffff;

  --font-body: "Vazirmatn", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(11, 44, 77, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 44, 77, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--blue-900);
  line-height: 1.7;
}

img,
svg {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
button {
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.row .reveal:nth-child(2) {
  transition-delay: 0.06s;
}
.row .reveal:nth-child(3) {
  transition-delay: 0.12s;
}
.row .reveal:nth-child(4) {
  transition-delay: 0.18s;
}
.row .reveal:nth-child(5) {
  transition-delay: 0.24s;
}
.row .reveal:nth-child(6) {
  transition-delay: 0.3s;
}
.row .reveal:nth-child(7) {
  transition-delay: 0.36s;
}
.row .reveal:nth-child(8) {
  transition-delay: 0.42s;
}

/* ---------- Hero load-in ---------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-copy > * {
  animation: heroFadeUp 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.25s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.35s;
}
.hero-copy > *:nth-child(5) {
  animation-delay: 0.45s;
}
.hero-visual {
  animation: heroFadeUp 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10px, -18px) scale(1.06);
  }
}
.hero-blob {
  animation: floatBlob 8s ease-in-out infinite;
}

@keyframes cabGlow {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(242, 169, 59, 0.6);
  }
  50% {
    box-shadow: 0 0 26px rgba(242, 169, 59, 0.95);
  }
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

/* nav underline */
.nav-link-plain {
  position: relative;
}
.nav-link-plain::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  left: 0.9rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-link-plain:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.container {
  max-width: 1240px;
}

/* ---------- Buttons ---------- */
.btn-amber {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: var(--navy);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-amber:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 138, 23, 0.35);
  color: var(--navy);
}
.btn-outline-light-blue {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  display: inline-flex;
  align-items: center;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.btn-outline-light-blue:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.topbar-inner span {
  margin-inline-start: 1.25rem;
}
.topbar-inner i {
  color: var(--amber);
  margin-inline-end: 0.35rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(11, 44, 77, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    padding 0.2s ease,
    background 0.2s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--blue-500), var(--blue-700));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.brand-mark-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow:
    0 -13px 0 rgba(255, 255, 255, 0.35),
    0 13px 0 rgba(255, 255, 255, 0.35);
}
.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}
.brand-text b {
  font-weight: 900;
  color: var(--amber);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link-btn,
.nav-link-plain {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 8px;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.nav-link-btn {
  color: var(--amber);
  font-weight: 700;
}
.nav-link-btn:hover,
.nav-link-plain:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber);
}
.nav-link-plain:hover {
  color: #fff;
}
.nav-link-btn i {
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}
.cart-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--amber);
  color: var(--navy);
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
}

.icon-btn.d-lg-none {
  font-size: 1.15rem;
}

/* ---------- Mega menu ---------- */
.has-mega {
  position: relative;
}
.mega-panel {
  position: fixed;
  top: 112px;
  right: 50%;
  transform: translateX(50%) translateY(8px) scale(0.98);
  width: min(1180px, 92vw);
  max-width: calc(100vw - 24px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 60px rgba(8, 28, 48, 0.22);
  padding: 1.75rem;
  display: none;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  z-index: 1040;
  opacity: 0;
  transform-origin: top center;
  transition:
    opacity 0.22s ease,
    transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.has-mega.open .mega-panel {
  display: grid;
  opacity: 1;
  transform: translateX(50%) translateY(0) scale(1);
}
.has-mega.open .nav-link-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--amber);
}
.has-mega.open .nav-link-btn i {
  transform: rotate(180deg);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
}
.mega-col h6 {
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}
.mega-col h6 i {
  color: var(--amber-dark);
}
.mega-col a {
  display: block;
  color: var(--slate);
  font-size: 0.87rem;
  padding: 0.32rem 0;
  transition:
    color 0.15s ease,
    padding-inline-start 0.15s ease;
}
.mega-col a:hover {
  color: var(--blue-500);
  padding-inline-start: 4px;
}

.mega-promo {
  background: linear-gradient(160deg, var(--blue-700), var(--navy));
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mega-promo-eyebrow {
  align-self: flex-start;
  background: rgba(242, 169, 59, 0.16);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.mega-promo strong {
  font-size: 1.05rem;
  line-height: 1.5;
}
.mega-promo p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.4rem;
}

/* ---------- Mobile offcanvas ---------- */
.offcanvas.offcanvas-end {
  --bs-offcanvas-bg: var(--navy);
  --bs-offcanvas-color: var(--white);
  background: var(--navy);
  color: var(--white);
  max-width: 340px;
}
.offcanvas-header .brand-text {
  color: var(--white);
}
.offcanvas-header .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

#mobileAcc .accordion-item {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
}
#mobileAcc .accordion-button {
  --bs-accordion-btn-bg: rgba(255, 255, 255, 0.06);
  --bs-accordion-active-bg: rgba(242, 169, 59, 0.14);
  --bs-accordion-btn-color: #ffffff;
  --bs-accordion-active-color: var(--amber);
  font-weight: 600;
  box-shadow: none;
}
#mobileAcc .accordion-button::after {
  filter: invert(1);
}
#mobileAcc .accordion-body {
  background: transparent;
  padding-top: 0.4rem;
}

.mobile-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.mobile-cat-list a {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 0.35rem 0.2rem;
}
.mobile-cat-list a:hover {
  color: var(--amber) !important;
}

.mobile-links {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mobile-links a {
  display: block;
  padding: 0.8rem 0.25rem;
  font-weight: 600;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    color 0.15s ease,
    padding-inline-start 0.15s ease;
}
.mobile-links a:hover {
  color: var(--amber) !important;
  padding-inline-start: 4px;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(
      900px 500px at 15% -10%,
      rgba(28, 109, 208, 0.35),
      transparent 60%
    ),
    linear-gradient(180deg, var(--navy), var(--blue-900) 60%, var(--blue-700));
  color: var(--white);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    600px 400px at 80% 20%,
    rgba(242, 169, 59, 0.1),
    transparent 60%
  );
  animation: heroGlow 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGlow {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-4%, 3%);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(242, 169, 59, 0.14);
  color: var(--amber);
  border: 1px solid rgba(242, 169, 59, 0.35);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.1rem;
}
.hero h1 span {
  color: var(--amber);
}
.hero-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 46ch;
  margin-bottom: 1.8rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}
.hero-trust i {
  color: var(--amber);
  margin-inline-end: 0.3rem;
}

/* Hero visual: floor indicator + shaft */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(28, 109, 208, 0.45),
    transparent 70%
  );
  filter: blur(10px);
  z-index: 0;
}
.elevator-slider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  width: min(360px, 84vw);
}

/* shaft with 5 floor stops + moving cab */
.slider-shaft {
  position: relative;
  width: 30px;
  height: 300px;
  flex-shrink: 0;
}
.shaft-line {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.28) 0 6px,
    transparent 6px 12px
  );
}
.floor-stop {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(8, 28, 48, 0.4);
}
.floor-stop::after {
  content: attr(data-floor);
  position: absolute;
  inset-inline-end: 16px;
  top: -8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}
.floor-stop:nth-of-type(1) {
  top: 0;
}
.floor-stop:nth-of-type(2) {
  top: 25%;
}
.floor-stop:nth-of-type(3) {
  top: 50%;
}
.floor-stop:nth-of-type(4) {
  top: 75%;
}
.floor-stop:nth-of-type(5) {
  top: 100%;
}

.slider-cab {
  position: absolute;
  inset-inline-start: 50%;
  transform: translateX(50%);
  top: 0;
  width: 22px;
  height: 22px;
  margin-inline-start: -11px;
  border-radius: 7px;
  background: linear-gradient(160deg, var(--amber), var(--amber-dark));
  box-shadow:
    0 0 0 4px rgba(242, 169, 59, 0.18),
    0 0 16px rgba(242, 169, 59, 0.55);
  transition: top 1.1s cubic-bezier(0.65, 0.05, 0.36, 1);
  animation: cabGlow 1.8s ease-in-out infinite;
}

/* floor showcase card (crossfading "image") */
.floor-showcase {
  position: relative;
  flex: 1;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.showcase-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  pointer-events: none;
}
.showcase-frame.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.showcase-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.showcase-floor {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}
.showcase-frame h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* ---------- Brand strip ---------- */
.brand-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.brand-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding: 1.1rem 0;
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 600;
}
.brand-strip-inner i {
  color: var(--blue-500);
  margin-inline-end: 0.4rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 4.5rem 0;
}
.section-alt {
  background: var(--white);
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.35rem;
}
.section-head p {
  color: var(--slate);
  margin: 0;
}
.section-head-link {
  margin-inline-start: auto;
  font-weight: 700;
  color: var(--blue-500);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.floor-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-light);
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  flex-shrink: 0;
}
.floor-eyebrow b {
  color: var(--blue-500);
  font-size: 1rem;
}

/* ---------- Category cards ---------- */
.cat-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.2rem;
  text-align: center;
  height: 100%;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-500);
}
.cat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.9rem;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.cat-card:hover .cat-icon {
  background: var(--blue-700);
  color: var(--white);
}
.cat-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--blue-900);
}
.cat-card span {
  font-size: 0.78rem;
  color: var(--slate-light);
}
.cat-card-more {
  background: var(--blue-100);
  border-style: dashed;
}
.cat-card-more span {
  color: var(--blue-500);
  font-weight: 600;
}

/* ---------- Product cards ---------- */
.product-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.section-alt .product-card {
  background: var(--bg);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.badge-tag {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--white);
}
.badge-best {
  background: var(--blue-500);
}
.badge-new {
  background: #2e9e63;
}
.badge-off {
  background: var(--amber-dark);
}

.product-thumb {
  height: 170px;
  overflow: hidden;
  background: var(--blue-100);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

/* used by hero floor-showcase icons */
.thumb-motor {
  background: linear-gradient(150deg, #1c6dd0, #0f3d68);
}
.thumb-panel {
  background: linear-gradient(150deg, #22537f, #081c30);
}
.thumb-door {
  background: linear-gradient(150deg, #2b7fcb, #123a5e);
}
.thumb-rope {
  background: linear-gradient(150deg, #3a6ea5, #0f3d68);
}
.thumb-safety {
  background: linear-gradient(150deg, #b97a22, #7a4f14);
}

.product-body {
  padding: 1rem 1.1rem 1.2rem;
}
.sku {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate-light);
  letter-spacing: 0.02em;
}
.product-body h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0.35rem 0 0.8rem;
  min-height: 2.6em;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-weight: 800;
  color: var(--blue-700);
  font-size: 0.95rem;
}
.price small {
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--slate-light);
}
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  flex-shrink: 0;
}
.add-btn:hover {
  background: var(--amber-dark);
  transform: scale(1.08);
}

/* ---------- Stats ---------- */
.stats-section {
  background: linear-gradient(160deg, var(--blue-700), var(--navy));
  color: var(--white);
  padding: 3.2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--amber);
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--amber);
}
.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
}

/* ---------- Blog ---------- */
.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.92);
}
.blog-thumb-1 {
  background: linear-gradient(150deg, #1c6dd0, #0b2c4d);
}
.blog-thumb-2 {
  background: linear-gradient(150deg, #22537f, #081c30);
}
.blog-thumb-3 {
  background: linear-gradient(150deg, #b97a22, #7a4f14);
}
.blog-body {
  padding: 1.2rem 1.3rem 1.4rem;
}
.blog-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.blog-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--blue-900);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.blog-meta {
  font-size: 0.78rem;
  color: var(--slate-light);
}
.blog-meta i {
  margin-inline-end: 0.3rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue-100);
  padding: 3.2rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
  max-width: 40ch;
}
.cta-text p {
  color: var(--slate);
  margin: 0;
  max-width: 48ch;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1.4fr;
  gap: 2rem;
  padding: 3.5rem 0 2.5rem;
}
.footer-col h6 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer-col a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--amber);
}
.footer-about p {
  font-size: 0.87rem;
  margin: 0.9rem 0 1.1rem;
  line-height: 1.8;
}
.brand-text.light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.footer-social a:hover {
  background: rgba(242, 169, 59, 0.14);
  border-color: var(--amber);
}

.footer-newsletter p {
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
}
.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  color: var(--white);
  font-size: 0.85rem;
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.newsletter-form button {
  background: var(--amber);
  border: none;
  border-radius: 10px;
  width: 42px;
  color: var(--navy);
  font-size: 1.1rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
}
.pay-icons {
  display: flex;
  gap: 0.8rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 22px;
  inset-inline-end: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  z-index: 1050;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--amber-dark);
}

/* nav active state */
/* =========================================================
   Products page
   ========================================================= */
.page-hero {
  background: linear-gradient(160deg, var(--navy), var(--blue-700));
  color: var(--white);
  padding: 2.6rem 0 3.6rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(
    500px 320px at 85% 15%,
    rgba(242, 169, 59, 0.12),
    transparent 60%
  );
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
}
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}
.breadcrumb-nav a {
  color: rgba(255, 255, 255, 0.75);
}
.breadcrumb-nav a:hover {
  color: var(--amber);
}
.breadcrumb-nav i {
  font-size: 0.7rem;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1.3rem;
}

.page-hero-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  background: linear-gradient(
    135deg,
    rgba(28, 109, 208, 0.28),
    rgba(28, 109, 208, 0.1)
  );
  border: 1px solid rgba(120, 170, 235, 0.35);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.4rem;
  max-width: 720px;
}
.page-hero-box-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.page-hero-box p {
  flex: 1;
  min-width: 200px;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.93rem;
}
.page-hero-stats {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}
.page-hero-stats b {
  font-family: var(--font-mono);
  color: var(--amber);
  font-size: 1rem;
}
.page-hero-stats .divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
}

.products-page {
  padding-top: 2.6rem;
}
.products-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

/* ---- filter sidebar ---- */
.filters-panel {
  --bs-offcanvas-width: 320px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.filters-panel .offcanvas-header {
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, var(--blue-700), var(--navy));
  border-bottom: none;
}
.filters-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.filters-title i {
  color: var(--amber);
}
.filters-panel .offcanvas-header .btn-close {
  filter: invert(1);
  opacity: 0.85;
}
.filters-panel .offcanvas-body {
  padding: 0.9rem 0.9rem 1.2rem;
}

.filter-tree {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.filter-node {
  border: none;
}

.filter-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg);
  border: 1px solid transparent;
  text-align: right;
  padding: 0.7rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue-900);
  border-radius: 12px;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}
.filter-cat-btn:hover {
  background: var(--blue-100);
  color: var(--blue-700);
  transform: translateX(-2px);
}
.filter-cat-btn i:first-child {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.92rem;
  transition:
    background 0.18s ease,
    color 0.18s ease;
}
.filter-cat-btn span:nth-child(2) {
  flex: 1;
}
.filter-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--slate-light);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}
.filter-caret {
  font-size: 0.65rem !important;
  color: var(--slate-light) !important;
  transition: transform 0.2s ease;
}

.filter-node.is-open .filter-cat-btn {
  border-radius: 12px 12px 0 0;
}
.filter-node.is-open .filter-caret {
  transform: rotate(180deg);
}

.filter-node.is-active > .filter-cat-btn,
.filter-node[data-cat="all"].is-active .filter-cat-btn {
  background: var(--blue-700);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(15, 61, 104, 0.25);
}
.filter-node.is-active > .filter-cat-btn i:first-child {
  background: rgba(255, 255, 255, 0.16);
  color: var(--amber);
}
.filter-node.is-active > .filter-cat-btn .filter-count {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  border-color: transparent;
}
.filter-node.is-active > .filter-cat-btn .filter-caret {
  color: rgba(255, 255, 255, 0.7) !important;
}

.filter-sub-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: var(--bg);
  border-radius: 0 0 12px 12px;
  margin-inline-start: 0;
  padding-inline-start: 0;
  position: relative;
}
.filter-node.is-open .filter-sub-list {
  max-height: 280px;
  padding: 0.35rem 0.5rem 0.5rem 2.5rem;
}
.filter-sub-list::before {
  content: "";
  position: absolute;
  inset-inline-start: 2.05rem;
  top: 0.2rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line);
}
.filter-sub-btn {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  text-align: right;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  color: var(--slate);
  border-radius: 8px;
  margin: 1px 0;
}
.filter-sub-btn::before {
  content: "";
  position: absolute;
  inset-inline-start: -0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate-light);
  opacity: 0.5;
  flex-shrink: 0;
}
.filter-sub-btn span {
  margin-inline-start: auto;
}
.filter-sub-btn:hover {
  color: var(--blue-500);
  background: var(--white);
}
.filter-sub-btn.is-active {
  color: var(--blue-700);
  font-weight: 700;
  background: var(--blue-100);
}
.filter-sub-btn.is-active::before {
  background: var(--amber);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.25);
}

/* ---- separate filter boxes ---- */
.filter-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.9rem 1rem;
  margin-bottom: 0.9rem;
}
.filter-box-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-900);
  margin: 0 0 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.filter-box-title i {
  color: var(--amber-dark);
  font-size: 0.9rem;
}
.filter-box .filter-tree {
  margin: 0;
}
.filter-box .filter-cat-btn {
  background: var(--white);
}
.filter-box .filter-sub-list {
  background: var(--white);
}

/* ---- price range slider ---- */
.price-range-values {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 1.1rem;
}
.price-range-sep {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--slate-light);
}
.price-range-unit {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.74rem;
  color: var(--slate-light);
  margin-inline-start: 0.15rem;
}

.range-slider {
  position: relative;
  height: 30px;
}
.range-track {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  transform: translateY(-50%);
}
.range-fill {
  position: absolute;
  top: 50%;
  height: 4px;
  background: var(--blue-700);
  border-radius: 999px;
  transform: translateY(-50%);
}
.range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  margin: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.range-input::-webkit-slider-runnable-track {
  background: transparent;
}
.range-input::-moz-range-track {
  background: transparent;
  border: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: auto;
  margin-top: 6px;
}
.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-700);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  pointer-events: auto;
}

.filters-reset {
  width: 100%;
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.filters-reset:hover {
  background: #fdf0de;
  color: var(--amber-dark);
  border-color: var(--amber);
  border-style: solid;
}

@media (min-width: 992px) {
  .filters-reset {
    width: auto;
    margin: 1.4rem auto 0;
    padding: 0.3rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 500;
    background: none;
    border: none;
    color: var(--slate-light);
    gap: 0.3rem;
  }
  .filters-reset i {
    font-size: 0.68rem;
  }
  .filters-reset:hover {
    background: none;
    border: none;
    color: var(--amber-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* ---- toolbar ---- */
.products-toolbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.filters-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  font-size: 0.87rem;
}
.active-filter-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.25rem;
  margin-inline-start: auto;
}
.view-toggle-label {
  font-size: 0.78rem;
  color: var(--slate-light);
  padding-inline-start: 0.5rem;
}
.view-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--slate-light);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.view-btn:hover {
  color: var(--blue-700);
}
.view-btn.is-active {
  background: var(--white);
  color: var(--blue-700);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.products-count {
  font-size: 0.85rem;
  color: var(--slate);
}
.products-count b {
  font-family: var(--font-mono);
  color: var(--blue-900);
}

/* ---- product grid (CSS grid, responsive to column toggle) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.product-col {
  transition: opacity 0.2s ease;
}
.product-col.is-hidden {
  display: none;
}

.no-results {
  text-align: center;
  color: var(--slate-light);
  padding: 3.5rem 0;
  font-size: 0.95rem;
}
.no-results i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.6rem;
  color: var(--line);
}

/* ---- pagination ---- */
.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.2rem;
}
.page-numbers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.page-btn,
.page-num {
  min-width: 38px;
  height: 38px;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.page-btn:hover,
.page-num:hover {
  background: var(--blue-100);
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.page-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}
.page-num.is-active {
  background: var(--blue-700);
  border-color: var(--blue-700);
  color: var(--white);
  font-weight: 700;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(var(--cols, 4), 1fr);
  }
}

@media (max-width: 991.98px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
  .filters-panel {
    border-radius: 0;
  }
  .view-toggle {
    margin-inline-start: 0;
  }
  .products-count {
    margin-inline-start: auto;
  }
}
@media (max-width: 575.98px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .view-toggle {
    margin-inline-start: 0;
    justify-content: center;
  }
  .products-count {
    margin-inline-start: 0;
    text-align: center;
  }
}
/* =========================================================
   Responsive (site-wide)
   ========================================================= */
@media (max-width: 1199.98px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 1rem;
  }
  .section-head-link {
    margin-inline-start: 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cta-inner {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 3rem 0;
  }
  .hero {
    padding: 3rem 0 3.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .newsletter-form {
    max-width: 320px;
    margin: 0 auto;
  }
  .cta-inner {
    flex-direction: column;
  }
  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .elevator-slider {
    width: 100%;
  }
}

/* =========================================================
   Single product page
   ========================================================= */
.product-breadcrumb-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.product-breadcrumb-band .breadcrumb-nav {
  color: var(--slate);
  margin: 0;
}
.product-breadcrumb-band .breadcrumb-nav a {
  color: var(--slate);
}
.product-breadcrumb-band .breadcrumb-nav a:hover {
  color: var(--blue-700);
}
.product-breadcrumb-band .breadcrumb-nav span {
  color: var(--blue-900);
  font-weight: 600;
}

.product-main-section {
  padding-top: 2.4rem;
}

.product-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 2.6rem;
  align-items: start;
}

/* ---- gallery ---- */
.product-gallery {
  display: flex;
  gap: 0.9rem;
  position: sticky;
  top: 96px;
}
.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}
.gallery-thumb {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  padding: 0;
  background: var(--bg);
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumb:hover {
  transform: translateY(-2px);
}
.gallery-thumb.is-active {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.gallery-main {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line);
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-badge {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
}
.gallery-zoom {
  position: absolute;
  bottom: 1rem;
  inset-inline-end: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(8, 28, 48, 0.55);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.gallery-zoom:hover {
  background: var(--blue-700);
  transform: scale(1.06);
}
.gallery-main.is-zoomed img {
  transform: scale(1.35);
  cursor: zoom-out;
}

/* ---- info column ---- */
.product-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}
.product-share {
  display: flex;
  gap: 0.5rem;
}
.icon-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}
.icon-chip:hover {
  color: var(--amber-dark);
  border-color: var(--amber);
  background: #fdf0de;
}

.product-info h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.7rem;
  line-height: 1.5;
}

.product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.stars {
  --rating: 0;
  display: inline-block;
  font-size: 0.95rem;
  position: relative;
  line-height: 1;
  font-family: Arial, sans-serif;
}
.stars::before {
  content: "★★★★★";
  color: var(--line);
  letter-spacing: 2px;
}
.stars::after {
  content: "★★★★★";
  color: var(--amber);
  letter-spacing: 2px;
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
}
.stars-lg {
  font-size: 1.4rem;
}
.rating-count {
  font-size: 0.84rem;
  color: var(--slate);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.stock-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2e9e63;
  background: #eaf7ef;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.product-lead {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 1.3rem;
  max-width: 52ch;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: var(--blue-100);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.3rem;
}
.price-current {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.price-amount {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-700);
}
.price-unit {
  font-size: 0.82rem;
  color: var(--blue-700);
}
.price-old {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--slate-light);
  text-decoration: line-through;
}
.price-off {
  background: var(--amber);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.spec-quick-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.4rem;
}
.spec-quick-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--slate);
}
.spec-quick-list i {
  color: var(--blue-500);
  font-size: 0.95rem;
}

.product-actions {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.qty-stepper {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0.2rem;
}
.qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--blue-700);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.12s ease,
    border-color 0.15s ease;
}
.qty-btn:hover {
  background: var(--blue-700);
  color: #fff;
  border-color: var(--blue-700);
  transform: scale(1.06);
}
.qty-btn:active {
  transform: scale(0.94);
}
.qty-value {
  width: 48px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1rem;
  color: var(--blue-900);
}
.add-to-cart-btn {
  flex: 1;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(214, 138, 23, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(214, 138, 23, 0.4);
}
.add-to-cart-btn:active {
  transform: translateY(0);
}
.add-to-cart-btn.is-added {
  background: #2e9e63;
  border-color: #2e9e63;
  color: #fff;
  box-shadow: 0 10px 26px rgba(46, 158, 99, 0.32);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.8rem;
  color: var(--slate);
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}
.trust-row i {
  color: var(--blue-500);
  margin-inline-end: 0.3rem;
}

.btn-outline-blue {
  background: var(--white);
  border: 1.5px solid var(--blue-700);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.btn-outline-blue:hover {
  background: var(--blue-700);
  color: #fff;
}

/* ---- tabs ---- */
.product-tabs {
  margin-top: 3.4rem;
}
.product-tabs-nav {
  display: flex;
  gap: 0.3rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.8rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: 0.8rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}
.tab-btn span {
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.tab-btn:hover {
  color: var(--blue-700);
}
.tab-btn.is-active {
  color: var(--blue-700);
  border-color: var(--blue-700);
}

.tab-panel {
  display: none;
  animation: heroFadeUp 0.4s ease both;
}
.tab-panel.is-active {
  display: block;
}
.tab-panel p {
  color: var(--slate);
  line-height: 1.9;
  margin-bottom: 1rem;
  max-width: 72ch;
}
.desc-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.desc-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--blue-900);
}
.desc-bullet-list li::before {
  content: "✓";
  color: var(--blue-500);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 640px;
}
.spec-table tr {
  border-bottom: 1px solid var(--line);
}
.spec-table tr:last-child {
  border-bottom: none;
}
.spec-table th,
.spec-table td {
  padding: 0.8rem 0.5rem;
  text-align: right;
  font-size: 0.87rem;
}
.spec-table th {
  color: var(--slate);
  font-weight: 500;
  width: 40%;
}
.spec-table td {
  color: var(--blue-900);
  font-weight: 600;
}
.spec-table tr:nth-child(odd) {
  background: var(--bg);
}

/* ---- reviews ---- */
.reviews-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.8rem;
}
.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.reviews-score-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--blue-900);
}
.reviews-score-count {
  font-size: 0.78rem;
  color: var(--slate-light);
}
.reviews-bars {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--slate);
}
.reviews-bar-row > span:first-child {
  width: 12px;
  font-family: var(--font-mono);
}
.bar-track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 999px;
}
.bar-pct {
  width: 34px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--slate-light);
}
.write-review-btn {
  flex-shrink: 0;
  margin-inline-start: auto;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  background: var(--white);
}
.review-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-700);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-head-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.review-head-text b {
  font-size: 0.87rem;
  color: var(--blue-900);
}
.review-date {
  margin-inline-start: auto;
  font-size: 0.76rem;
  color: var(--slate-light);
}
.review-card p {
  color: var(--slate);
  font-size: 0.87rem;
  margin: 0;
  line-height: 1.8;
}

/* ---- related products ---- */
.related-products {
  margin-top: 4rem;
}
.product-card-link {
  display: block;
  height: 100%;
}
.product-thumb-link {
  display: block;
}
.product-title-link {
  color: inherit;
  text-decoration: none;
}
.product-title-link:hover h3 {
  color: var(--blue-700);
}

/* ---- sticky mobile add-to-cart bar ---- */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(8, 28, 48, 0.12);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}
.sticky-cart-bar.show {
  transform: translateY(0);
}
.sticky-cart-price {
  font-size: 0.8rem;
  color: var(--slate);
}
.sticky-cart-price span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--blue-900);
  font-size: 0.95rem;
}
.sticky-cart-btn {
  flex: 1;
  justify-content: center;
  padding: 0.65rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .product-main-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .product-gallery {
    position: static;
  }
}
@media (max-width: 767.98px) {
  .product-main-section {
    padding-top: 1.6rem;
  }
  .product-gallery {
    flex-direction: column-reverse;
  }
  .gallery-thumbs {
    flex-direction: row;
    overflow-x: auto;
  }
  .gallery-thumb {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
  }
  .spec-quick-list {
    grid-template-columns: 1fr;
  }
  .reviews-summary {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .write-review-btn {
    margin-inline-start: 0;
    align-self: center;
  }
  body {
    padding-bottom: 76px;
  } /* space for sticky cart bar */
}
@media (max-width: 575.98px) {
  .product-actions {
    flex-direction: column;
  }
  .qty-stepper {
    align-self: flex-start;
  }
}
