/* ========================================================================== 
   BÔ Grow Club — Storefront app shell
   Public storefront only. Loaded after the legacy stylesheet to progressively
   modernize the customer experience without changing internal tools.
   ========================================================================== */

:root {
  --bo-brand-primary: var(--color-primary, #152d24);
  --bo-brand-accent: var(--color-accent-gold, #c2a246);
  --bo-brand-text: var(--color-text-main, #152d24);
  --bo-brand-action: var(--color-success, #7ea642);
  /* Keep structural surfaces dark even when a tenant chooses a pale primary. */
  --bo-forest: color-mix(in srgb, var(--bo-brand-primary) 38%, #08130e);
  --bo-forest-soft: color-mix(in srgb, var(--bo-brand-primary) 30%, #152d24);
  --bo-leaf: var(--bo-brand-action);
  --bo-leaf-dark: color-mix(in srgb, var(--bo-brand-action) 66%, #08130e);
  --bo-gold: var(--bo-brand-accent);
  --bo-gold-soft: color-mix(in srgb, var(--bo-brand-accent) 42%, #f6f3e8);
  --bo-on-accent: #152d24;
  --bo-earth: #6b4e2e;
  --bo-cream: #f6f3e8;
  --bo-canvas: #f6f3e8;
  --bo-paper: #fffdf6;
  --bo-ink: #152d24;
  --bo-muted: #617066;
  --bo-line: rgba(21, 45, 36, 0.14);
  --bo-shadow-sm: 0 8px 28px rgba(21, 45, 36, 0.08);
  --bo-shadow-lg: 0 24px 70px rgba(21, 45, 36, 0.14);
  --bo-radius-sm: 12px;
  --bo-radius-md: 18px;
  --bo-radius-lg: 28px;
}

[data-theme="dark"] {
  --bo-paper: #13271f;
  --bo-canvas: #0e211a;
  --bo-ink: #f6f3e8;
  --bo-muted: #bdc9bf;
  --bo-line: rgba(246, 243, 232, 0.14);
  --bo-shadow-sm: 0 8px 28px rgba(0, 0, 0, 0.2);
  --bo-shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.32);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  background: var(--bo-canvas) !important;
  color: var(--bo-ink) !important;
  font-family: var(--font-sans, "Montserrat", "Outfit", sans-serif) !important;
  padding-bottom: 0 !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--bo-gold) !important;
  outline-offset: 3px;
}

.zen-bg-glow,
.zen-leaves-container,
.mandala-decoration {
  display: none !important;
}

/* Floating Lotus Wheel trigger button */
.floating-wheel-trigger,
#floating-wheel-btn {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  background: var(--bo-forest) !important;
  color: var(--bo-gold) !important;
  border: 2.5px solid var(--bo-gold) !important;
  cursor: pointer !important;
  z-index: 99 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 30px rgba(21, 45, 36, 0.45), 0 0 18px rgba(194, 162, 70, 0.35) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease !important;
}

.floating-wheel-trigger:hover,
#floating-wheel-btn:hover {
  transform: translateY(-4px) scale(1.08) !important;
  background: #1f4235 !important;
  box-shadow: 0 14px 36px rgba(21, 45, 36, 0.55), 0 0 24px rgba(194, 162, 70, 0.55) !important;
}

.floating-wheel-trigger svg,
#floating-wheel-btn svg {
  width: 32px !important;
  height: 32px !important;
  color: var(--bo-gold) !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
  .floating-wheel-trigger,
  #floating-wheel-btn {
    bottom: 84px !important;
    right: 18px !important;
    width: 54px !important;
    height: 54px !important;
  }
  .floating-wheel-trigger svg,
  #floating-wheel-btn svg {
    width: 26px !important;
    height: 26px !important;
  }
}

.brand-utility-bar {
  position: relative;
  z-index: 102;
  background: var(--bo-forest);
  color: var(--bo-cream);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.brand-utility-inner {
  width: min(100% - 48px, 1560px);
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.utility-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.utility-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bo-leaf);
  box-shadow: 0 0 0 4px rgba(126, 166, 66, 0.16);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.utility-links a {
  color: var(--bo-cream);
  text-decoration: none;
  opacity: 0.82;
}

.utility-links a:hover {
  opacity: 1;
  color: var(--bo-gold-soft);
}

/* Header and persistent search */
.main-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  padding: 0 !important;
  background: color-mix(in srgb, var(--bo-paper) 96%, transparent) !important;
  border-bottom: 1px solid var(--bo-line) !important;
  box-shadow: 0 4px 22px rgba(21, 45, 36, 0.06) !important;
  backdrop-filter: blur(18px);
}

.header-container {
  width: min(100% - 48px, 1560px) !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 10px 0 !important;
  display: grid !important;
  grid-template-columns: minmax(190px, 0.7fr) minmax(340px, 1.8fr) minmax(300px, 1fr) !important;
  align-items: center !important;
  gap: clamp(20px, 3vw, 46px) !important;
}

.header-logo-area {
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  cursor: pointer;
}

.header-logo-area .brand-logo {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px;
  border-radius: 50% !important;
  border: 1px solid rgba(194, 162, 70, 0.5) !important;
  box-shadow: none !important;
}

.brand-text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1;
}

.brand-title {
  color: var(--bo-ink) !important;
  font-family: "Cinzel", serif !important;
  font-size: 1.34rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--bo-gold) !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase;
}

.header-search-form {
  min-width: 0;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  min-height: 48px;
  display: flex !important;
  align-items: center !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: 999px !important;
  background: var(--bo-canvas) !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--bo-leaf) !important;
  box-shadow: 0 0 0 4px rgba(126, 166, 66, 0.13) !important;
}

