/*
Theme Name: MB Parts Child
Theme URI: https://example.com
Description: Custom WooCommerce child theme for genuine car-parts store (Mercedes-Benz style layout). Built on Storefront.
Author: Yasser
Template: storefront
Version: 1.0.0
Text Domain: mb-parts-child
*/

/* ==========================================================================
   1. DESIGN TOKENS — change these to re-brand the whole site
   ========================================================================== */
:root {
  --mb-black: #000000;
  --mb-white: #ffffff;
  --mb-dark: #1a1a1a;
  --mb-gray-100: #f5f5f5;
  --mb-gray-200: #e8e8e8;
  --mb-gray-400: #9a9a9a;
  --mb-gray-600: #5c5c5c;
  --mb-accent: #00adef;       /* swap for your brand accent */
  --mb-info-bar: #29b6e8;     /* announcement bar background */
  --mb-border: #e2e2e2;
  --mb-radius: 4px;
  --mb-max-width: 1280px;
  --mb-gap: 24px;
  --mb-font-heading: "Helvetica Neue", Arial, sans-serif;
  --mb-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Kill the default gray tap-highlight / focus-outline / selected background
   that browsers and Storefront's base styles add on links & buttons --
   the reference site has none of that. */
a, button, input, .mb-primary-nav a, .mb-main-nav a {
  -webkit-tap-highlight-color: transparent;
}
a:focus, a:active, a:visited,
button:focus, button:active,
.mb-icon-btn:focus, .mb-icon-btn:active,
.mb-primary-nav a:focus, .mb-primary-nav a:active,
.mb-btn:focus {
  outline: none;
  background-color: transparent;
  box-shadow: none;
}
::selection { background: rgba(0,0,0,0.12); }

body {
  font-family: var(--mb-font-body);
  color: var(--mb-dark);
  background: var(--mb-white);
}

.mb-container {
  max-width: var(--mb-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ==========================================================================
   2. ANNOUNCEMENT BAR
   ========================================================================== */
.mb-announcement-bar {
  background: var(--mb-info-bar);
  color: var(--mb-white);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  overflow: hidden;
}
.mb-announcement-bar__viewport {
  position: relative;
  width: 100%;
  min-height: 1em;
}
.mb-announcement-bar__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  padding: 0px 16px;
}
.mb-announcement-bar__slide.is-active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mb-announcement-bar__slide p{margin:0 !important;}
.mb-announcement-bar a { text-decoration: underline; }
.mb-announcement-bar__arrow { width: 16px; height: 16px; flex-shrink: 0; }
.mb-announcement-bar__chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--mb-white);
  opacity: 0.8;
  cursor: pointer;
  z-index: 2;
  transition: opacity .15s ease;
}
.mb-announcement-bar__chevron:hover { opacity: 1; }
.mb-announcement-bar__chevron svg { width: 16px; height: 16px; }
.mb-announcement-bar__chevron--prev { left: 16px; }
.mb-announcement-bar__chevron--next { right: 16px; }

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.mb-site-header {
  background: var(--mb-black);
  color: var(--mb-white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 90;
  transition: box-shadow .2s ease;
}
.mb-site-header.is-scrolled {
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.mb-site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 20px;
}
.mb-logo {
  font-family: var(--mb-font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  white-space: nowrap;
  color: var(--mb-white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.mb-logo a { color: var(--mb-white); display: flex; align-items: center; gap: 10px; }
.mb-logo img { max-height: 55px; width: auto; height: auto; display: block; }

/* Primary nav with dropdowns */
/*
.mb-primary-nav { flex: 1; }
.mb-primary-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.mb-primary-nav > ul > li { position: relative; }
.mb-primary-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mb-white);
  padding: 6px 0;
}
.mb-primary-nav > ul > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.mb-primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--mb-black);
  min-width: 220px;
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  z-index: 20;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.mb-primary-nav li:hover > .sub-menu { display: flex; }
.mb-primary-nav .sub-menu li a {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.mb-primary-nav .sub-menu li a:hover { background: rgba(255,255,255,0.08); }
*/
/* ==========================================================================
   3. MULTI-LEVEL FLYOUT NAVIGATION (Matching Reference Screenshot)
   ========================================================================== */

/* All comments in the code should be in English. */

.mb-primary-nav { flex: 1; }

.mb-primary-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
}

.mb-primary-nav > ul > li {
  position: relative;
}

.mb-primary-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mb-white);
  padding: 16px 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Active Top Level Item (Blue Background like "Parts" in screenshot) */
.mb-primary-nav > ul > li:hover > a,
.mb-primary-nav > ul > li.current-menu-item > a,
.mb-primary-nav > ul > li.current-menu-ancestor > a {
  background-color: var(--mb-info-bar) !important;
  color: var(--mb-white) !important;
}

/* Down arrow icon for top-level parent items */
.mb-primary-nav > ul > li.menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  margin-left: 4px;
}

/* --------------------------------------------------------------------------
   LEVEL 2: Sub-menu (First Column Flyout)
   -------------------------------------------------------------------------- */
.mb-primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  flex-direction: column;
  padding: 10px 0;
  margin: 0;
  z-index: 99;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--mb-border);
}

