#product {
    color: var(--zg-color-text-primary);
}

#product .container {
    max-width: unset;
}

#product .product-right-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#product .product-name {
    font-size: var(--zg-font-size-h2);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

#product .product-prices {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

#product .product-prices {
    font-size: var(--zg-font-size-body);
}

#product .product-prices .current-price-value {
    font-size: var(--zg-font-size-h2);
    font-weight: var(--zg-font-weight-bold);
}

#product .product-prices .current-price {
    display: flex;
    align-items: center;
    gap: 5px;
}

#product .product-prices .tax-shipping-delivery-label {
    font-size: var(--zg-font-size-body-small);
}

#product .product-prices .product-discount {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#product .product-prices .product-discount .regular-price {
    text-decoration: line-through;
    font-size: var(--zg-font-size-body-small);
}

#product .product-prices .discount-percentage {
    color: var(--zg-color-white);
    background-color: var(--zg-color-primary);
    font-size: var(--zg-font-size-body-small);
    padding: 2px 5px;
    border-radius: 5px;
    width: fit-content;
    line-height: 1;
}

#product .product-information {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#product .product-information .product-description {
    font-size: var(--zg-font-size-body);
}

#product .product-information .product-description p {
    margin: 0;
}

/* COMBINACIONES */

#product .product-variants {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#product .product-variants-item {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

#product .product-variants-item .control-label {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-bold);
}

#product .product-variants .color-variant-group,
#product .product-variants .radio-variant-group {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

#product .product-variants .input-color.hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#product .product-variants .color-badge {
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    transition: all .15s ease;
}

#product .product-variants .color-badge:hover,
#product .product-variants .radio-label:hover {
    border-color: #999;
}

#product .product-variants .color-badge-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    flex-shrink: 0;
}

#product .product-variants .color-badge-label {
    white-space: nowrap;
}

#product .product-variants .input-color:checked+.color-badge,
#product .product-variants .input-radio:checked+.radio-label {
    border-color: var(--zg-color-primary);
    background: var(--zg-color-white);
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.2);
}

#product .product-variants .input-radio.hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#product .product-variants .radio-label {
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    background: #fff;
    transition: all .15s ease;
    white-space: nowrap;
}

#product .product-variants .form-control-select {
    width: auto;
    font-size: var(--zg-font-size-body);
    border-radius: 5px;
}

#product .product-variants .color-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
}

#product .product-variants .color-tooltip-wrapper::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(90% + 12px);
    transform: translateX(-50%) translateY(6px);
    background: var(--zg-color-primary);
    color: #fff;
    font-weight: var(--zg-font-weight-semibold);
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity .18s ease, transform .18s ease;
}

#product .product-variants .color-tooltip-wrapper::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(90% + 6px);
    transform: translateX(-50%) translateY(6px);
    width: 12px;
    height: 8px;
    background: var(--zg-color-primary);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity .18s ease, transform .18s ease;
}

#product .product-variants .color-tooltip-wrapper:hover::after,
#product .product-variants .color-tooltip-wrapper:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* FIN COMBINACIONES */

/* CANTIDAD */

#product #add-to-cart-or-refresh {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#product .product-add-to-cart .qty {
    display: flex;
    align-items: center;
    gap: 15px;
}

#product .product-add-to-cart .qty .quantity-label {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-bold);
}

#product .product-add-to-cart #quantity_wanted {
    width: 55px;
    flex: unset;
    font-size: var(--zg-font-size-body);
    height: 32px;
    border-radius: 5px 0px 0px 5px;
    border-top: 1px solid #ced4da;
    border-left: 1px solid #ced4da;
    border-bottom: 1px solid #ced4da;
    border-right: none;
}

#product .product-add-to-cart #quantity_wanted:focus {
    outline: none;
    border: 1px solid #ced4da;
    box-shadow: none;
}

#product .bootstrap-touchspin .input-group-btn-vertical {
    display: flex;
    flex-direction: column;
}

