/* Ajustes REDS: marca/slideshow (Etapa 2) e layout mobile (Etapa 3). */
#logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 120px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* Ocultar o aro incorporado, mantendo os pixels centrais da marca. */
  clip-path: inset(24% 14% 23% 18%);
  transform: scale(1.35);
  transform-origin: 50% 50%;
}
.slideshow .swiper-slide > a {
  display: block;
}
.slideshow .swiper-slide img {
  display: block;
  margin: 0 auto;
}
.slideshow .swiper-slide > a:focus {
  outline: 3px solid #8c7839;
  outline-offset: -3px;
}
/* Usar o espaco ja reservado pelo tema, sem cobrir o texto das artes. */
.slideshow > .swiper-pagination {
  bottom: -28px;
  text-align: center;
}
.slideshow > .swiper-pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  margin: 0 5px;
  border-radius: 50%;
}

/* Revisão final: títulos completos e rodapé contido também no tablet. */
#content .product-thumb .caption h4 {
  height: auto;
  min-height: 48px;
  overflow: visible;
  overflow-wrap: anywhere;
}
footer .footer-bottom > .container {
  max-width: 100%;
}
@media (min-width: 768px) {
  #common-home #content > .row {
    display: flex;
    flex-wrap: wrap;
  }
  #common-home #content > .row > .product-layout,
  #common-home .product-thumb,
  #common-home .product-thumb .caption {
    display: flex;
    flex-direction: column;
  }
  #common-home .product-thumb,
  #common-home .product-thumb .caption {
    flex: 1;
  }
  #common-home .product-thumb .price {
    margin-top: auto;
    padding-top: 8px;
  }
}

