/* ══════════════════════════════════════════════
   BeanBreak Child Theme — assets/css/theme.css
   ══════════════════════════════════════════════ */

/* Override Wunderfront nav for our page */
body.page-template-front-page .site-header,
body.home .site-header { display: none !important; }
#bb-homepage { padding-top: 0; }

/* ── BASE RESET ── */
#bb-homepage * { box-sizing: border-box; }
#bb-homepage a { text-decoration: none; }
#bb-homepage ul { list-style: none; }

/* ── CUSTOM NAV ── */
.bb-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(247,242,236,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(184,150,90,0.12);
}
.bb-nav__left, .bb-nav__right { display: flex; align-items: center; gap: 32px; }
.bb-nav__left a, .bb-nav__right a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--bb-brown-mid); transition: color .2s;
}
.bb-nav__left a:hover, .bb-nav__right a:hover { color: var(--bb-gold); }
.bb-nav__logo {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.bb-nav__logo-circle {
  width: 30px; height: 30px; background: var(--bb-brown-dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.bb-nav__logo-circle svg { width: 16px; height: 16px; fill: var(--bb-gold); }
.bb-nav__logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bb-brown-dark);
}
.bb-nav__icons { display: flex; align-items: center; gap: 16px; }
.bb-nav__icons button {
  background: none; border: none; cursor: pointer;
  color: var(--bb-brown-mid); padding: 4px;
  display: flex; align-items: center; position: relative;
  transition: color .2s;
}
.bb-nav__icons button:hover { color: var(--bb-gold); }
.bb-cart-count {
  position: absolute; top: -5px; right: -7px;
  background: var(--bb-gold); color: white;
  font-size: 9px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; font-family: 'DM Sans', sans-serif;
}

/* ── BUTTONS ── */
.bb-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  padding: 16px 32px; border-radius: 50px; border: none;
  cursor: pointer; transition: all .25s;
}
.bb-btn svg { transition: transform .2s; }
.bb-btn:hover svg { transform: translateX(3px); }
.bb-btn--primary {
  background: var(--bb-brown-dark); color: white;
}
.bb-btn--primary:hover { background: var(--bb-brown-mid); transform: translateY(-1px); }
.bb-btn--outline {
  background: transparent; color: var(--bb-brown-dark);
  border: 1.5px solid rgba(29,21,16,.22);
}
.bb-btn--outline:hover { border-color: var(--bb-gold); color: var(--bb-gold); transform: translateY(-1px); }
.bb-btn--gold {
  background: var(--bb-gold); color: white;
}
.bb-btn--gold:hover { background: var(--bb-gold-light); transform: translateY(-1px); }

/* ── HERO ── */
.bb-hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; padding: 120px 48px 80px; gap: 60px;
  position: relative; overflow: hidden;
  background: var(--bb-cream);
}
.bb-hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,150,90,.07) 0%, transparent 70%);
  pointer-events: none;
}
.bb-hero__tag {
  font-size: 12px; font-weight: 600; letter-spacing: .22em;
  color: var(--bb-gold); text-transform: uppercase;
  margin-bottom: 28px; display: flex; align-items: center; gap: 14px;
  font-family: 'DM Sans', sans-serif;
}
.bb-hero__tag::before { content: ''; width: 44px; height: 1.5px; background: var(--bb-gold); }
.bb-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.2vw, 58px); line-height: 1.1;
  color: var(--bb-brown-dark); margin-bottom: 24px;
}
.bb-hero__title em { font-style: italic; color: var(--bb-brown-mid); }
.bb-hero__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; line-height: 1.75; color: var(--bb-text-muted);
  max-width: 420px; margin-bottom: 44px;
}
.bb-hero__btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 52px; }
.bb-hero__stats { display: flex; gap: 36px; align-items: center; }
.bb-stat { display: flex; flex-direction: column; gap: 4px; }
.bb-stat__num {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 500; color: var(--bb-brown-dark);
}
.bb-stat__label { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--bb-text-muted); }
.bb-stat__div { width: 1px; height: 40px; background: rgba(184,150,90,.25); }

/* Hero images */
.bb-hero__images { position: relative; height: 580px; }
.bb-hero__img-wrap {
  position: absolute; border-radius: var(--bb-radius-lg); overflow: hidden;
  box-shadow: var(--bb-shadow-lg);
}
.bb-hero__img--main { top: 0; right: 0; width: 80%; height: 78%; }
.bb-hero__img--sec  {
  bottom: 0; left: 0; width: 62%; height: 62%;
  border: 4px solid var(--bb-cream);
}
.bb-hero__img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease; display: block;
}
.bb-hero__img-wrap:hover img { transform: scale(1.04); }

/* Image replace button */
.bb-img-replace {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.92); color: var(--bb-brown-dark);
  border: none; border-radius: 50px; padding: 8px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  cursor: pointer; z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: all .2s;
  opacity: 0;
}
.bb-hero__img-wrap:hover .bb-img-replace,
.bb-cat-card:hover .bb-img-replace,
.bb-biz__image:hover .bb-img-replace,
.bb-biz-hero__bg:hover .bb-img-replace,
.bb-biz-solution__image:hover .bb-img-replace { opacity: 1; }
.bb-img-replace:hover { background: white; transform: translateY(-1px); }
.bb-img-replace--dark {
  background: rgba(28,21,16,0.75); color: white;
}
.bb-img-replace--dark:hover { background: rgba(28,21,16,0.9); }

/* ── SECTIONS ── */
.bb-section {
  padding: 96px 48px;
  background: var(--bb-cream);
}
.bb-section__tag {
  display: block; text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--bb-gold); text-transform: uppercase; margin-bottom: 14px;
}
.bb-section__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15;
  color: var(--bb-brown-dark); text-align: center; margin-bottom: 56px;
}

