/* MaxLar Cloned Storefront - Custom Additive Styles */
html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  max-width: 100%;
  overflow-x: clip;
}

.product-information,
.product-information .column-left,
.product-information .column-right,
.product-information__grid,
.product-information__media,
.product-details {
  min-width: 0;
  max-width: 100%;
}

.rte.product-description__content {
  max-width: 100%;
  overflow-x: hidden;
}

.rte.product-description__content img {
  max-width: 100% !important;
  height: auto !important;
}

@media screen and (max-width: 749px) {
  .header__columns {
    column-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 8px !important;
    --header-mobile-bookend: 42px;
  }
  .header-logo__image {
    max-width: 138px !important;
    width: auto !important;
    max-height: 52px !important;
    height: auto !important;
  }
  nav.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
  header-actions {
    grid-area: rightB !important;
    justify-self: end !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    margin-inline-start: 0 !important;
    min-width: 42px !important;
  }
  header-actions cart-drawer-component {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  header-actions cart-drawer-component > button.header-actions__action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    min-height: 40px !important;
    color: #111111 !important;
    overflow: visible !important;
  }
  .product-information {
    padding-inline: 12px !important;
  }
}

@media screen and (min-width: 750px) and (max-width: 989px) {
  .page-width-normal,
  .page-width-narrow,
  .page-width-content {
    --page-margin: 24px !important;
  }
  .header-logo__image {
    max-width: 120px !important;
    width: auto !important;
    height: auto !important;
  }
  .header__column--center,
  .header-menu {
    min-width: 0 !important;
  }
  .header-menu .menu-list--desktop {
    display: block !important;
  }
  .header-menu .menu-list--mobile {
    display: none !important;
  }
  .header-menu .menu-list__desktop-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px 12px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .header-menu .menu-list__link {
    white-space: nowrap !important;
    font-size: 13px !important;
  }
}

/* Footer columns expanded cleanly on desktop & mobile (replacing accordion-custom.js) */
footer details.menu__details > .details-content,
[id^="shopify-section-"][id$="__footer"] details.menu__details > .details-content {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

footer summary.menu__heading,
[id^="shopify-section-"][id$="__footer"] summary.menu__heading {
  list-style: none !important;
  cursor: default !important;
}

footer summary.menu__heading::-webkit-details-marker,
[id^="shopify-section-"][id$="__footer"] summary.menu__heading::-webkit-details-marker {
  display: none !important;
}

footer summary.menu__heading .icon-plus,
footer summary.menu__heading .icon-caret,
[id^="shopify-section-"][id$="__footer"] summary.menu__heading .icon-plus,
[id^="shopify-section-"][id$="__footer"] summary.menu__heading .icon-caret {
  display: none !important;
}

/* Product Gallery & Slideshow */
media-gallery slideshow-slides,
.product-card slideshow-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

media-gallery slideshow-slides::-webkit-scrollbar,
.product-card slideshow-slides::-webkit-scrollbar {
  display: none;
}

media-gallery slideshow-slide,
.product-card slideshow-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
}

/* Gallery Thumbnail Active Border */
.slideshow-controls__thumbnail {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.slideshow-controls__thumbnail[aria-selected="true"],
.slideshow-controls__thumbnail.is-selected {
  border-color: #111111 !important;
  opacity: 1;
}

.slideshow-controls__thumbnail[aria-selected="false"] {
  opacity: 0.75;
}

.slideshow-controls__thumbnail:hover {
  opacity: 1;
}

/* Reviews Section Placeholder (matches bk-reviews empty state) */
.mx-reviews-placeholder {
  width: 100%;
  padding: 18px 16px 8px;
  text-align: center;
  font-size: 13px;
  color: #4a4a4a;
  font-family: var(--font-body--family, 'Montserrat', sans-serif);
}

/* Header Desktop & Mobile Navigation Anchor Offset */
#catalogo,
#rodape {
  scroll-margin-top: 24px;
}

/* Mobile Header Drawer Open State */
details.menu-drawer-container[open] > .menu-drawer {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

details.menu-drawer-container[open] > .menu-drawer__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

details.menu-drawer-container > .menu-drawer {
  z-index: 99;
}

/* Cart Bubble Visible When > 0 */
.header-actions__cart-icon {
  position: relative;
}

.cart-bubble.mx-has-items {
  position: absolute !important;
  top: -4px !important;
  right: -6px !important;
  width: auto !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  background: #16c789;
  color: #ffffff;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.cart-bubble.mx-has-items .cart-bubble__text-count.hidden {
  display: inline !important;
}

/* Cart Drawer Dialog */
dialog.cart-drawer__dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  background: #ffffff;
  color: #111111;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

dialog.cart-drawer__dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.mx-cart-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: var(--font-body--family, 'Montserrat', sans-serif);
}