.search-input-wrapper .search-icon {
  position: static !important;
  width: 19px !important;
  height: 19px !important;
  margin-left: 17px;
  flex: 0 0 auto;
  color: var(--bo-leaf-dark) !important;
}

.search-input-wrapper input {
  width: 100%;
  height: 46px !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--bo-ink) !important;
  font-size: 0.88rem !important;
  outline: 0 !important;
}

.search-input-wrapper input::placeholder {
  color: var(--bo-muted) !important;
  opacity: 0.84;
}

.clear-search-btn {
  position: static !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  margin-right: 4px;
  color: var(--bo-muted) !important;
  font-size: 1.35rem !important;
}

.header-cart-area {
  min-width: 0;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.theme-toggle-btn,
.nav-header-btn,
.nav-more-circle-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--bo-ink) !important;
  box-shadow: none !important;
}

.theme-toggle-btn {
  width: 44px !important;
  padding: 0 !important;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0 !important;
}

.theme-toggle-btn::first-letter {
  font-size: 1rem;
}

.theme-toggle-btn::before {
  content: "◐";
  color: var(--bo-ink);
  font-size: 1.05rem;
}

.nav-header-btn {
  padding: 0 14px !important;
  gap: 8px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
}

.nav-cart-btn {
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
  border-color: var(--bo-forest) !important;
}

.cart-badge {
  min-width: 18px !important;
  height: 18px !important;
  background: var(--bo-gold) !important;
  color: var(--bo-on-accent) !important;
  border: 2px solid var(--bo-forest) !important;
  font-size: 0.63rem !important;
}

.nav-more-circle-btn {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
}

.nav-more-menu-dropdown {
  top: calc(100% + 10px) !important;
  right: 0 !important;
  width: min(390px, calc(100vw - 32px)) !important;
  padding: 18px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-md) !important;
  background: var(--bo-paper) !important;
  box-shadow: var(--bo-shadow-lg) !important;
}

.more-menu-item {
  min-height: 58px !important;
  border-radius: var(--bo-radius-sm) !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-ink) !important;
}

.more-menu-team-access {
  border: 1px dashed rgba(23, 74, 52, 0.28) !important;
  background: rgba(244, 236, 218, 0.52) !important;
}

.desktop-primary-nav {
  border-top: 1px solid var(--bo-line);
  background: var(--bo-paper);
}

.desktop-primary-nav-inner {
  width: min(100% - 48px, 1560px);
  min-height: 42px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav-link {
  position: relative;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: none;
  color: var(--bo-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.desktop-nav-link:hover,
.desktop-nav-link.active {
  color: var(--bo-forest-soft);
}

.desktop-nav-link.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--bo-gold);
}

[data-theme="dark"] .desktop-nav-link:hover,
[data-theme="dark"] .desktop-nav-link.active {
  color: var(--bo-gold-soft);
}

/* Compact brand hero */
.hero-section {
  position: relative !important;
  min-height: 0 !important;
  padding: clamp(34px, 4vw, 48px) 24px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--bo-gold) 20%, transparent), transparent 30%),
    linear-gradient(
      135deg,
      var(--bo-forest) 0%,
      color-mix(in srgb, var(--bo-forest) 84%, var(--bo-leaf)) 66%,
      color-mix(in srgb, var(--bo-forest) 72%, var(--bo-leaf)) 100%
    ) !important;
  color: var(--bo-cream);
}

.hero-section::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  top: -310px;
  right: 8%;
  border: 1px solid rgba(246, 243, 232, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(246, 243, 232, 0.025), 0 0 0 144px rgba(246, 243, 232, 0.018);
}

.hero-container {
  position: relative;
  z-index: 1;
  width: min(100%, 1560px) !important;
  max-width: 1560px !important;
  min-height: 360px;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr) !important;
  align-items: center !important;
  gap: clamp(42px, 8vw, 120px) !important;
}

.hero-content {
  max-width: 760px !important;
  padding: 0 !important;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--bo-gold-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--bo-gold);
}

.hero-title {
  margin: 0 !important;
  color: var(--bo-cream) !important;
  font-family: "Cinzel", serif !important;
  font-size: clamp(2.55rem, 4.6vw, 4.2rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.04em !important;
  text-shadow: none !important;
}

.hero-title .highlight-gold {
  color: var(--bo-gold-soft) !important;
  font-family: "Playfair Display", serif !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero-description {
  max-width: 640px;
  margin: 24px 0 0 !important;
  color: rgba(246, 243, 232, 0.8) !important;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem) !important;
  line-height: 1.7 !important;
}

.hero-actions {
  margin-top: 28px !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px !important;
}

.hero-actions .btn {
  min-height: 50px !important;
  padding: 0 22px !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

.hero-actions .btn-primary {
  background: var(--bo-gold) !important;
  color: var(--bo-on-accent) !important;
  border-color: var(--bo-gold) !important;
  box-shadow: none !important;
}

.hero-actions .btn-secondary {
  border-color: rgba(246, 243, 232, 0.3) !important;
  background: rgba(246, 243, 232, 0.07) !important;
  color: var(--bo-cream) !important;
}

.hero-proof {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(246, 243, 232, 0.7);
  font-size: 0.75rem;
}

.hero-proof span {
  display: inline-flex;
  gap: 5px;
}

.hero-proof strong {
  color: var(--bo-cream);
}

.hero-service-card {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 24px !important;
  display: block !important;
  border: 1px solid rgba(246, 243, 232, 0.17);
  border-radius: var(--bo-radius-lg);
  background: rgba(246, 243, 232, 0.07);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.17);
  backdrop-filter: blur(12px);
}

.hero-service-brand {
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(246, 243, 232, 0.13);
}

.hero-service-brand img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  border: 1px solid rgba(194, 162, 70, 0.7);
  object-fit: cover;
}