/* ── CATEGORIES GRID ── */
.bb-cats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.bb-cat-card {
  position: relative; border-radius: var(--bb-radius-lg);
  overflow: hidden; aspect-ratio: 4/3;
  display: block; cursor: pointer;
}
.bb-cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease; display: block;
}
.bb-cat-card:hover img { transform: scale(1.06); }
.bb-cat-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,21,16,.72) 0%, rgba(28,21,16,.08) 55%, transparent 100%);
}
.bb-cat-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 24px; z-index: 1;
}
.bb-cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 500; color: white; margin-bottom: 4px;
}
.bb-cat-desc { font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 12px; }
.bb-cat-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  color: var(--bb-gold-light);
  display: flex; align-items: center; gap: 6px; text-transform: uppercase;
}
.bb-cat-count {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  background: rgba(255,255,255,.18); backdrop-filter: blur(8px);
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 50px;
}

/* ── PRODUCTS ── */
.bb-products-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
}
.bb-products-header .bb-section__tag {
  text-align: left;
  margin-bottom: 8px;
}
.bb-products-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.4vw, 34px); color: var(--bb-brown-dark); line-height: 1.15;
}
.bb-see-all {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500; color: var(--bb-text-muted);
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: color .2s; align-self: flex-end; padding-bottom: 3px;
  text-decoration: none;
}
.bb-see-all:hover { color: var(--bb-gold); }
.bb-products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.bb-products-grid.bb-grid-3 { grid-template-columns: repeat(3, 1fr); }

.bb-product-card {
  display: block; cursor: pointer; transition: transform .3s;
}
.bb-product-card:hover { transform: translateY(-4px); }
.bb-product-card__img {
  aspect-ratio: 1; background: var(--bb-cream-dark);
  border-radius: var(--bb-radius); overflow: hidden;
  position: relative; margin-bottom: 12px;
}
.bb-product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; display: block;
}
.bb-product-card:hover .bb-product-card__img img { transform: scale(1.05); }
.bb-product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bb-brown-dark); color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 50px;
}
.bb-product-badge--sale { background: #C0392B; }
.bb-product-badge--out  { background: #888; }
.bb-wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  background: white; border: none; width: 34px; height: 34px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); color: var(--bb-text-muted);
}
.bb-product-card:hover .bb-wishlist-btn { opacity: 1; }
.bb-wishlist-btn.active { color: #C0392B; }
.bb-product-card__cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  color: var(--bb-gold); text-transform: uppercase; margin-bottom: 5px;
}
.bb-product-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 15px; line-height: 1.35; color: var(--bb-brown-dark); margin-bottom: 8px;
}
.bb-product-card__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 500; color: var(--bb-brown-dark);
  display: flex; align-items: center; gap: 10px;
}
.bb-price-old {
  font-size: 14px; color: var(--bb-text-muted);
  text-decoration: line-through; font-weight: 400;
}
.bb-price-sale { color: #C0392B; }
.bb-add-cart-btn {
  margin-top: 12px; width: 100%;
  background: transparent; color: var(--bb-brown-dark);
  border: 1.5px solid rgba(29,21,16,.18);
  border-radius: 50px; padding: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  opacity: 0; transform: translateY(4px);
}
.bb-product-card:hover .bb-add-cart-btn {
  opacity: 1; transform: translateY(0);
}
.bb-add-cart-btn:hover {
  background: var(--bb-brown-dark); color: white; border-color: transparent;
}

/* ── BUSINESS SECTION ── */
.bb-biz-wrap { padding: 0 48px; }
.bb-biz {
  background: var(--bb-brown-dark);
  border-radius: var(--bb-radius-lg);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 500px;
}
.bb-biz__content {
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.bb-biz__tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  color: var(--bb-gold); text-transform: uppercase;
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.bb-biz__tag::before { content: ''; width: 24px; height: 1px; background: var(--bb-gold); }
.bb-biz__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 2.8vw, 40px); color: white; line-height: 1.15; margin-bottom: 16px;
}
.bb-biz__title em { font-style: italic; color: var(--bb-gold-light); }
.bb-biz__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.5);
  max-width: 380px; margin-bottom: 32px;
}
.bb-biz__features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.bb-biz__features li {
  display: flex; align-items: flex-start; gap: 14px;
}
.bb-biz__icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(184,150,90,.12); border: 1px solid rgba(184,150,90,.2);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--bb-gold);
}
.bb-biz__features li span:last-child {
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,.45);
  padding-top: 8px; line-height: 1.5;
}
.bb-biz__features li strong {
  display: block; font-size: 14px; color: white; font-weight: 500; margin-bottom: 3px;
}
.bb-biz__image { position: relative; overflow: hidden; }
.bb-biz__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-biz__image::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(28,21,16,.25) 0%, transparent 40%);
}

/* ── WHY SECTION ── */
.bb-why { background: var(--bb-cream-dark); }
.bb-features-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.bb-feature {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 36px 20px;
  background: var(--bb-cream); border-radius: var(--bb-radius);
  transition: transform .25s, box-shadow .25s;
}
.bb-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(28,21,16,.08);
}
.bb-feature__icon {
  width: 52px; height: 52px;
  background: rgba(184,150,90,.1); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--bb-gold);
}
.bb-feature__name {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--bb-brown-dark); margin-bottom: 8px;
}
.bb-feature__desc { font-family: 'DM Sans', sans-serif; font-size: 12px; line-height: 1.6; color: var(--bb-text-muted); }

/* ── NEWSLETTER ── */
.bb-newsletter { text-align: center; }
.bb-newsletter__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; color: var(--bb-text-muted); line-height: 1.7;
  max-width: 440px; margin: 0 auto 40px;
}
.bb-newsletter__form {
  display: flex; max-width: 420px; margin: 0 auto;
  background: white; border-radius: 50px;
  box-shadow: 0 4px 24px rgba(28,21,16,.08);
  overflow: hidden; border: 1.5px solid rgba(184,150,90,.15);
}
.bb-newsletter__form input {
  flex: 1; border: none; outline: none; padding: 16px 24px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--bb-brown-dark); background: transparent;
}
.bb-newsletter__form input::placeholder { color: var(--bb-text-muted); }
.bb-newsletter__form button {
  background: var(--bb-brown-dark); color: white; border: none;
  padding: 14px 28px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border-radius: 50px; margin: 4px;
  display: flex; align-items: center; gap: 8px; transition: background .2s;
}
.bb-newsletter__form button:hover { background: var(--bb-brown-mid); }

