/** Shopify CDN: Minification failed

Line 1697:0 Expected "}" to go with "{"

**/
/* ============================================
   KBM FABRICS - BASE STYLESHEET
   kbmfabrics.store | Shopify Theme
   ============================================ */

/* ===== CSS VARIABLES - KBM PALETTE ===== */
:root {
  /* KBM brand rainbow (warm, earthy, confident) */
  --red: #d67d5f;       /* coral */
  --orange: #d89465;    /* orange-gold */
  --yellow: #C8524A;    /* warm gold */
  --green: #a86f8f;     /* mauve */
  --teal: #B04440;      /* KBM PRIMARY GOLD (was teal accent in APC) */
  --blue: #6B4A62;      /* slate */
  --deep-blue: #4a6b6b; /* KBM deep teal */
  --navy: #0a0a0a;      /* true black */
  /* Neutrals */
  --cream: #fafaf7;
  --dark: #0a0a0a;
  --warm-gray: #6B6560;
  --light-gray: #f0ece6;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ===== LOADER ===== */
.kbm-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s, visibility 0.8s;
}

.kbm-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateY(15px);
  animation: loaderFadeIn 1s 0.3s ease forwards;
}

@keyframes loaderFadeIn { to { opacity: 1; transform: translateY(0); } }

.loader-logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.15));
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 40px;
  color: white;
  letter-spacing: -1px;
}

.loader-text span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: -2px;
}

.loader-bar {
  width: 440px;
  max-width: 90vw;
  height: 3px;
  background: rgba(255,255,255,0.1);
  margin-top: 24px;
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue));
  border-radius: 3px;
  animation: loaderBar 1.8s ease-out forwards;
}

@keyframes loaderBar { from { width: 0; } to { width: 100%; } }

/* ===== PARTICLES ===== */
.kbm-particles {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(100vh) rotate(0deg) scale(0); opacity: 0; }
  10% { opacity: 0.12; }
  90% { opacity: 0.12; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(0); opacity: 0; }
}

/* ===== SCROLL PROGRESS BAR ===== */
.kbm-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ===== RAINBOW DIVIDER ===== */
.rainbow-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--teal), var(--blue));
  position: relative;
}

.rainbow-divider::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  filter: blur(8px);
  opacity: 0.5;
}

/* ===== SECTION HEADERS ===== */
.section-header { text-align: center; margin-bottom: 60px; }

.section-tag {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px;
  display: inline-block;
  position: relative;
}

.section-tag::before, .section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--teal);
  opacity: 0.3;
}

.section-tag::before { right: calc(100% + 12px); }
.section-tag::after { left: calc(100% + 12px); }

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  color: var(--warm-gray);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== SHARED BUTTON STYLES ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal), var(--deep-blue));
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, var(--deep-blue), var(--navy));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary span, .btn-primary .arrow { position: relative; z-index: 1; }

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(45, 90, 142, 0.5);
}

