/* =====================================================================
   X-TRAL — Premium Bathware & Sanitary Ware
   Design System: Luxury Editorial Style
   Colors: Deep Obsidian Teal, Antique Gold/Brass, Soft Alabaster
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand Palette — anchored on the logo's exact teal (#367A82), same
     hue (~186°) and saturation carried through every shade below it. */
  --teal-950: #0e2225;
  /* deepest obsidian teal */
  --teal-900: #17373b;
  /* primary dark / brand background */
  --teal-800: #214f54;
  /* deep teal */
  --teal-700: #2b676e;
  /* mid teal */
  --teal-600: #2B676E;
  /* brand primary accent — exact logo teal */
  --teal-500: #49acb7;
  /* light accent */

  --gold-dark: #b59d84;
  /* dark antique brass */
  --gold: #d9c5b2;
  /* secondary brand gold / sand */
  --gold-light: #e6d8c8;
  /* soft warm gold */
  --gold-soft: #f2e9de;
  /* cream gold */

  --ink: #2c2c2c;
  /* tertiary brand dark grey for body text */
  --muted: #6a7173;
  /* slate grey for captions */
  --line: #e6e8ea;
  /* divider line */
  --paper: #ffffff;
  /* pure white */
  --paper-2: #fbfbfc;
  /* subtle section background */
  --paper-bg: #f8f9fa;
  /* neutral background */
  --paper-3: #f0ece6;
  /* dark warm grey */

  /* Layout & Corners */
  --maxw: 100%;
  /* full-width layout — was 1240px boxed */
  --radius: 20px;
  --radius-sm: 10px;

  /* Shadows & Glows */
  --shadow-sm: 0 10px 30px -15px rgba(0, 61, 71, 0.08);
  --shadow: 0 20px 50px -20px rgba(0, 61, 71, 0.12);
  --shadow-hover: 0 30px 60px -25px rgba(0, 61, 71, 0.2);
  --glow-gold: 0 0 20px rgba(196, 154, 108, 0.2);

  /* Typography */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-top: 88px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--teal-900);
}

h1 em,
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-dark);
}

p {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Global Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: 110px 0;
}

.section--tight {
  padding: 70px 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
}

.center {
  text-align: center;
}

.lead {
  font-size: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  max-width: 65ch;
  margin-top: 10px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--teal-700);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn .ar {
  font-size: 1rem;
  transition: transform 0.3s var(--ease);
}

.btn:hover .ar {
  transform: translateX(6px);
}

.btn--gold {
  background: var(--gold);
  color: var(--teal-950);
}

.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.btn--dark {
  background: var(--teal-900);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--teal-800);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -10px rgba(0, 61, 71, 0.4);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--paper);
}

.btn--ghost:hover {
  background: var(--paper);
  color: var(--teal-900);
  border-color: var(--paper);
  transform: translateY(-3px);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--teal-900);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--teal-950);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.btn--sm {
  padding: 9px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

/* ---------- Top utility bar ---------- */
.topbar {
  display: none !important;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
}

.topbar-inner a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.topbar-inner a:hover {
  color: var(--gold-light);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(0, 61, 71, 0.05);
  transition: var(--transition);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
  transition: var(--transition);
}

.brand:hover img {
  transform: scale(1.03);
}

.footer-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links-mobile-only {
  display: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-900);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--teal-900);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-search-toggle:hover,
.nav-search-toggle.active {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--paper);
}

/* Inline header search — opens beside the search icon, not below the bar */
.nav-inline-search {
  display: flex;
  align-items: center;
}

.nav-inline-search[hidden] {
  display: none;
}

.nav-inline-search input {
  width: min(260px, 34vw);
  padding: 9px 16px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  transition: var(--transition);
}

.nav-inline-search input:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(54, 122, 130, 0.12);
}

/* Mobile: the inline box would overflow the header row — drop it just
   below the bar as a full-width overlay instead. */
@media (max-width: 768px) {
  .nav-inline-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(0, 37, 43, 0.10);
    padding: 12px 16px;
    z-index: 60;
  }

  .nav-inline-search input {
    width: 100%;
  }
}

.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--teal-900);
  margin: 3px auto;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  color: var(--paper);
  background: radial-gradient(circle at 80% 20%, var(--teal-800) 0%, var(--teal-950) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(196, 154, 108, 0.08), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 80vh;
  padding: 80px 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  color: var(--paper);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero h1 em {
  color: var(--gold-light);
}

.hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 48ch;
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-figure {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(to bottom, transparent 60%, rgba(5, 28, 32, 0.4));
  pointer-events: none;
}

.hero-figure:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 154, 108, 0.3);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hero-figure:hover img {
  transform: scale(1.05);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.hero-stats .num {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stats .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Brand Strip ---------- */
.strip {
  background: var(--teal-950);
  border-bottom: 1px solid rgba(196, 154, 108, 0.15);
  color: var(--gold-soft);
  overflow: hidden;
}

.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 56px;
  justify-content: center;
  padding: 24px;
}

.strip span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.strip span::before {
  content: "✦";
  color: var(--gold);
  margin-right: 14px;
  font-size: 0.7rem;
  vertical-align: middle;
}

.strip.strip--marquee .container {
  width: max-content;
  max-width: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding-inline: 28px;
  animation: stripMarquee 28s linear infinite;
}

.strip.strip--marquee:hover .container {
  animation-play-state: paused;
}

.strip.strip--marquee span {
  flex: 0 0 auto;
}

@keyframes stripMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .strip.strip--marquee .container {
    width: 100%;
    max-width: var(--maxw);
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }
}

/* ---------- Section Header ---------- */
.sec-head {
  max-width: 700px;
  margin-bottom: 60px;
}

.sec-head.center {
  margin-inline: auto;
}

.sec-head h2 {
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--teal-900);
}

/* ---------- Category Grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.cat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(196, 154, 108, 0.2);
}

.cat-card .thumb {
  aspect-ratio: 4/3;
  background: var(--paper-3);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cat-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.cat-card:hover .thumb img {
  transform: scale(1.08);
}

.cat-card .body {
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.cat-card:hover h3 {
  color: var(--gold-dark);
}

.cat-card .count {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.cat-card .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-800);
  padding-top: 16px;
}

.cat-card .go::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.cat-card:hover .go::after {
  transform: translateX(5px);
}

/* ---------- Product Grid & Card ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 22px;
  border-radius: 40px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: var(--transition);
}

.chip:hover {
  border-color: var(--teal-600);
  color: var(--teal-900);
}

.chip.active {
  background: var(--teal-900);
  border-color: var(--teal-900);
  color: var(--paper);
  box-shadow: 0 8px 20px -8px rgba(0, 61, 71, 0.4);
}

/* ---------- Catalog Filters Panel / Drawer ---------- */
.btn-filter-toggle {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--teal-900);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-filter-toggle:hover {
  border-color: var(--teal-700);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.btn-filter-toggle svg {
  color: var(--teal-700);
  transition: color 0.3s;
}

.btn-filter-toggle:hover svg {
  color: var(--teal-500);
}

.filter-drawer {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: filterFadeIn 0.4s var(--ease);
}

@keyframes filterFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-drawer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .filter-drawer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal-900);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.custom-select {
  position: relative;
  display: block;
  width: 100%;
  font-family: var(--sans);
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select-trigger:hover {
  border-color: var(--teal-700);
}

.custom-select.open .custom-select-trigger {
  border-color: var(--teal-700);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select-trigger .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-select-trigger .arrow svg {
  transition: transform 0.3s var(--ease);
  color: var(--teal-900);
}

.custom-select.open .custom-select-trigger .arrow svg {
  transform: rotate(180deg);
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  border: 1.5px solid var(--teal-700);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: var(--paper);
  transition: all 0.25s var(--ease);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--teal-700) var(--paper-2);
}

/* Custom Scrollbars for dropdown */
.custom-options::-webkit-scrollbar {
  width: 6px;
}

.custom-options::-webkit-scrollbar-track {
  background: var(--paper-2);
  border-bottom-right-radius: 8px;
}

.custom-options::-webkit-scrollbar-thumb {
  background: var(--teal-700);
  border-radius: 3px;
}

.custom-option {
  position: relative;
  padding: 11px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}

.custom-option:hover {
  background: var(--paper-2);
  color: var(--teal-900);
}

.custom-option.selected {
  background: var(--teal-900);
  color: var(--paper);
}

.custom-option.selected:hover {
  background: var(--teal-700);
  color: var(--paper);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
  text-align: center;
}

.filter-input:focus,
.filter-input:hover {
  border-color: var(--teal-700);
}

.filter-input:focus {
  box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.08);
}