/* ── SKELETONS ── */
.bb-skeleton {
  background: linear-gradient(90deg, var(--bb-cream-dark) 25%, rgba(237,230,219,.5) 50%, var(--bb-cream-dark) 75%);
  background-size: 200% 100%;
  animation: bb-shimmer 1.5s infinite;
  border-radius: var(--bb-radius-lg);
}
.bb-cat-skeleton { aspect-ratio: 4/3; }
.bb-product-skeleton { aspect-ratio: 0.8; border-radius: var(--bb-radius); }
@keyframes bb-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOAST ── */
.bb-toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bb-brown-dark); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  padding: 14px 28px; border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
  z-index: 9999; opacity: 0; transition: all .35s ease;
  white-space: nowrap;
}
.bb-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.bb-toast.success::before { content: '✓  '; color: var(--bb-gold); }
.bb-toast.error::before   { content: '✕  '; color: #C0392B; }

/* ── SCROLL REVEAL ── */
.bb-reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.bb-reveal.bb-visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
.bb-hero__tag    { animation: bbFadeUp .6s ease both; }
.bb-hero__title  { animation: bbFadeUp .6s .1s ease both; }
.bb-hero__subtitle { animation: bbFadeUp .6s .2s ease both; }
.bb-hero__btns   { animation: bbFadeUp .6s .3s ease both; }
.bb-hero__stats  { animation: bbFadeUp .6s .4s ease both; }
.bb-hero__images { animation: bbFadeUp .8s .15s ease both; }
@keyframes bbFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .bb-nav { padding: 0 24px; }
  .bb-hero { grid-template-columns: 1fr; padding: 120px 32px 60px; }
  .bb-hero__images { height: 380px; }
  .bb-hero__subtitle { max-width: 100%; }
  .bb-products-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-cats-grid { grid-template-columns: repeat(2, 1fr); }
  .bb-features-row { grid-template-columns: repeat(3, 1fr); }
  .bb-biz { grid-template-columns: 1fr; }
  .bb-biz__image { min-height: 280px; }
  .bb-biz-wrap { padding: 0 24px; }
  .bb-section { padding: 72px 32px; }
}
@media (max-width: 640px) {
  .bb-nav__left { display: none; }
  .bb-products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bb-cats-grid { grid-template-columns: 1fr; }
  .bb-features-row { grid-template-columns: 1fr 1fr; }
}

/* ── FOOTER ── */
.bb-footer {
  background: var(--bb-brown-dark);
  padding: 20px 48px 28px;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
}
.bb-footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px; margin-bottom: 28px;
  align-items: start;
}
.bb-footer__col { padding-top: 26px; }
.bb-footer__logo {
  position: relative;
  display: inline-flex; align-items: center;
  margin-bottom: 20px;
}
.bb-footer__logo-img {
  max-height: 150px; max-width: 280px;
  width: auto; height: auto;
  object-fit: contain;
}
.bb-footer__logo-placeholder {
  width: 32px; height: 32px; background: var(--bb-gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.bb-footer__logo-placeholder svg { width: 18px; height: 18px; fill: white; }
.bb-footer__logo-edit {
  position: absolute; bottom: -6px; right: -24px;
  background: var(--bb-gold); border: none; border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: white; opacity: 0;
  transition: opacity .2s;
}
.bb-footer__logo:hover .bb-footer__logo-edit { opacity: 1; }
.bb-footer__logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: white; font-weight: 500; letter-spacing: .05em;
}
.bb-footer__col-title {
  font-size: 11px; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 16px;
  padding-top: 0;
}
.bb-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.bb-footer__col ul li { padding: 0; margin: 0; }
.bb-footer__col ul li a {
  font-size: 14px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s;
  display: block;
}
.bb-footer__col ul li a:hover { color: var(--bb-gold-light); }
.bb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.bb-footer__contact { display: flex; gap: 28px; }
.bb-footer__contact a {
  font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none;
  display: flex; align-items: center; gap: 6px; transition: color .2s;
}
.bb-footer__contact a:hover { color: var(--bb-gold-light); }
@media (max-width: 960px) {
  .bb-footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .bb-footer { padding: 48px 24px 32px; }
}

/* ── PEIDA WUNDERFRONT LOADING OVERLAY ── */
#wf-loader,
.wf-loader,
.wf-loading,
.wf-preloader,
[class*="wunderfront-load"],
[id*="wf-load"],
.site-loader,
#site-loader,
.page-loader,
#page-loader { display: none !important; visibility: hidden !important; opacity: 0 !important; }

body { visibility: visible !important; opacity: 1 !important; }

/* ── NAV — admin riba kompensatsioon ── */
.admin-bar .bb-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .bb-nav { top: 46px; }
}
.bb-hero { padding-top: 100px; }
.admin-bar .bb-hero { padding-top: 132px; }

/* ── NAV PARANDUSED ── */
/* Peida Wunderfronti päis */
.site-header, #site-header, .wf-header,
.wunderfront-header { display: none !important; }

/* Nav ikoonid — ainult puhtad ikoonid */
.bb-nav__icon-link {
  display: flex; align-items: center;
  color: var(--bb-brown-mid); transition: color .2s;
}
.bb-nav__icon-link:hover { color: var(--bb-gold); }

/* Logo keskel — pilt */
.bb-nav__logo img { height: 36px; width: auto; object-fit: contain; }

/* ── POOD DROPDOWN ── */
.bb-nav__dropdown { position: relative; }
.bb-nav__dropdown-trigger {
  display: flex; align-items: center; gap: 4px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--bb-brown-mid); text-decoration: none;
  cursor: pointer; transition: color .2s;
  background: none; border: none; padding: 0;
}
.bb-nav__dropdown-trigger:hover { color: var(--bb-gold); }
.bb-nav__dropdown-trigger svg { transition: transform .2s; }
.bb-nav__dropdown.open .bb-nav__dropdown-trigger svg { transform: rotate(180deg); }

