/* produtos */

.content-area  {
  padding: 4% 5% !important;
  border: 0px solid #c00;
}

/* WooCommerce Overrides */
.woocommerce .products {
  display: flex !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.woocommerce #content table.cart td.actions .input-text, .woocommerce table.cart td.actions .input-text, .woocommerce-page #content table.cart td.actions .input-text, .woocommerce-page table.cart td.actions .input-text {
    width: auto;
}

/* Deixa a imagem principal do produto com cantos arredondados */
.woocommerce-product-gallery__image img {
    border-radius: 20px;
    overflow: hidden;
    display: block;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

/* Garante que o zoom mantenha o border-radius */
.woocommerce-product-gallery__image {
    border-radius: 20px;
    overflow: hidden;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
    font-size: .92em;
    color: #b7a887 !important;
}

.woocommerce span.onsale {
    min-height: 3.236em;
    min-width: 3.236em;
    padding: .05rem 1rem;
    font-size: .7rem !important;
    font-weight: 600;
    position: absolute;
    text-align: center;
    line-height: 3.236;
    top: 1em;
    left: 1em;
    margin: 0;
    border-radius: 22px;
    background-color: #FF7477 !important;
    color: #fff;
    z-index: 9;
}

.stock.in-stock {
    color: green !important;
    font-weight: bold;
}

.stock.out-of-stock {
    color: red !important;
    font-weight: bold;
}

.woocommerce .quantity .qty {
    width: 3.631em;
    height: 2.6rem;
    text-align: center;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    width: auto !important;
    padding: .8rem 2rem;
    background-color: #b7a887 !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #b7a887 !important;
    font-size: 1.25em;
}

.woocommerce-variation-price{
     margin: 1.6rem 0;
}

.woocommerce ul.products li.product .price {
    color: #b7a887 !important;
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    margin-top: 1em;
    width: 100%;
    text-align: center;
    background-color: #b7a887 !important;
    color: #fff;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    cursor: pointer;
    opacity: .5;
    margin: 0;
    padding: 0 .2rem;
    border-radius: 12px;
}

.color-swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s ease;
}

.color-swatch.selected {
  border: 2px solid #000;
}

.variations .swatch-wrapper {
  margin-top: 10px;
}


.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.product-card {
  position: relative;
  border: 0px solid #eee;
  padding: 0px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s;
}

.product-thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.product-title {
  font-size: 1rem;
  margin: 10px 0 5px;
  text-align: flex-start;
}

.product-price {
  color: #FF7477;
  font-weight: 400 !important;
  margin-bottom: 10px;
}

.product-price del {
    color: #ddd;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-price ins {
    color: #FF7477;
    text-decoration: none;
    font-size: 1.1rem;
}

.product-price ins .amount {
    color: #FF7477 !important;
}

.product-price del .amount {
    color: #999 !important;
}

.discount-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FF7477;
    color: #fff;
    padding: 0.2rem 0.7rem;
    border-radius: 29px;
    font-size: 0.875rem;
    z-index: 9999;
}

.product-actions .button {
  background: #000;
  color: #fff;
  padding: 8px 14px;
  border: none;
  text-decoration: none;
  transition: 0.2s;
}

.product-actions .button:hover {
  background: #444;
}
.product-actions .button.add-to-cart {
  background: #e91e63;
}

.product-thumb {
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease-in-out;
}

.product-thumb img.secondary-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .product-thumb img.secondary-image {
  opacity: 1;
}

.color-swatches {
    justify-content: start;
    flex-wrap: wrap;
}

.color-swatches span:hover {
    transform: scale(1.1);
    border-color: #000;
}
.color-swatches span {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.swiper-container {
  width: 100%;
  overflow: hidden;
  padding-bottom: 1rem; /* opcional para espaçamento inferior */
  position: relative;
}

.swiper-wrapper {
  display: flex;
  will-change: transform;
}

.swiper-slide {
  box-sizing: border-box;
  max-width: 100%;
}

.swiper-pagination {
    position: relative !important;
    text-align: center;
    transition: .3s opacity;
    transform: translate3d(0, 0, 0);
    z-index: 10;
}

.swiper-button-next, .swiper-button-prev {
    width: 44px !important;
    height: 44px  !important;
    color: #e91e63 !important;
    border: #e91e63 2px solid;
    border-radius: 50%;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: 1.2rem !important;
    text-transform: none !important;
}

.custom-product-option {
    display: flex;
    flex-direction: column;
    margin: 1rem 0;
}

/* icones e text abaixo de REF PRODUT */
.custom-product-icons {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    max-width: 100%;
    border: 1px solid #6C328530;
    padding: 2rem 1rem;
    border-radius: 12px;
}

.custom-product-icons .icon-box {
    flex: 1; /* Cada box ocupa o mesmo espaço */
    text-align: center;
    padding: 0 10px;
}

.custom-product-icons .icon-box i {
    font-size: 30px;
    color: #b7a88780;
    margin-bottom: 8px;
}

.custom-product-icons .icon-box p {
    font-size: 14px;
    color: #b7a887;
    margin: 0;
}

.up-sells-swiper {
    margin-top: 20px;
}

.up-sells-swiper .swiper-slide {
    display: flex;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 428px) {
.woocommerce .products {
  display: block !important;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


