/* ============================================================
   IORY Supplies LLC — Design System
   Palette: White / #F8CDC7 pinkish-cream family — kept light throughout, brown reserved for the logo only
   ============================================================ */

:root {
  --ivory: #FDEEEC;
  --ivory-soft: #FBE0DC;
  --paper: #FFFFFF;
  --charcoal: #262626;
  --charcoal-soft: #5E5A56;
  --brass: #DB6E85;
  --brass-dark: #C0546A;
  --brass-light: #F6D4D0;
  --forest: #F5B9AF;
  --rose-deep: #F8CDC7;
  --line: #F5D4CE;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(33, 31, 28, 0.08);
  --shadow-md: 0 8px 24px rgba(33, 31, 28, 0.10);
  --shadow-lg: 0 20px 50px rgba(33, 31, 28, 0.14);
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Visible keyboard-focus ring everywhere, invisible for mouse users */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); }
h3 { font-size: 1.15rem; }
p { color: var(--charcoal-soft); font-size: 0.95rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1.5px;
  background: var(--brass);
  display: inline-block;
}

.section { padding: clamp(44px, 7vw, 68px) 0; }
.section--tight { padding: clamp(32px, 5vw, 44px) 0; }
.section--dark { background: var(--rose-deep); color: var(--charcoal); }
.section--dark h2, .section--dark h3 { color: var(--charcoal); }
.section--dark p { color: var(--charcoal-soft); }
.section--soft { background: var(--ivory); }

.section-head { max-width: 600px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 0.98rem; }

/* Buttons — min height 44px for comfortable tap targets */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brass); color: var(--white); }
.btn-primary:hover { background: var(--brass-dark); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn-outline-light { border-color: rgba(246,242,233,0.5); color: var(--ivory); }
.btn-outline-light:hover { background: var(--ivory); color: var(--charcoal); }
.btn-lg { padding: 13px 28px; font-size: 0.94rem; }

/* ---------------- Header ---------------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 40px; width: auto; display: block; }
.footer-logo .logo-img { height: 36px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 22px; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  font-weight: 600;
  font-size: 0.86rem;
  padding: 23px 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-list > li > a:hover,
.nav-list > li.active > a { color: var(--brass-dark); border-bottom-color: var(--brass); }

.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  border: 1px solid var(--line);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 500;
}
.dropdown li a:hover { background: var(--ivory); color: var(--brass-dark); }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { font-size: 0.82rem; font-weight: 600; }
.header-phone span { display: block; font-size: 0.66rem; color: var(--charcoal-soft); font-weight: 500; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
}
.nav-toggle:hover { background: var(--ivory); }
.nav-toggle span { width: 22px; height: 2px; background: var(--charcoal); display: block; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%);
  padding: clamp(40px, 6vw, 64px) 0 clamp(32px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
.hero h1 { margin-bottom: 16px; }
.hero .lede { font-size: 1.02rem; max-width: 480px; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ivory) 0%, var(--rose-deep) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-art svg { width: 62%; opacity: 0.92; }

.page-hero {
  background: var(--rose-deep);
  color: var(--charcoal);
  padding: clamp(36px, 5vw, 48px) 0;
  text-align: center;
}
.page-hero .eyebrow { color: var(--brass-dark); justify-content: center; }
.page-hero h1 { color: var(--charcoal); }
.page-hero p { color: var(--charcoal-soft); max-width: 580px; margin: 12px auto 0; font-size: 0.98rem; }
.breadcrumb { margin-top: 14px; font-size: 0.8rem; color: var(--charcoal-soft); }
.breadcrumb a { color: var(--brass-dark); }

/* ---------------- Stats ---------------- */
.stats-bar {
  background: var(--rose-deep);
  color: var(--charcoal);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 0;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--brass-dark);
}
.stats-grid span { font-size: 0.8rem; color: var(--charcoal-soft); }