.bb-nav__dropdown { position: static; }
.bb-nav__dropdown-menu {
  position: fixed;
  top: 76px; left: 0; right: 0;
  background: white;
  box-shadow: 0 8px 32px rgba(28,21,16,.10);
  padding: 36px 64px; display: none;
  grid-template-columns: repeat(6, 1fr); gap: 32px;
  border-top: 2px solid var(--bb-gold);
  z-index: 998;
}
.admin-bar .bb-nav__dropdown-menu { top: 108px; }
.bb-nav__dropdown.open .bb-nav__dropdown-menu { display: grid; }
nav.bb-nav {
  overflow: visible !important;
  border-bottom: 1px solid rgba(184,150,90,0.12);
}
nav.bb-nav.dropdown-open {
  border-bottom-color: white !important;
}
nav.bb-nav::after { display: none; }
nav.bb-nav.dropdown-open::after { display: none; }

.bb-dropdown__heading-link {
  display: block !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important; font-weight: 700 !important;
  letter-spacing: .15em !important; text-transform: uppercase !important;
  color: var(--bb-gold) !important; text-decoration: none !important;
  margin-bottom: 14px !important; padding: 0 !important;
  border-bottom: none !important;
}
.bb-dropdown__heading-link:hover { color: var(--bb-brown-dark) !important; }

.bb-dropdown__heading {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--bb-gold);
  margin-bottom: 12px;
}
.bb-dropdown__col a {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--bb-brown-mid);
  text-decoration: none; padding: 5px 0;
  transition: color .2s;
  border-bottom: 1px solid rgba(184,150,90,.08);
}
.bb-dropdown__col a:hover { color: var(--bb-gold); padding-left: 4px; }

/* ── PEIDA WUNDERFRONTI NAV TÄIELIKULT ── */
.site-header,
#site-header,
.wf-header,
header.site-header,
#masthead,
.wunderfront-header,
[class*="wf-nav"],
[id*="wf-nav"],
.main-navigation,
#site-navigation { display: none !important; }

/* Meie logo keskel */
.bb-nav { display: grid !important; grid-template-columns: 1fr auto 1fr !important; }
.bb-nav__left  { justify-self: start; }
.bb-nav__logo  { justify-self: center; position: static !important; transform: none !important; left: auto !important; }
.bb-nav__right { justify-self: end; }

/* ── LOGO REPLACE NUPP — ainult admin, hoover peale ── */
.bb-logo-wrap { position: relative !important; }
.bb-logo-replace {
  position: absolute !important;
  bottom: -18px !important; left: 50% !important;
  transform: translateX(-50%) !important;
  background: var(--bb-gold) !important; color: white !important;
  border: none !important; border-radius: 50px !important;
  padding: 3px 10px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important; font-weight: 500 !important;
  white-space: nowrap !important; cursor: pointer !important;
  opacity: 0 !important; z-index: 10 !important;
  transition: opacity .2s !important;
  right: auto !important;
}
.bb-logo-wrap:hover .bb-logo-replace { opacity: 1 !important; }

/* ── DROPDOWN — silla fix et menüü ei kaoks ── */
.bb-nav__dropdown-trigger::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px; right: -20px;
  height: 24px; /* sild triggeri ja menüü vahel */
}
.bb-nav__dropdown { position: relative; }
.bb-nav__dropdown-menu {
  margin-top: 0 !important;
}

nav.bb-nav {
  border-bottom: 1px solid rgba(184,150,90,0.12);
  transition: border-color .2s;
}
nav.bb-nav.dropdown-open {
  border-bottom-color: transparent !important;
}
.bb-nav { height: 76px; padding: 0 52px; }
.bb-nav__left a,
.bb-nav__right a,
.bb-nav__dropdown-trigger {
  font-size: 15px !important;
}
.bb-nav__logo img { height: 40px !important; }

/* Eemalda jooned nav linkide alt */
.bb-nav__left a,
.bb-nav__right a { text-decoration: none !important; }
.bb-nav__left a:hover,
.bb-nav__right a:hover {
  text-decoration: none !important;
  color: var(--bb-gold) !important;
}

/* ── SEARCH BAR ── */
.bb-nav__search-wrap {
  position: relative; display: flex; align-items: center;
}
.bb-nav__search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--bb-brown-mid); display: flex; align-items: center;
  padding: 4px; transition: color .2s; z-index: 2;
}
.bb-nav__search-btn:hover { color: var(--bb-gold); }

.bb-search-bar {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center;
  width: 0; overflow: hidden;
  background: white;
  border-radius: 50px;
  border: 1.5px solid rgba(184,150,90,.3);
  transition: width .35s cubic-bezier(.4,0,.2,1), opacity .25s;
  opacity: 0;
  margin-right: 8px;
}
.bb-nav__search-wrap.open .bb-search-bar {
  width: 280px; opacity: 1;
}
.bb-search-bar input {
  flex: 1; border: none; outline: none;
  padding: 9px 16px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--bb-brown-dark); background: transparent;
  min-width: 0;
}
.bb-search-bar input::placeholder { color: var(--bb-text-muted); }
.bb-search-close {
  background: none; border: none; cursor: pointer;
  color: var(--bb-text-muted); padding: 8px 12px 8px 0;
  display: flex; align-items: center; transition: color .2s;
  flex-shrink: 0;
}
.bb-search-close:hover { color: var(--bb-brown-dark); }

/* ── LIVE TEKSTI MUUTMINE ── */
[contenteditable="true"] {
  outline: none;
  border-radius: 4px;
  transition: background .2s;
  cursor: text;
}
[contenteditable="true"]:hover {
  background: rgba(184,150,90,.08);
  box-shadow: 0 0 0 2px rgba(184,150,90,.25);
}
[contenteditable="true"]:focus {
  background: rgba(184,150,90,.12);
  box-shadow: 0 0 0 2px rgba(184,150,90,.5);
}