.price-sep {
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 500;
}

.filter-drawer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.filter-drawer-actions .match-count {
  margin-right: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  font-family: var(--sans);
  background: var(--paper-bg);
  padding: 6px 16px;
  border-radius: 99px;
  border: 1px solid var(--line);
}

.btn-filter-reset {
  padding: 10px 28px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-filter-reset:hover {
  border-color: var(--teal-700);
  color: var(--teal-900);
  background: var(--paper-2);
}

.btn-filter-apply {
  padding: 10px 34px;
  border-radius: 99px;
  border: 1.5px solid transparent;
  background: var(--teal-900);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}

.btn-filter-apply:hover {
  background: var(--teal-700);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.btn-filter-apply:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .filter-drawer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filter-drawer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 16px;
  }

  .filter-drawer-actions .match-count {
    margin-right: 0;
    text-align: center;
    width: 100%;
  }

  .btn-filter-reset,
  .btn-filter-apply {
    width: 100%;
    text-align: center;
  }
}

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 154, 108, 0.2);
}

.prod-card .media {
  aspect-ratio: 1/1;
  background: var(--paper-bg);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.prod-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.prod-card:hover .media img {
  transform: scale(1.06);
}

.prod-card .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--teal-900);
  color: var(--gold-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.prod-card .info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.prod-card .cat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.prod-card h3 {
  font-size: 1.4rem;
  color: var(--teal-900);
}

.prod-card .code {
  font-size: 0.76rem;
  color: var(--muted);
  font-family: var(--sans);
  letter-spacing: 0.02em;
}

.prod-card .foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 61, 71, 0.04);
}

.prod-card .price {
  font-family: var(--sans);
  font-size: 1.15rem;
  color: var(--teal-900);
  font-weight: 700;
}

.prod-card .view {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prod-card .view::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.prod-card:hover .view::after {
  transform: translateX(4px);
}

.empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ---------- Product Detail Page ---------- */
.crumbs {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 32px 0 20px;
}

.crumbs a:hover {
  color: var(--gold-dark);
}

.crumbs .sep {
  margin: 0 10px;
  color: rgba(0, 61, 71, 0.15);
}

.pd {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.pd-media {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: calc(100vh - 240px);
  /* responsive to fit screen height without scrolling */
  min-height: 260px;
}

.pd-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* displays entire product outline beautifully without cropping */
  background: var(--paper-bg);
}

.pd-cat {
  color: var(--gold-dark);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.pd h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  color: var(--teal-900);
  margin: 8px 0 12px;
}

.pd .code {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 24px;
  display: inline-block;
  background: var(--paper-3);
  padding: 4px 12px;
  border-radius: 4px;
}

.pd .price {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  line-height: 1.1;
}

.pd .price small {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--sans);
  display: block;
  letter-spacing: 0.05em;
  margin-top: 6px;
  font-weight: 500;
}

.pd .desc {
  color: var(--ink);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.spec-table th {
  width: 38%;
  color: var(--teal-900);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.spec-table td {
  color: var(--muted);
}

.pd-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(196, 154, 108, 0.2);
}

.feature .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-900);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.2rem;
}

.feature h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: var(--teal-900);
}

.feature p {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Split Section / About ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split .visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split--reverse .visual {
  order: 2;
}

.split .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-900);
}

.why-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 154, 108, 0.2);
}

.value .n {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--gold-dark);
  line-height: 1;
}

.value h3 {
  font-size: 1.45rem;
  margin: 12px 0 8px;
  color: var(--teal-900);
}

.value p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- About: Lifestyle Gallery ---------- */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 20px;
  margin-top: 40px;
}

.about-gallery-item {
  display: block;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about-gallery-item--tall {
  grid-row: 1 / 3;
}

.about-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.about-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 37, 43, 0.35), transparent 40%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.about-gallery-item:hover::after {
  opacity: 1;
}

.about-gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- Lifestyle Bento (homepage) ---------- */
.lifestyle-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 18px;
  margin-top: 40px;
}

.lifestyle-bento-item {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s ease;
}

.lifestyle-bento-item:hover {
  box-shadow: var(--shadow);
}

.lifestyle-bento-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.lifestyle-bento-item:hover img {
  transform: scale(1.07);
}

.lifestyle-bento-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(6, 26, 29, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lifestyle-bento-item:hover::before {
  opacity: 1;
}

.lifestyle-bento-num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.35s ease;
}

.lifestyle-bento-item:hover .lifestyle-bento-num {
  opacity: 1;
  transform: translateY(0);
}

.lifestyle-bento-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.lifestyle-bento-item:hover .lifestyle-bento-caption {
  opacity: 1;
  transform: translateY(0);
}

.lifestyle-bento-item--a {
  grid-column: span 2;
  grid-row: span 2;
}

.lifestyle-bento-item--b {
  grid-column: span 2;
  grid-row: span 1;
}

.lifestyle-bento-item--c {
  grid-column: span 1;
  grid-row: span 1;
}

.lifestyle-bento-item--d {
  grid-column: span 1;
  grid-row: span 1;
}

.lifestyle-bento-item--e {
  grid-column: span 4;
  grid-row: span 1;
}

@media (max-width: 860px) {
  .lifestyle-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .lifestyle-bento-item--a {
    grid-column: span 2;
    grid-row: span 2;
  }

  .lifestyle-bento-item--b {
    grid-column: span 2;
    grid-row: span 1;
  }

  .lifestyle-bento-item--c {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lifestyle-bento-item--d {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lifestyle-bento-item--e {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .lifestyle-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .lifestyle-bento-item--a,
  .lifestyle-bento-item--b,
  .lifestyle-bento-item--c,
  .lifestyle-bento-item--d,
  .lifestyle-bento-item--e {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* ---------- Page Banner ---------- */
.page-banner {
  background: radial-gradient(circle at 80% 20%, var(--teal-800) 0%, var(--teal-950) 100%);
  color: var(--paper);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.page-banner::after {
  content: "";
  position: absolute;
  right: -100px;
  top: -100px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.page-banner h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--paper);
}

.page-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 55ch;
  margin-top: 14px;
  font-size: 1.1rem;
}

.stat-band {
  background: radial-gradient(circle at 50% 30%, var(--teal-800) 0%, var(--teal-950) 100%);
  padding: 68px 0;
  position: relative;
  overflow: hidden;
}

.stat-band::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- Catalogue & CTA Band ---------- */
.cta-band {
  background: radial-gradient(circle at 20% 50%, var(--teal-800) 0%, var(--teal-950) 100%);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 64px 72px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 154, 108, 0.1);
}

.cta-band h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--paper);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 12px;
  font-size: 1.05rem;
}

.cat-download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cat-cover-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-cover {
  width: 290px;
  max-width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  background: radial-gradient(circle at 30% 30%, var(--teal-700) 0%, var(--teal-950) 100%);
  color: var(--paper);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 30px 65px -15px rgba(0, 61, 71, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  justify-self: center;
}

.cat-cover::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.15), transparent);
}

.cat-cover .top span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.cat-cover h3 {
  font-size: 2.1rem;
  color: var(--paper);
  margin-top: 12px;
  line-height: 1.15;
}

.cat-cover .bot {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
}

