/* Modal Bootstrap */

.modal-header .close {
   float: right;
   font-size: 1.5rem;
   font-weight: 700;
   line-height: 1;
   color: #000 !important;
   text-shadow: 0 1px 0 #fff;
   opacity: 0.5;
}

.modal-header .close:focus,
.modal-header .close:hover {
   color: #000;
   text-decoration: none;
   opacity: 0.75;
}

.modal-header button.close {
   padding: 0;
   background: transparent;
   border: 0;
   -webkit-appearance: none;
}

.modal-open {
   overflow: hidden;
}

.modal {
   position: fixed;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   z-index: 1050;
   display: none;
   overflow: hidden;
   outline: 0;
}
.modal.fade .modal-dialog {
   transition: transform 0.3s ease-out;
   transform: translate(0, -25%);
}
.modal.show .modal-dialog {
   transform: translate(0, 0);
}

.modal-open .modal {
   overflow-x: hidden;
   overflow-y: auto;
}

.modal-dialog {
   position: relative;
   width: auto;
   margin: 10px;
   pointer-events: none;
}

.modal-content {
   position: relative;
   display: flex;
   flex-direction: column;
   pointer-events: auto;
   background-color: #fff;
   background-clip: padding-box;
   border: 1px solid rgba(0, 0, 0, 0.2);
   border-radius: 0.3rem;
   outline: 0;
}

.modal-backdrop {
   position: fixed;
   top: 0;
   right: 0;
   bottom: 0;
   left: 0;
   z-index: 1040;
   background-color: #000;
}
.modal-backdrop.fade {
   opacity: 0;
}
.modal-backdrop.show {
   opacity: 0.5;
}

.modal-header {
   display: flex;
   flex-shrink: 0;
   align-items: center;
   justify-content: space-between;
   padding: 1rem 1rem;
   border-bottom: 1px solid #e5e8eb;
   border-top-left-radius: 0.2rem;
   border-top-right-radius: 0.2rem;
}
.modal-header .btn-close {
   padding: 0.5rem 0.5rem;
   margin: -0.5rem -0.5rem -0.5rem auto;
}

.modal-body {
   display: flex;
   flex-direction: row;
   padding: 20px 16px !important;
}

.modal-footer {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   padding: 10px;
   border-top: 1px solid #e9ecef;
}
.modal-footer > :not(:first-child) {
   margin-left: 0.25rem;
}
.modal-footer > :not(:last-child) {
   margin-right: 0.25rem;
}

.modal-scrollbar-measure {
   position: absolute;
   top: -9999px;
   width: 50px;
   height: 50px;
   overflow: scroll;
}

@media (min-width: 576px) {
   .modal-dialog {
      max-width: 500px;
      margin: 30px auto;
   }
   .modal-sm {
      max-width: 300px;
   }
}

@media (min-width: 992px) {
   .modal-lg {
      max-width: 750px;
   }
}

/* End Modal Bootstrap */

.modal-image-product img {
   width: 280px;
   height: 280px;
   object-fit: scale-down;
}

.modal-form h5 {
   margin-bottom: 20px;
   font-size: 18px;
}

.form-vertical {
   margin: 50px 0;
   gap: 15px;
   /* border: 1px red solid; */
}

.form-vertical input {
   height: 45px;
   border-radius: 5px;
}

.form-vertical input:first-child {
   margin-bottom: 25px;
}

.modal-footer button {
   border-radius: 10px;
   width: 100px;
}

/* .breadcrumbs {
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   align-items: center;
   width: 100%;
   background: var(--tertiary-gray);
   padding: 15px 0;
   margin-top: 135px;
} */

.content-product-detail,
.content-description {
   display: flex;
   justify-content: center;
   width: 100%;
   margin-top: 50px;
   gap: 20px;
   padding-bottom: 40px;
   /* border-bottom: 1px var(--tertiary-gray) solid; */
}

.card-mobile {
   display: none !important;
}

.product-detail,
.description-product {
   display: flex;
   flex-direction: row;
   gap: 15px;
   width: 90%;
   margin: 0 auto;
   padding-top: 5px;
}

.product-detail-image {
   width: 55%;
   gap: 10px;
   /* padding: 10px; */
}

.gallery {
   display: grid;
   grid-template-columns: 130px 1fr; /* thumbs à esquerda */
   gap: 10px;
   align-items: start;
}

@media (max-width: 800px) {
   .gallery {
      grid-template-columns: 1fr;
   } /* thumbs abaixo no mobile */
}