.mb-primary-nav li:hover > .sub-menu {
  display: flex;
}

.mb-primary-nav .sub-menu li {
  position: relative;
  width: 100%;
}

.mb-primary-nav .sub-menu li a {
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.mb-primary-nav .sub-menu li a:hover {
  background: var(--mb-gray-100);
  color: var(--mb-info-bar);
}

/* Right arrow icon for parent items in level 2 & level 3 */
.mb-primary-nav .sub-menu li.menu-item-has-children > a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #888888;
  border-top: 1.5px solid #888888;
  transform: rotate(45deg);
  display: inline-block;
  margin-left: 10px;
}

.mb-primary-nav .sub-menu li.menu-item-has-children > a:hover::after {
  border-color: var(--mb-info-bar);
}

/* --------------------------------------------------------------------------
   LEVEL 3 & BEYOND: Nested Sub-menus (Opens to the right side)
   -------------------------------------------------------------------------- */
.mb-primary-nav .sub-menu .sub-menu {
  top: -10px;
  left: 100%;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.15);
}

/* Subtitle / Description under text if added inside sub-menu links */
.mb-primary-nav .sub-menu li a small {
  display: block;
  font-size: 11px;
  color: var(--mb-gray-400);
  margin-top: 2px;
  font-weight: 400;
}
/* "Find Us" mega menu -- store locations with embedded maps */
.mb-primary-nav > ul > li.mb-mega-item { position: static; }
.mb-mega-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--mb-white);
  color: var(--mb-dark);
  z-index: 20;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  max-height: 70vh;
  overflow-y: auto;
}
.mb-mega-item:hover .mb-mega-panel { display: block; }
.mb-mega-panel__grid {
  max-width: var(--mb-max-width);
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.mb-mega-location { display: flex; flex-direction: column; }
.mb-mega-location__map { border-radius: var(--mb-radius); overflow: hidden; margin-bottom: 12px; }
.mb-mega-location__map iframe { width: 100%; height: 200px; border: 0; display: block; }
.mb-mega-location__info h4 { font-size: 15px; margin: 0 0 6px; }
.mb-mega-location__info p { font-size: 13px; color: var(--mb-gray-600); margin: 0 0 4px; line-height: 1.5; }
.mb-mega-location__hours { white-space: pre-line; }

/* Mobile drawer: skip heavy map iframes, keep it a simple address list */
.mb-mobile-drawer .mb-mega-panel { display: block; position: static; box-shadow: none; }
.mb-mobile-drawer .mb-mega-panel__grid { grid-template-columns: 1fr; padding: 12px 0; gap: 18px; }
.mb-mobile-drawer .mb-mega-location__map { display: none; }
.mb-mobile-drawer .mb-mega-trigger { pointer-events: none; }

.mb-auth-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.mb-auth-links a { display: flex; align-items: center; gap: 6px; color: var(--mb-white); }
.mb-auth-links svg { width: 15px; height: 15px; }

.mb-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mb-site-header .mb-icon-btn { color: var(--mb-white); }
.mb-lang-switcher ul { list-style: none; display: flex; gap: 10px; margin: 0; padding: 0; }
.mb-lang-switcher a { font-weight: 600; text-transform: uppercase; font-size: 12px; color: var(--mb-white); }
.mb-lang-switcher .lang-item-current a { color: var(--mb-accent); }
.mb-cart-count {
  background: var(--mb-white);
  color: var(--mb-black);
  border-radius: 50%;
  font-size: 11px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ==========================================================================
   4. HERO
   ========================================================================== */
.mb-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--mb-white);
}
.mb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
.mb-hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 40px;
}
.mb-hero__eyebrow {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.mb-hero__title {
  font-family: var(--mb-font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.15;
}
.mb-hero__desc {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0.95;
}
.mb-btn {
  display: inline-block;
  background: var(--mb-white);
  color: var(--mb-black);
  padding: 12px 26px;
  border-radius: var(--mb-radius);
  font-weight: 600;
  font-size: 14px;
  transition: transform .3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow .3s ease, opacity .2s ease;
  transform: translateY(0);
}
.mb-btn:hover { transform: translateY(-4px); opacity: 1; box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.mb-btn:active { transform: translateY(0); box-shadow: none; }
.mb-btn--dark { background: var(--mb-black); color: var(--mb-white); }

/* Generic link hover/active -- footer keeps the subtle fade */
a { transition: color .15s ease, opacity .15s ease; }
.mb-footer-grid a:hover {
  opacity: 0.75;
}

/* Header nav / menu bar links + icons -- hover in the same blue as the
   announcement bar, so the header feels like one connected system */
.mb-primary-nav > ul > li > a:hover,
.mb-auth-links a:hover,
.mb-mobile-drawer nav a:hover,
.mb-site-header .mb-icon-btn:hover {
  color: var(--mb-info-bar);
  opacity: 1;
}
.mb-primary-nav > ul > li > a:active {
  color: var(--mb-info-bar);
  opacity: 0.8;
}
.mb-mega-panel a:hover { color: var(--mb-info-bar); }

/* ==========================================================================
   5. SECTION HEADINGS (shared)
   ========================================================================== */
.mb-section { padding: 16px 0; }
.mb-section__head { margin-bottom: 28px; text-align: inherit; }
.mb-section__title {
  font-family: var(--mb-font-heading);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--mb-white);
}
.mb-section__title-black {
  font-family: var(--mb-font-heading);
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--mb-black);
}
.mb-section__subtitle {
  font-size: 18px;
  color: var(--mb-gray-600);
  max-width: 560px;
  margin: 0 ;

}

/* ==========================================================================
   6b. DARK SHOP ARCHIVE (category / shop pages)
   ========================================================================== */
.mb-shop-dark { background: var(--mb-black); color: var(--mb-white); }
.mb-shop-dark__title { font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.mb-shop-white__title { font-size: 2.5rem; font-weight: 300; margin: 0 0 8px; color: var(--mb-white);  }
.mb-shop-dark__desc { color: var(--mb-gray-400); font-size: 14px; margin-bottom: 24px; max-width: 640px; }
.mb-shop-dark__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mb-shop-dark__toolbar .woocommerce-result-count,
.mb-shop-dark__toolbar .woocommerce-ordering,
.mb-shop-dark__toolbar select { color: var(--mb-white); }
.mb-shop-dark__toolbar select {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--mb-radius);
  padding: 6px 10px;
}
.mb-shop-dark ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}
ul.products::before, ul.products::after{
	display: none !important;
}
.mb-shop-dark .mb-product-card,
.mb-shop-dark li.product { background: transparent; border: none; color: var(--mb-white); }
.mb-shop-dark .mb-product-card__image,
.mb-shop-dark li.product img { background: var(--mb-white); border-radius: var(--mb-radius); }
.mb-shop-dark .mb-product-card__title,
.mb-shop-dark li.product .woocommerce-loop-product__title { color: var(--mb-white); }
.mb-shop-dark .mb-product-card__price,
.mb-shop-dark li.product .price { color: var(--mb-white); }
.mb-shop-dark .woocommerce-pagination a,
.mb-shop-dark .woocommerce-pagination span { color: var(--mb-white); }