.btn-primary .arrow { display: inline-block; transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(5px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-3px);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
.stagger-children .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger-children .reveal:nth-child(8) { transition-delay: 0.7s; }

/* ===== PETAL ICON (reusable) ===== */
.petal-icon {
  position: relative;
  flex-shrink: 0;
}

.petal-icon .petal {
  position: absolute;
  border-radius: 50%;
  transform-origin: bottom center;
}

/* ===== RESPONSIVE BASE ===== */
@media (max-width: 768px) {
  .section-header h2 { font-size: 32px; }
  .section-header p { font-size: 14px; }
  .loader-text { font-size: 28px; }
  .loader-bar { width: 280px; }
}


/* ============================================================
   KBM FIXES 2026-04-21 — applied by Claude while Kevin was out
   ============================================================ */

/* ----- 1. Product card previews: force squares ----- */
.product-card-img,
.kbm-product-card img,
.product-grid .product-card-img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
}
.product-card-img-placeholder {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

/* ----- 2. Header logo: bigger, more pronounced ----- */
.logo-img {
  height: 88px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
}
.nav-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
@media (max-width: 900px) {
  .logo-img { height: 64px !important; }
}
@media (max-width: 600px) {
  .logo-img { height: 52px !important; }
}

/* ----- 3. Loading screen: readable + bigger ----- */
.kbm-loader .loader-logo {
  display: none !important;
}
.kbm-loader .loader-brand {
  flex-direction: column !important;
  gap: 8px !important;
  text-align: center !important;
}
.kbm-loader .loader-text {
  font-family: 'Playfair Display', serif !important;
  font-weight: 900 !important;
  font-size: 72px !important;
  line-height: 1 !important;
  color: #fff !important;
  letter-spacing: -2px !important;
  text-shadow: 0 2px 30px rgba(255,255,255,0.1);
}
.kbm-loader .loader-text span {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  opacity: 0.7 !important;
  margin-top: 12px !important;
}
@media (max-width: 700px) {
  .kbm-loader .loader-text { font-size: 48px !important; }
  .kbm-loader .loader-text span { font-size: 11px !important; letter-spacing: 2px !important; }
}

/* ----- 4. Reviews section: match site vibe ----- */
.kbm-reviews-showcase,
section.kbm-reviews-showcase {
  background: var(--cream, #f0ebe3) !important;
  padding: 100px 24px !important;
  position: relative;
}
.kbm-reviews-showcase .section-title,
.kbm-reviews-showcase h2,
.jdgm-rev-widg__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 48px !important;
  font-weight: 900 !important;
  color: var(--dark, #0a0a0a) !important;
  letter-spacing: -1px !important;
  text-align: center !important;
  margin: 0 0 12px !important;
}
.jdgm-rev,
.jdgm-review-item,
div[data-review-card] {
  background: #ffffff !important;
  border: 1px solid rgba(10,10,10,0.08) !important;
  border-radius: 0 !important;
  padding: 32px !important;
  margin-bottom: 20px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
  position: relative !important;
  overflow: hidden !important;
}
.jdgm-rev::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #c2873e 0%, #e8ac65 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.jdgm-rev:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(194,135,62,0.35) !important;
  box-shadow: 0 12px 30px rgba(10,10,10,0.06) !important;
}
.jdgm-rev:hover::before { transform: scaleX(1); }
.jdgm-rev__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--dark, #0a0a0a) !important;
  margin: 8px 0 10px !important;
  letter-spacing: -0.2px !important;
  line-height: 1.3 !important;
}
.jdgm-rev__body,
.jdgm-rev__content {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: #2b2521 !important;
  margin: 0 !important;
}
.jdgm-star.jdgm--on,
.jdgm-star--on { color: #c2873e !important; }
.jdgm-star.jdgm--off,
.jdgm-star--off { color: rgba(10,10,10,0.15) !important; }
.jdgm-write-rev-link,
.jdgm-btn,
.jdgm-btn--solid {
  background: var(--dark, #0a0a0a) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 14px 28px !important;
  border-radius: 0 !important;
  border: 1px solid var(--dark, #0a0a0a) !important;
  transition: all .25s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.jdgm-write-rev-link:hover,
.jdgm-btn:hover {
  background: #c2873e !important;
  border-color: #c2873e !important;
  color: #fff !important;
}

/* ----- 5. Hero video background ----- */
.kbm-hero .hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
}
.kbm-hero .hero-bg-video-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.4) 100%);
  z-index: 1;
}
.kbm-hero .hero-bg-pattern,
.kbm-hero .hero-orb { z-index: 2; }
.kbm-hero .hero-content { position: relative; z-index: 3; }
@media (prefers-reduced-motion: reduce) {
  .kbm-hero .hero-bg-video { display: none; }
}


/* ----- 6. Replace hero decorative petal-flower with KBM logo ----- */
.hero-petal-icon {
  background-image: url('/cdn/shop/files/kbm-logo.png?v=1776754841') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 96px !important;
  height: 96px !important;
  animation: none !important;
}
.hero-petal-icon .petal {
  display: none !important;
}
@media (max-width: 900px) {
  .hero-petal-icon { width: 64px !important; height: 64px !important; }
}


/* ----- 6b. Hero logo on cream pill so black "kbm." is readable on dark hero ----- */
.hero-petal-icon {
  background-color: #fafaf7 !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background-origin: content-box !important;
  background-clip: content-box, padding-box !important;
  width: 130px !important;
  height: 130px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .hero-petal-icon { width: 90px !important; height: 90px !important; padding: 10px !important; }
.hero-petal-icon{display:none !important}

/* ----- 6c. Force opacity 1 - the reveal animation was hiding the logo ----- */
.hero-petal-icon {
  opacity: 1 !important;
  transform: none !important;
}

/* Animated red/grey gradient for primary button */
@keyframes btnRedGreyShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }


/* Mobile Touch Target Fixes (min 44px) */
@media (max-width: 768px) {
  a, button, input[type="submit"], .btn, [role="button"] { min-height: 44px; min-width: 44px; }
  nav a, .mobile-nav a, .footer-nav a { padding: 12px 16px; display: inline-flex; align-items: center; }
  .kbm-footer a { padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }
  .footer-social a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  .quantity-btn { min-width: 44px; min-height: 44px; }
}

/* Force consistent centering on social banners */
.ig-inner, .tiktok-inner, .etsy-inner, [class*="banner-inner"] {
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
}