#product .bootstrap-touchspin .btn-touchspin {
    line-height: 0.5;
    padding: 2px;
    background-color: var(--zg-color-primary);
    color: white;
}

#product .bootstrap-touchspin .btn-touchspin.bootstrap-touchspin-up {
    border-radius: 0 5px 0 0;
}

#product .bootstrap-touchspin .btn-touchspin.bootstrap-touchspin-down {
    border-radius: 0 0 5px 0;
}

#product .bootstrap-touchspin .btn-touchspin:hover i {
    color: var(--zg-color-tertiary);
}

#product .bootstrap-touchspin .btn-touchspin i {
    font-size: 10px;
    font-weight: var(--zg-font-weight-bold);
}

/* Chrome, Edge, Safari */
#product input[type="number"]::-webkit-inner-spin-button,
#product input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
#product input[type="number"] {
    -moz-appearance: textfield;
}

.bootstrap-touchspin .touchspin-up::before {
    content: "add";
}

.bootstrap-touchspin .touchspin-down::before {
    content: "remove";
}

#product .product-quantity {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
/*
#product .product-quantity .add-to-cart {
    border-radius: 5px;
    background-color: var(--zg-color-tertiary);
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-bold);
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
}
    #product .product-quantity .add-to-cart:hover {
    background-color: var(--zg-color-hover-primary);
}

#product .product-quantity .add-to-cart:disabled {
    cursor: not-allowed;
}

*/
#product .product-quantity .add-to-cart {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--zg-color-tertiary), #ffbf3a);
  font-size: var(--zg-font-size-body);
  font-weight: var(--zg-font-weight-bold);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  color: #111;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  letter-spacing: 0.02em;
}
#product .product-quantity .add-to-cart:hover {
  background: linear-gradient(135deg, #ffbf3a, var(--zg-color-tertiary));
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
#product .product-quantity .add-to-cart:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) inset;
}
#product .product-quantity .add-to-cart:disabled,
#product .product-quantity .add-to-cart.disabled {
  background: #e5e5e5;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
}

#product .product-quantity .add-to-cart i {
    font-size: var(--zg-font-size-body);
}

#product .product-minimal-quantity {
    margin-top: 10px;
    font-size: var(--zg-font-size-body-small);
}

#product .table-product-discounts,
#product .product-discounts-title {
    display: none;
}

/* FIN CANTIDAD */

/* BADGE DISPONIBILIDAD */

#product #product-availability {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: var(--zg-font-size-body-small);
    line-height: 1;
    padding: 4px;
    border-radius: 5px;
}

#product #product-availability:has(.product-unavailable) {
    background-color: var(--zg-color-error);
    color: var(--zg-color-white);
}

#product #product-availability:has(.product-last-items) {
    background-color: var(--zg-color-warning);
    color: var(--zg-color-white);
}

#product #product-availability i {
    font-size: var(--zg-font-size-body-small);
}

/* FIN BADGE DISPONIBILIDAD */

/* TABS */

#product section#main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    font-size: var(--zg-font-size-body);
}

#product .tabs-css {
    display: flex;
    gap: 0;
}

#product .tabs-css .tabs-radio {
    display: none;
}

#product .tabs-css .nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 15px;
    margin-top: 0px;
    list-style: none;
    padding: 0;
    min-width: 220px;
}

#product .tabs-css .nav-tabs .nav-item {
    margin-bottom: -1px;
    margin-right: -1px;
    position: relative;
    z-index: 1;
}


#product .tabs-css .nav-tabs .nav-link {
    padding: 8px 14px;
    border-radius: 4px 0 0 4px;
    border: 1px solid var(--zg-color-primary);
    border-bottom: 1px solid var(--zg-color-primary);
    background: var(--zg-color-white);
    color: var(--zg-color-primary);
    font-size: 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
    display: inline-flex;
    font-weight: var(--zg-font-weight-semibold);
    text-align: left;
    width: 100%;
    min-height: 60px;
    align-items: center;
}