/* ---------------- Cards / Grids ---------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--brass-dark);
}
.card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.card p { font-size: 0.88rem; }

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card-media {
  aspect-ratio: 5/4;
  background: linear-gradient(135deg, var(--ivory-soft), var(--ivory));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-media svg { width: 46%; color: var(--brass); }
.product-card-media.has-photo { background: var(--white); }
.product-card-media.has-photo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass-dark);
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 9px;
  margin-bottom: 7px;
}
.product-card-body { padding: 18px; }
.product-card-body h3 { font-size: 0.98rem; margin-bottom: 6px; }
.product-card-body p { font-size: 0.84rem; margin-bottom: 12px; }
.product-card-link { font-size: 0.82rem; font-weight: 700; color: var(--brass-dark); display: inline-flex; align-items: center; min-height: 44px; }
.product-card-link:hover { text-decoration: underline; }

.category-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  margin-bottom: 22px;
}
.category-band-media {
  background: linear-gradient(135deg, var(--ivory), var(--rose-deep));
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  overflow: hidden;
}
.category-band-media svg { width: 55%; color: var(--brass-dark); }
.category-band-media.has-photo { background: var(--white); }
.category-band-media.has-photo img { width: 100%; height: 100%; object-fit: contain; }
.category-band-body { padding: 30px; }
.category-band-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
  background: var(--ivory);
  color: var(--charcoal-soft);
  border: 1px solid var(--line);
}

/* ---------------- Process steps ---------------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brass);
  min-width: 42px;
}
.step h3 { margin-bottom: 5px; font-size: 1rem; }
.step p { font-size: 0.86rem; }

/* ---------------- FAQ ---------------- */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 4px;
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--charcoal);
  gap: 12px;
}
.faq-q .icon { color: var(--brass); font-size: 1.2rem; transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.88rem;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(120deg, var(--ivory), var(--rose-deep));
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border: 1px solid var(--line);
}
.cta-band h2 { color: var(--charcoal); margin-bottom: 6px; }
.cta-band p { color: var(--charcoal-soft); }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8rem; font-weight: 600; color: var(--charcoal-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--white);
  color: var(--charcoal);
  transition: border-color 0.2s ease;
}
.form-field textarea { min-height: 100px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brass);
}
.form-field input:invalid:not(:placeholder-shown) { border-color: #c0392b; }
.form-note { font-size: 0.78rem; color: var(--charcoal-soft); margin-top: 10px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--rose-deep); color: var(--charcoal-soft); padding: 52px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(38,38,38,0.12);
}
.footer-about p { font-size: 0.86rem; margin: 14px 0 16px; max-width: 300px; color: var(--charcoal-soft); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(38,38,38,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--charcoal);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-social a:hover { background: var(--brass); border-color: var(--brass); color: var(--white); }
.footer-col h3 { color: var(--charcoal); font-size: 0.9rem; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 9px; font-size: 0.84rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-col a:hover { color: var(--brass-dark); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 13px; font-size: 0.84rem; align-items: flex-start; }
.footer-contact .ic { color: var(--brass-dark); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: var(--brass-dark); text-decoration: none; }
.footer-contact a:hover { color: var(--charcoal); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--brass-dark); }

/* ---------------- Utility ---------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------------- Responsive ----------------
   Breakpoints target: 320/360/375/390/414/430 phones, tablets, small/large
   laptops, 1080p/1440p/4K. .container already caps at 1120px so large
   monitors just get more side whitespace, not bigger content. */

/* Large laptops / small desktops */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .nav-list { gap: 16px; }
  .header-cta { gap: 10px; }
}