.mx-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #eaeaea;
}

.mx-cart-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: #111111;
}

.mx-cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: #111111;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mx-cart-close:hover {
  background: #f5f5f5;
}

.mx-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.mx-cart-empty {
  text-align: center;
  padding: 48px 16px;
}

.mx-cart-empty p {
  color: #666666;
  font-size: 14px;
  margin-bottom: 18px;
}

.mx-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #efefef;
}

.mx-cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}

.mx-cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.35;
}

.mx-cart-item-var {
  font-size: 12px;
  color: #777777;
  margin-bottom: 6px;
}

.mx-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.mx-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  height: 30px;
}

.mx-cart-qty button {
  width: 28px;
  height: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: #111111;
}

.mx-cart-qty span {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.mx-cart-price {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
}

.mx-cart-remove {
  background: none;
  border: none;
  color: #999999;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.mx-cart-remove:hover {
  color: #d32f2f;
}

.mx-cart-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid #eaeaea;
  background: #fafafa;
}

.mx-cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 6px;
  color: #333333;
}

.mx-cart-summary-line.pix {
  color: #14b67d;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.mx-cart-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: 6px;
  background: #16c789;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.mx-cart-checkout-btn:hover {
  filter: brightness(0.95);
}

.mx-cart-continue {
  width: 100%;
  margin-top: 8px;
  background: transparent;
  border: 1px solid #d4d4d4;
  color: #333333;
  height: 40px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* Search Modal Enhancement */
dialog.search-modal__content {
  width: min(740px, 94vw);
  max-height: 82vh;
  margin: 48px auto auto;
  border: none;
  border-radius: 10px;
  padding: 0;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
  z-index: 1002;
}

dialog.search-modal__content::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.mx-search-results {
  padding: 12px 18px 18px;
  max-height: 60vh;
  overflow-y: auto;
}

.mx-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.mx-search-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 10px;
  text-decoration: none;
  color: #111111;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mx-search-card:hover {
  border-color: #16c789;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mx-search-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.mx-search-card-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.mx-search-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #16c789;
}

/* Product Card & Catalog Fixes for Instant 1-Tap Navigation & Fixed 1:1 Aspect Ratio */
#catalogo .product-card {
  position: relative !important;
  cursor: pointer !important;
  overflow: hidden !important;
  transform: none !important;
  transition: none !important;
  -webkit-tap-highlight-color: transparent;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#catalogo .product-card:hover,
#catalogo .product-card:focus,
#catalogo .product-card:focus-within,
#catalogo .product-card:active {
  transform: none !important;
  box-shadow: none !important;
}

#catalogo .product-card > a.product-card__link {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 20 !important;
  display: block !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent;
}

#catalogo .card-gallery,
#catalogo .card-gallery__mobile-static,
#catalogo .card-gallery__desktop,
#catalogo .product-card-gallery__slide,
#catalogo .product-card-gallery__image-wrapper {
  aspect-ratio: 1 / 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  overflow: hidden !important;
  transform: none !important;
  transition: none !important;
}

#catalogo .card-gallery img,
#catalogo .card-gallery__mobile-static img,
#catalogo .card-gallery__desktop img,
#catalogo .product-card img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  transform: none !important;
  transition: none !important;
  display: block !important;
}

#catalogo quick-add-component,
#catalogo .quick-add,
#catalogo .quick-add__button,
#catalogo product-form-component.quick-add__product-form-component,
#catalogo slideshow-arrows,
#catalogo .slideshow-control {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#catalogo .product-card-badge-wrapper {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  z-index: 5 !important;
  pointer-events: none !important;
}

/* Gallery Zoom Lightbox */
#mx-zoom-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#mx-zoom-lightbox.is-open {
  display: flex;
}

#mx-zoom-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
}

#mx-zoom-lightbox .mx-zoom-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
  color: #111;
}

#mx-zoom-lightbox .mx-zoom-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  color: #111;
}

#mx-zoom-lightbox .mx-zoom-prev { left: 18px; }
#mx-zoom-lightbox .mx-zoom-next { right: 18px; }

/* Newsletter Feedback & Toast */
.mx-newsletter-msg {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #e9fbf3;
  color: #0e7c55;
  font-size: 13px;
  font-weight: 600;
}

.mx-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111111;
  color: #ffffff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.mx-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Variant Option Fallback Label Selection */
.variant-option__image-label:has(input:checked),
.variant-option__button-label:has(input:checked) {
  border-color: #111111 !important;
  box-shadow: 0 0 0 1px #111111;
}

/* Free shipping result badge alignment */
.frete-resultado {
  display: none;
  margin-top: 10px;
}

/* Promo Do Dia spacing on policy/product pages */
#catalogo .product-card {
  height: 100%;
}