.hero-service-brand div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-service-brand span {
  color: var(--bo-gold-soft);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-service-brand strong {
  color: var(--bo-cream);
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.hero-service-list > div {
  padding: 16px 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  border-bottom: 1px solid rgba(246, 243, 232, 0.11);
}

.hero-service-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.service-number {
  color: var(--bo-gold-soft);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
}

.hero-service-list p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-service-list strong {
  color: var(--bo-cream);
  font-size: 0.84rem;
}

.hero-service-list small {
  color: rgba(246, 243, 232, 0.65);
  font-size: 0.74rem;
}

.home-category-strip {
  width: min(100% - 48px, 1560px);
  margin: -1px auto 0;
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-category-strip::-webkit-scrollbar {
  display: none;
}

.home-category-btn.category-btn {
  width: auto !important;
  min-height: 44px !important;
  flex: 0 0 auto;
  padding: 0 18px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: 999px !important;
  background: var(--bo-paper) !important;
  color: var(--bo-ink) !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.home-category-btn:hover,
.home-category-btn.active {
  border-color: var(--bo-leaf) !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

/* Three-column desktop catalog */
.catalog-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 28px 24px 78px !important;
  background: transparent !important;
}

.catalog-container {
  width: min(100%, 1560px) !important;
  max-width: 1560px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(225px, 255px) minmax(0, 1fr) minmax(245px, 285px) !important;
  align-items: start !important;
  gap: clamp(18px, 2vw, 28px) !important;
}

.catalog-sidebar {
  position: sticky !important;
  top: 142px !important;
  display: block !important;
  max-height: calc(100vh - 160px);
  overflow: auto;
  scrollbar-width: thin;
}

.sidebar-block {
  padding: 18px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-md) !important;
  background: var(--bo-paper) !important;
  box-shadow: none !important;
}

.faceted-filter-panel {
  color: var(--bo-ink) !important;
}

.facet-header {
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--bo-line) !important;
}

.facet-main-title {
  color: var(--bo-ink) !important;
  font-family: "Cinzel", serif !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.01em;
}

.facet-group {
  background: transparent !important;
  border-bottom: 1px solid var(--bo-line) !important;
}

.facet-title {
  min-height: 46px;
  color: var(--bo-ink) !important;
  font-size: 0.77rem !important;
}

#catalog-sidebar .facet-title {
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
}

#catalog-sidebar .facet-content {
  padding: 5px 0 12px !important;
  background: transparent !important;
}

.category-list .category-btn {
  min-height: 40px !important;
  padding: 7px 8px !important;
  border-radius: 9px !important;
  color: var(--bo-muted) !important;
  font-size: 0.72rem !important;
}

.category-list .category-btn:hover,
.category-list .category-btn.active {
  background: rgba(126, 166, 66, 0.13) !important;
  color: var(--bo-leaf-dark) !important;
}

#catalog-sidebar .category-list .category-btn {
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--bo-muted) !important;
}

#catalog-sidebar .category-list .category-btn:hover {
  border-color: var(--bo-line) !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-leaf-dark) !important;
}

#catalog-sidebar .category-list .category-btn.active {
  border-color: var(--bo-forest) !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

[data-theme="dark"] .category-list .category-btn:hover,
[data-theme="dark"] .category-list .category-btn.active {
  color: var(--bo-gold-soft) !important;
}

.facet-check-item {
  min-height: 40px;
  color: var(--bo-muted) !important;
}

.facet-search-box input,
.price-field input {
  min-height: 42px;
  border: 1px solid var(--bo-line) !important;
  border-radius: 10px !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-ink) !important;
}

.price-preset-btn {
  min-height: 38px;
  border-color: var(--bo-line) !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-muted) !important;
}

.catalog-content {
  min-width: 0;
}

.catalog-header-controls {
  min-height: 60px !important;
  margin: 0 0 18px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-md) !important;
  background: var(--bo-paper) !important;
  box-shadow: none !important;
}

.mobile-filter-trigger-btn {
  position: static !important;
  width: auto !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 14px !important;
  display: none !important;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--bo-line) !important;
  border-radius: 999px !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-ink) !important;
  box-shadow: none !important;
  font-size: 0.76rem;
  font-weight: 700;
}

.mobile-filter-trigger-btn svg {
  width: 17px;
  height: 17px;
}

.results-count {
  color: var(--bo-muted) !important;
  font-size: 0.76rem !important;
}

.results-count span {
  color: var(--bo-ink) !important;
  font-weight: 800;
}

.sort-filter-wrapper {
  margin-left: auto;
}

.sort-label {
  color: var(--bo-muted) !important;
  font-size: 0.72rem !important;
}

#sort-select {
  min-height: 42px !important;
  padding: 0 34px 0 12px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: 10px !important;
  background-color: var(--bo-canvas) !important;
  color: var(--bo-ink) !important;
  font-size: 0.76rem !important;
}

.active-chips-container {
  margin-bottom: 16px !important;
  padding: 10px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-sm) !important;
  background: var(--bo-paper) !important;
}

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 1.4vw, 20px) !important;
}

.product-card {
  position: relative !important;
  min-width: 0;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-md) !important;
  background: var(--bo-paper) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

.product-card:hover {
  border-color: rgba(126, 166, 66, 0.65) !important;
  box-shadow: var(--bo-shadow-sm) !important;
  transform: translateY(-3px) !important;
}

.product-card.out-of-stock {
  opacity: 0.72 !important;
}

.product-card-img-wrapper {
  width: 100% !important;
  padding: 10px 10px 0 !important;
  background: transparent !important;
}

.product-card-img-container {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 0.88 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: calc(var(--bo-radius-md) - 6px) !important;
  background: #ece8d9 !important;
}

