/*
  Bells & Bows — Global Design System
  Applied sitewide via child theme.
  Palette:
    Sand BG:   #F2F0EB
    White BG:  #FFFFFF
    Dark text: #2C2724
    Gold:      #9D8461
    Footer:    #1A1A1A
*/

/* ============================
   CSS VARIABLES
   ============================ */
:root {
  --bg: #F2F0EB;
  --bg-white: #FFFFFF;
  --dark: #2C2724;
  --gold: #9D8461;
  --grey: #666666;
  --white: #FFFFFF;
  --black: #1A1A1A;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', Arial, sans-serif;

  --max-w: 1200px;
  --gap: clamp(1rem, 2vw, 2rem);
}

/* ============================
   RESET & BASE
   ============================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4%, 3rem);
}

.text-center {
  text-align: center;
}

/* ============================
   TYPOGRAPHY
   ============================ */
.label {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: .35rem;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s cubic-bezier(.25, 1, .5, 1);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: #403a35;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 39, 36, .2);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */
.reveal {
  opacity: 0;
  transition: opacity .9s ease, transform .9s cubic-bezier(.25, 1, .5, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0, 0) !important;
}

.fade-up {
  transform: translateY(50px);
}

.fade-left {
  transform: translateX(50px);
}

.fade-right {
  transform: translateX(-50px);
}

/* ============================
   IMAGE HOVER ZOOM (global)
   ============================ */
.img-hover-zoom {
  overflow: hidden;
}

.img-hover-zoom img {
  transition: transform .7s cubic-bezier(.25, 1, .5, 1);
}

.img-hover-zoom:hover img {
  transform: scale(1.05);
}

/* ============================
   STEP CTA LINK STYLE (global)
   ============================ */
.step-cta {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--dark);
  text-transform: uppercase;
  transition: color .3s;
}

.step-cta:hover {
  color: var(--gold);
}

/* ============================
   NEWSLETTER FORM (global)
   ============================ */
.nl-form {
  display: flex;
  max-width: 420px;
}

.nl-form input {
  flex: 1;
  padding: .9rem 1.2rem;
  border: 1px solid #d0ccc7;
  background: transparent;
  font-family: var(--sans);
  font-size: .85rem;
  outline: none;
  transition: border-color .3s;
}

.nl-form input:focus {
  border-color: var(--gold);
}

.nl-form .btn {
  border-radius: 0;
}

/* ============================
   QUOTE MARK (reviews)
   ============================ */
.quote-mark {
  font-family: var(--serif);
  font-size: 5rem;
  line-height: .6;
  color: var(--gold);
  opacity: .3;
  margin-bottom: 1rem;
}

/* ============================
   FOOTER LOGO INVERT
   ============================ */
.footer-logo-wp {
  filter: invert(1);
  mix-blend-mode: lighten;
}

/* ============================
   STICKY HEADER (Elementor)
   ============================ */
.elementor-sticky--active {
  background: #FFFFFF !important;
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .06) !important;
  transition: all 0.3s ease !important;
}

/* ============================
   LIGHTBOX
   ============================ */
.bb-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, .85);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  cursor: pointer;
}

.bb-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.bb-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
  transform: scale(.92);
  transition: transform .4s cubic-bezier(.25, 1, .5, 1);
}

.bb-lightbox.active img {
  transform: scale(1);
}

.bb-lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.bb-lightbox-close:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
}

/* ============================
   WOOCOMMERCE — COLOR SWATCHES
   ============================ */
.swatch-wrapper {
  margin: 0.5rem 0.25rem !important;
}

.swatch-wrapper .swatch {
  width: 32px !important;
  height: 32px !important;
  border: 2px solid transparent !important;
  transition: all 0.3s ease !important;
}

.swatch-wrapper .swatch:hover,
.swatch-wrapper .swatch.selected {
  border-color: var(--gold) !important;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(157, 132, 97, .3) !important;
}

/* Increase gap between color swatch circles */
.tawcvs-swatches {
  gap: 6px !important;
}

.tawcvs-swatches .swatch {
  margin: 0 4px !important;
}

/* ============================
   SINGLE PRODUCT — CLEAN LAYOUT
   ============================ */