#bb-save-bar {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: var(--bb-brown-dark); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  padding: 12px 20px; border-radius: 50px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 9998; opacity: 0.4;
  transition: opacity .3s;
}
#bb-save-bar.has-changes { opacity: 1; }
#bb-save-status { color: rgba(255,255,255,.65); }
#bb-save-bar.has-changes #bb-save-status { color: var(--bb-gold-light); }
#bb-save-texts {
  background: var(--bb-gold); color: white; border: none;
  padding: 7px 18px; border-radius: 50px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  transition: background .2s;
}
#bb-save-texts:hover { background: var(--bb-gold-light); }
#bb-cancel-texts {
  background: transparent; color: rgba(255,255,255,.5); border: none;
  padding: 7px 12px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  transition: color .2s;
}
#bb-cancel-texts:hover { color: white; }

/* ── EDIT BAR — admin muutmisrežiim ── */
.bb-edit-bar {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bb-brown-dark); color: white;
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  padding: 12px 20px; border-radius: 50px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 9998; white-space: nowrap;
}
.bb-edit-bar__label { color: rgba(255,255,255,.7); }
.bb-edit-bar__btn {
  background: var(--bb-gold); color: white; border: none;
  padding: 7px 16px; border-radius: 50px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  text-decoration: none; transition: background .2s;
}
.bb-edit-bar__btn:hover { background: var(--bb-gold-light); }
.bb-edit-bar__btn--outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,.3); color: white;
}
.bb-edit-bar__btn--outline:hover { background: rgba(255,255,255,.1); }
.bb-edit-bar__status { font-size: 12px; font-weight: 500; }

/* Contenteditable stiilid — näita muudetavaid tekste */
[contenteditable="true"] {
  outline: none;
  border-bottom: 1.5px dashed rgba(184,150,90,.5);
  cursor: text;
  min-width: 10px;
  transition: border-color .2s, background .2s;
  border-radius: 2px;
  padding: 0 2px;
}
[contenteditable="true"]:hover {
  border-bottom-color: var(--bb-gold);
  background: rgba(184,150,90,.06);
}
[contenteditable="true"]:focus {
  border-bottom-color: var(--bb-gold);
  background: rgba(184,150,90,.08);
}

/* ════════════════════════════════════════
   DEFINITIIVNE DROPDOWN FIX
   ════════════════════════════════════════ */
:root { --bb-nav-h: 76px; }
.admin-bar { --bb-nav-h: 108px; }

.bb-nav {
  height: var(--bb-nav-h) !important;
}
.bb-nav__dropdown-menu {
  top: var(--bb-nav-h) !important;
  margin-top: 0 !important;
  border-top: 2px solid var(--bb-gold) !important;
  box-shadow: 0 8px 32px rgba(28,21,16,.10) !important;
}
nav.bb-nav.dropdown-open {
  border-bottom-color: white !important;
  background: rgba(247,242,236,1) !important;
}

/* ════════════════════════════════════════
   TOOTEKAARDID — LUKSUSLIK REDESIGN
   ════════════════════════════════════════ */

.bb-product-card {
  display: block;
  cursor: pointer;
  transition: transform .35s ease, box-shadow .35s ease;
  text-decoration: none !important;
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: var(--bb-cream);
}
.bb-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(28,21,16,.10);
}

/* Pilt */
.bb-product-card__img {
  aspect-ratio: 1;
  background: var(--bb-cream-dark);
  border-radius: var(--bb-radius);
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-radius .35s ease;
}
.bb-product-card:hover .bb-product-card__img {
  border-radius: var(--bb-radius) var(--bb-radius) 0 0;
}
.bb-product-card__img img {
  max-width: 88%; max-height: 88%;
  width: auto !important; height: auto !important;
  object-fit: contain;
  display: block;
  transition: transform .45s ease;
}
.bb-product-card:hover .bb-product-card__img img {
  transform: scale(1.06);
}

/* Info sektsion */
.bb-product-card__info {
  padding: 16px 4px 4px;
}

/* Bränd */
.bb-product-card__brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--bb-text-muted);
  margin-bottom: 4px;
  text-decoration: none !important;
}

/* Kategooria */
.bb-product-card__cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  color: var(--bb-gold); text-transform: uppercase;
  margin-bottom: 6px;
  text-decoration: none !important;
}

/* Nimi */
.bb-product-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 15px; line-height: 1.35;
  color: var(--bb-brown-dark); margin-bottom: 10px;
  text-decoration: none !important;
  border: none !important;
  display: block;
}
.bb-product-card__name:hover,
.bb-product-card *:hover { text-decoration: none !important; }

/* Hind */
.bb-product-card__price {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px; font-weight: 600;
  color: var(--bb-brown-dark);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none !important;
}

/* Hover — ilmub "Lisa ostukorvi" riba */
.bb-product-card__action {
  height: 0; overflow: hidden;
  transition: height .3s ease, opacity .3s ease;
  opacity: 0;
  background: var(--bb-brown-dark);
  border-radius: 0 0 var(--bb-radius) var(--bb-radius);
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: white; letter-spacing: .04em;
}
.bb-product-card:hover .bb-product-card__action {
  height: 44px;
  opacity: 1;
}
.bb-product-card__action svg { color: var(--bb-gold); }