.product-card-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.product-card:hover .product-card-img {
  transform: scale(1.035) !important;
}

.product-card-logo-pill,
.product-detail-logo-pill {
  display: none !important;
}

.stock-tag {
  top: 14px !important;
  left: 14px !important;
  z-index: 2;
  min-height: 26px;
  padding: 4px 10px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}

.stock-tag.tag-in-stock {
  background: #2E7D32 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.stock-tag.tag-on-demand {
  background: #C2A246 !important;
  color: #0D1E17 !important;
  border: 1px solid rgba(13,30,23,0.25) !important;
}

.stock-tag.tag-local-store {
  background: #234E70 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.stock-tag.tag-out {
  background: #6B4E2E !important;
  color: #F6F3E8 !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
}

.product-card-content {
  flex: 1;
  padding: 14px 14px 15px !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card-category-row {
  min-height: 20px;
}

.product-card-category,
.product-card-weight-badge {
  color: var(--bo-leaf-dark) !important;
  font-size: 0.63rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

[data-theme="dark"] .product-card-category,
[data-theme="dark"] .product-card-weight-badge {
  color: var(--bo-gold-soft) !important;
}

.product-card-title {
  min-height: 2.75em !important;
  margin: 7px 0 12px !important;
  color: var(--bo-ink) !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: clamp(0.78rem, 0.9vw, 0.9rem) !important;
  font-weight: 650 !important;
  line-height: 1.38 !important;
}

.product-card-detail-link {
  min-height: 40px;
  margin: -5px -8px 6px;
  padding: 0 8px;
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--bo-leaf-dark);
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(62, 95, 31, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

[data-theme="dark"] .product-card-detail-link {
  color: var(--bo-gold-soft);
}

.product-card-footer {
  margin-top: auto !important;
  padding-top: 12px;
  align-items: center !important;
  border-top: 1px solid var(--bo-line);
}

.product-card-price {
  color: var(--bo-ink) !important;
  font-family: "Cinzel", serif !important;
  font-size: clamp(0.94rem, 1.2vw, 1.08rem) !important;
  font-weight: 700 !important;
}

.add-to-cart-btn {
  width: auto !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 13px !important;
  gap: 7px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
  box-shadow: none !important;
}

.add-to-cart-btn .icon {
  width: 17px !important;
  height: 17px !important;
}

.add-to-cart-label {
  font-size: 0.68rem;
  font-weight: 800;
}

.load-more-container {
  padding-top: 28px !important;
}

.btn-load-more {
  min-height: 48px !important;
  border-color: var(--bo-forest) !important;
  border-radius: 999px !important;
  color: var(--bo-forest) !important;
}

[data-theme="dark"] .btn-load-more {
  border-color: var(--bo-gold) !important;
  color: var(--bo-gold-soft) !important;
}

/* Useful desktop rail */
.store-utility-rail {
  position: sticky;
  top: 142px;
  display: grid;
  gap: 14px;
}

.utility-card {
  padding: 20px;
  border: 1px solid var(--bo-line);
  border-radius: var(--bo-radius-md);
  background: var(--bo-paper);
}

.utility-card-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--bo-leaf-dark);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-theme="dark"] .utility-card-kicker {
  color: var(--bo-gold-soft);
}

.utility-card h2 {
  margin: 0 0 10px;
  color: var(--bo-ink);
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.utility-card p {
  margin: 0;
  color: var(--bo-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.utility-card-club {
  background: var(--bo-forest);
  color: var(--bo-cream);
  border-color: var(--bo-forest);
  background-image: radial-gradient(circle at 100% 0, rgba(194, 162, 70, 0.22), transparent 40%);
}

.utility-card-club .utility-card-kicker {
  color: var(--bo-gold-soft);
}

.utility-card-club h2 {
  color: var(--bo-cream);
}

.utility-card-club p {
  color: rgba(246, 243, 232, 0.72);
}

.utility-card-link {
  min-height: 44px;
  margin-top: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--bo-gold-soft);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.utility-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rail-cart-count {
  color: var(--bo-muted);
  font-size: 0.67rem;
}

.rail-cart-total {
  margin: 5px 0 8px;
  display: block;
  color: var(--bo-ink);
  font-family: "Cinzel", serif;
  font-size: 1.45rem;
}

.utility-card-cart .btn {
  min-height: 44px !important;
  margin-top: 15px;
  border-radius: 999px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.utility-card-service ul {
  margin: 0 0 13px;
  padding: 0;
  display: grid;
  gap: 9px;
  list-style: none;
  color: var(--bo-muted);
  font-size: 0.72rem;
}

.utility-card-service li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.utility-card-service li span {
  color: var(--bo-leaf);
  font-weight: 800;
}

.utility-card-service a {
  color: var(--bo-leaf-dark);
  font-size: 0.73rem;
  font-weight: 800;
}

[data-theme="dark"] .utility-card-service a {
  color: var(--bo-gold-soft);
}

/* Main purchase flows are stable inline sections, not full-screen overlays. */
.cart-drawer-overlay {
  display: none !important;
}

.cart-drawer {
  position: relative !important;
  z-index: 2 !important;
  top: auto !important;
  right: auto !important;
  width: min(calc(100% - 48px), 1100px) !important;
  max-width: 1100px !important;
  height: auto !important;
  max-height: none !important;
  margin: 28px auto 70px !important;
  display: none !important;
  overflow: hidden !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-lg) !important;
  background: var(--bo-paper) !important;
  box-shadow: var(--bo-shadow-lg) !important;
  color: var(--bo-ink) !important;
  transform: none !important;
  opacity: 1 !important;
}

.cart-drawer.active {
  display: flex !important;
  flex-direction: column !important;
}

.cart-drawer-header {
  min-height: 76px;
  padding: 18px 24px !important;
  border-bottom: 1px solid var(--bo-line) !important;
  background: var(--bo-forest) !important;
}

.cart-drawer-title {
  color: var(--bo-cream) !important;
  font-family: "Cinzel", serif !important;
}

.close-drawer-btn {
  min-width: 44px;
  min-height: 44px;
  color: var(--bo-cream) !important;
}

.cart-drawer-body {
  min-height: 180px;
  max-height: none !important;
  padding: 24px !important;
  overflow: visible !important;
}

.cart-item {
  min-height: 96px;
  border-bottom: 1px solid var(--bo-line) !important;
}

.cart-item-img {
  border-radius: 12px !important;
  background: #ece8d9;
}

.qty-btn,
.remove-item-btn {
  min-width: 44px !important;
  min-height: 44px !important;
}

.cart-drawer-footer {
  padding: 22px 24px 24px !important;
  border-top: 1px solid var(--bo-line) !important;
  background: var(--bo-canvas) !important;
}

.cart-totals,
.totals-row {
  color: var(--bo-ink) !important;
}

.cart-drawer .btn-primary {
  min-height: 50px !important;
  border-radius: 999px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

#product-detail-modal,
#checkout-modal {
  position: relative !important;
  z-index: 2 !important;
  inset: auto !important;
  width: min(calc(100% - 48px), 1100px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 28px auto 70px !important;
  padding: 0 !important;
  display: none !important;
  align-items: initial !important;
  justify-content: initial !important;
  overflow: visible !important;
  background: transparent !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#product-detail-modal.active,
#checkout-modal.active {
  display: block !important;
}

#product-detail-modal .modal-card,
#checkout-modal .modal-card {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-lg) !important;
  background: var(--bo-paper) !important;
  color: var(--bo-ink) !important;
  box-shadow: var(--bo-shadow-lg) !important;
  transform: none !important;
}

#product-detail-modal .close-modal-btn,
#checkout-modal .close-modal-btn {
  min-width: 44px !important;
  min-height: 44px !important;
}

#checkout-modal .modal-header {
  min-height: 76px;
  padding: 18px 24px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

#checkout-modal .modal-header h2 {
  color: var(--bo-cream) !important;
  font-family: "Cinzel", serif !important;
}

#checkout-modal .modal-body {
  padding: 24px !important;
  overflow: visible !important;
}

#checkout-modal .form-control {
  min-height: 48px !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: 12px !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-ink) !important;
}