/* Mobile nav breakpoint */
@media (max-width: 860px) {
  /* Off-canvas panel: fixed within the viewport (left:0;right:0, never wider) and
     hidden via opacity/visibility rather than a translateX(100%) off-screen slide.
     Pushing it off-screen right made real browsers (and phones) able to drag/scroll
     the whole page sideways; keeping it in-bounds and fading it eliminates that
     without any root-level overflow hack that would break the sticky header. */
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    flex-direction: column; align-items: stretch;
    padding: 16px 20px 32px;
    gap: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.26s ease, visibility 0.26s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li {
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .main-nav.open .nav-list > li { opacity: 1; transform: translateY(0); }
  .main-nav.open .nav-list > li:nth-child(1) { transition-delay: 0.05s; }
  .main-nav.open .nav-list > li:nth-child(2) { transition-delay: 0.09s; }
  .main-nav.open .nav-list > li:nth-child(3) { transition-delay: 0.13s; }
  .main-nav.open .nav-list > li:nth-child(4) { transition-delay: 0.17s; }
  .main-nav.open .nav-list > li:nth-child(5) { transition-delay: 0.21s; }
  .main-nav.open .nav-list > li:nth-child(6) { transition-delay: 0.25s; }
  .nav-list > li > a { padding: 14px 4px; min-height: 48px; border-bottom: 1px solid var(--line); }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 14px; }
  .has-dropdown.open .dropdown { display: block; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .category-band { grid-template-columns: 1fr; }
  .category-band-media { padding: 22px; min-height: 180px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; }
}

/* Small phones — 480px and down (covers 320/360/375/390/414/430) */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); }
  .hero-actions .btn, .cta-band .btn { width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 24px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sku-group summary { padding: 14px 14px; }
}

/* Large monitors — let the container breathe a bit more, content stays capped */
@media (min-width: 1600px) {
  :root { --container: 1220px; }
}

/* ---------------- SKU Spec Tables ---------------- */
.sku-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  overflow: hidden;
  background: var(--white);
}
.sku-group summary {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--brass-light) 100%);
  font-family: var(--font-display);
}
.sku-group summary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 30%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg);
  animation: natural-note-shine 5s ease-in-out infinite;
}
.sku-group summary::-webkit-details-marker { display: none; }
.sku-group summary h3 { position: relative; font-size: 1.22rem; font-weight: 700; margin: 0; }
.sku-group summary::after {
  position: relative;
  content: "+";
  font-size: 1.3rem;
  color: var(--brass-dark);
  line-height: 1;
  flex-shrink: 0;
  margin-left: 14px;
}
.sku-group[open] summary::after { content: "–"; }
.sku-count {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--charcoal-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 11px;
  margin-left: auto;
  margin-right: 14px;
  white-space: nowrap;
}
.sku-group-line {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal-soft);
  padding: 0 20px 14px;
  margin-top: -4px;
}
.sku-thumb-empty { color: var(--brass-dark); font-size: 0.78rem; font-weight: 700; text-align: center; line-height: 1.4; }
.page-hero h1.heading-lg { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.catalog-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--charcoal-soft);
  margin-bottom: 22px;
}
.catalog-legend span { display: flex; align-items: center; gap: 8px; }

/* ---------------- Natural-product variability note ---------------- */
.natural-note {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--brass-light) 100%);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}
.natural-note-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--brass-dark);
}
.natural-note p {
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.4;
}
.natural-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 35%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: skewX(-20deg);
  animation: natural-note-shine 3.4s ease-in-out infinite;
}
@keyframes natural-note-shine {
  0%   { left: -60%; }
  45%  { left: 130%; }
  100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .natural-note::before, .sku-group summary::before { animation: none; display: none; }
}
@media (max-width: 480px) {
  .natural-note { padding: 14px 16px; gap: 10px; }
  .natural-note p { font-size: 0.86rem; }
}