/* Wishlist nupp */
.bb-wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.9);
  border: none; width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0;
  transition: opacity .25s, background .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  color: var(--bb-text-muted);
}
.bb-product-card:hover .bb-wishlist-btn { opacity: 1; }
.bb-wishlist-btn.active { opacity: 1; color: #C0392B; background: white; }
.bb-wishlist-btn:hover { background: white; color: #C0392B; }

/* Eemaldame kõik jooned linkidelt tootekaartides */
.bb-product-card a,
.bb-product-card a:hover,
.bb-product-card a:visited,
.bb-product-card a:focus { text-decoration: none !important; }

/* Sale badge */
.bb-product-badge--sale { background: #B8414B; }
.bb-price-old { font-size: 13px; color: var(--bb-text-muted); text-decoration: line-through; font-weight: 400; }
.bb-price-sale { color: #B8414B; }

/* ── UUS TOOTEKAART — action bar eemaldatud, elegantne nupp all ── */
.bb-product-card__action { display: none !important; }

.bb-product-card {
  border-radius: var(--bb-radius) !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
}
.bb-product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: none !important;
}
.bb-product-card__img {
  border-radius: var(--bb-radius) !important;
}
.bb-product-card:hover .bb-product-card__img {
  border-radius: var(--bb-radius) !important;
}

/* Elegant cart button under card */
.bb-product-card__cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 11px 16px;
  background: transparent;
  border: 1.5px solid rgba(29,21,16,.15);
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--bb-brown-mid);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: all .25s;
  opacity: 0; transform: translateY(4px);
}
.bb-product-card:hover .bb-product-card__cart-btn {
  opacity: 1; transform: translateY(0);
}
.bb-product-card__cart-btn:hover {
  background: var(--bb-brown-dark);
  border-color: var(--bb-brown-dark);
  color: white;
}
.bb-product-card__cart-btn:hover svg { color: var(--bb-gold-light); }

/* Lisa ostukorvi — alati nähtav, mitte hover-only */
.bb-product-card__cart-btn {
  opacity: 1 !important;
  transform: none !important;
  margin-top: 14px !important;
  padding: 10px 20px !important;
  width: 100% !important;
  border-radius: 50px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: .03em !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 1.5px solid rgba(29,21,16,.18) !important;
  color: var(--bb-brown-mid) !important;
  transition: background .2s, border-color .2s, color .2s !important;
  font-family: 'DM Sans', sans-serif !important;
}
.bb-product-card__cart-btn:hover {
  background: var(--bb-brown-dark) !important;
  border-color: var(--bb-brown-dark) !important;
  color: white !important;
}
/* Bränd — gold, suurem letter-spacing */
.bb-product-card__brand {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: var(--bb-gold) !important;
  font-family: 'DM Sans', sans-serif !important;
  margin-bottom: 5px !important;
}
/* Eemalda duplication cat div */
.bb-product-card__cat { display: none !important; }

/* ── TOOTEKAART — nupp pildi sees ── */
.bb-product-card__img { position: relative !important; }

.bb-product-card__cart-btn {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important; right: 12px !important;
  width: auto !important;
  margin-top: 0 !important;
  padding: 11px 16px !important;
  background: var(--bb-brown-dark) !important;
  border: none !important;
  border-radius: 50px !important;
  color: white !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  letter-spacing: .03em !important;
  display: flex !important;
  align-items: center !important; justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: opacity .25s, transform .25s !important;
  z-index: 2 !important;
}
.bb-product-card:hover .bb-product-card__cart-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.bb-product-card__cart-btn:hover {
  background: #2c1f14 !important;
}
.bb-product-card__out-label {
  position: absolute !important;
  bottom: 12px !important; left: 12px !important; right: 12px !important;
  text-align: center !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important; color: var(--bb-text-muted) !important;
}

/* ── ETTETELLIMUS ── */
.bb-product-badge--preorder {
  background: var(--bb-gold) !important;
  color: white !important;
}
/* Preorder nupp — täpselt sama positsioon kui cart-btn, lihtsalt kuld */
.bb-product-card__preorder-btn {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important; right: 12px !important;
  width: auto !important;
  margin-top: 0 !important;
  padding: 11px 16px !important;
  background: var(--bb-gold) !important;
  border: none !important;
  border-radius: 50px !important;
  color: white !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  letter-spacing: .03em !important;
  display: flex !important;
  align-items: center !important; justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  opacity: 0 !important;
  transform: translateY(6px) !important;
  transition: opacity .25s, transform .25s !important;
  z-index: 2 !important;
}
.bb-product-card:hover .bb-product-card__preorder-btn {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.bb-product-card__preorder-btn:hover {
  background: #a07a40 !important;
}

/* Ettetellimus nupp tootelehel */
.bb-btn--preorder {
  width: 100%; padding: 15px 24px;
  background: var(--bb-gold); border: none; border-radius: 50px;
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: background .2s;
}
.bb-btn--preorder:hover { background: #a07a40; }
.bb-stock-info.preorder { color: var(--bb-gold); }
.bb-stock-info.preorder .bb-stock-dot { background: var(--bb-gold); }

/* Ettetellimus popup */
.bb-preorder-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.bb-preorder-overlay.active { display: flex; }
.bb-preorder-modal {
  background: #FBF8F4; border-radius: 16px; padding: 40px;
  width: 100%; max-width: 480px; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  animation: bbModalIn .25s ease;
}
@keyframes bbModalIn {
  from { opacity:0; transform: translateY(16px) scale(.97); }
  to   { opacity:1; transform: none; }
}
.bb-preorder-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer; color: #999;
  font-size: 22px; line-height: 1; padding: 4px 8px; transition: color .2s;
}
.bb-preorder-modal__close:hover { color: var(--bb-brown-dark); }
.bb-preorder-modal__tag {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bb-gold);
  font-family: 'DM Sans', sans-serif; margin-bottom: 8px;
}
.bb-preorder-modal__title {
  font-family: 'Playfair Display', serif; font-size: 22px;
  color: var(--bb-brown-dark); margin-bottom: 6px; line-height: 1.3;
}
.bb-preorder-modal__product {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--bb-text-muted); margin-bottom: 28px;
  padding-bottom: 20px; border-bottom: 1px solid rgba(29,21,16,.1);
}
.bb-preorder-modal .bb-field { margin-bottom: 16px; }
.bb-preorder-modal .bb-field label {
  display: block; font-family: 'DM Sans', sans-serif; font-size: 12px;
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--bb-brown-mid); margin-bottom: 6px;
}
.bb-preorder-modal .bb-field input,
.bb-preorder-modal .bb-field textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid rgba(29,21,16,.15); border-radius: 10px;
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--bb-brown-dark); background: white;
  box-sizing: border-box; transition: border-color .2s; outline: none;
}
.bb-preorder-modal .bb-field input:focus,
.bb-preorder-modal .bb-field textarea:focus { border-color: var(--bb-gold); }
.bb-preorder-modal .bb-field textarea { resize: vertical; min-height: 80px; }
.bb-preorder-modal__submit {
  width: 100%; margin-top: 8px; padding: 14px;
  background: var(--bb-brown-dark); color: white; border: none;
  border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s;
}
.bb-preorder-modal__submit:hover { background: #2c1f14; }
.bb-preorder-modal__submit:disabled { opacity: .6; cursor: not-allowed; }
.bb-preorder-modal__success { text-align: center; padding: 20px 0; }
.bb-preorder-modal__success svg { color: var(--bb-gold); margin-bottom: 16px; }
.bb-preorder-modal__success h3 {
  font-family: 'Playfair Display', serif; font-size: 20px;
  color: var(--bb-brown-dark); margin-bottom: 8px;
}
.bb-preorder-modal__success p {
  font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--bb-text-muted);
}

