﻿/*Fonts and globla styles*/
.header_price_detail {
  margin: 15px auto;
  font-size: 1.6rem;
  font-weight: bold;
  color: #000000;
}
.header_price_detail_discount {
    text-decoration: line-through;
    color: #888;
    opacity: .85;
    padding-left: 15px;
}
.table__info .product_title {
  font-size: 1.4em;
  margin-bottom: 10px;
}
.product_title {
    font-weight:900;
    font-size: 1.4em;
    margin-bottom: 5px;
}

.table__info .product_code {
  font-size: 0.8em;
}
.table__info__desktop {
  display: block;
}
.table__info__tablet {
  display: none;
}
/*Info Container*/
.info__container {
  display: flex;
  flex-direction: row;
  margin: 25px 0;
}
.rounded-circle {
    width: 40px;
    display: block;
    height : 40px;
}

.btn-outline-dark{
    text-transform: capitalize;
}

.table__total_info__row_ {
    left: 0em !important;
}

.selectedVariant {
    background-color: black !important;
    border-color: black !important;
    color: white !important;
}

.variant{
    margin-top: 2px;
}

.entrega_estimada_product_detail {
    color: #2b8000;
    font-size: 1rem;
    margin-top: 5px;
}
#addToCartBtn {
    padding-left: 0px;
    padding-right: 0px;
    width: 100%;
    margin-top: 20px;
    right: 0;
}
.stock {
    color: rgba(0, 0, 0, 0.9);
    font-size: 1rem;
}

/*Slide*/
.slide_container {
  display: flex;
  flex-direction: row;
  flex-grow: 2;
}
.slide_container .splide__list {
  align-items: center;
}
.slide_container .slide__thumbnail_carousel {
  margin-right: 20px;
}
.slide_container__section {
  max-height: 500px;
  margin-left: 5px;
}
.slide_container__section .splide__track {
  max-height: 500px;
}
.slide_container__section .splide__slide {
  max-height: 500px;
}
.slide__list {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splide__slide {
  opacity: 0.6;
}
.splide__slide.is-active {
  opacity: 1;
}
.slide__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: hidden;
  max-height: 500px;
}
.slide_image__main {
  cursor: pointer;
  object-fit: contain;
}
.table__container {
  padding: 0 3.5em;
}
.table_products {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.table_products thead {
  text-align: justify;
}
.table_products thead tr {
  display: flex;
  justify-content: space-between;
}
.table_products thead tr th {
  border-bottom: 1px solid;
  width: 100%;
}
.table_products tbody {
  text-align: justify;
}
.table_products tbody tr {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
}
.table_products tbody tr td {
  /*width: 9em;*/
}
.table_products__desktop {
  display: table;
}
.table_products__mobile {
  display: none;
}
.table_products__mobile_row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 15px;
}
.table_products__mobile_row .table__text_input {
  width: 30%;
  position: relative;
  display: block;
  margin: 0 0 0 auto;
}
.table__text_input {
  text-align: right;
  background-color: #e4e4e6;
  color: #060606;
  padding: 5px;
  font-size: 1em;
  border-radius: 3px;
  border: none;
  width: 100%;
}
.table__text_no_currency {
  margin-right: 1.35em;
}
.table_data__th_right {
  text-align: end;
}
.table_data__td_right {
  display: flex;
  justify-content: end;
}
.table_data__td_right div {
  width: 50%;
}
.table__total_info__row {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  margin-top: 1.5em;
  position: relative;
  left: 1.5em;
}
.table__total_info__row input {
  width: 4.5em;
  margin-left: 15px;
}
.table__total_info__row button {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 4.5em;
  font-weight: bold;
  border-radius: 5px;
}
.table__total_info__row_bold {
  font-weight: bolder;
}
.table__total_info__row_bold .table__text_input {
  font-weight: bolder;
}
/*Lightbox*/
.lightbox {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.9);
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  display: none;
  flex-direction: column;
  top: 0;
  left: 0;
  z-index: 2147483640;
}
.lightbox .lightbox__button_pane {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: end;
}
.lightbox .lightbox__button_pane .lightbox__close_button {
  font-size: 20px;
  margin-right: 35px;
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 50%;
  background-color: var(--main_color);
  cursor: pointer;
}
.lightbox__carousel {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__carousel .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lightbox__carousel .splide__slide {
  opacity: 0.6;
}
.lightbox__carousel .splide__slide.is-active {
  opacity: 1;
}
.lightbox__carousel .lightbox__main_carousel {
  display: flex;
  justify-content: center;
  height: 100%;
}
.lightbox__carousel .lightbox__main_carousel .splide__track {
  max-width: 80%;
  max-height: 750px;
  border-radius: 10px;
}
.lightbox__carousel .lightbox__main_carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.lightbox__carousel .lightbox__thumbnail_carousel {
  height: 100%;
  margin-top: 15px;
  max-width: 600px;
  display: flex;
  align-items: center;
}
.lightbox__slide_image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  overflow: hidden;
  max-height: none;
}
.splide__track--nav > .splide__list > .splide__slide.is-active {
  border-radius: 12px;
  border-color: var(--main_color);
}
.splide__arrow {
  background: var(--main_color);
  opacity: 1;
}
.txt_discount_detail {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: var(--main_color);
  padding: 5px 15px;
  border-radius: 5px;
  display: block;
  margin-bottom: 10px;
}
.txt_apply_detail {
  margin-bottom: 10px;
  margin-left: 5px;
  font-size: 12px;
  color: var(--main_color);
}
.table__total_info__row button {
  background-color: var(--main_color);
  color: white;
  border: none;
  padding: 10px 4.5em;
  font-weight: bold;
  border-radius: 5px;
  position: relative;
  right: -10px;
}
.table__total_info_row__desktop {
  display: flex;
}
.table__total_info_row__mobile {
  display: none;
}
.table_data__row_left {
  text-align: left;
}
/*Responsive less than 1380*/
@media only screen and (max-width: 1380px) {
  .slide_container {
    width: 100%;
  }
  .lightbox__carousel {
    height: 80%;
  }
}
/*Responsive less than 1024*/
@media only screen and (max-width: 1024px) {
  .info__container {
    display: flex;
    flex-direction: column;
    margin: 3em 0;
    align-items: center;
  }
  .info__container .slide_container {
    margin-bottom: 3em;
  }
  .table__container {
    width: 100%;
    padding: 0 3em;
    max-width: none;
  }
  .table__info__desktop {
    display: none;
  }
  .table__info__tablet {
    display: block;
  }
}
/*Responsive less than 768*/
@media only screen and (max-width: 768px) {
  .slide_container {
    flex-direction: column-reverse;
  }
  .slide_container .slide__list {
    flex-direction: row;
  }
  .slide_container .slide__vertical_arrows {
    display: none;
  }
  .slide_container .slide__thumbnail_carousel {
    margin-top: 15px;
  }
  .table__container {
    width: 100%;
    padding: 0 2em;
    max-width: none;
    min-width: auto;
  }
}
@media only screen and (max-height: 768px) {
  .lightbox__carousel {
    height: 85%;
  }
  .lightbox__main_carousel {
    height: 88% !important;
  }
}
@media only screen and (max-width: 425px) {
  .table_products__desktop {
    display: none;
  }
  .table_products__mobile {
    display: block;
    border-bottom: 1px solid;
    padding-bottom: 10px;
  }
  .table__total_info_row__desktop {
    display: none;
  }
  .table__total_info_row__mobile {
    display: flex;
    justify-content: center;
    margin-top: 20px;
  }
  .table__total_info_row__mobile button {
    background-color: var(--main_color);
    color: white;
    border: none;
    padding: 10px 4.5em;
    font-weight: bold;
    border-radius: 5px;
    width: 100%;
  }
}