/* ---------------- Hero image shuffle (crossfade) ---------------- */
.hero-shuffle { padding: 0; }
.hero-shuffle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroShuffleFade 12s ease-in-out infinite;
}
.hero-shuffle-img:nth-of-type(1) { animation-delay: 0s; }
.hero-shuffle-img:nth-of-type(2) { animation-delay: 6s; }
.hero-shuffle-img.hero-shuffle-single { position: static; animation: none; opacity: 1; }
@keyframes heroShuffleFade {
  0%   { opacity: 1; }
  42%  { opacity: 1; }
  50%  { opacity: 0; }
  92%  { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shuffle-img { animation: none; opacity: 1; }
  .hero-shuffle-img:nth-of-type(2) { display: none; }
}

/* ---------------- Scroll-to-top button ---------------- */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--brass-dark); transform: translateY(-2px); }
.scroll-top-btn:active { transform: translateY(0) scale(0.94); }
.scroll-top-btn svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .scroll-top-btn { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

/* ---------------- Scroll-reveal ----------------
   Lightweight IntersectionObserver-driven fade/slide-up. Elements start
   hidden only once JS confirms it's ready to observe (see js/main.js) —
   the .js-ready gate means content is never invisible if JS fails to load. */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-ready .reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.js-ready .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.js-ready .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
.js-ready .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal, .js-ready .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------------- Product Carousel (catalog cards) ---------------- */
.carousel-wrap { position: relative; }

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.carousel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brass);
}

.carousel-chip {
  align-self: flex-start;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
  background: var(--ivory);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.carousel-media {
  aspect-ratio: 4 / 3;
  max-height: 200px;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, var(--ivory) 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}
.carousel-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.carousel-media.no-photo { background: var(--ivory); border-style: dashed; }

.carousel-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 2px;
}
.carousel-code {
  font-size: 0.76rem;
  color: var(--charcoal-soft);
  font-weight: 600;
  font-family: var(--font-body);
  margin: 0 0 10px;
}
.carousel-code::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  margin-right: 7px;
  vertical-align: middle;
}

.carousel-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}
.carousel-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}
.carousel-spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.carousel-spec-label { color: var(--charcoal-soft); font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.carousel-spec-value { text-align: right; color: var(--charcoal); font-weight: 500; line-height: 1.45; }
.carousel-spec-value.carousel-moq { color: var(--brass-dark); font-weight: 700; }

.carousel-variant-list {
  max-height: 132px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
  border-top: 1px solid var(--line);
}
.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.72rem;
}
.variant-row:last-child { border-bottom: none; }
.variant-code { font-weight: 700; color: var(--charcoal); flex-shrink: 0; white-space: nowrap; }
.variant-detail { text-align: right; color: var(--charcoal-soft); line-height: 1.4; }

.carousel-cta {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 20px;
  background: var(--brass-dark);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.carousel-cta:hover { background: var(--brass); box-shadow: var(--shadow-md); }
.carousel-cta:active { transform: scale(0.97); }

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.carousel-dot {
  width: 6px; height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: all 0.25s ease;
}
.carousel-dot.active { background: var(--brass-dark); width: 18px; border-radius: 4px; }

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  z-index: 5;
  color: var(--charcoal);
}
.carousel-arrow:hover { background: var(--brass-dark); border-color: var(--brass-dark); color: #fff; }
.carousel-arrow:active { transform: translateY(-50%) scale(0.94); }
.carousel-arrow svg { width: 16px; height: 16px; }
.carousel-arrow.prev { left: -20px; }
.carousel-arrow.next { right: -20px; }
.carousel-arrow.is-disabled { opacity: 0 !important; pointer-events: none; }

@media (min-width: 861px) {
  .carousel-dots { display: none; }
  .carousel-arrow { display: flex; }
  .carousel-wrap:hover .carousel-arrow:not(.is-disabled) { opacity: 1; }
  .carousel-track { gap: 20px; padding: 6px 6px 6px; }
  .carousel-card { flex: 0 0 calc((100% - 2 * 20px) / 3.4); }
}

@media (max-width: 480px) {
  .carousel-card { flex-basis: 86%; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .carousel-card, .carousel-arrow, .carousel-dot, .carousel-cta { transition: none; }
}
