/* 
Theme Name: Gorilion Hello Elementor Child Theme
Template: hello-elementor
Version: 1.0.2
*/
.bw-notes {
	display:none;
}
/* =====================================================
   HEADER FIXES – Logo & Domaine de Cromey Button
   ===================================================== */
.elementor-widget-theme-site-logo,
.elementor-widget-theme-site-logo a,
.elementor-widget-theme-site-logo img {
  width: auto !important;
  height: auto !important;
  max-height: 60px;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

.cromey-btn {
  display: inline-block;
  text-align: right;
  font-family: "Garamond", serif;
  font-size: 0.85rem;
  color: #821B2E;
  text-decoration: none;
  line-height: 1.2;
  margin-left: 1rem;
}

.cromey-btn .top { font-weight: 600; letter-spacing: .03em; }
.cromey-btn .bottom { font-style: italic; font-size: 0.75rem; color: #B49265; }

@media (max-width: 1100px) {
  .cromey-btn { display: none !important; }
}

@media (max-width: 980px) {
  .elementor-widget-theme-site-logo img { max-height: 50px; }
}

@media (max-width: 600px) {
  .elementor-widget-theme-site-logo img { max-height: 44px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .elementor-widget-theme-site-logo img {
    height: auto !important;
    width: auto !important;
    max-height: 38px;
  }
}

@media (max-width: 1100px) {
  .elementor-element-72bca5c9,
  .elementor-element-46fd643f,
  .elementor-element-77e07a9e {
    align-items: center !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 430px) {
  .elementor-widget-nav-menu { margin-left: auto; }
}

/* =====================================================
   NAV MENU DROPDOWN FIX – Allow full downward expansion
   ===================================================== */
.elementor-nav-menu--main,
.elementor-widget-nav-menu,
.elementor-nav-menu,
.elementor-container,
header,
header * {
  overflow: visible !important;
}

.elementor-nav-menu--dropdown,
.elementor-nav-menu__container,
.elementor-nav-menu--main .sub-menu {
  position: absolute !important;
  z-index: 99999 !important;
  overflow: visible !important;
  max-height: none !important;
}

.elementor-location-header,
header.elementor-sticky--effects {
  z-index: 99999 !important;
  overflow: visible !important;
}

header,
header *,
.elementor-location-header,
.elementor-nav-menu--dropdown,
.elementor-menu-toggle {
  overflow: visible !important;
}

/* =====================================================
   MOBILE MENU – Match old site layout and behavior
   ===================================================== */
@media (max-width: 1024px) {

.elementor-nav-menu--dropdown.elementor-nav-menu__container {
  right: 0 !important;
  left: auto !important;
  width: 260px !important; /* keep your fixed width */
}

  .elementor-menu-toggle[aria-expanded="true"] ~ .elementor-nav-menu--dropdown li.brand-border > a {
    border: none !important;
  }

  .elementor-nav-menu--dropdown a {
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 28px !important;
  }

  .elementor-nav-menu--dropdown .sub-menu a {
    padding-left: 48px !important;
  }

  .elementor-nav-menu--dropdown .sub-menu .sub-menu a {
    padding-left: 68px !important;
  }

  .elementor-nav-menu--dropdown a:hover,
  .elementor-nav-menu--dropdown a:focus {
    background-color: rgba(255,255,255,0.08) !important;
    color: #fff !important;
  }

  header,
  .elementor-location-header,
  .elementor-widget-nav-menu {
    overflow: visible !important;
  }

  .elementor-widget-nav-menu {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
  }
}

@media (max-width:1024px) {

  .elementor-menu-toggle[aria-expanded="true"] + .elementor-nav-menu--dropdown .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .elementor-menu-toggle[aria-expanded="true"] + .elementor-nav-menu--dropdown ul.sub-menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-sizing: border-box !important;
  }

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

  .elementor-nav-menu--dropdown,
  .elementor-nav-menu--dropdown * {
    overflow: visible !important;
  }
}



/* =====================================================
   FIX – Show hamburger and hide full menu on mobile
   ===================================================== */
@media (max-width: 1024px) {

  /* show hamburger toggle button */
  .elementor-menu-toggle {
    display: block !important;
    position: relative !important;
    z-index: 10000 !important;
  }

  /* hide desktop horizontal nav */
  .elementor-nav-menu--main {
    display: none !important;
  }

  /* keep dropdown hidden until hamburger opens */
  .elementor-nav-menu--dropdown {
    display: none !important;
  }

  /* reveal dropdown when hamburger is active */
  .elementor-menu-toggle[aria-expanded="true"] + .elementor-nav-menu--dropdown {
    display: block !important;
  }
}

/* =====================================================
   HOMEPAGE CAROUSEL – Core Layout + UX Peek
   ===================================================== */

/* Allow vertical page scroll; we only hijack horizontal */
.scroll-track {
  touch-action: pan-y;           /* critical */
  -webkit-user-select: none;
  user-select: none;
}

.carousel-inner {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding: 0 10px;
  align-items: flex-start;
  cursor: ew-resize;
  position: relative;
  height: auto;
  scroll-behavior: smooth;
}

.carousel-inner {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.carousel-inner::-webkit-scrollbar { display: none; }

.customProductList {
  flex: 0 0 21%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  padding-bottom: 10px;
  margin: 0;
  transition: transform 0.3s ease;
}

.customProductList:hover { transform: scale(0.98); }

.customProductList img {
  max-height: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.customProductList .defaultBtn {
  background-color: #2C4F0D !important;
  color: #fff !important;
  border: 2px solid #B49265;
  font-size: 0.8rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.customProductList .defaultBtn:hover {
  background-color: #699144 !important;
}

@media (max-width: 992px) {
  .customProductList { flex: 0 0 32%; }
  .carousel-inner { gap: 8px; }
}

@media (max-width: 600px) {
  .customProductList { flex: 0 0 58%; min-width: 58%; }
  .carousel-inner { gap: 8px; padding: 0 12px; }
  .customProductList img { max-height: 180px; }
}

@media (max-width: 400px) {
  .customProductList { flex: 0 0 65%; min-width: 65%; }
  .carousel-inner { gap: 6px; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .customProductList { flex: 0 0 42%; min-width: 42%; }
  .customProductList img { max-height: 180px; }
}

/* =====================================================
   CAROUSEL TITLES – Center alignment for tablet + mobile
   ===================================================== */
/*@media (max-width: 980px) {

  .carousel-title,
  .carousel-title.elementor-widget-heading,
  .carousel-title .elementor-heading-title {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .carousel-title-container {
    margin-bottom: 0.75em !important;
  }
}
*/

/* ==========================================
   Equalize Product Title Heights in Carousels
   ========================================== */
.customProductList {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.customProductList .product-title {
  min-height: 3.6em;
  display: flex;
  align-items: flex-end;
  text-align: center;
}

.customProductList .price,
.customProductList .v65-productQty,
.customProductList .defaultBtn {
  margin-top: auto;
}

.infinite-carousel .customProductList {
  align-items: stretch;
}

/* =====================================================
   CAROUSEL STRUCTURE + CLIPPING FIX
   ===================================================== */
.carousel-container,
.carousel-container .elementor-widget-html,
.carousel-container .custom-carousel-wrapper,
.carousel-container .e-con,
.carousel-container .e-con-inner,
.custom-carousel-wrapper.infinite-carousel {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
  margin-left: 0 !important;
  transform: none !important;
  display: block !important;
  overflow: visible !important;
  position: relative !important;
}

#hospiceBeauneContainer,
#burgundyGiftsContainer,
#premierCruContainer,
#collectiblesContainer {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 10px;
}

@media (max-width: 1040px) and (min-width: 768px) {
  .carousel-inner { padding-left: 24px !important; padding-right: 14px !important; }
}

/* =====================================================
   CAROUSEL TITLE CONTAINER – Prevent clipping and layering issues
   ===================================================== */
.carousel-title-container,
.elementor-element-53c3806,
.elementor-element-53c3806 .e-con-inner {
  overflow: visible !important;
  z-index: 5 !important;
  position: relative !important;
}

.carousel-title,
.carousel-title.elementor-widget-heading,
.carousel-title .elementor-heading-title {
  overflow: visible !important;
  white-space: normal !important;
  z-index: 6 !important;
  position: relative !important;
}

@media (max-width: 600px) {
  .carousel-title-container {
    margin-bottom: 0.8em !important;
    padding-bottom: 0.4em !important;
  }
}

/* =====================================================
   CAROUSEL TITLE + SHOP ALL – Unified responsive alignment
   ===================================================== */
.carousel-title-container {
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 5 !important;
}

.carousel-title .elementor-heading-title {
  white-space: nowrap !important;
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.1;
  margin: 0 !important;
  transition: font-size 0.25s ease;
}

.carousel-title-container a.elementor-button {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  padding: 10px 18px;
  margin: 0 !important;
  line-height: 1.75;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .carousel-title-container {
    justify-content: center !important;
    gap: 0.6rem;
  }

  .carousel-title .elementor-heading-title {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  }

  .carousel-title-container a.elementor-button {
    font-size: clamp(0.75rem, 1vw, 0.85rem);
    padding: 8px 16px;
  }
}

/*@media (max-width: 600px) {
  .carousel-title-container {
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem;
    margin-bottom: 0.6em;
  }

  .carousel-title .elementor-heading-title {
    font-size: 1.3rem !important;
  }

  .carousel-title-container a.elementor-button {
    font-size: 0.8rem !important;
    padding: 8px 14px;
  }
}
*/

@media (max-width: 767px) {
  .carousel-title-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    overflow: visible !important;
    position: relative !important;
  }

  .carousel-title .elementor-heading-title {
    white-space: nowrap !important;
    font-size: clamp(1.1rem, 3.5vw, 1.4rem) !important;
    line-height: 1.1 !important;
  }

  .carousel-title-container a.elementor-button {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: clamp(0.75rem, 2.8vw, 0.85rem) !important;
    padding: 8px 14px !important;
    margin: 0 !important;
  }
}

/* =====================================================
   FINAL FIX – Force left alignment of title + Shop All on tablet/mobile
   ===================================================== */
@media (max-width: 980px) {
	.carousel-title-container,
	.carousel-title-container .e-con-inner {
		display: flex !important;
		flex-direction: row !important;
		justify-content: flex-start !important;
		align-items: center !important;
		text-align: left !important;
		gap: 0.35rem !important;
		flex-wrap: nowrap !important;
		overflow: visible !important;
		position: relative !important;
	}
}

  .carousel-title {
    width: auto !important;
    max-width: none !important;
    flex: 0 1 auto !important;
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    white-space: nowrap !important;
    margin-left: 2rem !important;
  }

  .carousel-title-container .elementor-widget-button {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
  }

  .carousel-title-container a.elementor-button {
    font-size: clamp(0.75rem, 2.8vw, 0.85rem) !important;
    padding: 8px 14px !important;
    line-height: 1.75em !important;
  }
}

/* =====================================================
   VIEWPORT OVERFLOW FIX – Prevent horizontal page scroll
   ===================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
}

.carousel-container,
.custom-carousel-wrapper,
.carousel-inner,
.e-con,
.e-con-inner {
  max-width: 100vw !important;
  overflow-x: hidden;
  position: relative;
  margin-left:0;
}

.custom-carousel-wrapper.infinite-carousel {
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  left: 0;
  right: 0;
}

/* =====================================================
   BURGUNDYWINE.COM HEADER LAYOUT – Clean Static Version
   ===================================================== */
.bw-header {
  background: #fff;
  border-bottom: 1px solid #d5d5d5;
  position: relative;
  z-index: 1000;
  width: 100%;
}

.bw-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0.8rem 1.2rem;
}

.bw-logo img {
  max-height: 60px;
  height: auto;
  width: auto;
}

/* Cromey button */
.cromey-btn {
  font-family: "Garamond", serif;
  font-size: 0.9rem;
  text-align: right;
  color: #821B2E;
  text-decoration: none;
  margin-left: 1.5rem;
}
.cromey-btn .top {
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cromey-btn .bottom {
  font-style: italic;
  font-size: 0.75rem;
  color: #B49265;
}

/* NAVIGATION */
.bw-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
}
.bw-nav a {
  font-family: "Garamond", serif;
  font-size: 1rem;
  color: #821B2E;
  text-decoration: none;
}
.bw-nav a:hover {
  color: #B49265;
}

.bw-nav .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 0;
}
.bw-nav li:hover > .sub-menu {
  display: block;
}
.bw-nav .sub-menu li {
  white-space: nowrap;
  padding: 0.3rem 1rem;
}

/* Mobile menu toggle */
#bw-menu-toggle {
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* only hide on desktop */
@media (min-width: 1025px) {
  #bw-menu-toggle {
    display: none;
  }
}

#bw-menu-toggle .bw-menu-bar {
  width: 25px;
  height: 2px;
  background: #821B2E;
  display: block;
}

/* =====================================================
   HEADER ACTIONS – Prevent wrapping on Log In
   ===================================================== */
.bw-header-actions .bw-login-link {
  white-space: nowrap;   /* keep "Log In" on one line */
  flex-shrink: 0;        /* prevent it from compressing */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
}

/* =====================================================
   HEADER POLISH – Burgundywine.com Refined Styling
   ===================================================== */

/* -------- DESKTOP NAV -------- */
.bw-nav a {
  font-family: "Garamond", serif;
  font-size: 1rem;
  color: #821B2E;
  text-decoration: none;
  transition: color 0.25s ease;
}

.bw-nav a:hover {
  color: #B17483; /* softer hover tone */
}

.bw-nav li.current-menu-item > a {
  font-weight: 700; /* bold for current page */
  color: #821B2E;
}

/* =====================================================
   CART WIDGET + MODAL STYLING – burgundywine.com
   ===================================================== */

/* ---------- Header Cart Widget ---------- */
.bw-cart-widget {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

#bw-cart-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 0.75rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #821B2E;
  padding: 4px 18px 4px 14px !important
}

.bw-cart-icon {
  width: 30px !important;
  height: 30px !important;
  display: block;
  object-fit: contain;
}

.bw-cart-icon.filled {
  display: none !important;
}

.bw-cart-widget.has-items .bw-cart-icon.empty {
  display: none !important;
}
.bw-cart-widget.has-items .bw-cart-icon.filled {
  display: block !important;
}

.bw-cart-total {
  font-size: 0.95rem;
  color: #821B2E;
  font-weight: 600;
  line-height: 1;
}

/* ---------- Modal Base ---------- */
#bw-cart-modal {
  position: fixed;
  top: 75px; /* adjust if header height differs */
  right: 1.25rem;
  width: 320px;
  background: #fff;
  border: 1px solid #B49265;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

#bw-cart-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bw-cart-modal-content {
  padding: 1rem;
  max-height: 100vh;
  overflow-y: auto;
}