/* ==========================================================================
   7. PRODUCT GRIDS (homepage blocks, category archive, related products)
   ========================================================================== */
.mb-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.mb-product-grid-section { color: var(--mb-white); }
.mb-product-grid-section .mb-section__subtitle { color: var(--mb-gray-400); }
.mb-product-grid-section .mb-product-card {
  background: transparent;
  border: none;
}
.mb-product-card {
  border-radius: var(--mb-radius);
  padding: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--mb-black) !important;
  transition: box-shadow .2s;
}
.mb-product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

/* Image + hover zoom + gallery cross-fade */
.mb-product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--mb-gray-100);
  border-radius: var(--mb-radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.mb-product-grid-section .mb-product-card__image,
.mb-shop-dark .mb-product-card__image { background: var(--mb-white); }
.mb-product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .5s ease;
}
.mb-product-card__img--secondary { opacity: 0; }
/* Hover trigger is the WHOLE card, not just the image itself */
.mb-product-card:hover .mb-product-card__image:not(.has-gallery) .mb-product-card__img--primary {
  transform: scale(1.08);
}
.mb-product-card:hover .mb-product-card__image.has-gallery .mb-product-card__img--primary {
  opacity: 0;
  transform: scale(1.08);
}
.mb-product-card:hover .mb-product-card__image.has-gallery .mb-product-card__img--secondary {
  opacity: 1;
  transform: scale(1.08);
}

/* Title strip is always a black band with white text, everywhere on the
   site (light or dark section) -- not just on hover. */
.mb-product-card__title {
  background: var(--mb-black)  !important;
  color: var(--mb-white) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: var(--mb-radius);
  min-height: 40px;
  box-sizing: border-box;
}
.mb-product-card:hover .mb-product-card__title {
  text-decoration: underline;
}

.mb-product-card__price {
  margin-top: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--mb-white);
  margin-top:0;
}
.mb-product-card__price del { color: var(--mb-gray-400); font-weight: 400; margin-inline-end: 6px; }

/* ==========================================================================
   7. CATEGORY CARDS
   ========================================================================== */
.mb-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--mb-gap);
}
.mb-category-card { position: relative; border-radius: var(--mb-radius); overflow: hidden; }
.mb-category-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.mb-category-card__label {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7), transparent);
  color: var(--mb-white);
  padding: 16px;
  font-weight: 700;
}

/* ==========================================================================
   8. SERVICES / "MORE THAN JUST PARTS"
   ========================================================================== */
.mb-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--mb-gap);
}
.mb-service-card {
  
  border-radius: var(--mb-radius);
  padding: 20px;
  background: var(--mb-white);
}
.mb-service-card h3 { 
    font-size: 1.5rem;
    margin: 0 0 10px;
    font-weight: 400;
	}