/* Knits hero word — clean cream ivory, italic editorial */
.kbm-hero h1 .knits,
.kbm-hero .knits-word,
.kbm-hero h1 span.gradient,
.kbm-hero h1 span:not(.brand-name) {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: #f5e6d3 !important;
  font-style: italic !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-weight: 500 !important;
}

/* Banner spacing fix — eliminate white line + tighten gap between IG/TikTok */
.kbm-etsy-banner,
.kbm-ig-banner,
.kbm-tiktok-banner,
.kbm-newsletter {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
  margin: 0 !important;
  border: none !important;
}
/* Center inner content consistently */
.etsy-inner, .ig-inner, .tiktok-inner {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Eliminate any background gaps between dark sections */
.shopify-section:has(.kbm-etsy-banner),
.shopify-section:has(.kbm-ig-banner),
.shopify-section:has(.kbm-tiktok-banner),
.shopify-section:has(.kbm-newsletter) {
  background: var(--dark);
  margin: 0;
  padding: 0;
}

/* Quick Add button styles */
.pg-card, .product-card { position: relative; }
.kbm-quick-add {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: transform .15s ease, background .15s ease;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kbm-quick-add:hover { transform: scale(1.08); background: #F1641E; }
.kbm-quick-add:active { transform: scale(0.95); }
.kbm-quick-add[disabled] { opacity: .5; cursor: not-allowed; }

/* Quick Add modal */
#kbm-qa-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
#kbm-qa-modal.open { display: flex; }
#kbm-qa-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 28px;
  width: 380px;
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  font-family: -apple-system, system-ui, sans-serif;
}
#kbm-qa-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}
#kbm-qa-price {
  font-size: 14px;
  color: #F1641E;
  font-weight: 600;
  margin: 0 0 18px;
}
#kbm-qa-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
#kbm-qa-qty-row label {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}
.kbm-qa-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}
.kbm-qa-stepper button {
  width: 36px; height: 36px;
  background: #fafafa;
  border: none;
  font-size: 18px;
  cursor: pointer;
}
.kbm-qa-stepper input {
  width: 50px; height: 36px; text-align: center;
  border: none; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0;
  font-size: 14px; font-weight: 600;
}
#kbm-qa-actions { display: flex; gap: 10px; }
#kbm-qa-cancel, #kbm-qa-submit {
  flex: 1; padding: 12px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; border: none;
}
#kbm-qa-cancel { background: #f5f5f5; color: #1a1a1a; }
#kbm-qa-submit { background: #1a1a1a; color: #fff; }
#kbm-qa-submit:hover { background: #F1641E; }
#kbm-qa-toast {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1a1a1a; color: white; padding: 12px 24px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  z-index: 10001;
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none;
}
#kbm-qa-toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