.modal--cart {
    font-family: Roboto, Helvetica, Arial, sans-serif, 'Segoe UI';
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5); 
    justify-content: flex-end; 
}

.modal--cart.show {
    display: flex; 
}

.cart-modal-content {
    background-color: white;
    width: 100%;
    max-width: 450px; 
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
    position: relative;
    text-align: left; 
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-modal-header {
    padding: 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f0; 
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.card--alert {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.icon-check {
    width: 24px;
    height: 24px;
    background-color: #8bc34a; 
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.cart-modal-body {
    padding: 0 25px;
    flex: 1;
    overflow-y: auto;
}

.card--product-horizontal {
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 15px;
}

.card-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff; 
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.card-product-name a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 15px;
}

.card-product-variety {
    font-size: 14px;
    color: #777;
}

.card-product-state small {
    display: block;
    font-size: 13px;
    color: #2B8000;
    margin-bottom: 10px;
}

.card-product-state strong {
    font-weight: 600;
}

.card-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.price.is__discount {
    color: #d32f2f;
    font-weight: 600;
    font-size: 16px;
}

.summary-table {
    width: 100%;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
    margin-bottom: 20px;
}

.summary-table td {
    vertical-align: middle;
    padding: 5px 0;
}

.summary-table strong {
    font-size: 14px;
}

.summary-table small {
    color: #666;
    font-size: 13px;
}

#cestaSubtotal {
    text-align: right;
    font-size: 14px;
}

#cestaSubtotal span {
    font-weight: 700;
    font-size: 15px;
}

.cart--call-to-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 30px;
}

.cart-modal-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    border-radius: 5px; 
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    box-sizing: border-box;
}

.cart-modal-btn:hover {
  opacity: 0.8;
}

.cart-modal-btn-primary {
    background-color: var(--main_color);
    color: white;
    border: none;
}

.cart-modal-btn-secondary {
    background-color: white;
    color: #000;
    border: 1px solid #ccc;
}

.card-product-pricing-details {
    display: flex;
    flex-direction: column;
    gap: 1px; 
    font-size: 14px;
    color: #000;
}

.pricing-row {
    line-height: 1.5;
}