.card {
   border-radius: 8px;
   padding: 0 10px;
   background: #fff;
   /* box-shadow: var(--shadow-2); */
   height: 490px;
   border: 1px var(--tertiary-gray) solid;
}

.thumbsWrapper {
   display: flex;
   flex-direction: column;
   height: 490px;
   background: #fff;
   padding: 15px 0 15px 5px;
   border-radius: 8px;
   margin: 0;
   border: 1px var(--tertiary-gray) solid;
}

.thumbsWrapper img {
   border-radius: 0;
}

.mainSwiper {
   height: 490px;
   width: 100%;
   overflow: hidden !important;
}

.mainSwiper .swiper-slide {
   display: flex;
   align-items: center;
   justify-content: center;
   background: #fff;
   border-radius: 5px;
   overflow: hidden;
   position: relative;
}

.swiper-zoom-container {
   display: flex;
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   /* border: 1px green solid; */
}

.swiper-zoom-container img {
   display: flex;
   width: 85% !important;
   height: 85% !important;
   object-fit: scale-down;
   position: relative;
   /* border: 1px red solid; */
}

.thumbsSwiper {
   height: 100%;
   /* border: 1px green solid; */
   border-radius: 0;
   overflow-y: auto;
   scrollbar-width: thin;
   scrollbar-color: var(--white) #f6f6f6;
}

.thumbsSwiper img {
   cursor: pointer !important;
}