/* Hero polish overrides v2 — smaller height, cleaner font, calm Knits */
.kbm-hero {
  min-height: 62vh !important;
  height: 62vh !important;
  max-height: 720px !important;
}
.kbm-hero .hero-content,
.kbm-hero .hero-inner {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}
/* Headline: editorial Playfair, lighter weight, slightly smaller */
.kbm-hero h1,
.kbm-hero .hero-headline {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-weight: 500 !important;
  font-size: clamp(38px, 6vw, 76px) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.05 !important;
}
/* Knits word — calm cream, italic, no gradient */
.kbm-hero h1 .gradient-text,
.kbm-hero .hero-headline .gradient-text,
.kbm-hero h1 span[class*="gradient"],
.kbm-hero h1 span[class*="knits"] {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: #f5e6d3 !important;
  font-style: italic !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

/* Hero polish v3 — stronger specificity */
body .kbm-hero,
body section.kbm-hero,
.shopify-section .kbm-hero {
  min-height: 60vh !important;
  height: 60vh !important;
  max-height: 680px !important;
}
body .kbm-hero h1,
.shopify-section .kbm-hero h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-weight: 500 !important;
  font-size: clamp(36px, 5.4vw, 68px) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.05 !important;
}
body .kbm-hero h1 .line,
body .kbm-hero h1 .line-inner {
  font-family: inherit !important;
  font-weight: inherit !important;
}
/* Knits — kill the gradient cleanly */
body .kbm-hero h1 .gradient-text,
body .kbm-hero .line-inner .gradient-text,
.shopify-section .kbm-hero .gradient-text {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #f5e6d3 !important;
  background-clip: initial !important;
  color: #f5e6d3 !important;
  font-style: italic !important;
  font-weight: 500 !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

/* Best Sellers carousel — only in best-sellers-grid section */
#shopify-section-best-sellers-grid .pg-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  scroll-behavior: smooth !important;
  gap: 16px !important;
  padding-bottom: 12px !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: thin !important;
}
#shopify-section-best-sellers-grid .pg-grid::-webkit-scrollbar {
  height: 6px;
}
#shopify-section-best-sellers-grid .pg-grid::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
#shopify-section-best-sellers-grid .pg-card {
  flex: 0 0 calc(20% - 13px) !important;
  min-width: 220px !important;
  scroll-snap-align: start !important;
}
@media (max-width: 900px) {
  #shopify-section-best-sellers-grid .pg-card { flex-basis: calc(50% - 8px) !important; }
}
@media (max-width: 540px) {
  #shopify-section-best-sellers-grid .pg-card { flex-basis: calc(70% - 8px) !important; }
}
/* Optional: arrow buttons via JS - prep wrapper styling */
#shopify-section-best-sellers-grid .pg-grid-wrapper {
  position: relative;
}
.kbm-carousel-arrow {
  position: absolute;
  top: 40%;
  background: #1a1a1a;
  color: white;
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background .15s, transform .15s;
}
.kbm-carousel-arrow:hover { background: #F1641E; transform: scale(1.05); }
.kbm-carousel-arrow.left { left: -16px; }
.kbm-carousel-arrow.right { right: -16px; }
@media (max-width: 700px) { .kbm-carousel-arrow { display: none; } }

/* kbm-hero-search styles */
.kbm-hero-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.96);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  margin: 24px auto;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
}
.kbm-hero-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  font-family: inherit;
  color: #1a1a1a;
  padding: 14px 8px;
  min-width: 0;
}
.kbm-hero-search-input::placeholder {
  color: #888;
  font-style: italic;
}
.kbm-hero-search-btn {
  background: #1a1a1a;
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}
.kbm-hero-search-btn:hover { background: #F1641E; transform: scale(1.05); }
.kbm-hero-search-btn:active { transform: scale(0.95); }
@media (max-width: 600px) {
  .kbm-hero-search { padding: 5px 5px 5px 18px; margin: 16px auto; max-width: 92vw; }
  .kbm-hero-search-input { font-size: 14px; padding: 12px 6px; }
  .kbm-hero-search-btn { width: 40px; height: 40px; }
}

/* hero-search v2 — minimal pill, calm cream tones, no glass */
.kbm-hero-search,
body .kbm-hero-search {
  display: flex !important;
  align-items: center !important;
  background: rgba(245, 230, 211, 0.95) !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 4px 4px 4px 22px !important;
  margin: 18px auto 0 !important;
  max-width: 460px !important;
  width: 100% !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12) !important;
  backdrop-filter: none !important;
}
.kbm-hero-search-input,
body .kbm-hero-search .kbm-hero-search-input {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: #1a1a1a !important;
  padding: 12px 8px !important;
  font-style: normal !important;
}
.kbm-hero-search-input::placeholder {
  color: #6b6960 !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
.kbm-hero-search-btn,
body .kbm-hero-search .kbm-hero-search-btn {
  background: #1a1a1a !important;
  color: #f5e6d3 !important;
  border: none !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background .15s ease !important;
}
.kbm-hero-search-btn:hover { background: #F1641E !important; }
@media (max-width: 600px) {
  .kbm-hero-search { max-width: 90vw !important; padding: 4px 4px 4px 16px !important; }
  .kbm-hero-search-input { font-size: 14px !important; padding: 10px 6px !important; }
  .kbm-hero-search-btn { width: 38px !important; height: 38px !important; }
}

/* Card height standardization */
/* Force every product card to flex-stretch, image fixed ratio, title clamped */
.pg-card,
.product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background: #fff;
}

/* Image area: fixed square aspect ratio so all cards align */
.pg-media,
.product-card .product-card-img,
.product-card > div:first-child,
.product-card-img-wrap {
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  position: relative !important;
}
.pg-media img,
.product-card img,
.product-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Body section grows to fill remaining space (pushes price to bottom) */
.pg-body,
.product-card-body,
.product-card > .product-card-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 14px !important;
  gap: 4px !important;
}