/* ── KÜSI PAKKUMIST ── */
.bb-product-badge--quote {
  background: #4A4A8A !important;
  color: white !important;
}
.bb-product-card__quote-btn {
  position: absolute !important;
  bottom: 12px !important;
  left: 12px !important; right: 12px !important;
  width: auto !important; margin: 0 !important;
  padding: 11px 16px !important;
  background: #4A4A8A !important;
  border: none !important; border-radius: 50px !important;
  color: white !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important; font-weight: 500 !important;
  letter-spacing: .03em !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; gap: 8px !important;
  cursor: pointer !important;
  opacity: 0 !important; transform: translateY(6px) !important;
  transition: opacity .25s, transform .25s !important;
  z-index: 2 !important;
}
.bb-product-card:hover .bb-product-card__quote-btn {
  opacity: 1 !important; transform: translateY(0) !important;
}
.bb-product-card__quote-btn:hover { background: #3a3a7a !important; }

/* Hind teksti asemel */
.bb-price-quote {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  color: #4A4A8A;
  letter-spacing: .02em;
}

/* Tootelehe nupp */
.bb-btn--quote {
  width: 100%; padding: 15px 24px;
  background: #4A4A8A; border: none; border-radius: 50px;
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; transition: background .2s;
}
.bb-btn--quote:hover { background: #3a3a7a; }

/* Ärikliendile leht — fullwidth, no WP padding */
body.page-template-page-arikliendile .entry-content,
body.page-template-page-arikliendile .entry,
body.page-template-page-arikliendile .post,
body.page-template-page-arikliendile main,
body.page-template-page-arikliendile .site-main,
body.page-template-page-arikliendile article {
  padding: 0 !important; margin: 0 !important; max-width: none !important;
}
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .entry,
body.woocommerce-checkout .post,
body.woocommerce-checkout main,
body.woocommerce-checkout .site-main,
body.woocommerce-checkout article,
body.woocommerce-cart .entry-content,
body.woocommerce-cart .entry,
body.woocommerce-cart .post,
body.woocommerce-cart main,
body.woocommerce-cart .site-main,
body.woocommerce-cart article {
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important;
}
.bb-fullwidth-page .entry-content,
.bb-fullwidth-page .entry,
.bb-fullwidth-page article,
.bb-fullwidth-page .site-main,
.bb-fullwidth-page main {
  padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100% !important;
}

/* ── SIDE CART ────────────────────────────────────────────────────────── */
#bb-sc-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 8000;
  transition: opacity .3s;
}
#bb-sc-overlay.open { display: block; }

#bb-side-cart {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: #FBF8F4; z-index: 8001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
  box-sizing: border-box;
}
#bb-side-cart.open { transform: translateX(0); }

.bb-sc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 44px 20px 20px;
  border-bottom: 1px solid rgba(184,150,90,.15);
  flex-shrink: 0;
}
.bb-sc-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--bb-brown-dark); margin: 0;
}
.bb-sc-close {
  background: none; border: none; cursor: pointer;
  font-size: 24px; color: var(--bb-text-muted);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .2s;
}
.bb-sc-close:hover { background: var(--bb-cream-dark); }