/* Hide product tabs entirely */
.woocommerce-tabs.wc-tabs-wrapper {
  display: none !important;
}

/* Hide sidebar widgets on single product pages */
.bb-clean-product .bb-sidebar-widget,
.bb-clean-product .widget,
.bb-clean-product #secondary,
.bb-clean-product .sidebar,
.woocommerce.single-product .bb-sidebar-widget {
  display: none !important;
}

/* Full-width product layout — no sidebar */
.bb-clean-product .woocommerce {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Product page container spacing */
.woocommerce.single-product div.product {
  padding: 2rem clamp(1.25rem, 4%, 3rem);
  max-width: var(--max-w);
  margin: 0 auto;
  /* Two-column layout with custom sections breaking to full-width rows */
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
}

/* Image gallery — left column */
.woocommerce.single-product div.product .woocommerce-product-gallery {
  width: calc(50% - 1.5rem) !important;
  flex: 0 0 calc(50% - 1.5rem) !important;
}

/* Product gallery thumbnails spacing */
.woocommerce.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  margin-top: 1rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
  padding: 0 !important;
}

.woocommerce.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
  width: calc(25% - 0.75rem) !important;
  /* 4 items per row */
  margin: 0 !important;
  float: none !important;
}

.woocommerce.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  cursor: pointer !important;
}

/* Product summary — right column */
.woocommerce.single-product div.product .summary {
  width: calc(50% - 1.5rem) !important;
  flex: 0 0 calc(50% - 1.5rem) !important;
}

/* Responsive: stack image/summary on tablet and below */
@media (max-width: 768px) {

  .woocommerce.single-product div.product .woocommerce-product-gallery,
  .woocommerce.single-product div.product .summary {
    width: 100% !important;
    flex: 0 0 100% !important;
  }
}

/* Product title */
.woocommerce.single-product div.product .product_title {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem) !important;
  color: var(--dark) !important;
  margin-bottom: 0.5rem !important;
}

/* Product price */
.woocommerce.single-product div.product .price {
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  color: var(--gold) !important;
  margin-bottom: 1.5rem !important;
}

/* Short description */
.woocommerce.single-product div.product .woocommerce-product-details__short-description {
  font-family: var(--sans) !important;
  font-size: 0.9rem !important;
  color: #666 !important;
  line-height: 1.8 !important;
  margin-bottom: 2rem !important;
}

/* SKU & Category meta — refined */
.woocommerce.single-product div.product .product_meta {
  font-family: var(--sans) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.03em;
  color: #999 !important;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.woocommerce.single-product div.product .product_meta a {
  color: var(--gold) !important;
}

.woocommerce.single-product div.product .product_meta a:hover {
  color: var(--dark) !important;
}

/* Breadcrumb styling */
.woocommerce.single-product .woocommerce-breadcrumb {
  font-family: var(--sans) !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em;
  color: #999 !important;
  margin-bottom: 1.5rem;
  padding: 1rem clamp(1.25rem, 4%, 3rem) 0;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.woocommerce.single-product .woocommerce-breadcrumb a {
  color: #999 !important;
  transition: color 0.3s ease;
}

.woocommerce.single-product .woocommerce-breadcrumb a:hover {
  color: var(--gold) !important;
}

/* ============================
   CUSTOM PRODUCT SECTIONS
   (Related Products + Other Items You May Like)
   ============================ */

/* Hide any leftover default WooCommerce related products */
.woocommerce.single-product .related.products {
  display: none !important;
}

/* Shared section styles */
.bb-related-section,
.bb-other-items-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 4%, 3rem) 3rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
  /* Break out of WooCommerce's two-column product layout */
  width: 100% !important;
  flex-basis: 100% !important;
  clear: both;
}

/* Section heading */
.bb-section-heading {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
  color: var(--dark) !important;
  text-align: center !important;
  margin-bottom: 2.5rem !important;
  position: relative;
  display: block;
}

.bb-section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem auto 0;
}

/* 3-column product row */
.bb-product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Product card */
.bb-product-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.bb-product-card:hover {
  transform: translateY(-4px);
}

/* Card image */
.bb-product-card-img {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.bb-product-card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.25, 1, .5, 1);
}