/* Title: clamp to 2 lines, fixed height */
.pg-card .pg-title,
.pg-body .pg-title,
.product-card .product-card-title,
.product-card h3,
.product-card .product-title,
.pg-body > a,
.pg-body > p:first-child {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  line-height: 1.3 !important;
  min-height: 2.6em !important;
  max-height: 2.6em !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* Price always sticks to bottom */
.pg-card .pg-price,
.product-card .product-card-price,
.product-card-vendor + .product-card-price,
.pg-body > p:last-child,
.product-card .price {
  margin-top: auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--teal, #1d9e75) !important;
}

/* Make sure grid gap is consistent and rows align */
.pg-grid,
.product-grid {
  align-items: stretch !important;
}

/* For card link wrapper that contains everything */
a.product-card,
a.pg-card {
  text-decoration: none !important;
  color: inherit !important;
}

/* hero-search v3 final — block layout, sleek glass pill */
body .kbm-hero .kbm-hero-search,
body section.kbm-hero .kbm-hero-search,
.shopify-section .kbm-hero .kbm-hero-search {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 480px !important;
  margin: 28px auto 0 !important;
  padding: 0 !important;
  background: rgba(20, 20, 20, 0.55) !important;
  border: 1.5px solid rgba(245, 230, 211, 0.35) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  align-items: initial !important;
  flex-direction: row !important;
  flex: 0 0 auto !important;
}
body .kbm-hero .kbm-hero-search-input,
.shopify-section .kbm-hero .kbm-hero-search-input {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  padding: 16px 60px 16px 24px !important;
  font-family: 'Inter', 'DM Sans', -apple-system, system-ui, sans-serif !important;
  font-size: 15px !important;
  color: #f5e6d3 !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0.01em !important;
  box-sizing: border-box !important;
  flex: initial !important;
}
.kbm-hero-search-input::placeholder {
  color: rgba(245, 230, 211, 0.55) !important;
  font-style: normal !important;
  font-weight: 400 !important;
}
body .kbm-hero .kbm-hero-search-btn,
.shopify-section .kbm-hero .kbm-hero-search-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: #f5e6d3 !important;
  color: #1a1a1a !important;
  border: none !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transition: background .15s ease, transform .15s ease !important;
}
.kbm-hero-search-btn:hover {
  background: #F1641E !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.06) !important;
}
.kbm-hero-search-btn:active { transform: translateY(-50%) scale(0.95) !important; }
.kbm-hero-search-btn svg { width: 18px !important; height: 18px !important; }

@media (max-width: 600px) {
  body .kbm-hero .kbm-hero-search { max-width: 92vw !important; margin-top: 18px !important; }
  body .kbm-hero .kbm-hero-search-input { font-size: 14px !important; padding: 14px 56px 14px 20px !important; }
  body .kbm-hero .kbm-hero-search-btn { width: 36px !important; height: 36px !important; right: 5px !important; }
}

/* Mobile NEW pill v2 — keep visible by adding mobile-show class */
@media (max-width: 900px) {
  .kbm-nav .nav-links { display: flex !important; gap: 0 !important; padding: 0; margin: 0; list-style: none; }
  .kbm-nav .nav-links > li { display: none !important; }
  .kbm-nav .nav-links > li.mobile-show { display: list-item !important; }
  .kbm-nav .nav-links .nav-new-link { padding: 6px 10px !important; font-size: 11px !important; letter-spacing: 0.6px !important; }
}


/* === Wishlist styles merged === */
/* KBM Fabrics — Wishlist styles */

/* Heart button on product cards */
.kbm-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: #333;
  padding: 0;
}
.kbm-wishlist-btn:hover {
  background: #fff;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.kbm-wishlist-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}
.kbm-wishlist-btn.is-active {
  color: #e74c3c;
}
.kbm-wishlist-btn.is-active svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}

/* Heart on product page (larger, inline with title) */
.product__title .kbm-wishlist-btn,
.kbm-wishlist-btn--inline {
  position: static;
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin-left: 8px;
  background: transparent;
  box-shadow: none;
}
.product__title .kbm-wishlist-btn svg,
.kbm-wishlist-btn--inline svg {
  width: 22px;
  height: 22px;
}

/* Header/nav wishlist link with count badge */
.kbm-wishlist-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.kbm-wishlist-count {
  display: none;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}

/* Wishlist page */
.kbm-wishlist-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: inherit;
}
.kbm-wishlist-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
  font-weight: 600;
}
.kbm-wishlist-page > p {
  color: #555;
  margin-bottom: 32px;
}
.kbm-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.kbm-wishlist-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  padding: 40px;
}
.kbm-wishlist-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.kbm-wishlist-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.kbm-wishlist-img-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}
.kbm-wishlist-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kbm-wishlist-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.kbm-wishlist-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
  color: inherit;
}
.kbm-wishlist-info a {
  color: inherit;
  text-decoration: none;
}
.kbm-wishlist-info a:hover h3 {
  text-decoration: underline;
}
.kbm-wishlist-price {
  font-weight: 600;
  font-size: 15px;
  margin: 0;
}
.kbm-wishlist-price s {
  color: #999;
  font-weight: 400;
  margin-left: 6px;
  font-size: 13px;
}
.kbm-wishlist-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.kbm-wishlist-view {
  flex: 1;
  text-align: center;
  background: #2C3E50;
  color: #fff !important;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.kbm-wishlist-view:hover {
  background: #1a2733;
}
.kbm-wishlist-remove {
  position: static;
  background: transparent;
  border: 1px solid #ddd;
  width: auto;
  height: auto;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  box-shadow: none;
}
.kbm-wishlist-remove:hover {
  background: #fef0ef;
  border-color: #e74c3c;
  color: #e74c3c;
  transform: none;
}
.kbm-wishlist-missing {
  opacity: 0.6;
}
.kbm-wishlist-note {
  color: #999;
  font-size: 12px;
  font-style: italic;
}