.bb-sc-items {
  flex: 1; overflow-y: auto; padding: 16px 20px;
}
.bb-sc-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid rgba(29,21,16,.06);
}
.bb-sc-item:last-child { border-bottom: none; }
.bb-sc-item img {
  width: 72px; height: 72px; object-fit: contain;
  border-radius: 10px; background: var(--bb-cream-dark); flex-shrink: 0;
}
.bb-sc-item__info { flex: 1; }
.bb-sc-item__name {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 500; color: var(--bb-brown-dark);
  margin-bottom: 10px; line-height: 1.4;
}
.bb-sc-item__qty-row {
  display: flex; align-items: center; gap: 10px;
}
.bb-sc-qty {
  width: 28px; height: 28px; border: 1.5px solid rgba(29,21,16,.15);
  border-radius: 8px; background: none; cursor: pointer;
  font-size: 16px; line-height: 1; color: var(--bb-brown-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.bb-sc-qty:hover { border-color: var(--bb-gold); color: var(--bb-gold); }
.bb-sc-qty-num {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 500; color: var(--bb-brown-dark); min-width: 20px; text-align: center;
}
.bb-sc-item__right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0;
}
.bb-sc-item__price {
  font-family: 'DM Sans', sans-serif; font-size: 15px;
  font-weight: 600; color: var(--bb-brown-dark);
}
.bb-sc-remove {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--bb-text-muted);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: all .15s;
}
.bb-sc-remove:hover { background: #fdecea; color: #e74c3c; }

.bb-sc-empty {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; padding: 40px; text-align: center;
  color: var(--bb-text-muted); font-family: 'DM Sans', sans-serif; font-size: 15px;
}
.bb-sc-empty svg { margin-bottom: 16px; color: rgba(184,150,90,.4); }

.bb-sc-footer {
  padding: 16px 20px 28px;
  border-top: 1px solid rgba(184,150,90,.15);
  flex-shrink: 0; display: none;
}
/* Sooduskood */
.bb-sc-coupon {
  margin-bottom: 14px;
  border: 1.5px solid rgba(184,150,90,.2); border-radius: 10px; overflow: hidden;
}
.bb-sc-coupon-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--bb-brown-mid);
  cursor: pointer; background: rgba(184,150,90,.05);
  transition: background .2s;
}
.bb-sc-coupon-row:hover { background: rgba(184,150,90,.1); }
.bb-sc-coupon-row span { flex: 1; font-weight: 500; }
.bb-sc-coupon-arrow { transition: transform .2s; flex-shrink: 0; }
.bb-sc-coupon-form {
  display: none; padding: 10px 14px 12px; gap: 8px;
  border-top: 1px solid rgba(184,150,90,.15);
}
.bb-sc-coupon-form.open { display: flex; }
.bb-sc-coupon-form input {
  flex: 1; padding: 9px 12px; border: 1.5px solid rgba(29,21,16,.15);
  border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px;
  color: var(--bb-brown-dark); outline: none; transition: border-color .2s;
}
.bb-sc-coupon-form input:focus { border-color: var(--bb-gold); }
.bb-sc-coupon-form button {
  padding: 9px 16px; background: var(--bb-brown-dark); color: white;
  border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s;
}
.bb-sc-coupon-form button:hover { background: #2c1f14; }
#bb-sc-coupon-msg {
  padding: 0 14px 10px;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
}
/* Totals */
.bb-sc-totals { margin-bottom: 14px; }
.bb-sc-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--bb-text-muted);
  border-bottom: none;
}
.bb-sc-total-row--grand {
  font-size: 16px; font-weight: 700; color: var(--bb-brown-dark);
  padding-top: 10px; margin-top: 6px;
  border-top: 1px solid rgba(29,21,16,.1);
}
.bb-sc-checkout-btn {
  display: none; /* replaced by new layout */
}
.bb-sc-bottom-links {
  display: flex; flex-direction: column; gap: 10px;
}
.bb-sc-back-shop {
  display: block; width: 100%; padding: 14px;
  background: var(--bb-brown-dark); color: white;
  border: none; border-radius: 50px; box-sizing: border-box;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s; margin-bottom: 0;
}
.bb-sc-back-shop:hover { background: #2c1f14; color: white; }
.bb-sc-bottom-links-row2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.bb-sc-view-cart {
  display: block; padding: 13px 0; box-sizing: border-box;
  background: none; border: 1.5px solid rgba(29,21,16,.2);
  border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; color: var(--bb-brown-dark);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: all .2s;
}
.bb-sc-view-cart:hover { border-color: var(--bb-gold); color: var(--bb-gold); }
.bb-sc-to-checkout {
  display: block; padding: 13px 0; box-sizing: border-box;
  background: var(--bb-gold); color: white; border: none;
  border-radius: 50px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background .2s;
}
.bb-sc-to-checkout:hover { background: #a07a40; }
.bb-sc-count-badge {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--bb-text-muted); font-weight: 400;
}

@media (max-width: 480px) {
  #bb-side-cart { width: 100vw; }
}

/* Footer sotsiaalikonid */
.bb-footer__social { display: flex; gap: 16px; margin-top: 20px; }
.bb-footer__social a {
  color: rgba(255,255,255,.55); transition: color .2s;
  display: flex; align-items: center;
}
.bb-footer__social a:hover { color: white; }
.bb-footer__social svg { display: block; }

/* ── WISHLIST DRAWER ─────────────────────────────────────────────────────── */
#bb-wish-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 8000;
}
#bb-wish-overlay.open { display: block; }
#bb-wish-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: #FBF8F4; z-index: 8001;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.15);
}
#bb-wish-drawer.open { transform: translateX(0); }

/* ── FOOTER UNIVERSAL FIX — kõigil lehtedel sama ─────────────────────── */
body .bb-footer { background: var(--bb-brown-dark) !important; }
body .bb-footer__top {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 60px !important; margin-bottom: 28px !important;
  align-items: start !important;
}
body .bb-footer__col { padding-top: 26px !important; }
body .bb-footer__tagline {
  color: rgba(255,255,255,.55) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important; line-height: 1.7 !important;
  text-decoration: none !important; display: block !important;
}
body .bb-footer__col-title {
  font-size: 11px !important; font-weight: 500 !important;
  letter-spacing: .18em !important; text-transform: uppercase !important;
  color: rgba(255,255,255,.35) !important; margin-bottom: 16px !important;
}
body .bb-footer__col ul {
  list-style: none !important; display: flex !important;
  flex-direction: column !important; gap: 12px !important;
  padding: 0 !important; margin: 0 !important;
}
body .bb-footer__col ul li a {
  font-size: 14px !important; color: rgba(255,255,255,.55) !important;
  text-decoration: none !important;
}
body .bb-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08) !important;
  padding-top: 20px !important; display: flex !important;
  align-items: center !important; justify-content: space-between !important;
  font-size: 13px !important; color: rgba(255,255,255,.35) !important;
}
body .bb-footer__social { display: flex !important; gap: 16px !important; margin-top: 20px !important; }
body .bb-footer__social a { color: rgba(255,255,255,.55) !important; }

/* ── Eelda valged ääred kõikidel lehtedel ── */
html, body {
  background-color: var(--bb-cream) !important;
}
#page, .site, #content, .site-content {
  background-color: var(--bb-cream) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.entry-content, .entry, article, .post, .site-main, main, #main {
  background-color: var(--bb-cream) !important;
  max-width: 100% !important;
}


/* ── Täislaius sektsioonid — ilma valgete äärte ── */
.bb-section,
.bb-footer,
.bb-hero,
[class*="bb-section"],
[class*="bb-cta"],
[class*="bb-banner"] {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
}