.bb-product-card:hover .bb-product-card-img img {
  transform: scale(1.04);
}

/* Card body */
.bb-product-card-body {
  padding: 0 0.25rem;
}

.bb-product-card-body h3 {
  font-family: var(--serif) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.35rem !important;
}

.bb-product-card-body h3 a {
  color: var(--dark);
  transition: color 0.3s ease;
}

.bb-product-card-body h3 a:hover {
  color: var(--gold);
}

/* Card price */
.bb-product-card-price {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Card button */
.bb-product-card-btn {
  display: inline-block !important;
  padding: 0.75rem 1.8rem !important;
  font-family: var(--sans) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: var(--dark) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.35s cubic-bezier(.25, 1, .5, 1) !important;
}

.bb-product-card-btn:hover {
  background: #403a35 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 39, 36, .2) !important;
}

/* Responsive */
@media (max-width: 992px) {
  .bb-product-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .bb-product-row {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .bb-related-section,
  .bb-other-items-section {
    padding: 2.5rem clamp(1.25rem, 4%, 3rem) 2rem;
  }
}

/* ============================
   STYLES PAGE — CATEGORY-GROUPED LAYOUT
   ============================ */

/* Hero Section */
.bb-styles-hero {
  padding: 100px 0 60px;
  background: var(--bg);
}

.bb-styles-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 5.5vw, 5rem);
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.bb-styles-hero .label {
  display: block;
  margin-bottom: 0.75rem;
}

.bb-styles-hero-sub {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #888;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Page container */
.bb-styles-page {
  padding-bottom: 4rem;
}

/* Category Section */
.bb-styles-category {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.bb-styles-category:last-child {
  border-bottom: none;
}

/* Category Header */
.bb-styles-category-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.bb-styles-category-header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.bb-styles-category-header h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem auto 0;
}

.bb-styles-category-desc {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #888;
  max-width: 480px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* Product Grid — 3 columns */
.bb-styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Product Card */
.bb-styles-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.bb-styles-card:hover {
  transform: translateY(-4px);
}

/* Card Image */
.bb-styles-card-img {
  display: block;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.bb-styles-card-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(.25, 1, .5, 1);
}

.bb-styles-card:hover .bb-styles-card-img img {
  transform: scale(1.04);
}

/* Card Body */
.bb-styles-card-body {
  padding: 0 0.25rem;
}

/* Card Title */
.bb-styles-card-title {
  font-family: var(--serif) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  margin-bottom: 0.35rem !important;
}

.bb-styles-card-title a {
  color: var(--dark);
  transition: color 0.3s ease;
}

.bb-styles-card-title a:hover {
  color: var(--gold);
}

/* Card Price */
.bb-styles-card-price {
  display: block;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* Card Button — "Add to Wishlist" */
.bb-styles-card-btn {
  display: inline-block !important;
  padding: 0.75rem 1.8rem !important;
  font-family: var(--sans) !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  background: var(--dark) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.35s cubic-bezier(.25, 1, .5, 1) !important;
}

.bb-styles-card-btn:hover {
  background: #403a35 !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 39, 36, .2) !important;
}

/* Empty state */
.bb-styles-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.bb-styles-empty h2 {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.bb-styles-empty p {
  color: #888;
  font-size: 0.95rem;
}

/* Hide sidebar elements on shop pages */
.bb-clean-shop .bb-sidebar-widget,
.bb-clean-shop .widget,
.bb-clean-shop #secondary,
.bb-clean-shop .sidebar {
  display: none !important;
}

/* Styles page responsive */
@media (max-width: 992px) {
  .bb-styles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .bb-styles-hero {
    padding: 70px 0 40px;
  }

  .bb-styles-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .bb-styles-category {
    padding: 2.5rem 0 1.5rem;
  }
}

/* ============================
   WOOCOMMERCE BUTTONS
   ============================ */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--dark) !important;
  color: var(--white) !important;
  font-family: var(--sans) !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: .9rem 2.2rem !important;
  border: none !important;
  border-radius: 0 !important;
  transition: all .35s cubic-bezier(.25, 1, .5, 1) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: #403a35 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 39, 36, .2) !important;
}

/* ============================
   WOOCOMMERCE FORM FIELDS
   ============================ */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid #d0ccc7 !important;
  background: transparent !important;
  font-family: var(--sans) !important;
  font-size: .85rem !important;
  padding: .9rem 1.2rem !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--gold) !important;
}

/* ============================
   WOOCOMMERCE NOTICES
   ============================ */
.woocommerce-message {
  border-top-color: var(--gold) !important;
}

.woocommerce-message::before {
  color: var(--gold) !important;
}

/* ============================
   WOOCOMMERCE PRICE
   ============================ */
.woocommerce .price,
.woocommerce .amount {
  font-family: var(--sans) !important;
  color: var(--dark) !important;
}

/* ============================
   HIDE HELLO ELEMENTOR DEFAULT HEADER
   ============================ */
.site-header.hello-elementor-header {
  display: none !important;
}

/* ============================
   BRANDED FOOTER (PHP-rendered)
   ============================ */
.bb-footer {
  background: var(--black);
  color: var(--white);
}

.bb-footer-main {
  padding: 5rem 0 3rem;
}

.bb-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.8fr;
  gap: 3rem;
}