#checkout-modal .btn-checkout-submit {
  min-height: 52px !important;
  border-radius: 999px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.product-detail-layout {
  min-height: 480px;
  display: grid !important;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr) !important;
}

.product-detail-image-sec {
  padding: 32px !important;
  background: #ece8d9 !important;
}

.product-detail-img-container {
  height: 100%;
  min-height: 420px;
  border-radius: var(--bo-radius-md) !important;
  background: var(--bo-paper) !important;
}

#detail-product-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.product-detail-info-sec {
  padding: clamp(30px, 4vw, 56px) !important;
  color: var(--bo-ink) !important;
}

.product-detail-category {
  color: var(--bo-leaf-dark) !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em;
}

.product-detail-title {
  color: var(--bo-ink) !important;
  font-family: "Playfair Display", serif !important;
  font-size: clamp(1.8rem, 3vw, 2.8rem) !important;
  line-height: 1.08 !important;
}

.product-detail-price {
  color: var(--bo-ink) !important;
  font-family: "Cinzel", serif !important;
}

.quantity-selector-detail,
.qty-btn-detail {
  min-height: 48px !important;
}

.qty-btn-detail {
  min-width: 44px !important;
}

#detail-add-to-cart-btn {
  min-height: 50px !important;
  border-radius: 999px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.product-detail-description,
.product-detail-description p,
.product-detail-description-container h3 {
  color: var(--bo-muted) !important;
}

/* Mobile filter panel is inserted below catalog controls by JS. */
.mobile-filter-drawer-overlay {
  display: none !important;
}

.mobile-filter-drawer {
  position: relative !important;
  z-index: 1 !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 16px !important;
  display: none !important;
  overflow: hidden !important;
  border: 1px solid var(--bo-line) !important;
  border-radius: var(--bo-radius-md) !important;
  background: var(--bo-paper) !important;
  box-shadow: none !important;
  color: var(--bo-ink) !important;
  transform: none !important;
}

.mobile-filter-drawer.active {
  display: flex !important;
  flex-direction: column !important;
}

.mobile-filter-drawer-header {
  min-height: 58px;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--bo-line) !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.mobile-filter-drawer-header h3 {
  color: var(--bo-cream) !important;
  font-family: "Cinzel", serif !important;
  font-size: 0.9rem !important;
}

.close-mobile-filter-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  color: var(--bo-cream) !important;
}

.mobile-filter-drawer-body {
  max-height: none !important;
  padding: 14px !important;
  overflow: visible !important;
}

.mobile-filter-drawer .facet-header {
  display: none !important;
}

.mobile-filter-drawer .facet-title {
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--bo-ink) !important;
}

.mobile-filter-drawer .facet-content {
  padding: 5px 0 12px !important;
  background: transparent !important;
}

.mobile-filter-drawer .category-list .category-btn {
  min-height: 44px !important;
  border: 1px solid var(--bo-line) !important;
  background: var(--bo-canvas) !important;
  color: var(--bo-muted) !important;
}