#product .tabs-css .nav-tabs .nav-link:hover {
    border-bottom: 2px solid var(--zg-color-secondary);
}

#product .tabs-css .tab-content {
    z-index: 1;
    flex: 1;
    border-radius: 0 4px 4px 4px;
    padding: 20px;
    background: var(--zg-color-white);
    min-height: 200px;
    border: 1px solid var(--zg-color-primary);
    box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.2);
}

#product .tabs-css .tab-pane {
    display: none;
}

#product #tab-description:checked~.tab-content #description {
    display: block;
}

#product #tab-details:checked~.tab-content #product-details {
    display: block;
}

#product #tab-attachments:checked~.tab-content #attachments {
    display: block;
}

#product .tabs-css:has(#tab-description:checked) .nav-tabs .nav-item:has(label[for="tab-description"]),
#product .tabs-css:has(#tab-details:checked) .nav-tabs .nav-item:has(label[for="tab-details"]),
#product .tabs-css:has(#tab-attachments:checked) .nav-tabs .nav-item:has(label[for="tab-attachments"]) {
    z-index: 5;
}

#product #tab-description:checked~.nav-tabs label[for="tab-description"] {
    background: var(--zg-color-white);
    color: var(--zg-color-primary);
    border: 1px solid var(--zg-color-primary);
    border-bottom: 2px solid var(--zg-color-tertiary);
    border-right: 1px solid var(--zg-color-white);
}

#product #tab-details:checked~.nav-tabs label[for="tab-details"] {
    background: var(--zg-color-white);
    color: var(--zg-color-primary);
    border-bottom: 2px solid var(--zg-color-tertiary);
    border-right: 1px solid var(--zg-color-white);
    position: relative;
    z-index: 2;
}

#product #tab-attachments:checked~.nav-tabs label[for="tab-attachments"] {
    background: var(--zg-color-white);
    color: var(--zg-color-primary);
    border-bottom: 2px solid var(--zg-color-tertiary);
    border-right: 1px solid var(--zg-color-white);
    position: relative;
    z-index: 2;
}

#product #product-details .label {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-semibold);
    color: var(--zg-color-text-primary);

}

#product .product-features>dl.data-sheet dd.value,
#product .product-features>dl.data-sheet dt.name {
    -webkit-box-flex: 1;
    -ms-flex: 1 0 40%;
    flex: 1 0 40%;
    min-height: 2.5rem;
    padding: .625rem;
    margin-right: .625rem;
    margin-bottom: .5rem;
    font-weight: var(--zg-font-weight-semibold);
    text-transform: capitalize;
    word-break: normal;
    background: #f6f6f6;
}

#product .product-features>dl.data-sheet {
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 0;
}

#product .product-features>dl.data-sheet dd.value {
    margin-inline-start: 0px;
}

#product .tabs p {
    font-size: var(--zg-font-size-body);
    font-weight: var(--zg-font-weight-regular);
    color: var(--zg-color-text-primary);
    margin: .5rem;
}

#product .tabs p.h6 {
    font-size: var(--zg-font-size-body-large);
    font-weight: var(--zg-font-weight-semibold);
}

#product .product-features {
    margin-top: 1.25rem;
    margin-left: .3125rem;
}

/* FIN TABS */

/* FLAGS */

#product #content {
    position: relative;
}

#product .product-flags {
    position: absolute;
    list-style: none;
    padding: 15px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#product .product-flags .product-flag {
    padding: 4px;
    border-radius: 5px;
    color: white;
    font-weight: var(--zg-font-weight-semibold);
    min-width: 50px;
    text-align: center;
    font-size: var(--zg-font-size-body-small);
}

#product .product-flags .product-flag.out_of_stock {
    background-color: var(--zg-color-error);
    border: 1px solid darkred;
}

#product .product-flags .product-last-items {
    background-color: var(--zg-color-error);
    border: 1px solid darkorange;
}