.bb-footer-logo {
  height: 50px;
  width: 180px;
  object-fit: cover;
  object-position: center center;
  margin-bottom: 1.25rem;
  filter: invert(1);
  mix-blend-mode: lighten;
}

.bb-footer-brand p {
  color: #888;
  font-size: .85rem;
  max-width: 280px;
  margin-bottom: 1.5rem;
}

.bb-footer-social {
  display: flex;
  gap: 1.5rem;
}

.bb-footer-social a {
  color: #888;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bb-footer-social a:hover {
  color: var(--gold);
}

.bb-footer-col h4,
.bb-footer-contact h4 {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.bb-footer-col li {
  margin-bottom: .75rem;
}

.bb-footer-col a {
  color: #888;
  font-size: .85rem;
}

.bb-footer-col a:hover {
  color: var(--white);
}

.bb-footer-email {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  font-style: italic;
}

.bb-footer-email:hover {
  color: var(--gold);
}

.bb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.5rem 0;
}

.bb-footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: .8rem;
}

.bb-footer-legal {
  display: flex;
  gap: 1.5rem;
}

.bb-footer-legal a {
  color: #666;
}

.bb-footer-legal a:hover {
  color: var(--white);
}

/* Footer responsive */
@media (max-width: 992px) {
  .bb-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .bb-footer-main {
    padding: 3rem 0 2rem;
  }

  .bb-footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bb-footer-brand p {
    max-width: 100%;
    margin: 0 auto 1.5rem;
  }

  .bb-footer-social {
    justify-content: center;
  }

  .bb-footer-bottom-inner {
    flex-direction: column;
    gap: .75rem;
    text-align: center;
  }

  .bb-footer-legal {
    justify-content: center;
  }
}

/* ============================
   MOBILE HEADER LAYOUT & MENU
   ============================ */