.bw-cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bw-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.bw-cart-item img {
  width: 45px;
  height: auto;
  margin-right: 0.5rem;
  border-radius: 4px;
}

.bw-cart-item-title {
  flex: 1;
  font-family: "Garamond", serif;
  font-weight: 500;
  color: #333;
}

.bw-cart-summary {
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
}

.bw-cart-summary .subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.bw-cart-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.bw-cart-actions button.keep-shopping,
.bw-cart-actions a.checkout {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: background 0.2s ease;
}

.bw-cart-actions button.keep-shopping {
  border: 1px solid #B49265;
  background: transparent;
  color: #821B2E;
}

.bw-cart-actions button.keep-shopping:hover {
  background: #f5f0e8;
}

.bw-cart-actions a.checkout {
  background: #821B2E;
  color: #fff;
  text-decoration: none;
}

.bw-cart-actions a.checkout:hover {
  background: #B49265;
  color: #fff;
}

/* ---------- Mobile Adjustments ---------- */
@media (max-width: 480px) {
  #bw-cart-modal {
    right: 0.5rem;
    width: 90%;
  }
  .bw-cart-widget {
    margin-left: 0.75rem;
  }
  .bw-cart-total {
    font-size: 0.85rem;
  }
}

.bw-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bw-cart-item-qty {
  font-size: 0.85rem;
  color: #821B2E;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.bw-cart-item-price {
  font-weight: 600;
  color: #821B2E;
}