.thumbsSwiper .swiper-slide {
   width: 90px !important;
   height: 90px !important;
   background: #fff;
   border-radius: none !important;
   overflow: hidden;
   opacity: 1;
   cursor: pointer !important;
   border: 1px solid transparent;
   transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.thumbsSwiper .swiper-slide-thumb-active {
   opacity: 1;
   border-color: var(--primary-blue);
   transform: scale(0.98);
   border-radius: 5px;
}

.swiper-slide img {
   display: flex;
   width: 95%;
   height: 95%;
   object-fit: scale-down;
   position: absolute;
   cursor: zoom-in;
}

.swiper-pagination {
   bottom: 5px !important;
   height: 35px;
   align-content: center;
}

.swiper-button-next,
.swiper-button-prev {
   display: flex;
   color: var(--tertiary-gray);
   text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
   z-index: 3;
   opacity: 0.8;
}

.swiper-pagination-bullet {
   background: var(--color-muted);
   opacity: 0.9;
}
.swiper-pagination-bullet-active {
   background: var(--primary-blue);
}

.skeleton {
   background: repeating-linear-gradient(90deg, #f3f4f6, #f3f4f6 8px, #e5e7eb 8px, #e5e7eb 16px);
   animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
   50% {
      filter: brightness(1.05);
   }
}

.mainSwiper .swiper-wrapper,
.mainSwiper .swiper-slide {
   height: 98%;
}

.swiper-zoom-container {
   width: 100%;
   height: 98%;
   /* border: 1px green solid; */
   display: flex;
   align-items: center;
   justify-content: center;
}

.product-detail > *,
.gallery > *,
.product-detail-image,
.main-detail-product,
.mainSwiper,
.thumbsWrapper,
.thumbsSwiper {
   min-width: 0 !important;
   min-height: 0 !important;
}

.main-detail-product {
   display: flex;
   flex-direction: column;
   width: 45%;

   /* padding: 10px; */
}

.detail-product {
   /* box-shadow: var(--shadow-2); */
   /* border-top: 1px var(--tertiary-gray) solid;
   border-left: 1px var(--tertiary-gray) solid; */
   background: #fff;
   border-radius: 8px;
   min-height: 490px;
   padding: 10px 20px;
}

.card-mobile {
   display: none;
}

.title-product {
   display: flex;
   flex-direction: column;
   padding-bottom: 10px;
}

.product-detail-title {
   font-weight: bold;
   margin: 20px 0 5px 0;
   font-size: 20px;
   line-height: 23px;
   width: 100%;
   padding: 0;
}

.product-code {
   font-size: 13px;
   padding-bottom: 10px;
   margin-bottom: 10px;
   border-bottom: 1px var(--tertiary-gray) solid;
}

.detail-value {
   display: flex;
   flex-direction: column;
   border-radius: 8px;
   /* border: 1px var(--tertiary-gray) solid; */
   padding: 15px;
}

.price-old s {
   color: var(--secondary-gray);
   font-size: 0.9rem;
}

.price-new {
   color: var(--black);
   font-size: 2rem;
   font-weight: bold;
   padding-top: 5px;
}

.detail-price {
   display: flex;
   flex-direction: row;
   gap: 10px;
}

.product-price {
   display: flex;
   flex-direction: column;
   width: 100%;
   padding-bottom: 30px;
   border-bottom: 1px var(--tertiary-gray) solid;
}

.box-cart {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   width: 100%;
   align-items: end;
   margin-top: 45px;
}

.action-product {
   display: flex;
   flex-direction: row;
   width: 60%;
}

.product-unavailable {
   display: flex;
   flex-direction: column;
}

.product-unavailable p:first-child {
   font-size: 1rem;
   color: #000;
   font-weight: 600;
}

.product-unavailable p:last-child {
   font-size: 12px;
   color: gray;
   font-weight: 600;
}

fieldset {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   gap: 5px;
   padding: 10px 15px;
   width: 55%;
}

fieldset button,
fieldset p {
   font-size: 1.2rem;
   color: var(--primary-gray);
}

legend {
   color: var(--primary-gray);
   font-size: 13px;
   padding: 0 3px;
}

.btn-buy-product {
   display: flex;
   flex-direction: column;
   justify-content: baseline;
   width: 70%;
   transition: ease-in 0.3s;

   bottom: 0;
}

.btn-buy-product button {
   border: 1px var(--primary-blue) solid;
   height: 45px;
}

.btn-buy-product i {
   margin-right: 7px;
}

.client-cep {
   display: flex;
   flex-direction: column;
   gap: 10px;
   border-radius: 0;
   background: #fff;
   padding: 20px 0;
}

.input-group {
   display: flex;
}

.input-group input {
   border-radius: 5px 0 0 5px;
   width: 30%;
}

.input-group-btn {
   display: inline-flex;
}

.input-group-btn button {
   border-radius: 0 5px 5px 0;
   margin-right: 15px;
}

.shipping-product {
   /* display: flex; */
   flex-direction: column;
   margin-top: 5px;
   padding: 10px 0;
   gap: 5px;
}

.delivery {
   display: flex;
   flex-direction: column;
   /* width: 100%; */
   padding-bottom: 5px;
   /* border-bottom: 1px var(--tertiary-gray) solid; */
   font-size: 13px;
}

.delivery p:first-child {
   font-weight: bold;
   width: 33%;
}

.delivery-option {
   display: flex;
   flex-direction: row;
   margin-bottom: 8px;
   padding-bottom: 8px;
   border-bottom: 1px var(--tertiary-gray) solid;
}

.delivery-option.last-child {
   border-bottom: none;
}

.delivery {
   display: flex;
   flex-direction: row;
   margin-bottom: 8px;
   padding-bottom: 8px;
   border-bottom: 1px var(--tertiary-gray) solid;
}

.delivery-option p {
   font-weight: bold;
   font-size: 13px;
   width: 33%;
}

.withdraw-timing,
.sedex-timing,
.partner-timing {
   text-align: left;
   font-size: 13px;
   width: 33%;
}

.sedex-price,
.partner-price {
   text-align: right;
   font-size: 13px;
   color: var(--primary-blue);
   font-weight: bold;
   width: 33%;
}

.withdraw-price {
   text-align: right;
   text-transform: uppercase;
   color: var(--green);
   font-weight: bold;
   font-size: 13px;
   width: 33%;
}

.address-store p {
   font-size: 13px;
}

.shipping-calculation {
   width: 100% !important;
}

.shipping-calculation .client-cep {
   width: 25%;
}

.destination-address {
   margin-left: 15px;
   flex-direction: column;
}

#search-cep {
   border-radius: 0 5px 5px 0;
}

.destination {
   margin-top: 4px;
   font-weight: normal;
}

.product-details {
   width: 60%;
   background-color: #fff;
   padding: 20px 25px;
   font-size: 80%;
   background-color: var(--light-gray);
   border-radius: 15px;
}

.product-characteristics {
   display: flex;
   flex-direction: column;
   justify-items: center;
   width: 40%;
   background-color: #fff;
   padding: 25px 25px 40px 25px;
   border-radius: 15px;
   background-color: var(--light-gray);
   height: fit-content;
}

.description-product h3,
.description-product h1 {
   font-size: 14px;
}

.product-details li {
   list-style-type: square;
   line-height: 1.3rem;
   margin-left: 15px;
}

table {
   width: 100%;
   table-layout: fixed;
   border-collapse: collapse;
   font-size: 14px;
   margin-top: 10px;
}

.product-characteristics tr {
   border-bottom: 1px var(--tertiary-gray) solid;
}

.product-characteristics td {
   padding: 15px 0;
}

.product-characteristics td:nth-child(1) {
   width: 30%;
   text-align: left;
}

.product-characteristics td:nth-child(2) {
   text-align: right;
   width: 70%;
}

.product-details h2,
.product-characteristics h2 {
   font-size: 15px;
   margin-bottom: 20px;
}

.product-details p {
   margin-bottom: 10px;
}

.d-none {
   display: none !important;
}

#searching {
   display: none;
}