@media (max-width: 767px) {

  /* Match header padding with content container */
  [data-elementor-type="header"] .elementor-section {
    padding-left: clamp(1.25rem, 4%, 3rem) !important;
    padding-right: clamp(1.25rem, 4%, 3rem) !important;
  }

  /* Header row: logo left, nav toggle right */
  [data-elementor-type="header"] .elementor-section>.elementor-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  /* Logo column — left */
  [data-elementor-type="header"] .elementor-column:first-child {
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: 140px !important;
  }

  [data-elementor-type="header"] .elementor-column:first-child img {
    max-width: 130px !important;
    height: auto !important;
  }

  /* Nav column — right, just hamburger */
  [data-elementor-type="header"] .elementor-column:nth-child(2) {
    flex: 1 1 auto !important;
    width: auto !important;
  }

  [data-elementor-type="header"] .elementor-column:nth-child(2) .elementor-widget-wrap {
    display: flex !important;
    justify-content: flex-end !important;
  }

  /* Hide BEGIN WISHLIST column */
  [data-elementor-type="header"] .elementor-column:last-child {
    display: none !important;
  }

  /* Hamburger toggle */
  .elementor-menu-toggle {
    border: none !important;
    background: none !important;
    padding: 6px !important;
  }

  /* ---- SLIDE-IN MOBILE MENU ----
     Hidden off-screen by default via visibility + transform.
     JS adds .bb-menu-open to slide in. */
  .elementor-nav-menu--dropdown {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    width: 75vw !important;
    max-width: 300px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    /* CRITICAL: Override Elementor's default max-height: 0 */
    background: #FFFFFF !important;
    box-shadow: -8px 0 40px rgba(0, 0, 0, .15) !important;
    padding: 4rem 1.2rem 2rem 1.2rem !important;
    z-index: 99998 !important;
    overflow-y: auto !important;
    display: block !important;
    /* CRITICAL: Override Elementor's display:none */
    /* Hidden state — off-screen and invisible */
    transform: translateX(100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transition: transform 0.4s cubic-bezier(.25, 1, .5, 1),
      visibility 0.4s ease,
      opacity 0.4s ease !important;
  }

  /* Visible state — JS adds this class */
  .elementor-nav-menu--dropdown.bb-menu-open {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Push panel below WP admin bar when logged in */
  .admin-bar .elementor-nav-menu--dropdown {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
    height: calc(100dvh - 46px) !important;
  }

  @media (min-width: 783px) {
    .admin-bar .elementor-nav-menu--dropdown {
      top: 32px !important;
      height: calc(100vh - 32px) !important;
    }
  }

  /* Dark overlay (created by JS) */
  .bb-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    z-index: 99997;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
    cursor: pointer;
  }

  .bb-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Close button (injected by JS) */
  .bb-menu-close {
    position: absolute !important;
    top: .8rem !important;
    right: 1.2rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    background: #FFFFFF !important;
    border: 1px solid #d0d0d0 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #2C2724 !important;
    transition: border-color .3s ease, color .3s ease !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
    outline: none !important;
  }

  .bb-menu-close:hover {
    border-color: #9D8461 !important;
    color: #9D8461 !important;
  }

  /* Menu items — full-width blocks */
  .elementor-nav-menu--dropdown li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    list-style: none !important;
  }

  .elementor-nav-menu--dropdown li a {
    font-family: var(--sans) !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--dark) !important;
    text-align: right !important;
    padding: 1.1rem 1rem 1.1rem 1rem !important;
    display: block !important;
    text-decoration: none !important;
    position: relative !important;
    transition: color .3s ease, background-color .3s ease !important;
    border-bottom: 1px solid rgba(0, 0, 0, .05) !important;
  }

  /* Hover: full-width row highlight */
  .elementor-nav-menu--dropdown li a:hover {
    color: var(--gold) !important;
    background-color: rgba(157, 132, 97, .1) !important;
  }

  /* Gold underline — full width of the row */
  .elementor-nav-menu--dropdown li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--gold) !important;
    transition: width .35s cubic-bezier(.25, 1, .5, 1) !important;
  }

  .elementor-nav-menu--dropdown li a:hover::after {
    width: 100% !important;
  }

  /* Active page: gold text + visible bg tint + full underline */
  .elementor-nav-menu--dropdown li.current-menu-item a,
  .elementor-nav-menu--dropdown li a.elementor-item-active {
    color: var(--gold) !important;
    background-color: rgba(157, 132, 97, .08) !important;
  }

  .elementor-nav-menu--dropdown li.current-menu-item a::after,
  .elementor-nav-menu--dropdown li a.elementor-item-active::after {
    width: 100% !important;
  }

  /* Remove sub-menu arrows */
  .elementor-nav-menu--dropdown .sub-arrow {
    display: none !important;
  }
}

/* ============================
   CART & CHECKOUT FIXES
   ============================ */

/* Wider quantity input to fit large numbers (e.g., 100+) */
.woocommerce .quantity .qty {
  width: 4.5rem !important;
  min-width: 70px !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
  text-align: center !important;
}

/* Wider coupon input to fit long codes */
.woocommerce table.cart td.actions .coupon .input-text,
.woocommerce-checkout .checkout_coupon .input-text {
  width: 12rem !important;
  min-width: 180px !important;
}