/* =====================================================
   RESET C7 INHERITED STYLES – Remove link in Cart Modal
   ===================================================== */
.bw-cart-item-remove {
  all: unset; /* wipes any inherited button styles */
  display: inline-block !important;
  color: #821B2E !important;
  font-size: 0.85rem !important;
  font-family: "Montserrat", sans-serif !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  line-height: 1.3 !important;
  margin-top: 4px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-transform: none !important;
  font-weight: 500 !important;
}

.bw-cart-item-remove:hover {
  color: #B49265 !important;
  text-decoration: none !important;
}

/* ---------- Cart Modal Remove Link ---------- */
.bw-cart-item-remove {
  background: none;
  border: none;
  color: #821B2E;
  font-size: 0.85rem;
  font-family: "Montserrat", sans-serif;
  text-decoration: underline;
  padding: 0;
  margin-top: 4px;
  cursor: pointer;
  display: inline-block;
  line-height: 1.2;
  transition: color 0.2s ease;
}

.bw-cart-item-remove:hover {
  color: #B49265;
  text-decoration: none;
}

/* =====================================================
   Cart Item Layout – Price to the Right, Remove Below
   ===================================================== */

.bw-cart-item-info {
  display: flex;
  justify-content: center;
  width: 100%;
  flex-direction: row;
  align-items: center;
}