.mobile-filter-drawer .category-list .category-btn:hover,
.mobile-filter-drawer .category-list .category-btn.active {
  border-color: var(--bo-leaf) !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.mobile-filter-drawer-footer {
  padding: 12px 14px !important;
  border-top: 1px solid var(--bo-line) !important;
  background: var(--bo-canvas) !important;
}

.btn-apply-mobile-filters {
  min-height: 48px !important;
  border-radius: 999px !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.mobile-nav {
  display: none !important;
}

.main-footer {
  padding-bottom: 0 !important;
  background: var(--bo-forest) !important;
  color: var(--bo-cream) !important;
}

.main-footer a,
.main-footer h3,
.footer-brand-desc,
.footer-contact-info p,
.footer-bottom,
.footer-zen-quote {
  color: var(--bo-cream) !important;
}

.footer-team-access {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 236, 218, 0.28);
  border-radius: 999px;
  color: var(--bo-cream) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.footer-team-access:hover,
.footer-team-access:focus-visible {
  border-color: var(--bo-gold);
  background: var(--bo-gold);
  color: var(--bo-on-accent) !important;
  outline: none;
}

@media (min-width: 1420px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  .add-to-cart-btn {
    width: 44px !important;
    padding: 0 !important;
  }

  .add-to-cart-label {
    display: none;
  }
}

@media (max-width: 1180px) {
  .header-container {
    grid-template-columns: minmax(170px, 0.55fr) minmax(300px, 1.45fr) minmax(255px, 0.8fr) !important;
    gap: 16px !important;
  }

  .nav-header-btn > span:not(.cart-badge) {
    display: none;
  }

  .nav-header-btn {
    width: 44px !important;
    padding: 0 !important;
  }

  .catalog-container {
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important;
  }

  .store-utility-rail {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 128px;
  }

  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }

  .brand-utility-bar,
  .desktop-primary-nav {
    display: none !important;
  }

  .main-header {
    top: 0 !important;
  }

  .header-container {
    width: 100% !important;
    min-height: 120px !important;
    padding: 9px 14px 10px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-rows: 48px 48px !important;
    gap: 8px 10px !important;
  }

  .header-logo-area {
    grid-column: 1;
    grid-row: 1;
  }

  .header-logo-area .brand-logo {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px;
  }

  .brand-title {
    font-size: 1.05rem !important;
  }

  .brand-subtitle {
    margin-top: 3px;
    font-size: 0.55rem !important;
  }

  .header-cart-area {
    grid-column: 2;
    grid-row: 1;
    gap: 5px !important;
  }

  .header-cart-area #club-trigger,
  .header-cart-area .theme-toggle-btn {
    display: none !important;
  }

  .nav-cart-btn,
  .nav-more-circle-btn {
    width: 44px !important;
    height: 44px !important;
  }

  .header-search-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .search-input-wrapper {
    min-height: 46px;
    border-radius: 14px !important;
  }

  .hero-section {
    padding: 30px 16px !important;
  }

  .hero-container {
    min-height: 0;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .hero-service-card {
    display: none !important;
  }

  .hero-eyebrow {
    margin-bottom: 12px;
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: clamp(2.15rem, 11vw, 3.15rem) !important;
    line-height: 1.02 !important;
  }

  .hero-description {
    margin-top: 16px !important;
    font-size: 0.88rem !important;
    line-height: 1.58 !important;
  }

  .hero-actions {
    margin-top: 20px !important;
  }

  .hero-actions .btn {
    min-height: 48px !important;
    flex: 1 1 150px;
    padding: 0 16px !important;
    font-size: 0.74rem !important;
  }

  .hero-proof {
    margin-top: 20px;
    gap: 8px 16px;
    font-size: 0.66rem;
  }

  .home-category-strip {
    width: 100%;
    padding: 12px 16px;
  }

  .home-category-btn.category-btn {
    min-height: 44px !important;
    padding: 0 15px !important;
  }

  .catalog-section {
    padding: 10px 14px 56px !important;
  }

  .catalog-container {
    display: block !important;
  }

  .catalog-sidebar {
    display: none !important;
  }

  .catalog-header-controls {
    min-height: 56px !important;
    margin-bottom: 12px !important;
    padding: 7px 8px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  .mobile-filter-trigger-btn {
    display: inline-flex !important;
  }

  .results-count {
    flex: 1;
    line-height: 1.25;
  }

  .sort-label {
    display: none !important;
  }

  #sort-select {
    min-height: 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    color: transparent !important;
    background-position: center !important;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    border-radius: 15px !important;
  }

  .product-card:hover {
    transform: none !important;
  }

  .product-card-img-wrapper {
    padding: 7px 7px 0 !important;
  }

  .product-card-img-container {
    border-radius: 11px !important;
    aspect-ratio: 1 / 0.92 !important;
  }

  .stock-tag {
    top: 13px !important;
    left: 13px !important;
    min-height: 24px;
    padding: 0 7px !important;
    font-size: 0.55rem !important;
  }

  .product-card-content {
    padding: 10px 10px 11px !important;
  }

  .product-card-category,
  .product-card-weight-badge {
    font-size: 0.55rem !important;
  }

  .product-card-title {
    min-height: 3.9em !important;
    margin: 5px 0 8px !important;
    font-size: 0.72rem !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 3 !important;
  }

  .product-card-detail-link {
    min-height: 44px;
    margin-bottom: 2px;
    font-size: 0.62rem;
  }

  .product-card-footer {
    padding-top: 9px;
    gap: 7px;
  }

  .product-card-price {
    font-size: 0.82rem !important;
  }

  .add-to-cart-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  .add-to-cart-label {
    display: none;
  }

  .store-utility-rail {
    display: none;
  }

  .mobile-nav {
    position: fixed !important;
    z-index: 1100 !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: 8px !important;
    width: auto !important;
    height: 66px !important;
    padding: 5px 4px !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    border: 1px solid rgba(246, 243, 232, 0.13) !important;
    border-radius: 20px !important;
    background: rgba(21, 45, 36, 0.97) !important;
    box-shadow: 0 14px 42px rgba(21, 45, 36, 0.34) !important;
    backdrop-filter: blur(18px);
  }

  .mobile-nav-btn {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 5px 2px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: transparent !important;
    color: rgba(246, 243, 232, 0.68) !important;
    font-size: 0.57rem !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .mobile-nav-btn .icon {
    width: 20px !important;
    height: 20px !important;
  }

  .mobile-nav-btn.active {
    background: rgba(246, 243, 232, 0.1) !important;
    color: var(--bo-gold-soft) !important;
  }

  .mobile-nav-btn.active::before {
    content: "";
    position: absolute;
    top: 1px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--bo-gold);
  }

  .mobile-cart-badge {
    top: -6px !important;
    right: -10px !important;
    background: var(--bo-gold) !important;
    color: var(--bo-on-accent) !important;
  }

  .cart-drawer,
  #product-detail-modal,
  #checkout-modal {
    width: calc(100% - 28px) !important;
    margin: 14px auto 32px !important;
    border-radius: 20px !important;
  }

  .cart-drawer-header,
  #checkout-modal .modal-header {
    min-height: 64px;
    padding: 10px 14px !important;
  }

  .cart-drawer-body,
  .cart-drawer-footer,
  #checkout-modal .modal-body {
    padding: 16px !important;
  }

  .product-detail-layout {
    min-height: 0;
    display: block !important;
  }

  .product-detail-image-sec {
    padding: 14px !important;
  }

  .product-detail-img-container {
    min-height: 260px;
    max-height: 360px;
  }

  .product-detail-info-sec {
    padding: 22px 18px 26px !important;
  }

  .product-detail-title {
    font-size: 1.75rem !important;
  }

  .product-detail-actions {
    align-items: stretch !important;
  }

  .main-footer {
    padding-bottom: 90px !important;
  }
}