/* Empty state */
#kbm-wishlist-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 15px;
}
#kbm-wishlist-empty a {
  color: #2C3E50;
  font-weight: 600;
  text-decoration: underline;
}

/* Safety overrides */
.pg-card, .product-card, a.product-card { position: relative !important; }
.kbm-wishlist-btn svg { width: 18px !important; height: 18px !important; flex-shrink: 0; }
@media (max-width: 600px) {
  .kbm-wishlist-btn { width: 32px !important; height: 32px !important; top: 8px !important; right: 8px !important; }
  .kbm-wishlist-btn svg { width: 16px !important; height: 16px !important; }
}

/* NEW pill mobile compact + responsive text swap */
.nav-new-link .new-short { display: none; }
.nav-new-link .new-full { display: inline; }
@media (max-width: 900px) {
  .nav-new-link .new-full { display: none !important; }
  .nav-new-link .new-short { display: inline !important; }
  .kbm-nav .nav-links { padding: 0 !important; margin: 0 0 0 8px !important; flex: 0 0 auto !important; }
  .kbm-nav .nav-links .nav-new-link {
    padding: 5px 10px !important;
    font-size: 10px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
  }
}

/* Mobile NEW pill final hide — too cramped on mobile, hidden in favor of announcement bar */
@media (max-width: 900px) {
  .kbm-nav .nav-links { display: none !important; }
}

/* Sold-out card treatment */
.product-card.is-sold-out, .pg-card.is-sold-out { order: 999; opacity: 0.62; }
.product-card.is-sold-out:hover, .pg-card.is-sold-out:hover { opacity: 0.85; }
.kbm-soldout-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  background: #1a1a1a;
  color: #fff;
  font-family: -apple-system, system-ui, sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 5px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .kbm-soldout-badge { font-size: 9px; padding: 4px 7px; top: 8px; left: 8px; }
}

/* nav-cta styles - Partner with KBM and Wholesale standout pills */
.nav-cta { display: inline-flex !important; align-items: center; }
.nav-cta-affiliate {
  background: #F1641E !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.nav-cta-affiliate:hover {
  background: #d54d09 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.nav-cta-wholesale {
  background: #B04440 !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.nav-cta-wholesale:hover {
  background: #8b3531 !important;
  color: #fff !important;
  transform: translateY(-1px);
}
/* Hide nav-cta::after underline animation that Header uses on link hover */
.nav-cta-affiliate::after, .nav-cta-wholesale::after { display: none !important; }
@media (max-width: 900px) {
  .nav-cta { display: none !important; }
}

/* NEW pill spacing fix - extra right margin so it doesn't crash into Search */
.kbm-nav .nav-links { gap: 18px !important; }
.kbm-nav .nav-links li:last-child { margin-right: 16px !important; }
.nav-new-link { margin-right: 8px !important; }
@media (max-width: 1200px) {
  .kbm-nav .nav-links { gap: 14px !important; }
}

/* Loader rebrand override - hide progress bar, cream tones, gentle pulse */
.kbm-loader { background: #1a1a1a !important; }
.kbm-loader .loader-bar { display: none !important; }
.loader-logo {
  filter: drop-shadow(0 0 24px rgba(245, 230, 211, 0.18)) !important;
  animation: kbmLoaderPulse 2.4s ease-in-out infinite !important;
}
@keyframes kbmLoaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}
.loader-text { color: #f5e6d3 !important; }
.loader-text span { color: rgba(245, 230, 211, 0.55) !important; }

/* Override: red font style for Partner + Wholesale nav buttons (no pill fill) */
.nav-cta-affiliate, .nav-cta-wholesale {
  background: transparent !important;
  color: #B04440 !important;
  padding: 6px 4px !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  white-space: nowrap !important;
}
.nav-cta-affiliate:hover, .nav-cta-wholesale:hover {
  background: transparent !important;
  color: #8b3531 !important;
  transform: none !important;
  text-decoration: underline !important;
}

/* FINAL red Partner override - max specificity */
body .kbm-nav .nav-links li a.nav-cta-affiliate,
body .kbm-nav .nav-links li a.nav-cta-wholesale {
  background: transparent !important;
  color: #B04440 !important;
  padding: 6px 4px !important;
  border-radius: 0 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  white-space: nowrap !important;
  animation: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
body .kbm-nav .nav-links li a.nav-cta-affiliate:hover,
body .kbm-nav .nav-links li a.nav-cta-wholesale:hover {
  background: transparent !important;
  color: #8b3531 !important;
  transform: none !important;
  text-decoration: underline !important;
}


/* ============================================================
   FIX: Collection grids should be proper grids, not flex orphans
   ============================================================ */
.kbm-collections .collection-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  justify-items: stretch !important;
}
.kbm-collections .collection-card {
  width: auto !important;
  flex: none !important;
  max-width: 100% !important;
}
@media (max-width: 1100px) {
  .kbm-collections .collection-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .kbm-collections .collection-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; padding: 0 16px; }
}