.bw-cart-item-title {
  font-size: 0.9rem;
  line-height: 1.3;
  color: #000;
  flex: 1;
  margin-right: 6px;
}

.bw-cart-item-qty {
  align-self: flex-end;
  font-size: 0.85rem;
  color: #821B2E;
  font-weight: 500;
  margin-top: -18px; /* pulls price up to align with top line */
}

.bw-cart-item-remove {
  all: unset;
  display: inline-block !important;
  color: #821B2E !important;
  font-size: 0.6rem !important;
  font-family: "Montserrat", sans-serif !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  line-height: 1.2 !important;
  margin-top: 6px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-transform: none !important;
  font-weight: 400 !important;
}

.bw-cart-item-remove:hover {
  color: #B49265 !important;
  text-decoration: none !important;
}

/* optional subtle divider */
.bw-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.bw-cart-item img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.bw-cart-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 72px; /* fixed column width */
  margin-top: 1em;
}

/* =====================================================
   MID-VIEWPORT LOGO SWAP (1410px → 1025px) — Stable Size
   ===================================================== */
@media (max-width: 1410px) and (min-width: 1025px) {
  .bw-logo img {
    content: url("/wp-content/uploads/2025/08/es-web-stamp-RGB-burgundywine_com-transparent-background-JAN-2024-REVISION.png");
    width: clamp(100px, 8vw, 120px); /* keep roughly same feel */
    height: auto;
    max-height: 120px;
    min-width: 45px;   /* hard floor */
    min-height: 45px;  /* hard floor */
    object-fit: contain;
    transition: width 0.2s ease;
  }
}