@media (max-width: 420px) {
  .hero-section {
    padding-top: 25px !important;
    padding-bottom: 25px !important;
  }

  .hero-actions .btn-secondary {
    display: none !important;
  }

  .hero-proof span:last-child {
    display: none;
  }

  .results-count {
    font-size: 0.66rem !important;
  }

  .mobile-filter-trigger-btn {
    padding: 0 10px !important;
  }

  .mobile-filter-trigger-btn > span:not(.mobile-filter-count-badge) {
    display: none;
  }

  .product-card-price {
    font-size: 0.76rem !important;
  }

  .footer-container {
    grid-template-columns: 1fr !important;
  }
}

@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;
  }
}

/* ==========================================================================
   Storefront refinement — clearer buying flow, accessible controls and
   white-label typography. Kept here as the final public-facing layer.
   ========================================================================== */

.brand-title,
.hero-title,
.hero-title .highlight-gold,
.hero-service-brand strong,
.service-number,
.facet-main-title,
.product-card-price,
.utility-card h2,
.cart-drawer-title,
#checkout-modal .modal-header h2,
.product-detail-title,
.product-detail-price,
.mobile-filter-drawer-header h3 {
  font-family: var(--font-display, var(--font-serif, "Playfair Display", serif)) !important;
}

.product-card-title {
  font-family: var(--font-sans, "Montserrat", "Outfit", sans-serif) !important;
}

.hero-benefit-action {
  min-height: 50px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--bo-gold-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--bo-gold) 55%, transparent);
  text-underline-offset: 4px;
  cursor: pointer;
}

.hero-benefit-action:hover {
  color: var(--bo-gold);
  background: rgba(246, 243, 232, 0.07);
}

.hero-benefit-action .icon {
  width: 18px;
  height: 18px;
}

.home-category-strip {
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}

.home-category-btn.category-btn {
  scroll-snap-align: start;
}

.product-card:focus-within {
  border-color: var(--bo-gold) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bo-gold) 22%, transparent), var(--bo-shadow-sm) !important;
}

/* Opacity alone leaves invisible dialogs reachable from the keyboard. */
.modal-backdrop:not(.active):not(#web-order-receipt-modal) {
  visibility: hidden;
}

.modal-backdrop.active {
  visibility: visible;
}

.close-modal-btn,
.more-menu-close,
.clear-search-btn,
.remove-coupon-btn,
.close-mobile-filter-btn {
  min-width: 44px !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.price-preset-btn,
.facet-check-item {
  min-height: 44px;
}

/* The legacy contact cards used a fixed white surface in dark mode. */
.contact-subtitle,
.contact-card:not(.highlight) p {
  color: var(--bo-muted) !important;
}

.contact-card:not(.highlight) {
  background: color-mix(in srgb, var(--bo-paper) 96%, transparent) !important;
  border-color: var(--bo-line) !important;
  color: var(--bo-ink) !important;
}

.contact-card:not(.highlight) h3 {
  color: var(--bo-ink) !important;
}

.contact-card:not(.highlight) .contact-card-badge {
  background: color-mix(in srgb, var(--bo-leaf) 12%, transparent) !important;
  color: var(--bo-ink) !important;
}

@media (max-width: 900px) {
  .catalog-header-controls {
    position: sticky;
    top: 128px;
    z-index: 80;
    background: color-mix(in srgb, var(--bo-paper) 94%, transparent) !important;
    box-shadow: 0 10px 28px rgba(21, 45, 36, 0.09) !important;
    backdrop-filter: blur(16px);
  }

  #sort-select {
    width: min(42vw, 150px) !important;
    min-width: 128px !important;
    padding: 0 32px 0 10px !important;
    color: var(--bo-ink) !important;
    background-position: right 10px center !important;
  }

  .hero-proof {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px !important;
  }

  .hero-proof span {
    min-height: 58px;
    padding: 9px 8px;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    border: 1px solid rgba(246, 243, 232, 0.13);
    border-radius: 12px;
    background: rgba(246, 243, 232, 0.055);
    line-height: 1.25;
  }

  .hero-proof strong {
    font-size: 0.69rem;
  }

  .floating-wheel-trigger,
  #floating-wheel-btn {
    display: none !important;
  }

  .product-card-title {
    font-size: 0.8rem !important;
    line-height: 1.38 !important;
  }

  .product-card-price {
    font-size: 0.9rem !important;
  }

  .stock-tag,
  .product-card-category,
  .product-card-weight-badge {
    font-size: 0.66rem !important;
  }
}