.contact-info .item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info .item:last-child {
  border-bottom: none;
}

.contact-info .ic {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold-dark);
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-info h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-900);
  margin-bottom: 4px;
}

.contact-info p {
  font-size: 1.05rem;
  color: var(--muted);
}

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--teal-900);
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
  transition: var(--transition);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 154, 108, 0.1);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #f1f8f5;
  border: 1px solid #d1e7dd;
  color: #0f5132;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-error {
  display: none;
  background: #fdf1f0;
  border: 1px solid #f1c3bd;
  color: #842029;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-950);
  color: rgba(255, 255, 255, 0.65);
  padding: 80px 0 40px;
  border-top: 2px solid var(--gold-dark);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.1fr;
  gap: 48px;
}

.site-footer .logo-text {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
}

.site-footer .logo-text b {
  color: var(--gold);
}

.site-footer p {
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.55);
}

.foot-col h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 20px;
}

.foot-col a,
.foot-col li {
  font-size: 0.9rem;
  display: block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.foot-col a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-size: 0.95rem;
  transition: var(--transition);
}

.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-950);
  transform: translateY(-3px);
}

.foot-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Scroll Reveal & Animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {

  .hero-grid,
  .pd,
  .split,
  .contact-grid,
  .cta-band {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-figure {
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 4/3;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features,
  .values {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 160px 160px;
  }

  .about-gallery-item--tall {
    grid-row: 1;
    grid-column: 1 / 3;
  }

  .pd-media-gallery {
    position: static;
    max-width: 700px;
    margin: 0 auto;
  }

  .pd-media {
    max-height: 700px;
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .site-header {
    top: 0;
  }

  body {
    padding-top: 88px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper-bg);
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 32px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 61, 71, 0.02);
  }

  .nav-links-mobile-only {
    display: block;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 72px 0;
  }

  .cat-grid,
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 44px 32px;
  }

  form .row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }

  /* .prod-grid card sizing lives in the 560px breakpoint below — that
     rule is broader and later in the cascade, so it's the one that
     actually applies at every phone width and is the single source
     of truth for it. */
  .section {
    padding: 48px 0;
  }
}

/* ---------- QR Code Card ---------- */
.pd-qr-card {
  margin-top: 32px;
  padding: 24px;
  background: rgba(196, 154, 108, 0.05);
  border: 1px dashed var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.qr-wrapper {
  background: #ffffff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  flex: none;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(0, 61, 71, 0.04);
}

.qr-wrapper img {
  width: 80px;
  height: 80px;
}

.qr-text h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.qr-text p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* =====================================================================
   HOME BANNER SLIDER — banners managed in xadmin (Home Screen Banners)
   ===================================================================== */
.banner-slider {
  padding: 28px 0 0;
}

.banner-track {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21 / 7;
  min-height: 180px;
  background: var(--paper-3);
  box-shadow: 0 18px 40px rgba(0, 37, 43, .12);
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}

.banner-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.banner-slide img,
.banner-slide video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 14px;
}

.banner-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--gold-light);
  cursor: pointer;
  padding: 0;
  transition: all .25s;
}

.banner-dot.active {
  background: var(--teal-700);
  width: 24px;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .banner-track {
    aspect-ratio: 16 / 9;
  }

  .banner-dot {
    width: 10px;
    height: 10px;
  }

  .banner-dot.active {
    width: 22px;
  }
}

/* Hero variant: full-width banner replacing the old hero section.
   Height is driven purely by aspect-ratio (set to the real banner
   image's own ratio via JS in main.js) so the image fills the box
   edge-to-edge with no letterbox gaps and no cropping. 2/1 is just
   the fallback before JS measures the actual image. */
.banner-slider--hero {
  padding: 0;
}

.banner-slider--hero .banner-track {
  border-radius: 0;
  aspect-ratio: 2 / 1;
  height: auto;
  min-height: 0;
  max-height: none;
  box-shadow: none;
}

@media (max-width: 640px) {
  .banner-slider--hero .banner-track {
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
    border-radius: 0;
  }
}

@media (max-width: 420px) {
  .banner-slider--hero .banner-track {
    aspect-ratio: 2 / 1;
  }
}

/* =====================================================================
   PRODUCT VARIANTS — colour swatches & size pills (data from xadmin)
   ===================================================================== */
.pd-variants {
  margin: 18px 0 6px;
}

.pd-variants:empty {
  margin: 0;
}

.pd-variants:empty+.pd-desc-block {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.pd-variants:empty+.pd-desc-block[hidden]+.features-wrap {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.variant-group {
  margin-bottom: 14px;
}

.variant-label {
  display: block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #7a8489);
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #d9dee1;
  cursor: pointer;
  padding: 0;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}

.color-swatch:hover {
  transform: scale(1.12);
}

.color-swatch.active {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(0, 98, 114, .18);
}

.size-pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid #d9dee1;
  background: var(--paper, #fff);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink, #2c2c2c);
  cursor: pointer;
  transition: all .15s;
}

.size-pill:hover {
  border-color: var(--teal-700);
}

.size-pill.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
}

/* =====================================================================
   CATALOGUE BANNER SLIDER
   ===================================================================== */
.cat-slider-section {
  background: var(--paper-bg);
}

.cat-slider {
  position: relative;
  user-select: none;
}

.cat-slider-track {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 100%);
  box-shadow: 0 32px 72px -20px rgba(0, 37, 43, .35);
}

/* Each slide */
.cat-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
  display: flex;
  align-items: center;
  padding: 56px 64px;
}

.cat-slider-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

/* Book + info side-by-side */
.cat-slider-book {
  display: flex;
  align-items: center;
  gap: 72px;
  width: 100%;
}

/* ---- Book cover ---- */
.cat-book-cover {
  flex: 0 0 200px;
  width: 200px;
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .12) 0%, transparent 60%),
    linear-gradient(160deg, var(--teal-700) 0%, var(--teal-950) 100%);
  box-shadow:
    6px 0 0 0 rgba(0, 0, 0, .25),
    0 28px 56px -10px rgba(0, 0, 0, .5),
    inset -4px 0 8px rgba(0, 0, 0, .2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 24px;
  color: var(--paper);
  transform: perspective(600px) rotateY(6deg);
  transition: transform .4s var(--ease);
}

.cat-slider-slide.active .cat-book-cover:hover {
  transform: perspective(600px) rotateY(0deg) scale(1.03);
}

.cat-book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04));
  border-radius: 10px 0 0 10px;
}

.cat-book-top span {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}

.cat-book-top h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--paper);
  line-height: 1.2;
  margin: 0;
}

.cat-book-bot {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 10px;
}

/* ---- Info panel ---- */
.cat-slider-info {
  flex: 1;
  color: var(--paper);
}

.cat-slider-info .eyebrow {
  color: var(--gold-light);
  margin-bottom: 10px;
  display: block;
}

.cat-slider-info h2 {
  color: var(--paper);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin: 0 0 14px;
}

.cat-slider-info p {
  color: rgba(255, 255, 255, .7);
  max-width: 500px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.cat-slider-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Override btn colors to work on dark bg */
.cat-slider-slide .btn--outline {
  border-color: rgba(255, 255, 255, .35);
  color: var(--paper);
}

.cat-slider-slide .btn--outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--paper);
  box-shadow: none;
}

/* ---- Arrows ---- */
.cat-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all .25s;
  backdrop-filter: blur(6px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-slider-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--teal-950);
}

.cat-slider-prev {
  left: 20px;
}

.cat-slider-next {
  right: 20px;
}

/* ---- Dots ---- */
.cat-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}

@media (max-width: 900px) {
  .cat-slider-slide {
    padding: 40px 48px;
  }

  .cat-slider-book {
    gap: 40px;
  }

  .cat-book-cover {
    flex: 0 0 160px;
    width: 160px;
  }
}