/* Dropdown styling */
.bw-nav .sub-menu {
  display: none;
  position: absolute;
  background: #821B2E;
  color: #fff;
  padding: 0.5rem 0;
  border-radius: 3px;
  min-width: 200px;
  z-index: 9999;
}

.bw-nav li:hover > .sub-menu {
  display: block;
}

.bw-nav .sub-menu a {
  display: block;
  padding: 0.4rem 1rem;
  color: #fff;
  transition: background 0.2s ease;
}

.bw-nav .sub-menu a:hover {
  background: #B17483;
  color: #fff;
}


/* =====================================================
   MOBILE NAV VISIBILITY + HOVER EMPHASIS
   ===================================================== */
@media (max-width: 1024px) {
  .bw-nav a {
    color: #ffffff !important;
    font-weight: 400;
  }

  .bw-nav a:hover,
  .bw-nav li.current-menu-item > a {
    font-weight: 600; /* stronger emphasis on hover/current */
    color: #ffffff !important;
  }

  .bw-nav .sub-menu a {
    color: #ffffff !important;
    opacity: 0.9;
  }

  .bw-nav .sub-menu a:hover {
    opacity: 1;
    font-weight: 600;
  }
}

/* =====================================================
   MAIN NAV – Clean Hover & Wine Shop Border
   ===================================================== */

/* Equal padding for all top-level nav links */
.bw-nav > ul > li > a {
  padding: 15px 15px;
  display: inline-block;
  line-height: 1.2;
  color: #821b2e;
  text-decoration: none;
  transition: none; /* no hover fade */
}

/* Keep same color on hover (no tint, no fill) */
.bw-nav > ul > li > a:hover {
  color: #821b2e;
  background: transparent;
}

/* Add 2px border only to Wine Shop */
.bw-nav a[href="/collection/shop"] {
  border: 2px solid #821b2e;
  border-radius: 3px;
  font-weight: 500;
}

/* =====================================================
   NAV FONT – Montserrat for all navigation items
   ===================================================== */

.bw-nav a,
.bw-header-actions a,
#bw-menu-toggle .bw-menu-bar {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Keep Cromey in Garamond */
.menu-item-cromey a.cromey-link,
.menu-item-cromey .top,
.menu-item-cromey .bottom {
  font-family: "Garamond", serif !important;
  text-transform: none;
  letter-spacing: normal;
}

/* =====================================================
   DOMAINE DE CROMEY LINK – inside nav
   ===================================================== */

.bw-nav .menu-item-cromey a.cromey-link {
  display: inline-block;
  text-align: center;
  font-family: "Garamond", serif;
  text-decoration: none;
  color: #821b2e;
  padding: 4px 12px;
  line-height: .6;
  margin-top:.6em;
}