@media (max-width: 420px) {
  .hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .hero-actions .btn-secondary {
    display: inline-flex !important;
  }

  .hero-actions .btn-secondary,
  .hero-benefit-action {
    width: 100%;
    min-height: 44px !important;
    padding: 0 10px !important;
    font-size: 0.68rem !important;
  }

  .hero-proof span:last-child {
    display: flex !important;
  }

  .results-count {
    font-size: 0.7rem !important;
  }
}
.developer-credit {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 12px;
  color: var(--theme-on-strong, #F6F3E8);
  font-size: .8rem;
}

.developer-credit-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 4px 18px #0002;
}

.developer-credit-pill img {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.external-catalog-notice {
  background: var(--theme-elevated, #F6F3E8);
  color: var(--theme-ink, #152D24);
  border: 1px solid var(--theme-line, #C2A246);
  padding: 14px 18px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: .9rem;
}

#detail-inquiry-link { min-height: 44px; text-align: center; }
#detail-inquiry-link[hidden], .external-catalog-notice[hidden] { display: none !important; }
#product-detail-modal [hidden] { display: none !important; }

[data-site-section][hidden], [data-site-text][hidden], [data-app-contact-row][hidden],
[data-app-brand-whatsapp-cta][hidden], [data-app-brand-whatsapp][hidden],
[data-app-brand-instagram-cta][hidden], [data-app-brand-facebook-cta][hidden],
[data-app-brand-maps-cta][hidden], #receipt-whatsapp-link[hidden], #mp-res-whatsapp-btn[hidden] { display: none !important; }
.hero-title [data-site-text] { overflow-wrap: anywhere; }
.hero-slider-wrapper { margin-top: 28px; }
.hero-slider-track { min-height: 0; }
.hero-slide-item { display: none; position: relative; min-height: 420px; height: auto; }
.hero-slide-item.active { display: flex; }
.hero-slide-item.is-youtube { flex-direction: column; }
.is-youtube .hero-slide-media-container { position: relative; height: clamp(240px, 45vw, 480px); }
.hero-slide-youtube { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; background: #101114; }
.is-youtube .hero-slide-overlay { height: auto; background: var(--theme-strong); padding: 24px 64px 64px; }
.hero-slide-content { min-width: 0; }
.hero-slide-title, .hero-slide-subtitle { overflow-wrap: anywhere; }
.hero-slide-overlay { color: var(--theme-on-strong); }
.hero-slide-item:not(.is-youtube) .hero-slide-overlay { min-height: inherit; width: 100%; }
.without-overlay:not(.is-youtube) .hero-slide-overlay { background: none; }
.without-overlay .hero-slide-content { background: var(--theme-strong); padding: 18px; border-radius: 14px; }
.hero-slide-cta-btn, .hero-video-fallback { min-height: 44px; display: inline-flex; align-items: center; }
.hero-video-fallback { color: var(--theme-on-strong); text-decoration: underline; margin-left: 14px; }
.hero-slider-controls { display: grid; grid-template-columns: auto 1fr 44px 44px; align-items: center; gap: 12px; padding: 12px 16px; background: var(--theme-strong); }
.hero-slider-pause { min-height: 44px; padding: 8px 14px; border: 1px solid var(--theme-line); border-radius: 99px; color: var(--theme-ink); background: var(--theme-surface); cursor: pointer; }
.hero-slider-controls .hero-slider-arrow { position: static; display: flex; width: 44px; height: 44px; transform: none; color: var(--theme-ink); background: var(--theme-surface); }
.hero-slider-controls .hero-slider-prev { grid-column: 3; grid-row: 1; }
.hero-slider-controls .hero-slider-next { grid-column: 4; grid-row: 1; }
.hero-slider-controls .hero-slider-dots { position: static; grid-column: 2; grid-row: 1; transform: none; justify-content: center; flex-wrap: wrap; gap: 0; }
.hero-slider-controls .hero-slider-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; }
.hero-slider-dot::after { content: ''; width: 10px; height: 10px; border-radius: 99px; background: var(--theme-on-strong); opacity: .5; }
.hero-slider-dot.active::after { width: 28px; opacity: 1; background: var(--theme-accent); }
.hero-media-unavailable { padding: 24px; color: var(--theme-on-strong); background: var(--theme-strong); }
.hero-slide-media-container [hidden] { display: none !important; }
@media (max-width: 720px) {
  .is-youtube .hero-slide-overlay { padding: 20px; }
  .hero-slider-controls { grid-template-columns: 1fr 44px 44px; }
  .hero-slider-controls .hero-slider-prev { grid-column: 2; }
  .hero-slider-controls .hero-slider-next { grid-column: 3; }
  .hero-slider-controls .hero-slider-dots { grid-column: 1 / -1; grid-row: 2; }
  .hero-slide-item { min-height: 320px; }
}

.inquiry-product .product-card-footer { flex-wrap: wrap; gap: 12px; }
.inquiry-product .add-to-cart-btn {
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 10px 12px;
  border-radius: 12px;
}
.inquiry-product .add-to-cart-btn .icon { display: none; }
.product-card.inquiry-product .add-to-cart-label { display: inline !important; font-size: .78rem; line-height: 1.35; }