/* Title wrapping in collection cards */
.kbm-collections .collection-card .collection-title,
.kbm-collections .collection-card h3 {
  font-size: 13px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.5px !important;
}

/* Hide Klaviyo back-in-stock button container - we use our own branded Notify Me form */
#klaviyo-bis-button-container {
  display: none !important;
}


/* ============================================================
   MINIMAL MOBILE FIXES v2 - precise selectors only
   ============================================================ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }

  /* Hero text scale */
  .hero h1, .kbm-hero h1, .hero-headline { font-size: clamp(30px, 8vw, 48px); line-height: 1.1; }
  .kbm-hero, .hero { min-height: 460px; padding: 30px 14px; }
  
  /* PDP - stack image + info (only target specific PDP containers, NOT general .product-grid) */
  .kbm-product .product-layout { display: block !important; }
  .kbm-product .product-gallery, .kbm-product .product-images { width: 100%; max-width: 100%; margin-bottom: 16px; }
  .kbm-product .product-info, .kbm-product .product-details { width: 100%; padding: 0 16px; }
  .kbm-product .product-info h1 { font-size: 24px; }
  .kbm-product .product-info .price, .kbm-product .product-info .product-price { font-size: 22px; }

  /* Inputs - prevent zoom on iOS */
  input[type=text], input[type=email], input[type=tel], textarea, select { font-size: 16px !important; }

  /* UGC video grid */
  .kbm-ugc-reviews__grid { grid-template-columns: 1fr !important; max-width: 360px; margin: 0 auto; }
  .kbm-ugc-submit__inner { flex-direction: column !important; text-align: center; padding: 22px 18px !important; gap: 12px !important; }

  /* Notify form fields stack */
  .kbm-notify__prefs { flex-wrap: wrap; }
  .kbm-notify__prefs span { width: 100%; margin-bottom: 4px; }

  /* Volume pricing - horizontal scroll if needed */
  .volume-pricing-table, .kbm-volume-pricing { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
}


/* ============================================================
   MOBILE HEADER + LAYOUT FIX v3 - based on iPhone screenshots
   ============================================================ */