.bw-nav .menu-item-cromey .top {
  display: block;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.bw-nav .menu-item-cromey .bottom {
  display: block;
  font-style: italic;
  font-size: 0.75rem;
  color: #B49265;
}

.bw-nav .menu-item-cromey a.cromey-link:hover {
  color: #821b2e;         /* no hover tint */
  background: transparent;
}

/* Mobile version — full width, centered at bottom */
@media (max-width: 1024px) {
  .bw-nav .menu-item-cromey {
    margin-top: 1.5rem;
    text-align: center;
  }
  .bw-nav .menu-item-cromey a.cromey-link {
    display: block;
    padding: 0;
  }
}

/* =====================================================
   RESPONSIVE NAV SPACING – Adaptive gap scaling
   ===================================================== */

/* Default desktop gap (wide screens) */
.bw-nav ul {
  gap: clamp(0.5rem, 1vw, .5rem); /* scales smoothly between 0.8rem–1.8rem */
}

/* When screen starts to get tight (just before mobile) */
@media (max-width: 1150px) {
  .bw-nav ul {
    gap: clamp(0.2rem, .3vw, .2rem);
  }
}

/* At the mobile breakpoint, the flex nav disappears anyway */
@media (max-width: 1024px) {
  .bw-nav ul {
    gap: 1rem; /* doesn’t matter much, but keeps consistency for fallback */
  }
}

/* =====================================================
   NAV ITEM WRAPPING FIX – Prevent line breaks
   ===================================================== */
.bw-nav > ul > li > a {
  white-space: nowrap;         /* prevent text wrapping */
  flex-shrink: 0;              /* don’t compress text */
}

@media (max-width: 1800px) {
  .bw-nav > ul > li > a {
    font-size: 0.9rem;         /* slightly smaller font for tight layouts */
    padding: 12px 12px;        /* modestly tighter spacing */
  }
}

/* =====================================================
   MOBILE NAV — Expanded Hierarchy with Refined Spacing
   ===================================================== */
@media (min-width: 1025px) {
  .bw-nav ul#menu.nav-menu {
    margin: 0 .5em;
  }
}

@media (max-width:1024px){
  .bw-nav ul#menu{
    display:flex;
    flex-direction:column;
    gap:1.2rem;                 /* space between top-level items */
  }

  /* Top-level links */
  .bw-nav > ul > li > a{
    font-size:1rem;
    padding:0;                  /* remove double padding */
    font-weight:500;
  }

  /* Submenu groups */
  .bw-nav .sub-menu{
    display:block !important;
    position:static !important;
    background:none !important;
    border:none !important;
    margin:.35rem 0 0.8rem 0 !important;
    padding-left:.25rem !important;   /* indent sub-items */
  }

  /* Submenu links */
  .bw-nav .sub-menu a{
    font-weight:400;
    line-height:1.3;
    opacity:0.9;
    padding:.25rem 0 !important;
  }

  .bw-nav .sub-menu a:hover{
    opacity:1;
    font-weight:600;
	background: #821b2e;
  }

  /* Remove hover reveal logic */
  .bw-nav li:hover > .sub-menu{
    display:block !important;
  }
}

/* =====================================================
   MOBILE HEADER — Swap Hamburger with Account/Cart
   ===================================================== */
@media (max-width: 1024px) {
  .bw-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Swap order of elements */
  .bw-logo {
    order: 1;
  }

  .bw-header-actions {
    order: 2;              /* move Log In + Cart before menu toggle */
    display: flex;
    align-items: center;
    gap: 0;
	margin-left:1rem;
	white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0 !important;
  }

  #bw-menu-toggle {
	display: flex;
    order: 3;              /* hamburger last, rightmost */
  }

  /* Minor spacing refinements */
  .bw-login-link {
    font-size: 0.7rem;
    color: #777;
  }

  /* Adjust hit areas for mobile tap comfort */
  .bw-header-actions a {
    padding: 4px 6px;
  }
}

@media (max-width: 1024px) {
  .bw-nav a {
    display: block;
    line-height: 1.4;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    vertical-align: middle;
  }
}

/* =====================================================
   MOBILE NAV – Correct toggle behavior + scroll with page
   ===================================================== */
@media (max-width: 1024px) {
  .bw-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 260px;
    background: #821B2E;
    color: #fff;
    padding: 1.5rem 1.2rem;
    border-left: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 9999;
  }

  .bw-nav.show {
    display: flex;
  }

  .bw-nav a {
    display: block;
    color: #fff;
    padding: 0.4rem 0;
    line-height: 1.3;
  }

  .bw-nav a:hover {
    font-weight: 600;
    color: #fff;
  }

  .bw-nav .sub-menu {
    display: block;
    padding-left: 1rem;
  }

  .bw-nav .sub-menu a {
    font-weight: 400;
    opacity: 0.9;
  }
}

/* Hide radio bubbles in Gift Card product - product collections only */
.c7-product-collection .c7-product__add-to-cart--giftcard .c7-product__add-to-cart__variants,
.c7-product-collection .c7-product__add-to-cart--giftcard .c7-product__add-to-cart__giftcard {
  display: none !important;
}

/* =====================================================
   CART MODAL BUTTONS – Unified Full-Width Stack
   ===================================================== */

.bw-cart-actions {
  display: flex;
  flex-direction: column; /* stack vertically */
  gap: 0.6rem;
  width: 100%;
}

.bw-cart-actions button.continue-shopping,
.bw-cart-actions a.checkout {
  width: 100%;
  display: inline-block;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 0.9rem;
  border-radius: 0; /* remove rounding */
  border: 2px solid #B49265;
  transition: background-color 0.25s ease, color 0.25s ease;
  box-sizing: border-box;
}