@media (max-width: 700px) {
  .cat-slider-track {
    min-height: auto;
  }

  .cat-slider-slide {
    padding: 32px 56px;
  }

  .cat-slider-book {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }

  .cat-book-cover {
    flex: 0 0 140px;
    width: 140px;
    transform: none !important;
  }

  .cat-slider-info p {
    max-width: 100%;
  }

  .cat-slider-btns {
    justify-content: center;
  }

  .cat-slider-prev {
    left: 10px;
  }

  .cat-slider-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .cat-slider-slide {
    padding: 24px 48px 32px;
  }

  .cat-book-cover {
    flex: 0 0 110px;
    width: 110px;
  }

  .cat-slider-arrow {
    display: none;
  }

  .cat-slider-info h2 {
    font-size: 1.35rem;
  }
}

/* =====================================================================
   CATEGORY MINI BOOKLET COVERS
   ===================================================================== */
.cat-cards-grid {
  display: grid;
  /* auto-fit (not auto-fill) collapses empty tracks to 0 width instead of
     stretching them to fill the row, and a fixed track size (not 1fr)
     stops the lone remaining track from stretching to fill the leftover
     space either — together that's what lets justify-content actually
     center a single card (or a partial last row) instead of pinning it
     to the left. */
  grid-template-columns: repeat(auto-fit, 260px);
  gap: 32px;
  margin-top: 40px;
  justify-items: center;
  justify-content: center;
}

.cat-cards-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* wrapper: cover + buttons stacked */
.cat-mini-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 260px;
}

/* the booklet itself */
.cat-mini-cover {
  width: 260px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 30% 30%, var(--teal-700) 0%, var(--teal-950) 100%);
  color: var(--paper);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 48px -12px rgba(0, 61, 71, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

/* spine highlight */
.cat-mini-cover::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.18), transparent);
}

.cat-mini-item:hover .cat-mini-cover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 30px 60px -15px rgba(0, 61, 71, 0.45);
}

.cat-mini-top span {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 8px;
}

.cat-mini-top h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--paper);
  line-height: 1.2;
  margin: 0;
}

.cat-mini-bot {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  text-transform: uppercase;
}

.cat-mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .cat-cards-grid {
    grid-template-columns: repeat(auto-fit, 190px);
    gap: 20px;
  }

  .cat-mini-item {
    width: 100%;
  }

  .cat-mini-cover {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cat-cards-grid {
    grid-template-columns: repeat(auto-fit, 145px);
    gap: 16px;
  }
}


/* ---------- Sticky Gallery Layout & Thumbnails ---------- */
.pd-media-gallery {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* explicit width is required: with only max-width + auto margins the
     gallery is sized by its content, and an embedded video iframe (whose
     children are all absolutely positioned) has zero intrinsic width —
     collapsing the whole gallery to .pd-media's 260px min square */
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* ---------- Scrollable Thumbnails Carousel ---------- */
.pd-thumbs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.pd-thumbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--teal-950);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  padding: 0;
}

.pd-thumbs-arrow:hover {
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pd-thumbs-arrow svg {
  fill: currentColor;
}

.pd-thumbs-arrow--prev {
  left: -14px;
}

.pd-thumbs-arrow--next {
  right: -14px;
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 6px;
  scrollbar-width: none;
  /* Hide standard Firefox scrollbar */
  -ms-overflow-style: none;
  /* Hide IE scrollbar */
  justify-content: safe center;
  width: 100%;
}

.pd-thumbs::-webkit-scrollbar {
  display: none;
  /* Hide Chrome/Safari scrollbar */
}

.pd-thumb {
  width: 80px;
  height: 80px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  transition: var(--transition);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.pd-thumb:hover,
.pd-thumb.active {
  border-color: var(--teal-700);
  box-shadow: var(--glow-gold);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--paper-bg);
}

/* ---------- Amazon-like Lightbox Popup Modal ---------- */
.pd-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 37, 43, 0.92);
  /* deep obsidian dark mask */
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.pd-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.pd-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pd-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  background: var(--paper);
  padding: 12px;
}

.pd-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  font-size: 2.5rem;
  color: var(--paper);
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.pd-lightbox-close:hover {
  color: var(--gold-dark);
}

.pd-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--paper);
  font-size: 1.6rem;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.pd-lightbox-nav:hover {
  background: var(--teal-700);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.pd-lightbox-nav--prev {
  left: -70px;
}

.pd-lightbox-nav--next {
  right: -70px;
}

@media (max-width: 768px) {
  .pd-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .pd-lightbox-nav--prev {
    left: -15px;
  }

  .pd-lightbox-nav--next {
    right: -15px;
  }
}

/* ---------- Product Detail Video Styling ---------- */
.pd-thumb.pd-thumb-video {
  position: relative;
  border-color: var(--teal-500);
}

.pd-thumb.pd-thumb-video::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  background: rgba(14, 34, 37, 0.85);
  /* var(--teal-950) with opacity */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d9c5b2'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  /* filled with var(--gold) */
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 11px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.pd-thumb.pd-thumb-video:hover::after,
.pd-thumb.pd-thumb-video.active::after {
  background-color: var(--teal-700);
  border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-position: 10px center;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: var(--glow-gold);
}

.pd-media-video-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.pd-media-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd-media-video-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

.pd-media-video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(23, 55, 59, 0.85);
  /* deep obsidian teal */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  color: var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  pointer-events: none;
}

.pd-media-video-container:hover .pd-media-video-play-overlay {
  background: var(--teal-600);
  border-color: #fff;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.pd-media-video-play-overlay svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  margin-left: 4px;
}

/* Lightbox video container */
.pd-lightbox-video-container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}

.pd-lightbox-video-container video {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 991px) {
  .pd-lightbox-video-container {
    max-width: 90%;
  }
}

/* ---------- Header Collections Megamenu ---------- */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger .arrow {
  font-size: 0.65rem;
  transition: transform 0.25s ease;
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger .arrow {
  transform: rotate(180deg);
}

.nav-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 720px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -15px rgba(0, 37, 43, 0.16);
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 1000;
  pointer-events: none;
}

.nav-megamenu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100px;
  /* bridge the hover gap */
  z-index: -1;
}

.nav-dropdown-wrapper:hover .nav-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
  pointer-events: auto;
}

/* Simple Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 30px rgba(0, 37, 43, 0.1);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 1000;
  pointer-events: none;
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  /* bridge the hover gap */
  z-index: -1;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-900);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  text-align: left;
}

.nav-dropdown-menu a:hover {
  background: var(--paper-bg);
  color: var(--gold-dark);
}

.nav-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.nav-megamenu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  background: transparent;
}

.nav-megamenu-item:hover {
  background: var(--paper-bg);
  transform: translateY(-2px);
}

.nav-megamenu-item h4 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal-900);
  margin: 0;
  text-align: left;
}

@media (max-width: 1024px) {
  .nav-megamenu {
    width: 600px;
  }
}

@media (max-width: 768px) {
  .nav-dropdown-wrapper {
    width: 100%;
    display: block;
  }

  .nav-dropdown-trigger {
    width: 100%;
    padding: 16px 32px;
    border-bottom: 1px solid rgba(0, 61, 71, 0.02);
    justify-content: space-between;
  }

  /* !important below because .nav-dropdown-wrapper:hover .nav-megamenu
     (further up the file) is more specific than a plain .nav-megamenu
     selector and would otherwise win even inside this media query —
     on mobile, a tap can leave :hover "stuck" (notably iOS Safari),
     which was shoving the menu half its own width off-screen. */
  .nav-megamenu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid rgba(0, 61, 71, 0.02);
    padding: 10px 24px;
    opacity: 1;
    visibility: visible;
    display: none;
    /* toggled by .nav-dropdown-wrapper.open, see main.js */
    pointer-events: auto;
    background: rgba(0, 61, 71, 0.01);
  }

  .nav-dropdown-wrapper:hover .nav-megamenu {
    display: block;
  }

  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 61, 71, 0.02) !important;
    padding: 10px 24px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: none;
    /* toggled by .nav-dropdown-wrapper.open, see main.js */
    pointer-events: auto !important;
    background: rgba(0, 61, 71, 0.01) !important;
  }

  .nav-dropdown-wrapper:hover .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 12px 16px !important;
    font-size: 0.76rem !important;
  }

  .nav-megamenu-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-megamenu-item {
    padding: 8px 12px;
  }

  .nav-megamenu-icon {
    width: 44px;
    height: 44px;
  }

  .nav-megamenu-icon svg {
    width: 22px;
    height: 22px;
  }
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--teal-900);
  font-weight: 600;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.pagination-btn:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
  background: var(--paper-bg);
}