.mb-service-card p {     
	font-size: 1.2rem;
    color: var(--mb-gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
	}

/* ==========================================================================
   9. NEWSLETTER
   ========================================================================== */
.mb-newsletter {
  background: var(--mb-white);
  text-align: center;
  padding: 48px 20px;
}
.mb-newsletter h2 { font-size: 20px; margin: 0 0 18px; }
.mb-newsletter form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  overflow: hidden;
}
.mb-newsletter input {
  flex: 1; border: none; padding: 12px 14px; outline: none;
}
.mb-newsletter button {
  border: none; background: var(--mb-black); color: var(--mb-white);
  padding: 0 22px; font-weight: 600; cursor: pointer;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.mb-site-footer {
  background: var(--mb-white);
  color: var(--mb-gray-600);
  padding: 40px 0 24px;
  font-size: 13px;
  border-top: 1px solid var(--mb-border);
}
.mb-footer-trust {
  text-align: center;
  font-size: 12px;
  color: var(--mb-gray-400);
  margin-bottom: 28px;
}
.mb-footer-trust a { color: var(--mb-gray-400); }
.mb-footer-trust a:hover { color: var(--mb-black); }
.mb-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--mb-gap);
  margin-bottom: 24px;
}
.mb-footer-grid h4 {
  color: var(--mb-black);
  font-size: 13px;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mb-footer-grid ul { list-style: none; margin: 0; padding: 0; }
.mb-footer-grid li { margin-bottom: 10px; }
.mb-footer-grid a { color: var(--mb-gray-600); }
.mb-footer-grid a:hover { color: var(--mb-black); opacity: 0.75; }
.mb-footer-grid p { margin: 0 0 12px; line-height: 1.6; }
.mb-footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 10px 0;
  border-top: none;
}
.mb-footer-social a { color: var(--mb-dark); display: flex; }
.mb-footer-social a:hover { color: var(--mb-info-bar); }
.mb-footer-social svg { width: 20px; height: 20px; }
.mb-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--mb-gray-400);
}
.mb-payment-icons { display: flex; align-items: center; }
.mb-payment-icons img { max-width: 100%; height: auto; max-height: 28px; display: block; }

/* ==========================================================================
   11b. MOBILE HEADER TOGGLES
   ========================================================================== */
.mb-desktop-only { display: flex; }
.mb-mobile-only {
  display: none !important;
}
nav.mb-desktop-only { display: block; }

.mb-icon-btn {
  background: none;
  border: none;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  color: var(--mb-dark);
}
.mb-icon-btn svg { width: 22px; height: 22px; }
.mb-icon-btn .mb-cart-count { position: absolute; top: 18px; right: 2px; }

/* Off-canvas nav drawer */
.mb-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.mb-mobile-drawer.is-open { visibility: visible; pointer-events: auto; }
.mb-mobile-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity .25s;
}
.mb-mobile-drawer.is-open::before { opacity: 1; }
.mb-mobile-drawer__panel {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 84%;
  max-width: 320px;
  background: var(--mb-white);
  transform: translateX(-100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-y: auto;
}
.mb-mobile-drawer.is-open .mb-mobile-drawer__panel { transform: translateX(0); }
.mb-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mb-border);
}
.mb-mobile-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.mb-mobile-drawer nav li { border-bottom: 1px solid var(--mb-border); }
.mb-mobile-drawer nav a {
  display: block;
  padding: 14px 4px;
  font-size: 15px;
  font-weight: 600;
}
.mb-mobile-drawer__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--mb-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mb-mobile-drawer__footer a { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.mb-mobile-drawer__footer svg { width: 18px; height: 18px; }

/* Search overlay/modal */
.mb-search-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--mb-white);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  align-items: flex-start;
}
.mb-search-modal.is-open { visibility: visible; opacity: 1; }
.mb-search-modal__inner {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  margin-top: env(safe-area-inset-top, 0);
}
.mb-search-modal form {
  flex: 1;
  position: relative;
}
.mb-search-modal input[type="search"] {
  width: 100%;
  border: 1px solid var(--mb-border);
  border-radius: 999px;
  padding: 13px 52px 13px 20px;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease;
}
.mb-search-modal input[type="search"]:focus { border-color: var(--mb-black); }
.mb-search-modal button[type="submit"] {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--mb-black);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.mb-search-modal button[type="submit"] svg { width: 18px; height: 18px; }
.mb-search-modal button[type="submit"]:hover { background: var(--mb-gray-100); transform: translateY(-50%) scale(1.07); }

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 782px) {
  .mb-desktop-only { display: none !important; }
  .mb-mobile-only { display: inline-flex !important; }
  .mb-site-header__inner { padding: 12px 16px; gap: 12px; }
  .mb-logo { flex: 1; font-size: 16px; }
  .mb-hero { min-height: 320px; }
  .mb-hero__content { padding: 0 20px; }
}

/* ==========================================================================
   13. PRODUCT PAGE (PDP) -- dark theme, gallery, lightbox, store panel
   ========================================================================== */
.mb-pdp {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 8px 0 48px;
}
.mb-pdp__main-image {
  display: block;
  width: 100%;
  border: none;
  background: var(--mb-white);
  border-radius: var(--mb-radius);
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}
.mb-pdp__main-image img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: contain; }
.mb-pdp__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}
.mb-pdp__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: var(--mb-radius);
  overflow: hidden;
  background: var(--mb-white);
  padding: 0;
  cursor: pointer;
}
.mb-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mb-pdp__thumb.is-active { border-color: var(--mb-white); box-shadow: 0 0 0 1px var(--mb-black); }