/* Etapa 3: ajustes locais sobre Bootstrap/REDS, sem alterar o desktop. */
@media (max-width: 767px) {
  #top .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  #top #top-links {
    display: block;
    float: none !important;
    margin: 0;
    padding: 4px 8px;
    text-align: center;
  }
  #top-links .sebo-contact-top {
    font-size: 13px;
  }
  body header > .container {
    padding: 0 15px 12px;
  }
  body header .v-align {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
  }
  header .v-align::before,
  header .v-align::after,
  header .v-align > .col-xs-9 > .row::before,
  header .v-align > .col-xs-9 > .row::after {
    display: none;
  }
  header .v-align > .col-xs-3 {
    width: auto;
    padding: 0;
    grid-column: 1;
    grid-row: 1;
  }
  header .v-align > .col-xs-9,
  header .v-align > .col-xs-9 > .row {
    display: contents;
  }
  header .v-align > .col-xs-9 > .row > .visible-xs {
    width: auto;
    padding: 0;
    grid-column: 2;
    grid-row: 1;
  }
  header .v-align > .col-xs-9 > .row > .col-sm-8,
  header .v-align > .col-xs-9 > .row > .col-sm-12 {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    grid-column: 1 / -1;
  }
  header #logo {
    margin: 0;
  }
  header #logo img {
    max-width: 88px;
    max-height: 86px;
  }
  header .right > .list-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }
  header .right > .list-inline > li {
    padding: 0;
  }
  header #btn-menu,
  header .account_menu > a,
  header #cart > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  header #search {
    width: 100%;
    margin: 0;
  }
  header #search .input-lg {
    height: 44px;
    min-width: 0;
    font-size: 16px;
  }
  header #search .btn-lg {
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
  }
  header #cart .dropdown-menu {
    right: 0;
    left: auto;
    width: calc(100vw - 30px);
    max-width: 360px;
  }
  body .screen-overlay {
    z-index: 1100;
  }
  body .offcanvas {
    width: 86%;
    max-width: 340px;
    overflow-y: auto;
  }
  .offcanvas .btn-close,
  .mmenu .btn-menu-all {
    min-width: 44px;
    min-height: 44px;
  }
  #offcanvas-left .mmenu li > a {
    min-height: 44px;
    padding: 12px 52px 12px 16px;
    overflow-wrap: anywhere;
  }
  .mmenu .dropdown {
    position: relative;
  }
  .mmenu .btn-menu-all {
    top: 0;
    right: 0;
    margin: 0;
  }
  .offcanvas .mhelp {
    position: static;
    width: auto;
    margin: 16px 0 0;
  }
  .offcanvas-active .sebo-whatsapp,
  .sebo-whatsapp.sebo-whatsapp-hidden {
    visibility: hidden;
    pointer-events: none;
  }
  .slideshow.swiper-viewport {
    margin-bottom: 68px;
  }
  #common-home .slideshow.swiper-viewport {
    width: calc(100% + 20px);
    margin-left: -10px;
    margin-top: 16px;
  }
  .slideshow .swiper-slide img {
    width: 100%;
    height: auto;
  }
  .slideshow > .swiper-pager {
    top: auto;
    bottom: -52px;
    height: 44px;
    line-height: 44px;
  }
  .slideshow .swiper-pager > div {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    width: 44px;
    height: 44px;
    margin-top: 0;
    border-radius: 4px;
    background: #f1f1f1;
    opacity: 1;
  }
  .slideshow .swiper-pager .swiper-button-prev {
    left: 0;
  }
  .slideshow .swiper-pager .swiper-button-next {
    right: 0;
  }
  .slideshow .swiper-pager > div::before {
    width: auto;
    height: auto;
    font-size: 20px;
  }
  .slideshow > .swiper-pagination {
    bottom: -52px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 44px;
    transform: translateX(-50%);
  }
  .slideshow > .swiper-pagination .swiper-pagination-bullet {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    background: transparent;
    box-shadow: none;
  }
  .slideshow .swiper-pagination-bullet::before {
    content: '';
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #999;
  }
  .slideshow .swiper-pagination-bullet-active::before {
    background: #333;
  }
  .container .breadcrumb > li {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  #content .product-thumb {
    overflow: hidden;
  }
  #content .product-thumb .image img {
    width: 100%;
    height: 170px;
    object-fit: contain;
  }
  #content .product-thumb .caption {
    min-height: 0;
    padding: 10px;
  }
  #content .product-thumb .caption h4 {
    height: auto;
    min-height: 0;
    overflow: visible;
    overflow-wrap: anywhere;
    font-size: 14px;
    line-height: 1.4;
  }
  #content .product-thumb .price {
    font-size: 18px;
    overflow-wrap: anywhere;
  }
  #content .btn {
    min-height: 44px;
    white-space: normal;
  }
  #common-home #content > .row {
    display: flex;
    flex-wrap: wrap;
  }
  #common-home #content > .row > .product-layout,
  #common-home .product-thumb,
  #common-home .product-thumb .caption {
    display: flex;
    flex-direction: column;
  }
  #common-home .product-thumb,
  #common-home .product-thumb .caption {
    flex: 1;
  }
  #common-home .product-thumb .price {
    margin-top: auto;
    padding-top: 8px;
  }
  #product-category #content > .row > .col-xs-6:not(.product-layout) {
    width: 100%;
  }
  #product-category .form-control,
  #information-contact .form-control,
  #product-product #product .form-control {
    min-height: 44px;
    font-size: 16px;
  }
  #product-category .input-group-addon {
    min-width: 105px;
  }
  #product-product .product-infos {
    padding: 16px;
  }
  #product-product .product-infos h1 {
    font-size: 26px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  #product-product .thumbnails img,
  #product-product #tab-description img {
    max-width: 100%;
    height: auto;
  }
  #product-product .product-infos,
  #product-product .tab-content {
    overflow-wrap: anywhere;
  }
  #information-contact .panel-body .row > div {
    margin-bottom: 16px;
    overflow-wrap: anywhere;
  }
  #checkout-cart .table-responsive {
    max-width: 100%;
  }
  /* Um unico formulario nativo; as mesmas celulas viram cards no celular. */
  #checkout-cart .cart-items-wrapper {
    border: 0;
    overflow: visible;
  }
  #checkout-cart .cart-items,
  #checkout-cart .cart-items tbody {
    display: block;
    width: 100%;
    border: 0;
  }
  #checkout-cart .cart-items thead {
    display: none;
  }
  #checkout-cart .cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 48px;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
  }
  #checkout-cart .cart-item > td {
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
    font-size: 17px;
    line-height: 1.5;
  }
  #checkout-cart .cart-image {
    grid-area: 1 / 1 / 2 / 2;
  }
  #checkout-cart .cart-image img {
    width: 80px;
    max-width: 100%;
    height: auto;
  }
  #checkout-cart .cart-name {
    grid-area: 1 / 2 / 2 / 4;
  }
  #checkout-cart .cart-name > a {
    font-size: 18px;
    font-weight: 600;
  }
  #checkout-cart .cart-name small {
    font-size: 16px;
  }
  #checkout-cart .cart-model {
    grid-area: 2 / 1 / 3 / 4;
  }
  #checkout-cart .cart-unit-price {
    grid-area: 3 / 1 / 4 / 4;
  }
  #checkout-cart .cart-line-total {
    grid-area: 6 / 1 / 7 / 4;
  }
  #checkout-cart .cart-model,
  #checkout-cart .cart-unit-price,
  #checkout-cart .cart-line-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  #checkout-cart .cart-model::before,
  #checkout-cart .cart-unit-price::before,
  #checkout-cart .cart-line-total::before {
    content: attr(data-label);
    font-weight: 600;
  }
  #checkout-cart .cart-quantity,
  #checkout-cart .cart-quantity .input-group,
  #checkout-cart .cart-quantity .input-group-btn {
    display: contents;
  }
  #checkout-cart .cart-quantity-label {
    grid-area: 4 / 1 / 5 / 4;
    margin: 0;
    font-size: 17px;
  }
  #checkout-cart .cart-quantity input {
    grid-area: 5 / 1 / 6 / 3;
    width: 100%;
    height: 48px;
    min-width: 0;
    border-radius: 4px;
    font-size: 18px;
  }
  #checkout-cart .cart-update {
    grid-area: 5 / 3 / 6 / 4;
    width: 48px;
    margin: 0;
  }
  #checkout-cart .cart-remove {
    grid-area: 7 / 1 / 8 / 4;
    width: 100%;
    margin: 0;
  }
  #checkout-cart .cart-update,
  #checkout-cart .cart-remove {
    min-height: 48px;
    border-radius: 4px;
    font-size: 17px;
  }
  #checkout-cart .cart-voucher .cart-image,
  #checkout-cart .cart-voucher .cart-model {
    display: none;
  }
  #checkout-cart .cart-voucher .cart-name {
    grid-column: 1 / -1;
  }
  #checkout-cart .cart-voucher input {
    grid-column: 1 / -1;
  }
  #checkout-cart .cart-totals {
    font-size: 18px;
    line-height: 1.5;
  }
  #checkout-cart .buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  #checkout-cart .buttons a {
    display: block;
  }
  footer .store_infos,
  footer .footer-bottom {
    overflow-wrap: anywhere;
  }
  body footer {
    background: #4b411f;
    color: #fff;
    font-size: 18px;
    line-height: 1.65;
  }
  body footer h5 {
    margin: 24px 0 12px;
    color: #fff;
    font-size: 22px;
    line-height: 1.4;
  }
  body footer a,
  body footer a:hover,
  body footer a:focus {
    color: #fff;
    text-decoration: underline;
  }
  body footer li > a {
    display: inline-block;
    min-height: 44px;
    padding: 7px 0;
  }
  body footer .store_infos li {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.65;
  }
  body footer .store_infos > p {
    font-size: 22px;
    line-height: 1.5;
  }
  body footer small,
  body footer .footer-bottom p {
    font-size: 17px;
    line-height: 1.65;
  }
  body footer .footer-bottom {
    padding: 24px 0 88px;
  }
}