.pagination-btn.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.pagination-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: var(--muted);
  font-weight: 600;
  padding: 0 4px;
}

/* ---------- Product Details Accordions ---------- */
.pd-accordion {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-header {
  width: 100%;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-900);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.accordion-header:hover {
  color: var(--teal-700);
}

.accordion-icon {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  transition: var(--transition);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  /* fallback height; animated dynamically in js */
}

.accordion-content-inner {
  padding-bottom: 22px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-light);
}

/* Accordion spec details list */
.accordion-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-details-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.accordion-details-list li strong {
  color: var(--teal-900);
}

.accordion-details-list li span {
  color: var(--ink-light);
  font-weight: 500;
}

/* ---------- Home: Design Categories Row ---------- */
.design-cats-section {
  text-align: center;
  padding: 60px 0;
  background: var(--paper);
}

.design-cats-title {
  font-family: var(--sans);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal-900);
  margin-bottom: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.design-cats-row {
  /* Flexbox, not grid — grid's justify-content centers the whole shared
     column structure across every row, so a lone item wrapping onto its
     own row still lands in the leftmost shared column. Flex-wrap centers
     each wrapped line independently, which is what actually centers a
     lone leftover card (e.g. a 5th item on its own row). */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.design-cats-row .design-cat-item {
  flex: 0 0 240px;
}

/* Full-bleed photo card, name + description overlaid directly on the
   image with a dark gradient scrim — no separate text panel/button. */
.design-cat-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.design-cat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.design-cat-item img,
.design-cat-item svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper-2);
  transition: transform 0.4s ease;
}

.design-cat-item:hover img,
.design-cat-item:hover svg {
  transform: scale(1.06);
}

.design-cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 20, 24, 0.35) 65%, rgba(0, 20, 24, 0.82) 100%);
}

.design-cat-name {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 6px;
}

.design-cat-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.design-cat-explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.design-cat-explore .ar {
  transition: transform 0.25s ease;
}

.design-cat-item:hover .design-cat-explore .ar {
  transform: translateX(4px);
}

/* ---------- Catalog Search Bar ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.search-box {
  position: relative;
  width: 320px;
  max-width: 100%;
}

.search-box input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: 99px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--teal-900);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.08);
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  pointer-events: none;
}

@media (max-width: 768px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }
}

/* ---------- Product Details Sections (Always Open) ---------- */
.pd-specs-container {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.pd-specs-section {
  margin-bottom: 30px;
}

.pd-specs-title {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-900);
  margin-bottom: 12px;
  border-left: 3px solid var(--gold-dark);
  padding-left: 10px;
}

.pd-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-details-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.pd-details-list li strong {
  color: var(--teal-900);
}

.pd-details-list li span {
  color: var(--ink-light);
  font-weight: 500;
}

/* Description block: divider line + label, like the SIZE section above it */
.pd-desc-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 18px 0 24px;
}

.pd-desc-label {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 10px;
}

.pd-short-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-light);
  /* Max 3 lines, then "…" — click to expand the full text */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.pd-short-desc.expanded {
  display: block;
  overflow: visible;
  cursor: auto;
}