#product .product-flags .product-flag.discount {
    background-color: var(--zg-color-secondary);
}

#product .product-flags .product-flag.new {
    background-color: var(--zg-color-black);
}

/* FIN FLAGS */

/* IMÁGENES DE PRODUCTO */

#product .images-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
    margin: auto;
}

#product .product-cover .zoom-control {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: transparent;
    cursor: pointer;
}

#product .product-cover .zoom-control i {
    padding: 4px;
    font-size: 20px;
}

#product .product-cover {
    position: relative;
    width: 80%;
    margin: auto;
    border-bottom: 1px solid lightgray;
}

#product .product-cover img {
    object-fit: contain;
    max-height: 450px;
}

#product .images-container .mask {
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 80px);
    margin: 0 auto;
}

#product .product-images {
    margin: auto;
    padding-left: 0;
    list-style: none;
    width: 100%;
    margin-bottom: 1rem;
}

#product .product-images .thumb-container {
    display: inline;
}

.images-container .product-images>li.thumb-container .thumb {
    object-fit: cover;
    margin-right: 1.15rem;
    margin-bottom: 0.65rem;
}

.product-images>li.thumb-container .thumb.selected,
.product-images>li.thumb-container .thumb:hover {
    border: 2px solid var(--zg-color-primary);
}

#product .page-content .scroll-box-arrows {
    display: block;
}

#product .page-content .scroll-box-arrows i {
    position: absolute;
    bottom: 2%;
    height: 100px;
    line-height: 70px;
    cursor: pointer;
}

#product .page-content .scroll-box-arrows .left {
    left: 10%;
}

#product .page-content .scroll-box-arrows .right {
    right: 10%;
}

/* FIN IMÁGENES DE PRODUCTO */

/* MODAL ZOOM */
#product #product-modal {
    background-color: rgba(0, 0, 0, 0.5);
}

#product #product-modal .modal-dialog {
    max-width: 1000px;
    margin: 30px auto;
}

#product #product-modal .modal-content {
    height: 785px;
}

#product #product-modal .modal-body {
    position: relative;
    padding: 15px;
    display: flex;
    height: 785px;
    font-size: var(--zg-font-size-body);
}

#product #product-modal .modal-body figure {
    display: flex;
    flex-direction: column;
}

#product #product-modal .modal-body picture {
    height: 90%;
}

#product #product-modal .modal-body figcaption.image-caption {
    height: 10%;
    overflow-y: auto;
}

#product #product-modal .modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#product #product-modal .modal-body #product-description-short {
    padding: 15px 0;
    overflow-y: auto;
}

#product #product-modal #thumbnails {
    position: relative;
    width: 150px;
    padding: 25px 0;
}

#product #product-modal .product-images {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#product #product-modal .thumb {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

#product #product-modal .mask {
    position: relative;
    z-index: 1;
    max-height: 100%;
    overflow: hidden;
    position: relative;
    width: auto;
}

#product #product-modal .arrows {
    position: absolute;
    top: 0;
    right: 3rem;
    z-index: 0;
    width: 100%;
    height: 100%;
    color: var(--zg-color-black);
    text-align: center;
    cursor: pointer;
}

#product #product-modal .modal-content .modal-body .arrows .arrow-up {
    position: absolute;
    top: -2rem;
    opacity: .2;
}

#product-modal .modal-content .modal-body .arrows .arrow-down {
    position: absolute;
    bottom: -2rem;
}

#product-modal .modal-content .modal-body .arrows i {
    display: inline;
    font-size: 6.25rem;
}

/* FIN MODAL ZOOM */

/* MEDIAS */

