@import url("local-visual-assets.css");

html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: "navigation";
  src: url("../fonts/navigation.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Ícones do header via SVG (a fonte exportada usa glyphs que nem sempre carregam no celular). */
:root {
  --ml-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  --ml-icon-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-11z'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M6 6 5 3H2'/%3E%3C/svg%3E");
  --ml-icon-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23736c28'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5z'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  #version--desktop {
    display: none !important;
  }

  #mobile .nav-header .nav-logo {
    width: 108px !important;
    height: 32px !important;
    min-width: 108px;
    max-width: 108px;
    background-image: url("../images/pt_logo_large_plus%402x.webp") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    position: absolute !important;
    left: 10px !important;
    top: 8px !important;
    z-index: 900 !important;
    display: block !important;
    overflow: hidden !important;
    text-indent: -9999px !important;
  }

  #mobile .nav-bounds.nav-bounds-with-cart {
    padding-top: 48px !important;
    position: relative;
  }

  #mobile .nav-bounds.nav-bounds-with-cart .nav-search {
    left: 118px !important;
    right: 94px !important;
    padding: 7px 0 !important;
    box-sizing: border-box;
  }

  #mobile .nav-bounds.nav-bounds-with-cart input.nav-search-input {
    padding-left: 36px !important;
    padding-right: 10px !important;
    border-radius: 2px;
    font-size: 16px !important;
  }

  #mobile .nav-search-btn {
    left: -6px !important;
    right: auto !important;
    width: 40px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  #mobile .nav-search-btn .nav-icon-search {
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }

  #mobile .nav-search-btn .nav-icon-search::before,
  #mobile .nav-search .nav-icon-search::before {
    content: "" !important;
    font-family: inherit !important;
    display: block !important;
    width: 18px;
    height: 18px;
    background: center / contain no-repeat var(--ml-icon-search);
  }

  #mobile .nav-bounds.nav-bounds-with-cart .nav-header-menu-switch {
    right: 45px !important;
    top: 0;
    height: 48px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #mobile .nav-bounds.nav-bounds-with-cart .nav-cart {
    right: 0 !important;
    top: 0 !important;
    width: 45px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  #mobile .nav-cart .nav-icon-cart {
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 !important;
  }

  #mobile .nav-cart .nav-icon-cart::before {
    content: "" !important;
    font-family: inherit !important;
    display: block !important;
    width: 22px;
    height: 22px;
    background: center / contain no-repeat var(--ml-icon-cart);
  }

  #mobile a.nav-header-cp-anchor {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    line-height: 1.35 !important;
    padding: 8px 36px 8px 34px !important;
    box-sizing: border-box;
    color: #736c28 !important;
    font-size: 13px !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #mobile a.nav-header-cp-anchor::before {
    content: "" !important;
    font-family: inherit !important;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: center / contain no-repeat var(--ml-icon-pin);
  }

  #mobile a.nav-header-cp-anchor::after {
    top: 50% !important;
    transform: translateY(-50%) rotate(-45deg) !important;
    margin-top: -2px;
  }

  #mobile .nav-header-cp-anchor .nav-menu-link-cp:empty {
    display: none !important;
  }

  #mobile #localidade1:empty,
  #mobile #cep1:empty,
  #mobile #localidade11:empty,
  #mobile #cep11:empty {
    display: none !important;
  }

  #mobile .nav-header-cp-anchor .nav-menu-cp-send {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Constrain the exported mobile layout and let Slick own its horizontal track. */
@media (max-width: 767px) {
  html,
  body {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .ui-pdp-container,
  .ui-pdp-container__row,
  .ui-pdp-gallery,
  .ui-pdp-carousel-snapped,
  .ui-pdp-gallery .andes-carousel-snapped__container,
  .ui-pdp-gallery .andes-carousel-snapped__controls-wrapper {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .slick-carousel.andes-carousel-snapped {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
  }

  .slick-carousel.slick-initialized {
    display: block !important;
    overflow: hidden !important;
  }

  .slick-carousel .slick-list {
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
    overflow: hidden;
  }

  .slick-carousel .slick-track {
    display: flex !important;
    align-items: stretch;
    height: auto !important;
    min-height: 0 !important;
  }

  .slick-carousel .slick-track::before,
  .slick-carousel .slick-track::after {
    display: none;
  }

  .slick-carousel .slick-slide {
    float: none !important;
    flex-shrink: 0;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .slick-carousel .ui-pdp-gallery--horizontal {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
  }

  .slick-carousel img.ui-pdp-gallery--horizontal {
    object-fit: contain;
    object-position: center;
  }

  .nav-search {
    min-width: 0;
    max-width: 100%;
  }
}