@media (max-width: 900px) {
  body .nav-links { display: none !important; }
  body .nav-hamburger { display: flex !important; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
  body .nav-hamburger span { display: block !important; width: 24px; height: 2px; background: #1a1a2e; }
  body .nav-actions a { font-size: 0; }
  body .nav-actions a::after { content: attr(aria-label); font-size: 12px; }
  body .kbm-nav { padding: 12px 16px !important; }
}
@media (max-width: 768px) {
  /* Force collection grids to 2-col with proper sizing */
  body .kbm-collections .collection-grid { grid-template-columns: 1fr 1fr !important; padding: 0 16px !important; gap: 12px !important; max-width: 100% !important; }
  body .kbm-collections .collection-card { min-width: 0 !important; max-width: 100% !important; width: auto !important; }
  body .kbm-collections .section-header { padding: 0 16px !important; }
  body .kbm-collections h2 { font-size: 26px !important; }
  /* Etsy/Instagram banners stack */
  .kbm-etsy-banner, .kbm-instagram-banner, .kbm-tiktok-banner { padding: 30px 16px !important; }
  .kbm-etsy-banner__inner, .kbm-instagram-banner__inner, .kbm-tiktok-banner__inner, .kbm-etsy-banner > div, .kbm-instagram-banner > div { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 18px !important; max-width: 100% !important; }
  .kbm-etsy-banner [class*=stats], .kbm-instagram-banner [class*=stats], .kbm-tiktok-banner [class*=stats] { flex-wrap: wrap; gap: 16px !important; justify-content: center; }
  /* Marquee promo bar text - no horizontal overflow */
  .kbm-promo-bar, .promo-bar { overflow: hidden; }
  /* Hide secondary promo marquee text below promo bar if it's overflowing */
  .kbm-marquee { overflow: hidden !important; }
}


/* ============================================================
   POLISH BATCH: NEW ARRIVALS red, BEST SELLERS premium, banner mobile stack
   ============================================================ */
/* NEW ARRIVALS pill - switch from orange to KBM red */
body .nav-new-link { background: #B04440 !important; box-shadow: 0 2px 12px rgba(176,68,64,0.35) !important; }
body .nav-new-link:hover { background: #c75450 !important; }

/* Etsy/Instagram/TikTok banners - force stack on mobile */
@media (max-width: 768px) {
  .kbm-etsy-banner, .kbm-ig-banner, .kbm-tiktok-banner { padding: 30px 16px !important; box-sizing: border-box; max-width: 100%; overflow-x: hidden; }
  .kbm-etsy-banner > *, .kbm-ig-banner > *, .kbm-tiktok-banner > * { max-width: 100% !important; }
  [class*=etsy-banner] [class*=stats], [class*=ig-banner] [class*=stats], [class*=tiktok-banner] [class*=stats] { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; justify-content: center !important; gap: 18px !important; }
  .kbm-etsy-banner [class*=cta], .kbm-ig-banner [class*=cta], .kbm-tiktok-banner [class*=cta] { margin-top: 16px; }
  .kbm-etsy-banner *, .kbm-ig-banner *, .kbm-tiktok-banner * { max-width: 100%; }
}


/* BEST SELLERS card - hide image text completely */
body .kbm-collections .collection-card[href*="best-sellers"] .collection-image,
body .kbm-collections .collection-card[href*="best-sellers"] picture,
body .kbm-collections .collection-card[href*="best-sellers"] img,
body .kbm-collections .collection-card[href*="best-sellers"] [class*=image] { visibility: hidden !important; }
body .kbm-collections .collection-card[href*="best-sellers"] { background: linear-gradient(135deg, #1a1a2e 0%, #0a0a14 100%) !important; }


/* ============================================================
   BS card image actually live behind .bg-denim, mobile nav icons, brighter red
   ============================================================ */
body .kbm-collections .collection-card[href*="best-sellers"] .collection-bg,
body .kbm-collections .collection-card[href*="best-sellers"] .bg-denim { background-image: none !important; background: linear-gradient(135deg, #1a1a2e 0%, #0a0a14 100%) !important; }
body .kbm-collections .collection-card[href*="best-sellers"] .collection-info { color: #fdf8f0 !important; }
body .nav-new-link, body .kbm-nav .nav-links .nav-new-link, body .nav-links .nav-new-link { background: #DC2F2F !important; box-shadow: 0 2px 14px rgba(220,47,47,0.4) !important; }
body .nav-new-link:hover { background: #ef3838 !important; }
@media (max-width: 900px) {
  body .nav-actions { display: flex !important; gap: 10px !important; align-items: center; }
  body .nav-actions > a, body .nav-actions > .cart-icon { font-size: 0 !important; position: relative; display: inline-flex !important; align-items: center; justify-content: center; width: 32px; height: 32px; color: #1a1a2e; }
  body .nav-actions > a::before, body .nav-actions > .cart-icon::before { content: ''; display: block; width: 22px; height: 22px; background-repeat: no-repeat; background-position: center; background-size: contain; }
  body .nav-actions a[href*=search]::before, body .nav-actions a[aria-label*=earch]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>"); }
  body .nav-actions a[href*=account]::before, body .nav-actions a[href*=login]::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/><circle cx='12' cy='7' r='4'/></svg>"); }
  body .nav-actions a[href*=cart]::before, body .nav-actions .cart-icon::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='9' cy='21' r='1'/><circle cx='20' cy='21' r='1'/><path d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/></svg>"); }
  body .nav-actions .cart-badge { position: absolute !important; top: -4px !important; right: -4px !important; z-index: 2; }
  body .kbm-nav { padding: 12px 14px !important; }
}


/* Mobile: keep text labels for Contact/Search/Affiliates, icon-only for Account */
@media (max-width: 900px) {
  .nav-action-label { display: inline-block !important; font-size: 10px !important; letter-spacing: 0.3px !important; }
  .nav-action { flex-direction: column !important; gap: 1px !important; padding: 2px 4px !important; }
  .nav-action[aria-label="Account"] .nav-action-label { display: none !important; }
  .nav-action[aria-label="Account"] .nav-icon { width: 22px !important; height: 22px !important; }
  .nav-actions { gap: 6px !important; }
  .nav-action .nav-icon { width: 18px !important; height: 18px !important; }
  body .kbm-nav { padding: 10px 8px !important; }
}


/* Kill old ::after attr(aria-label) duplicate text + ::before phantom icons */
body .nav-actions a::after, body .nav-actions button::after { content: none !important; display: none !important; }
body .nav-actions a::before, body .nav-actions button::before { content: none !important; display: none !important; }
body .nav-action { font-size: initial !important; }
body .nav-actions a { font-size: 13px !important; }
body .nav-action-label { font-size: 11px !important; }