.mb-pdp__title { font-size: 2rem; font-weight: 300; margin: 0 0 10px; color:var(--mb-white);}
.mb-pdp__price { font-size: 20px; font-weight: 700; }
.mb-pdp__tax-note { color: var(--mb-gray-400); font-size: 12px; margin: 4px 0 20px; }

.mb-pdp__cart-form .quantity { margin-bottom: 14px; }
.mb-pdp__cart-form input.qty {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--mb-white);
  padding: 10px;
  width: 70px;
  border-radius: var(--mb-radius);
}
.mb-pdp__cart-form button.single_add_to_cart_button {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--mb-white);
  color: var(--mb-white);
  padding: 14px;
  border-radius: var(--mb-radius);
  font-weight: 600;
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.25, 1, 0.5, 1);
}
.mb-pdp__cart-form button.single_add_to_cart_button:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }

.mb-pdp__pickup {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--mb-white);
  font-size: 13px;
  padding: 16px 0 4px;
  cursor: default;
  text-align: left;
}
.mb-pdp__pickup svg { width: 16px; height: 16px; color: #4ade80; flex-shrink: 0; }
.mb-pdp__view-store-link { display: inline-block; font-size: 13px; text-decoration: underline; margin-bottom: 20px; }

.mb-pdp__description { font-size: 14px; line-height: 1.7; color: var(--mb-gray-400); margin-bottom: 20px; }
.mb-pdp__description p { margin: 0 0 12px; }

.mb-pdp__share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--mb-white);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}
.mb-pdp__share svg { width: 16px; height: 16px; }

.mb-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

/* Fullscreen gallery lightbox -- vertical scroll through all images */
.mb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease;
}
.mb-lightbox.is-open { visibility: visible; opacity: 1; }
.mb-lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  color: var(--mb-white);
  z-index: 2;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
}
.mb-lightbox__scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.mb-lightbox__scroll img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Slide-in store info panel */
.mb-store-panel {
  position: fixed;
  inset: 0;
  z-index: 190;
  visibility: hidden;
  pointer-events: none;
}
.mb-store-panel.is-open { visibility: visible; pointer-events: auto; }
.mb-store-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity .25s;
}
.mb-store-panel.is-open::before { opacity: 1; }
.mb-store-panel__inner {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 90%;
  max-width: 380px;
  background: var(--mb-black);
  color: var(--mb-white);
  padding: 28px 24px;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.mb-store-panel.is-open .mb-store-panel__inner { transform: translateX(0); }
.mb-store-panel__close { position: absolute; top: 16px; right: 16px; color: var(--mb-white); }
.mb-store-panel h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
  padding-right: 30px;
  color: var(--mb-white);
}
.mb-store-panel p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 8px; line-height: 1.6; }
.mb-store-panel p strong { color: var(--mb-white); font-weight: 600; }
.mb-store-panel a { color: var(--mb-white); text-decoration: underline; }
.mb-store-panel__pickup { display: flex; align-items: center; gap: 8px; color: var(--mb-white); font-weight: 600; margin-bottom: 24px; }
.mb-store-panel__pickup svg { width: 16px; height: 16px; color: #4ade80; }
.mb-store-panel__location {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.mb-store-panel__location:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.mb-store-panel__hours {
  white-space: pre-line;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
}

@media (max-width: 782px) {
  .mb-pdp { grid-template-columns: 1fr; gap: 24px; }
}

/* ==========================================================================
   14. WOOCOMMERCE CORE PAGES -- Cart, Checkout, My Account
   Clean, consistent styling on top of Storefront's default markup
   (no custom template files needed -- just brand the existing structure).
   ========================================================================== */

/* Force full-width content on these pages regardless of Storefront's
   sidebar layout calculation, since we don't use a sidebar anywhere. */
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary,
body.woocommerce-account #primary,
body.woocommerce-page #primary {
  width: 100% !important;
  float: none !important;
}
body.woocommerce-cart #secondary,
body.woocommerce-checkout #secondary,
body.woocommerce-account #secondary,
body.woocommerce-page #secondary {
  display: none !important;
}
body.woocommerce-cart .content-area,
body.woocommerce-checkout .content-area,
body.woocommerce-account .content-area {
  max-width: var(--mb-max-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}
body.woocommerce-cart .page-title,
body.woocommerce-checkout .page-title,
body.woocommerce-account .page-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title,
body.woocommerce-account h1.entry-title {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 28px;
}

/* Notices */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: var(--mb-radius);
  border: 1px solid var(--mb-border);
  background: var(--mb-gray-100);
  font-size: 14px;
}
.woocommerce-error { border-color: #f3b3b3; background: #fdf2f2; color: #9b1c1c; }
.woocommerce-message { border-color: #b7e4c7; background: #f1faf4; color: #166534; }
.woocommerce-message a.button, .woocommerce-error a.button { display: inline-block; margin-top: 8px; }

/* Tables (cart, order review) */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--mb-border);
  margin-bottom: 24px;
}
.woocommerce table.shop_table th {
  background: var(--mb-gray-100);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mb-border);
}
.woocommerce table.shop_table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--mb-border);
  vertical-align: middle;
}
.woocommerce table.shop_table td.product-thumbnail img {
  width: 64px;
  border-radius: var(--mb-radius);
}
.woocommerce table.shop_table td.product-name a { font-weight: 600; color: var(--mb-black); }
.woocommerce table.shop_table a.remove {
  color: var(--mb-gray-400) !important;
  border: none !important;
  font-size: 18px !important;
}
.woocommerce table.shop_table a.remove:hover { color: #c0392b !important; background: none !important; }

/* Quantity input */
.woocommerce .quantity input.qty,
.woocommerce input[type="number"] {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  padding: 8px 10px;
  width: 70px;
  font-size: 14px;
}

/* Cart totals box */
.woocommerce .cart_totals,
.woocommerce-checkout #order_review {
  background: var(--mb-gray-100);
  border-radius: var(--mb-radius);
  padding: 24px;
}
.woocommerce .cart_totals table,
.woocommerce-checkout #order_review table { border: none; background: none; }
.woocommerce .cart_totals table th,
.woocommerce-checkout #order_review table th { background: none; border-bottom: 1px solid var(--mb-border); }
.woocommerce .cart_totals .order-total .amount { font-weight: 700; font-size: 18px; }