.pd-desc-toggle {
  background: none;
  border: none;
  padding: 8px 0 0;
  color: var(--teal-600);
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.pd-desc-toggle:hover {
  text-decoration: underline;
}

/* Rich text from the admin editor (bold / italic / lists) renders as entered */
.pd-short-desc p {
  margin: 0;
}

.pd-short-desc ol,
.pd-short-desc ul {
  margin: 0;
  padding-left: 20px;
}

.pd-desc-block+.features-wrap {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
}

/* ---------- Front Side Mobile Hardening ---------- */
html,
body {
  width: 100%;
  max-width: 100%;
}

.container {
  padding-inline: clamp(16px, 4vw, 28px);
}

.nav,
.toolbar,
.pd,
.split,
.contact-grid,
.cta-band,
.foot-grid,
.cat-slider-book,
.prod-card,
.cat-card,
.value,
.feature {
  min-width: 0;
}

.btn {
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.prod-card h3,
.cat-card h3,
.value h3,
.feature h4,
.pd h1,
.page-banner h1,
.cat-slider-info h2,
.cat-book-top h3 {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .nav-links {
    gap: 24px;
  }

  .nav-links a {
    letter-spacing: 0.05em;
  }

  .nav-cta .btn {
    padding-inline: 22px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 72px;
  }

  .site-header {
    box-shadow: 0 10px 28px rgba(0, 37, 43, 0.08);
  }

  .nav {
    height: 72px;
  }

  .brand img {
    height: 38px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
  }

  .nav-toggle span {
    margin: 2px auto;
  }

  .nav-links {
    top: 72px;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    align-items: stretch;
    background: var(--paper);
    padding: 6px 0 14px;
    z-index: 99;
  }

  .nav-links a,
  .nav-dropdown-trigger {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 13px 24px;
    font-size: 0.76rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--teal-700);
    background: rgba(0, 98, 114, 0.05);
  }

  /* Collections stays collapsed by default when the mobile menu opens —
     only expands when its own trigger is tapped (see main.js), not just
     because the whole nav is open. */
  .nav-dropdown-wrapper.open .nav-megamenu,
  .nav-dropdown-wrapper.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-wrapper.open .nav-dropdown-trigger .arrow {
    transform: rotate(180deg);
  }

  .nav-megamenu {
    max-height: 45vh;
    overflow-y: auto;
  }

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 48px 0;
  }

  .page-banner {
    padding: 52px 0 46px;
  }

  .page-banner h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .page-banner p {
    font-size: 1rem;
  }

  .strip .container {
    gap: 10px 20px;
    padding: 18px 16px;
  }

  .strip span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .strip span::before {
    margin-right: 8px;
  }

  .toolbar {
    gap: 18px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .chip {
    flex: 0 0 auto;
    padding: 9px 16px;
    font-size: 0.72rem;
  }

  .prod-grid {
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  }

  .prod-card {
    border-radius: 14px;
  }

  .prod-card .media img {
    object-fit: contain;
    padding: 8px;
  }

  .prod-card .tag {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }

  .cat-card .body,
  .value,
  .feature {
    padding: 22px;
  }

  .pd {
    gap: 32px;
  }

  /* position must be re-stated here (not just at the 1024px breakpoint):
     the unconditional .pd-media-gallery rule further up the file sets
     position:sticky with equal specificity and wins by source order at
     every width unless overridden again down here — that's what was
     pinning the image in place and letting the title scroll up behind
     it on mobile. */
  .pd-media-gallery {
    position: static;
    max-width: 100%;
    width: 100%;
  }

  .pd-media {
    max-height: none;
    min-height: 0;
    border-radius: 16px;
  }

  .pd-thumbs {
    justify-content: flex-start;
  }

  .pd h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .pd .price {
    font-size: 1.8rem;
  }

  .features {
    gap: 14px;
    margin: 26px 0;
  }

  .pd-actions,
  .hero-actions,
  .cat-slider-btns,
  .cat-cover-actions {
    width: 100%;
  }

  .pd-actions .btn,
  .hero-actions .btn,
  .cat-cover-actions .btn {
    width: 100%;
  }

  /* Catalogue card buttons (Download / View) stay side by side on mobile
     instead of stacking full-width, matching the reference card layout. */
  .cat-slider-btns .btn {
    flex: 1 1 0;
    text-align: center;
  }

  .cta-band {
    border-radius: 16px;
    padding: 34px 22px;
    gap: 28px;
  }

  .cta-band>div:last-child {
    justify-content: stretch !important;
  }

  .cta-band .btn {
    width: 100%;
  }

  [data-contact-form] .btn {
    width: 100%;
  }

  .contact-info .item {
    gap: 14px;
    padding: 18px 0;
  }

  .contact-info .ic {
    width: 42px;
    height: 42px;
  }

  .contact-info p {
    font-size: 0.96rem;
    overflow-wrap: anywhere;
  }

  .site-footer {
    padding: 54px 0 30px;
  }

  .foot-grid {
    gap: 34px;
  }

  .site-footer p {
    max-width: none;
  }

  .foot-bottom {
    margin-top: 42px;
    flex-direction: column;
  }

  .design-cats-section {
    padding: 44px 0;
  }

  .design-cats-title {
    font-size: 1.35rem;
    margin-bottom: 30px;
  }

  .design-cats-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 12px;
    padding: 0;
  }

  .design-cats-row .design-cat-item {
    flex: 0 0 160px;
  }

  .design-cat-item {
    width: 100%;
  }

  .design-cat-overlay {
    padding: 14px 12px;
  }

  .design-cat-name {
    font-size: 0.9rem;
  }

  .design-cat-desc {
    font-size: 0.72rem;
  }

  .cat-slider-track {
    border-radius: 16px;
  }

  .cat-slider-slide {
    padding: 28px 22px 32px;
  }

  .cat-slider-arrow {
    display: none;
  }

  .cat-slider-info p {
    font-size: 0.95rem;
  }

  .cat-slider-dots {
    padding-top: 14px;
  }

  .cat-cards-grid {
    grid-template-columns: repeat(auto-fit, 145px);
  }

  .pagination {
    flex-wrap: wrap;
    margin-top: 34px;
  }

  .pagination-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 560px) {
  .container {
    padding-inline: 16px;
  }

  .sec-head {
    margin-bottom: 34px;
  }

  .sec-head h2 {
    font-size: clamp(1.9rem, 10vw, 2.45rem);
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  /* One card per row below 560px — this is the rule that actually wins
     for phone widths (later in the cascade than the 480px breakpoint
     above), so it's the one that must be 1-column, not 2. */
  .prod-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .prod-card .info {
    padding: 16px 18px 20px;
  }

  .prod-card h3 {
    font-size: 1.15rem;
    line-height: 1.25;
  }

  .prod-card .price {
    font-size: 1.2rem;
  }

  .prod-card .foot {
    padding-top: 14px;
  }

  /* Related Products on the product-detail page: a compact horizontal
     list-card (photo left, details right) instead of the full-width
     image-on-top card — keeps this section short instead of adding a
     long vertical scroll at the bottom of every product page. */
  [data-pd-related] .prod-card {
    flex-direction: row;
    align-items: stretch;
  }

  [data-pd-related] .prod-card .media {
    flex: 0 0 34%;
    aspect-ratio: 1/1;
  }

  [data-pd-related] .prod-card .tag {
    top: 8px;
    left: 8px;
    font-size: 0.56rem;
    padding: 4px 8px;
  }

  [data-pd-related] .prod-card .info {
    padding: 14px 16px;
    gap: 4px;
    justify-content: center;
  }

  [data-pd-related] .prod-card h3 {
    font-size: 1rem;
    line-height: 1.3;
  }

  [data-pd-related] .prod-card .code {
    display: inline-block;
    background: var(--paper-bg);
    border-radius: 6px;
    padding: 3px 8px;
    width: fit-content;
  }

  [data-pd-related] .prod-card .foot {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
  }

  [data-pd-related] .prod-card .price {
    font-size: 1rem;
  }

  /* Homepage Featured Products: a swipeable horizontal row instead of
     stacking every card full-width down the page — keeps this section
     compact and lets people browse it with a swipe like a carousel. */
  [data-featured] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 6px;
    margin: 0 -16px;
    padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  [data-featured]::-webkit-scrollbar {
    display: none;
  }

  [data-featured] .prod-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .search-box input {
    min-height: 46px;
  }

  .page-banner .eyebrow {
    letter-spacing: 0.16em;
  }

  .form-success,
  .form-error,
  .field input,
  .field select,
  .field textarea {
    font-size: 0.95rem;
  }

  .cat-book-cover {
    flex-basis: 120px;
    width: 120px;
    padding: 20px 16px;
  }

  .cat-book-top h3 {
    font-size: 1.05rem;
  }

  .cat-slider-info h2 {
    font-size: 1.45rem;
  }

  .pd-lightbox-content {
    max-width: calc(100vw - 28px);
  }

  .pd-lightbox-close {
    top: -38px;
    right: 2px;
    font-size: 2.1rem;
  }
}

@media (max-width: 380px) {
  /* .prod-grid is already 1-column from the 480px breakpoint above; the
     design-category icons and catalogue mini-covers stay in their own
     multi-column grids (they're small enough not to need the full width
     that forcing them to 1fr here used to do — that just made the icon
     row unnecessarily long and sparse). */

  .btn {
    width: 100%;
    padding-inline: 18px;
  }

  .brand img {
    height: 34px;
  }
}

/* =====================================================================
   CATALOGUE VIEWER (catalogue-view.php) — standalone page, no site
   header/footer, shows two PDF pages side by side like an open book.
   Pages render on demand (PDF.js) so opening a large catalogue is
   instant instead of waiting for every page up front.
   ===================================================================== */
.flip-page-body {
  margin: 0;
  padding-top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--teal-950);
  font-family: var(--sans);
  overflow: hidden;
}

.pdf-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  overflow: hidden;
}

.pdf-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #525659;
}

.flip-error {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--gold-soft);
  font-family: var(--sans);
}

@media (max-width: 640px) {
  .flip-title {
    display: none;
  }

  .flip-action .label {
    display: none;
  }
}



/* ==================== PREMIUM HOMEPAGE STYLES ==================== */
:root {
  --brand: #2B676E;
  --brand-dark: #12373B;
  --brand-deep: #08292D;
  --brand-soft: #E8F1F1;
  --sand: #F5F0E8;
  --sand-2: #E9DDD0;
  --gold: #C9A875;
  --text: #173236;
  --muted: #6F7E80;
  --white: #FFFFFF;
  --shadow: 0 24px 70px rgba(7, 34, 38, .12);
  --radius: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Full-width layout — every section stretches edge-to-edge with a
       small side gutter (was boxed at 1180px). */
.container {
  width: calc(100% - 48px);
  max-width: none;
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(60, 120, 127, .12);
}

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 145px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, #ffffff 0 7%, transparent 8%),
    linear-gradient(135deg, var(--brand), #72A8AD);
  transform: rotate(-8deg);
  position: relative;
  box-shadow: 0 12px 28px rgba(60, 120, 127, .22);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
  opacity: .92;
  border-radius: 999px;
}

.brand-mark::before {
  width: 6px;
  height: 32px;
  left: 14px;
  top: 1px;
  transform: rotate(42deg);
}

.brand-mark::after {
  width: 6px;
  height: 31px;
  left: 14px;
  top: 2px;
  transform: rotate(-42deg);
}

.brand-text strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  line-height: .82;
  letter-spacing: .03em;
  color: var(--brand);
  font-weight: 700;
}

.brand-text span {
  display: block;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-dark);
}

.menu a {
  position: relative;
  padding: 10px 0;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: .35s ease;
}

.menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(60, 120, 127, .16);
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Download Catalogue / outline buttons: filled with the brand teal
       (user request) — also re-asserts the border the generic .btn rule
       above was wiping out with border-color: transparent. */
.btn.btn--outline {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.btn--outline:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 16px 35px rgba(54, 122, 130, .25);
}