@media (max-width: 768px) {

    body#product .images-container,
    body#product .product-cover {
        width: 100%;
    }

    body#product .page-content .scroll-box-arrows .left {
        left: 0%;
    }

    body#product .page-content .scroll-box-arrows .right {
        right: 0%;
    }

    body#product .images-container .mask {
        width: calc(100% - 50px);
    }

    body#product .blockreassurance_product {
        flex-direction: column;
    }

    #product .tabs-css {
        display: block;
    }

    #product .tabs-css .tabs-radio {
        display: none;
    }

    #product .tabs-css .nav-tabs {
        display: flex;
        gap: 7px;
        flex-direction: row;
        border-bottom: 1px solid var(--zg-color-primary);
        padding-bottom: 0;
        margin-bottom: 15px;
        list-style: none;
        padding: 0;
    }

    #product .tabs-css .nav-tabs .nav-item {
        margin-bottom: -1px;
    }

    #product .tabs-css .nav-tabs .nav-link {
        padding: 8px 14px;
        border-radius: 4px 4px 0 0;
        border: 1px solid var(--zg-color-primary);
        font-size: 14px;
        cursor: pointer;
        transition: background .15s ease, color .15s ease, border-color .15s ease;
        text-decoration: none;
        display: inline-block;
        font-weight: var(--zg-font-weight-semibold);
        min-height: unset;
    }

    #product .tabs-css .nav-tabs .nav-link:hover {
        border-bottom: 2px solid var(--zg-color-secondary);
    }

    #product .tabs-css .tab-content {
        border-radius: 0 4px 4px 4px;
        padding: 15px;
        background: #ffffff;
        min-height: 150px;
    }

    #product .tabs-css .tab-pane {
        display: none;
    }

    #product #tab-description:checked~.tab-content #description {
        display: block;
    }

    #product #tab-details:checked~.tab-content #product-details {
        display: block;
    }

    #product #tab-attachments:checked~.tab-content #attachments {
        display: block;
    }

    #product #product-details .label {
        font-size: var(--zg-font-size-body);
        font-weight: var(--zg-font-weight-semibold);
        color: var(--zg-color-text-primary);
    }

    #product .product-features>dl.data-sheet dd.value,
    #product .product-features>dl.data-sheet dt.name {
        -webkit-box-flex: 1;
        -ms-flex: 1 0 40%;
        flex: 1 0 40%;
        min-height: 2.5rem;
        padding: .625rem;
        margin-right: .625rem;
        margin-bottom: .5rem;
        font-weight: var(--zg-font-weight-semibold);
        text-transform: capitalize;
        word-break: normal;
        background: #f6f6f6;
    }

    #product .product-features>dl.data-sheet {
        -webkit-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        margin-top: 0;
    }

    #product .product-features>dl.data-sheet dd.value {
        margin-inline-start: 0px;
    }

    #product .tab-css {
        display: block;
    }

    #product .tabs p {
        font-size: var(--zg-font-size-body);
        font-weight: var(--zg-font-weight-regular);
        color: var(--zg-color-text-primary);
        margin: .5rem;
    }

    #product .tabs p.h6 {
        font-size: var(--zg-font-size-body-large);
        font-weight: var(--zg-font-weight-semibold);
    }

    #product .product-features {
        margin-top: 1.25rem;
        margin-left: .3125rem;
    }

    #product #tab-description:checked~.nav-tabs label[for="tab-description"],
    #product #tab-details:checked~.nav-tabs label[for="tab-details"],
    #product #tab-attachments:checked~.nav-tabs label[for="tab-attachments"] {
        border-right: 1px solid var(--zg-color-primary);
    }

    #product .product-quantity {
        position: fixed;
        width: 100%;
        height: 70px;
        bottom: 0;
        background-color: var(--zg-color-white);
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: 1px solid var(--zg-color-primary);
        z-index: 2001;
        left: 0;
    }

    #product .product-quantity .add-to-cart .add button {
        height: 45px;
        font-size: var(--zg-font-size-h3);
    }

    #product .product-minimal-quantity {
        margin: 0;
        font-size: var(--zg-font-size-body-small);
        position: absolute;
        bottom: 0;
    }

    #product .product-right-section{
        padding: 0 30px;
    }
}

/* FIN MEDIAS */