/* Continue Shopping (outlined style) */
.bw-cart-actions button.continue-shopping {
  background: transparent;
  color: #821B2E;
}

.bw-cart-actions button.continue-shopping:hover {
  background: #f5f0e8;
  color: #821B2E;
}

/* Checkout (filled style) */
.bw-cart-actions a.checkout {
  background: #821B2E;
  color: #fff;
  text-decoration: none;
  border: 2px solid #821B2E;
}

.bw-cart-actions a.checkout:hover {
  background: #B49265;
  border-color: #B49265;
  color: #fff;
}

/* Ensure both buttons look identical on mobile */
@media (max-width: 480px) {
  .bw-cart-actions button.continue-shopping,
  .bw-cart-actions a.checkout {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
}
/* Override Elementor global kit padding for cart modal buttons */
#bw-cart-modal .bw-cart-actions button,
#bw-cart-modal .bw-cart-actions a {
  padding: 0.7rem 0.9rem !important;  /* your chosen padding */
}

/* =====================================================
   Remove padding on mobile for carousel-mobile sections
   ===================================================== */
@media (max-width: 1024px) {
  .carousel-mobile,
  .carousel-mobile > .elementor-container,
  .carousel-mobile > .e-con-inner,
  .carousel-mobile.e-con {
    padding: 0 !important;
  }
}

/* =====================================================
   Disable background on featured products in C7 shop template
   ===================================================== */

.c7-product-collection__products--featured {
	background: none !important;
}

:root{
  --bw-burgundy:#821B2E;
  --bw-gold:#B49265;
  --bw-ink:#1b1b1b;
  --bw-border:#e5e5e5;
  --bw-bg:#f9f7f5;
  --bw-white:#fff;
  --bw-radius:10px;
  --bw-speed:220ms;
  --bw-sidebar-w:260px;
  --bw-font:Montserrat,system-ui,Arial,sans-serif;
}

/* Container */
.bw-shop-nav{position:relative;z-index:20;}

/* Mobile trigger */
.bw-filter-trigger{
  position:relative;top:-20px;left:0;
  display:inline-flex;align-items:center;gap:.5rem;
  padding:.6rem .9rem;margin:.4rem 0 .6rem 0;
  font:600 .9rem/1.1 var(--bw-font);
  text-transform:uppercase;letter-spacing:.03em;
  border:1px solid var(--bw-burgundy);
  background:var(--bw-white);color:var(--bw-burgundy);
  border-radius:8px;cursor:pointer;
}
.bw-filter-trigger:hover{background:rgba(130,27,46,.07);}

/* ==========================
   Sidebar Nav
   ========================== */

.bw-sidebar{
  background:var(--bw-white);
  border:1px solid var(--bw-border);
  border-radius:var(--bw-radius);
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  contain:paint;
}
.bw-sidebar{
  position:fixed;inset:auto auto 0 0;top:70px;
  width:min(92vw,var(--bw-sidebar-w));
  height:100vh;max-height:100vh;
  opacity:0;visibility:hidden;
  transition:opacity var(--bw-speed) ease;
}
.bw-sidebar.is-open{opacity:1;visibility:visible;}

/* Header */
.bw-sidebar__header{
  display:flex;align-items:center;justify-content:space-between;
  gap:.75rem;padding:.9rem 1rem;background:var(--bw-bg);
  border-bottom:1px solid var(--bw-border);
}
.bw-sidebar__header strong{
  font:700 .95rem/1.2 var(--bw-font);
  text-transform:uppercase;letter-spacing:.04em;color:var(--bw-ink);
}