.btn-primary {
  background: var(--brand-dark);
  color: white;
  box-shadow: 0 16px 35px rgba(43, 103, 110, .18);
}

.btn-primary:hover {
  background: var(--brand);
}

.btn-light {
  background: #fff;
  color: var(--brand-dark);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, .38);
}

.btn-outline-dark {
  background: transparent;
  color: var(--brand-dark);
  border-color: rgba(60, 120, 127, .25);
}

.hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: stretch;
  background: var(--brand-deep);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(43, 103, 110, .94) 0%, rgba(43, 103, 110, .78) 31%, rgba(43, 103, 110, .18) 62%, rgba(43, 103, 110, .10) 100%),
    url("../img/hero_premium_bg.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 170px;
  background: linear-gradient(180deg, transparent, rgba(43, 103, 110, .52));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 780px;
}

.hero-box {
  width: min(620px, 100%);
  padding-top: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -.035em;
  color: white;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero p {
  max-width: 500px;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 38px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.floating-card {
  position: absolute;
  right: max(40px, calc((100vw - 1180px)/2));
  bottom: 76px;
  z-index: 3;
  width: 320px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 22px;
  color: white;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
}

.floating-card small {
  display: block;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.floating-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  line-height: 1;
}

.ticker {
  background: var(--brand-deep);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 16px 0;
  animation: scroll 28s linear infinite;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
}

.ticker-track span::after {
  content: "✦";
  color: var(--gold);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px;
}

.section-head .mini {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 14px;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 5vw, 62px);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--brand-dark);
  font-weight: 700;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-top: 18px;
}

.categories {
  background:
    radial-gradient(circle at top left, rgba(60, 120, 127, .10), transparent 34%),
    linear-gradient(180deg, #fff 0%, #FAF8F4 100%);
}

.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.cat-card {
  position: relative;
  min-height: 390px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ddd;
  isolation: isolate;
  transform: translateY(0);
  transition: transform .4s ease, box-shadow .4s ease;
  flex: 0 1 calc(25% - 17px);
  width: 100%;
  min-width: 260px;
}

.cat-card:hover {
  transform: translateY(-8px);
}

.cat-card img {
  height: 100%;
  min-height: 390px;
  transition: transform .7s ease;
}

.cat-card:hover img {
  transform: scale(1.06);
}

/* No overlay/fade — product images show exactly as uploaded; the
       name/link below use dark text instead of white-on-gradient. */

.cat-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: var(--brand-dark);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .94);
  color: var(--brand);
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.cat-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.cat-body p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 16px;
}

.link {
  color: var(--brand);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 900;
}

/* Home category cards use lifestyle photos — white text with a soft
       shadow reads clearly there, while plain tiles keep dark text. */
.cat-card--photo .cat-body,
.cat-card--photo .cat-body h3,
.cat-card--photo .link {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}

.editorial {
  background: var(--sand);
  overflow: hidden;
}

.editorial::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(60, 120, 127, .10);
  right: -220px;
  top: 70px;
}

.editorial-wrap {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 42px;
  align-items: center;
}

.editorial-copy {
  padding-right: 18px;
}

.editorial-copy .mini {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 18px;
}

.editorial-copy p {
  color: var(--muted);
  line-height: 1.9;
  margin: 24px 0 34px;
  font-size: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(60, 120, 127, .12);
  border-radius: 20px;
  padding: 22px;
}

.stat strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  color: var(--brand);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.mosaic img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.mosaic .tall {
  height: 520px;
}

.mosaic-stack {
  display: grid;
  gap: 18px;
}

.mosaic-stack img {
  height: 251px;
}

.range {
  background: #fff;
}

.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.range-card {
  padding: 34px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .78)),
    var(--sand);
  border: 1px solid rgba(60, 120, 127, .12);
  box-shadow: 0 18px 60px rgba(43, 103, 110, .08);
  min-height: 275px;
  transition: .35s ease;
  position: relative;
  overflow: hidden;
}

.range-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 120, 127, .34);
}

.range-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  right: -48px;
  top: -58px;
  background: rgba(60, 120, 127, .11);
}

.range-card .num {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 38px;
  line-height: 1;
}

.range-card h3 {
  margin-top: 34px;
  font-family: "Cormorant Garamond", serif;
  font-size: 32px;
  color: var(--brand-dark);
  line-height: 1;
}

.range-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin-top: 14px;
}

.quality {
  background:
    linear-gradient(90deg, rgba(43, 103, 110, .95), rgba(43, 103, 110, .78)),
    url("../img/quality_premium_bg.png");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 105px 0;
}

.quality-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 58px;
  align-items: center;
}

.quality h2 {
  color: white;
}

.quality p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.9;
  margin-top: 22px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
  aspect-ratio: 1 / 1 !important;
  /* Forces a perfect square */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.feature span {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .16em;
  font-weight: 900;
  margin-bottom: 8px !important;
}

.feature h3 {
  margin-top: 0px !important;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1.2;
  color: white;
  font-weight: 700;
  margin-bottom: 10px !important;
}

.feature p {
  margin-top: 0px !important;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 210px;
}

.sustain {
  background: linear-gradient(180deg, #fff 0%, #F7F4EF 100%);
}

.sustain-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
}

.sustain-img {
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.sustain-img img {
  height: 470px;
}

.sustain-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(43, 103, 110, .28));
}

.bullets {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 14px;
}

.bullet i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-style: normal;
  font-size: 13px;
}

.cta {
  padding: 70px 0 110px;
  background: #fff;
}

.cta-box {
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(201, 168, 117, .28), transparent 30%),
    linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  padding: clamp(34px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 30px 90px rgba(43, 103, 110, .24);
}

.cta-box h2 {
  color: white;
  font-size: clamp(38px, 4vw, 58px);
}

.cta-box p {
  color: rgba(255, 255, 255, .75);
  margin-top: 16px;
  line-height: 1.8;
  max-width: 650px;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

footer {
  background: var(--brand);
  color: rgba(255, 255, 255, .85);
  padding: 70px 0 28px;
}

footer p {
  color: rgba(255, 255, 255, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

footer .brand-text strong {
  color: white;
}

.footer-about p {
  margin-top: 20px;
  max-width: 300px;
  line-height: 1.8;
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .15);
  color: white;
  font-weight: 800;
}

footer h4 {
  color: #ffffff;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, .52);
}

@media (max-width: 980px) {
  .menu {
    display: none;
  }

  .hero,
  .hero-content {
    min-height: 680px;
  }

  .floating-card {
    display: none;
  }

  .range-grid,
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-card {
    flex: 0 1 calc(50% - 11px);
  }

  .editorial-wrap,
  .quality-inner,
  .sustain-wrap,
  .cta-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn {
    display: none;
  }

  .footer-contact .footer-links,
  .footer-contact .footer-links a,
  .footer-contact .footer-links p {
    font-size: 11px;
    line-height: 1.5;
  }

  .footer-contact .footer-links p {
    max-width: none;
    margin-bottom: 4px;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .range-grid,
  .feature-list,
  .stats {
    grid-template-columns: 1fr;
  }

  /* Category cards become a swipeable side-by-side slider on mobile */
  .cat-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .cat-grid::-webkit-scrollbar {
    display: none;
  }

  .cat-card {
    flex: 0 0 78%;
    min-width: 0;
    scroll-snap-align: center;
  }

  /* Keep the desktop collage layout on mobile — big image beside the
         two stacked ones, just scaled down (was stacked in one column). */
  .mosaic {
    gap: 10px;
  }

  .mosaic .tall {
    height: 320px;
  }

  .mosaic-stack {
    gap: 10px;
  }

  .mosaic-stack img {
    height: 155px;
  }

  .sustain-img img {
    height: 330px;
  }

  section {
    padding: 78px 0;
  }

  .copyright {
    flex-direction: column;
  }
}


/* Footer links spacing helper */
.footer-links a,
[data-footer-cats] a {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
[data-footer-cats] a:hover {
  color: #ffffff;
}

/* ---------- Mobile: minimal side gutters (header + all sections) ---------- */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 20px);
    max-width: none;
    padding-inline: 0;
  }
}

/* ---------- Category Slider Custom Styles ---------- */
.cat-slider-container {
  position: relative;
  width: 100%;
}

.cat-slider-container .cat-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 15px 0 !important;
  gap: 22px !important;
}