/* Coupon form */
.woocommerce .coupon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.woocommerce .coupon input#coupon_code {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  padding: 10px 14px;
  flex: 1 1 200px;
}

/* Generic form fields (checkout, login, register, addresses) */
.woocommerce form .form-row label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}
.woocommerce form .form-row .required { color: #c0392b; text-decoration: none; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100%;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  padding: 11px 14px;
  font-size: 14px;
  background: var(--mb-white);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
  border-color: var(--mb-black);
  outline: none;
}
.select2-container .select2-selection--single {
  border: 1px solid var(--mb-border) !important;
  border-radius: var(--mb-radius) !important;
  height: 44px !important;
  padding: 8px 4px !important;
}

/* Buttons -- match the site's lift-on-hover .mb-btn style */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #place_order,
.woocommerce .checkout-button {
  background: var(--mb-black);
  color: var(--mb-white) !important;
  border: 1px solid var(--mb-white) !important;
  border-radius: var(--mb-radius);
  padding: 13px 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .3s cubic-bezier(0.25, 1, 0.5, 1), opacity .2s ease;
  transform: translateY(0);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
  transform: translateY(-4px);
  color: var(--mb-white);
}
.woocommerce a.button:active,
.woocommerce button.button:active,
.woocommerce input.button:active { transform: translateY(0); }
.woocommerce a.button.alt { background: var(--mb-black); }

/* Payment methods box */
.woocommerce-checkout #payment {
  background: var(--mb-gray-100);
  border-radius: var(--mb-radius);
  padding: 16px;
  margin-top: 16px;
}
.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0; padding: 0; }
.woocommerce-checkout #payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--mb-border); }
.woocommerce-checkout #payment div.payment_box {
  background: var(--mb-white);
  border-radius: var(--mb-radius);
  padding: 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--mb-gray-600);
}

/* My Account */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation {
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  overflow: hidden;
}
.woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--mb-border); }
.woocommerce-MyAccount-navigation li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
}
.woocommerce-MyAccount-navigation li.is-active a {
  background: var(--mb-black);
  color: var(--mb-white);
}
.woocommerce-MyAccount-content { margin-top: 24px; }
.woocommerce-MyAccount-content .woocommerce-Address { border: 1px solid var(--mb-border); border-radius: var(--mb-radius); padding: 20px; }

/* Login / Register forms -- centered card */
.woocommerce-form-login, .woocommerce-form-register {
  max-width: 420px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
}
.woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.u-column1.col-1, .u-column2.col-2 {
  width: 48%;
  float: left;
}
.u-column2.col-2 { float: right; }
@media (max-width: 782px) {
  .u-column1.col-1, .u-column2.col-2 { width: 100%; float: none; margin-bottom: 24px; }
}

/* ==========================================================================
   15. HOMEPAGE FREE-TEXT SECTION (from the Home Page's own editor content)
   ========================================================================== */
.mb-homepage-text__inner {
  max-width: 1024px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.8;
  color: var(--mb-gray-600);
}
.mb-homepage-text__inner h1,
.mb-homepage-text__inner h2,
.mb-homepage-text__inner h3 {
  color: var(--mb-black);
  font-weight: 700;
  margin: 0 0 14px;
}
.mb-homepage-text__inner p { margin: 0 0 16px; }
.mb-homepage-text__inner img { max-width: 100%; height: auto; border-radius: var(--mb-radius); }
.mb-homepage-text__inner a { text-decoration: underline; }
.mb-homepage-text__inner ul, .mb-homepage-text__inner ol { margin: 0 0 16px 20px; }

/* ==========================================================================
   16. QUANTITY STEPPER (+/-) -- applies everywhere WooCommerce renders a
   .quantity field: single product, cart, checkout
   ========================================================================== */