/* Close button */
.bw-sidebar__close{
  all:unset;cursor:pointer;font-size:1.6rem;line-height:1;
  color:#000;display:inline-block;
}
.bw-sidebar__close:hover{color:#333;transform:scale(1.1);transition:.2s ease;}

/* Accordions */
.bw-accordions{padding:.4rem .85rem 1.2rem;}
.bw-acc{border-bottom:1px solid var(--bw-border);}
.bw-acc__btn{
  width:100%;display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:.7rem .6rem!important;cursor:pointer;border:none !important;
  border-radius:4px;background:#F6F3EE !important;text-align:left;
  font:600 .9rem/1.2 var(--bw-font) !important;text-transform:uppercase;
  letter-spacing:.04em;color:#000000 !important;
  transition:background-color var(--bw-speed) ease;
}
.bw-acc__btn:hover{background:#a99f90;}
.bw-acc__icon{flex-shrink:0;font-weight:700;color:var(--bw-burgundy);
  transition:transform var(--bw-speed) ease;}
.bw-acc.is-open .bw-acc__icon{transform:rotate(45deg);}
.bw-acc__panel{
  background:#fff;padding:.2rem 0 0rem;overflow:hidden;max-height:0;opacity:0;
  transition:max-height var(--bw-speed) ease,opacity var(--bw-speed) ease;
}
.bw-acc.is-open .bw-acc__panel{
  max-height:none!important;opacity:1;overflow:visible;
}
.bw-acc__list{list-style:none;margin:0;padding:0 .3rem;display:grid;gap:.5rem;}
.bw-acc__list a{
  display:block;text-decoration:none;color:var(--bw-burgundy);
  font:500 .92rem/1.35 var(--bw-font);
  transition:color var(--bw-speed) ease;
}
.bw-acc__list a:hover{color:var(--bw-gold);}

/* Desktop layout */
@media(min-width:769px){
  .bw-filter-trigger{display:none;}
  .bw-overlay{display:none!important;}
  .bw-sidebar{
    position:sticky;top:1rem;width:var(--bw-sidebar-w);
    max-width:var(--bw-sidebar-w);opacity:1;visibility:visible;
    background:transparent;height:auto!important;
    max-height:none!important;overflow:visible!important;
  }
  .bw-sidebar__header{display:none;}
  .bw-accordions{padding:.2rem .8rem 1rem;}
}

/* =========================================================
   SAFETY FIX – Prevent Sidebar from Expanding Full Width
   ========================================================= */
.bw-sidebar {
  width: var(--bw-sidebar-w) !important;
  max-width: var(--bw-sidebar-w) !important;
  flex: 0 0 var(--bw-sidebar-w) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {
  .bw-sidebar {
    width: min(92vw, var(--bw-sidebar-w)) !important;
    max-width: none !important;
  }
}


/* ==========================================
   PRODUCT DRILLDOWN: two-column hard layout
   Applies to the shortcode container that renders the product
   ========================================== */

/* 1) Scope the product area */
#c7-content, #bw-pdp { 
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 2) Make the immediate product wrapper a 2-col grid */
#c7-content .c7-product,
#bw-pdp .bw-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

/* 3) Place the image block in column 1. Try specific classes first, then fall back to first image wrapper. */
#c7-content .bw-image,
#c7-content .c7-product__image,
#bw-pdp .bw-image {
  grid-column: 1 !important;
}

/* 4) Constrain the bottle image size */
#c7-content .bw-image img,
#c7-content .c7-product__image img,
#bw-pdp .bw-image img,
#c7-content > div:has(img) > :has(img):first-child img {
  width: 25% !important;
  max-width: 180px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important; /* keep it centered in the 180px column */
}

/* 5) Everything else goes to column 2.
      Target known content wrappers, then a generic fallback for “all siblings that aren’t the image block”. */
#c7-content .bw-content,
#c7-content .c7-product__content,
#bw-pdp .bw-content {
  grid-column: 2 !important;
}

#c7-content > div:has(img) > *:not(:has(img):first-child) {
  grid-column: 2 !important;
}

/* 6) Mobile: stack cleanly */
@media (max-width: 768px) {
  #c7-content .bw-grid,
  #c7-content .c7-product,
  #bw-pdp .bw-grid,
  #c7-content > div:has(img) {
    display: block !important;
  }
  #c7-content .bw-image img,
  #c7-content .c7-product__image img,
  #bw-pdp .bw-image img,
  #c7-content > div:has(img) > :has(img):first-child img {
    max-width: 220px !important;
    margin: 0 auto 1.5rem !important;
  }
}

/* ===========================================
   Force correct Elementor flex direction for
   collection + product pages
   =========================================== */
body.page-template-collection .e-con-inner,
body.single-product .e-con-inner {
  --flex-direction: row !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 2rem !important;
}

/* Sidebar column */
body.page-template-collection .bw-sidebar,
body.single-product .bw-sidebar {
  flex: 0 0 260px !important;
  align-self: flex-start !important;
  border-right: 1px solid #e5e5e5;
  box-shadow: none !important;
  background: #fff;
}

/* Product content column */
body.page-template-collection #c7-content,
body.single-product #c7-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}


/* ==========================================================
   BLOG INDEX (TEASER GRID) STYLING – burgundywine.com
   ========================================================== */

/* 1. Hide H1 but keep for SEO */
.blog h1.elementor-heading-title {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

/* 2. Constrain and center the teaser grid */
.blog .post-container {
  max-width: 1500px;
  width: 60vw;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* 3. Style the grid itself */
.blog .elementor-posts-container.elementor-posts {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* 4. Optional – make teaser images consistent */
.blog .elementor-post__thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}