.cat-slider-container .cat-card {
  flex: 0 0 calc((100% - 66px) / 4) !important;
  min-width: 260px !important;
  scroll-snap-align: start !important;
}

@media (max-width: 1200px) {
  .cat-slider-container .cat-card {
    flex: 0 0 calc((100% - 44px) / 3) !important;
  }
}

@media (max-width: 992px) {
  .cat-slider-container .cat-card {
    flex: 0 0 calc((100% - 22px) / 2) !important;
  }
}

@media (max-width: 576px) {
  .cat-slider-container .cat-card {
    flex: 0 0 85% !important;
  }
}

/* Footer links spacing helper */
.footer-links a,
[data-footer-cats] a {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover,
[data-footer-cats] a:hover {
  color: #ffffff;
}

/* ---------- Mobile: minimal side gutters (header + all sections) ---------- */
@media (max-width: 768px) {
  .container {
    width: calc(100% - 20px);
    max-width: none;
    padding-inline: 0;
  }
}

/* ---------- Category Slider Custom Styles ---------- */
.cat-slider-container {
  position: relative;
  width: 100%;
}

.cat-slider-container .cat-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 15px 0 !important;
  gap: 22px !important;
}

.cat-slider-container .cat-card {
  flex: 0 0 calc((100% - 66px) / 4) !important;
  min-width: 260px !important;
  scroll-snap-align: start !important;
}

@media (max-width: 1200px) {
  .cat-slider-container .cat-card {
    flex: 0 0 calc((100% - 44px) / 3) !important;
  }
}

@media (max-width: 992px) {
  .cat-slider-container .cat-card {
    flex: 0 0 calc((100% - 22px) / 2) !important;
  }
}

@media (max-width: 576px) {
  .cat-slider-container .cat-card {
    flex: 0 0 85% !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--paper-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--teal-700);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

.cat-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line, #e6e8ea);
  color: var(--teal-900, #17373b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow, 0 10px 30px -15px rgba(0, 61, 71, 0.08));
  z-index: 10;
  transition: var(--transition, all 0.4s cubic-bezier(0.25, 1, 0.5, 1));
  cursor: pointer;
}

.cat-arrow:hover {
  background: var(--teal-600, #2b676e);
  color: #ffffff;
  border-color: var(--teal-600, #2b676e);
  box-shadow: var(--shadow-hover, 0 30px 60px -25px rgba(0, 61, 71, 0.2));
}

.cat-arrow--left {
  left: -23px;
}

.cat-arrow--right {
  right: -23px;
}

@media (max-width: 768px) {
  .cat-arrow {
    width: 38px;
    height: 38px;
  }

  .cat-arrow--left {
    left: -8px;
  }

  .cat-arrow--right {
    right: -8px;
  }
}

/* ── Features heading ────────────────────────────────── */
.features-heading {
  font-family: var(--sans) !important;
  font-size: 1.1rem !important;
  /* bold big like reference */
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  color: #111 !important;
  margin: 0 0 20px !important;
}

/* ── Custom Product Feature Icon Overrides ───────────── */
.features {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px 20px !important;
  /* tight, like reference */
  margin: 0 !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
}

.feature {
  width: 100px !important;
  /* fixed compact card width */
  flex: 0 0 100px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  align-self: flex-start !important;
  transition: transform 0.2s ease-in-out !important;
}

.feature:hover {
  transform: translateY(-3px) !important;
}

.feature .ic {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  border: 1px solid #d8dde3 !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  transition: border-color 0.2s ease !important;
}

.feature:hover .ic {
  border-color: var(--teal-600, #1a7f6e) !important;
}

.feature .ic img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  mix-blend-mode: multiply !important;
  padding: 8px !important;
}

.feature h4 {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 0.65rem !important;
  line-height: 1.3 !important;
  text-transform: uppercase !important;
  color: #2b303a !important;
  margin: 0 !important;
  word-break: break-word !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  width: 100% !important;
}

.feature p {
  display: none !important;
}

/* ── Mobile: 4 per row ───────────────────────────────── */
@media (max-width: 768px) {
  .features-heading {
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
  }

  [data-product-detail] .features {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px 8px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: start !important;
    align-content: start !important;
    justify-content: stretch !important;
    margin: 0 !important;
  }

  [data-product-detail] .feature {
    width: auto !important;
    flex: none !important;
    min-height: 0 !important;
  }

  [data-product-detail] .feature .ic {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 6px !important;
  }

  [data-product-detail] .feature .ic img {
    padding: 5px !important;
  }

  [data-product-detail] .feature h4 {
    font-size: 0.55rem !important;
  }
}


/* ---------- Main Media Navigation Arrows ---------- */
.pd-media {
  position: relative !important;
}

.pd-media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--teal-950);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
  padding: 0;
  opacity: 0.7;
}

.pd-media-arrow:hover {
  background: var(--teal-700);
  color: #fff;
  border-color: var(--teal-700);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.pd-media-arrow svg {
  fill: currentColor;
}

.pd-media-arrow--prev {
  left: 16px;
}

.pd-media-arrow--next {
  right: 16px;
}

/* On mobile, make them slightly smaller */
@media (max-width: 768px) {
  .pd-media-arrow {
    width: 36px;
    height: 36px;
  }

  .pd-media-arrow--prev {
    left: 8px;
  }

  .pd-media-arrow--next {
    right: 8px;
  }
}


/* ---------- Footer Font Size Adjustments ---------- */
.footer-links a,
[data-footer-cats] a,
.footer-contact,
.footer-contact a,
.footer-contact p,
.footer-contact div,
.footer-contact span {
  font-size: 13.5px !important;
  line-height: 1.6;
}

@media (max-width: 768px) {

  .footer-links a,
  [data-footer-cats] a,
  .footer-contact,
  .footer-contact a,
  .footer-contact p,
  .footer-contact div,
  .footer-contact span {
    font-size: 12px !important;
  }
}


/* ---------- High Legibility Category Cards Overlay ---------- */
.cat-card::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 55% !important;
  /* Spans the bottom part of the card where the text is */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%) !important;
  /* Soft, clean dark overlay gradient */
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
}

.cat-card .cat-body {
  position: absolute !important;
  left: 22px !important;
  right: 22px !important;
  bottom: 22px !important;
  padding: 0 !important;
  background: transparent !important;
  /* No background color */
  backdrop-filter: none !important;
  /* No frosted blur */
  -webkit-backdrop-filter: none !important;
  border: none !important;
  /* No border */
  border-radius: 0 !important;
  box-shadow: none !important;
  /* No shadow container */
  z-index: 2 !important;
}

.cat-card:hover .cat-body {
  transform: translateY(-4px) !important;
}

.cat-card .cat-body h3 {
  color: #ffffff !important;
  /* Always show pure white text on colorful images */
  text-shadow: none !important;
  /* No dark shadow outline */
  font-size: 24px !important;
  margin-bottom: 6px !important;
  font-family: var(--sans) !important;
  /* Use normal sans-serif font */
  font-weight: 700 !important;
}

.cat-card .link {
  color: #ffffff !important;
  /* Always show pure white link text */
  text-shadow: none !important;
  /* No dark shadow outline */
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Global override to ensure all category, subcategory, and series cards are transparent */
.cat-card {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Legibility gradient overlay only on photo-overlay cards, disabled on standard cards */
.cat-card:not(.cat-card--photo)::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
}

.cat-card--photo::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 55% !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%) !important;
  z-index: 1 !important;
  pointer-events: none !important;
  display: block !important;
}