.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  width: fit-content;
  overflow: hidden;
}
body.woocommerce-cart .quantity,
.mb-pdp .quantity {
  border-color: rgba(255,255,255,0.3);
}
.mb-qty-btn {
  background: none;
  border: none;
  width: 36px;
  height: 42px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
}
.mb-qty-btn:hover { background: rgba(0,0,0,0.06); }
.mb-pdp .mb-qty-btn:hover, body.woocommerce-cart .mb-qty-btn:hover { background: rgba(255,255,255,0.1); }
.quantity input.qty {
  border: none !important;
  width: 44px;
  text-align: center;
  -moz-appearance: textfield;
  background: transparent;
  color: inherit;
}
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   17. "ITEM ADDED TO CART" POPUP
   ========================================================================== */
.mb-cart-popup {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0,0,0,0.6);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease;
  display: flex;
  justify-content: flex-end;
}
.mb-cart-popup.is-open { visibility: visible; opacity: 1; }
.mb-cart-popup__inner {
  width: 92%;
  max-width: 380px;
  background: var(--mb-black);
  color: var(--mb-white);
  height: 100%;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.mb-cart-popup.is-open .mb-cart-popup__inner { transform: translateX(0); }
.mb-cart-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.mb-cart-popup__check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.mb-cart-popup__check svg { width: 18px; height: 18px; color: #4ade80; }
.mb-cart-popup__product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--mb-black);
  border-radius: var(--mb-radius);
  margin-bottom: 20px;
}
.mb-cart-popup__product img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--mb-radius); background: var(--mb-white); }
.mb-cart-popup__product span { font-size: 13px; font-weight: 600; }
.mb-cart-popup .mb-btn { display: block; width: 100%; text-align: center; margin-bottom: 12px; box-sizing: border-box; }
.mb-btn--outline {
  background: transparent;
  border: 1px solid var(--mb-white);
  color: var(--mb-white);
}
.mb-btn--outline:hover { background: rgba(255,255,255,0.1); }
.mb-cart-popup__continue {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--mb-white);
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
  padding: 8px 0;
}

/* ==========================================================================
   18. CART PAGE -- dark theme override (matches the reference site)
   ========================================================================== */
body.woocommerce-cart .content-area {
  background: var(--mb-black);
  color: var(--mb-white);
  max-width: none;
  padding: 0;
}
body.woocommerce-cart .content-area > .col-full,
body.woocommerce-cart .woocommerce {
  max-width: var(--mb-max-width);
  margin: 0 auto;
  padding: 36px 20px 56px;
}
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .page-title { color: var(--mb-white); }
body.woocommerce-cart table.shop_table {
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
body.woocommerce-cart table.shop_table th {
  background: none;
  color: var(--mb-gray-400);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
body.woocommerce-cart table.shop_table td {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--mb-white);
}
body.woocommerce-cart table.shop_table td.product-name a { color: var(--mb-white); }
body.woocommerce-cart table.shop_table a.remove {
  color: var(--mb-gray-400) !important;
}
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout #order_review {
  background: rgba(255,255,255,0.05);
}
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td { color: var(--mb-white); border-color: rgba(255,255,255,0.15); }
body.woocommerce-cart a.checkout-button {
  background: var(--mb-white);
  color: var(--mb-black) !important;
}
body.woocommerce-cart a.checkout-button:hover { color: var(--mb-black) !important; }
body.woocommerce-cart .coupon input#coupon_code {
  background: transparent;
  border-color: rgba(255,255,255,0.3);
  color: var(--mb-white);
}