#searching small {
   font-weight: bold;
   color: var(--primary-gray);
}

#searching small::after {
   content: "..."; /* os três pontos “fontes” */
   display: inline-block;
   overflow: hidden;
   width: 0; /* começa sem pontos */
   vertical-align: bottom;
   animation: dots 1.1s steps(4, end) infinite;
   margin-left: 2px;
}
.c-val a {
   text-decoration: underline;
   font-weight: 600;
}

@keyframes dots {
   to {
      width: 3ch;
   } /* 0ch → 1ch → 2ch → 3ch → volta */
}

@media screen and (max-width: 768px) {
   .main-detail-product {
      display: flex;
      flex-direction: column;
      width: 100% !important;

      /* padding: 10px; */
   }

   .product-detail-image {
      display: none;
      width: 100% !important;
      gap: 10px;
      border: 1px red solid;
   }

   .product-details {
      width: 100%;
      background-color: #fff;
      padding: 20px 25px;
      font-size: 80%;
      background-color: var(--light-gray);
      border-radius: 10px;
   }

   .card-mobile {
      display: flex !important;
      border: 1px var(--tertiary-gray) solid;
   }

   .description-product {
      display: flex;
      flex-direction: column;
      gap: 15px;
      width: 100%;
      margin: 0 auto;
      padding-top: 5px;
   }

   .product-characteristics {
      display: flex;
      flex-direction: column;
      justify-items: center;
      width: 100%;
      background-color: #fff;
      padding: 25px 25px 40px 25px;
      border-radius: 10px;
      background-color: var(--light-gray);
      height: fit-content;
   }
}

@media screen and (max-width: 576px) {
   .btn-buy-product {
      width: 45%;
   }

   .btn-buy-product button {
      height: 40px;
   }

   .detail-value {
      padding: 15px 6px;
   }

   .product-price {
      padding-bottom: 20px;
   }

   .modal-image-product {
      display: flex;
      justify-content: center;
      height: fit-content;
      margin-bottom: 20px;
   }

   .modal-image-product img {
      width: 120px;
      height: 120px;
   }

   .modal-body {
      padding-top: 20px !important;
      flex-direction: column;
   }

   #title-modal-label {
      font-size: 1rem;
   }

   .modal-header {
      padding: 10px 16px;
   }

   .form-vertical {
      margin: 20px 0 10px 0 !important;
   }

   .form-vertical .form-control {
      height: 40px;
   }

   .modal-footer {
      margin-top: 5px;
   }

   .modal-footer button {
      font-size: 14px;
      width: 90px;
   }

   .modal-form h5 {
      margin-bottom: 20px;
      font-size: 14px;
   }

   .container {
      padding: 10px !important;
   }

   .card-mobile {
      display: flex !important;
      border: 1px var(--tertiary-gray) solid;
   }

   .product-detail-title {
      font-weight: bold;
      margin: 15px 0 5px 0;
      font-size: 15px;
      line-height: 1rem;
      width: 100%;
      padding: 0;
   }

   .input-group input {
      border-radius: 5px 0 0 5px;
      width: 40% !important;
   }

   .description-product {
      display: flex;
      flex-direction: column;
      gap: 15px;
      width: 100%;
      margin: 0 auto;
      padding-top: 5px;
   }

   .product-details {
      width: 100%;
      background-color: #fff;
      padding: 20px 25px;
      font-size: 80%;
      background-color: var(--light-gray);
      border-radius: 10px;
   }

   .product-details h2,
   .product-characteristics h2 {
      font-size: 14px !important;
      margin-bottom: 10px;
   }

   .description-product h3,
   .description-product h1 {
      font-size: 13px;
   }

   table {
      width: 100%;
      table-layout: fixed;
      border-collapse: collapse;
      font-size: 13px;
      margin-top: 10px;
   }
}