/* Cross-sells ("New in store" / "You may be interested in…") on the cart page */
body.woocommerce-cart .cross-sells {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
body.woocommerce-cart .cross-sells h2 {
  color: var(--mb-white);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
}
body.woocommerce-cart .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.woocommerce-cart .cross-sells .mb-product-card,
body.woocommerce-cart .cross-sells li.product {
  background: transparent;
  border: none;
  color: var(--mb-white);
}
body.woocommerce-cart .cross-sells .mb-product-card__image,
body.woocommerce-cart .cross-sells li.product img {
  background: var(--mb-white);
  border-radius: var(--mb-radius);
}
body.woocommerce-cart .cross-sells .mb-product-card__price,
body.woocommerce-cart .cross-sells li.product .price { color: var(--mb-white); }

/* WooCommerce BLOCKS cart page (Cart block + "New in store" Product New
   block) -- completely different markup from the classic shortcode cart
   above, needs its own selectors. */
body.woocommerce-cart .wc-block-cart__empty-cart__title,
body.woocommerce-cart .wc-block-components-notice-banner,
body.woocommerce-cart .wp-block-heading { color: var(--mb-white); }

body.woocommerce-cart .wc-block-grid.wp-block-product-new {
  margin-top: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
body.woocommerce-cart .wc-block-grid__products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  gap: 20px !important;
  list-style: none;
  padding: 0;
  margin: 0;
}
.wc-block-grid__product{width:100% !important;max-width:100% !important;}
/* Neutralize WooCommerce Blocks' own width/flex-basis rules (e.g.
   ".has-4-columns .wc-block-grid__product { width: calc(25% - ...) }")
   which otherwise fight our CSS grid and cause uneven columns. */
body.woocommerce-cart .wc-block-grid__product {
  width: auto !important;
  flex: none !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  color: var(--mb-white);
}
body.woocommerce-cart .wc-block-grid__product-image {
  display: block !important;
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--mb-white);
  border-radius: var(--mb-radius);
  overflow: hidden;
  margin-bottom: 10px;
}
body.woocommerce-cart .wc-block-grid__product-image img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  transition: transform .5s ease;
}
/* Same hover-zoom effect used on product cards everywhere else on the site */
body.woocommerce-cart .wc-block-grid__product:hover .wc-block-grid__product-image img {
  transform: scale(1.08);
}
body.woocommerce-cart .wc-block-grid__product-title {
  display: block;
  background: var(--mb-black);
  color: var(--mb-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: var(--mb-radius);
  margin: 0 0 8px;
  text-decoration: none;
}
body.woocommerce-cart .wc-block-grid__product:hover .wc-block-grid__product-title {
  text-decoration: underline;
}
body.woocommerce-cart .wc-block-grid__product-price,
body.woocommerce-cart .price {
  color: var(--mb-white) !important;
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

/* Add-to-cart button under each "New in store" product -- hidden per request */
body.woocommerce-cart .wc-block-grid__product .add_to_cart_button,
body.woocommerce-cart .wc-block-grid__product .wp-block-button,
body.woocommerce-cart .wc-block-grid__product .wp-block-button__link,
body.woocommerce-cart .wc-block-components-product-button,
body.woocommerce-cart .wc-block-components-product-button__button {
  display: none !important;
}

/* VIN / registration note box on the cart page */
.mb-vin-note {
  background: var(--mb-white);
  color: var(--mb-dark);
  border-radius: var(--mb-radius);
  padding: 18px;
  margin-bottom: 20px;
}
.mb-vin-note label { display: block; font-size: 13px; margin-bottom: 10px; color: var(--mb-gray-600); }
.mb-vin-note textarea {
  width: 100%;
  border: 1px solid var(--mb-border);
  border-radius: var(--mb-radius);
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}
.mb-vin-note__status { display: block; font-size: 11px; color: var(--mb-gray-400); margin-top: 6px; height: 14px; }

button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .button:hover, .widget a.button:hover{
	    background-color: transparent !important;
    border-color: none !important;
    color: #333333;
}
@media (min-width: 768px) {
    .site-branding, .site-search, .site-header-cart, .site-logo-anchor, .site-logo-link, .custom-logo-link {
        margin: 1.1rem 0;
    }
}

/* ==========================================================================
   19. FLOATING CONTACT BUTTON + POPUP FORM
   ========================================================================== */
.mb-contact-fab {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  background: #3a3a3a;
  color: var(--mb-white);
  border: none;
  padding: 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 0 var(--mb-radius) var(--mb-radius) 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  transition: background .2s ease;
}
.mb-contact-fab:hover { background: white !important;  }
.mb-contact-fab__label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mb-contact-fab__icon { display: none; width: 20px; height: 20px; }

.mb-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.6);
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y:scroll;
}
.mb-contact-modal.is-open { visibility: visible; opacity: 1; }
.mb-contact-modal__panel {
  background: var(--mb-white);
  color: var(--mb-dark);
  width: 100%;
  max-width: 480px;
  
  position: absolute !important;
    top: 0;
  border-radius: var(--mb-radius);
  position: relative;
      display: inline-table;

}
.mb-contact-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--mb-white);
  z-index: 2;
  background: rgba(0,0,0,0.3);
  border-radius: 50%;
}
.mb-contact-modal__header {
  background: var(--mb-black);
  color: var(--mb-white);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}
.mb-contact-modal__site-name { font-size: 24px; font-weight: 700; }
.mb-contact-modal__body { padding: 28px 24px; }
.mb-contact-modal__body h3 { font-size: 20px; margin: 0 0 6px; }
.mb-contact-modal__body > p { font-size: 13px; color: var(--mb-gray-600); margin: 0 0 20px; }

.mb-contact-form__row { margin-bottom: 16px; }
.mb-contact-form__row label { display: block; font-size: 12px; color: var(--mb-gray-600); margin-bottom: 6px; }
.mb-contact-form__row input,
.mb-contact-form__row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--mb-border);
  padding: 8px 2px;
  font-size: 14px;
  box-sizing: border-box;
  background: transparent;
}
.mb-contact-form__row input:focus,
.mb-contact-form__row textarea:focus { outline: none; border-bottom-color: var(--mb-black); }
.mb-contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mb-contact-form__submit { width: 100%; text-align: center; margin-top: 8px; }
.mb-contact-form__status {
  font-size: 13px;
  margin: 12px 0 0;
  min-height: 18px;
}
.mb-contact-form__status.is-success { color: #16a34a; }
.mb-contact-form__status.is-error { color: #c0392b; }

@media (max-width: 782px) {
  .mb-contact-fab {
    left: auto;
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
  .mb-contact-fab__label { display: none; }
  .mb-contact-fab__icon { display: block; }
  .mb-contact-form__grid { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   20. CUSTOM SCROLLBAR (dark, matches the site's black/white theme)
   ========================================================================== */
html { scrollbar-color: #2e2e2e var(--mb-black); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mb-black); }
::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 8px;
  border: 2px solid var(--mb-black);
}
::-webkit-scrollbar-thumb:hover { background: #444; }


.mb-contact-modal__header img{
	    max-width: 210px;

}
.mb-contact-modal form{margin:0;}