
/*-----------SINGLE PRODUCT----------------*/
.single-product-container {
    max-width: 1200px;
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 60px;
}

.single-product-gallery {
    position: sticky;
    top: 20px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hlavný obrázok */

/*
---------------
--------------------PRODUCT PAGE----------------------
---------------
*/
.product-thumbs-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.product-thumbs {
    display: flex;
    width: 100%;
    gap: 30px;
    margin-bottom: 20px;
}

.product-thumb-item {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    max-width: 110px;
}

.product-thumb {
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease;
    /* aspect-ratio: 1 / 1; */
    height: 100%;
    object-fit: contain;
    opacity: 0.5;
}

.product-thumb:hover {
    opacity: 0.7;
}

/* Aktivna miniatura */
.product-thumb.active-thumb {
    opacity: 1;
}

/* Hlavný obrázok */
.product-gallery-swiper {
    width: 100%;
    margin: auto;
    height: 100%;
    text-align: center;
}

.product-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    background-color: white;
}



.product-thumbs-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.product-thumbs {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 10px;
}

.product-thumb-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.product-thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    box-sizing: border-box;
    opacity: 0.6;
    transition: opacity .2s ease, border-color .2s ease;
}

.product-thumb:hover {
    opacity: 0.85;
}

.product-thumb.active-thumb {
    opacity: 1;
    border-color: #663399;
}

.single-product-summary > * + * {
    margin-top: 16px;
}

.single-product-tabs {
    margin-bottom: 60px;
}

.single-product-related {
    margin-bottom: 60px;
} 


.stock {
    font-family: 'MazzardSoftH', system-ui, sans-serif;
    font-size: 14px;
    text-decoration: underline;
}
.single-product-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: row;
    width: 100%;
}
@media (max-width: 1200px) {
    .single-product-cart {
        flex-direction: column;
        align-items: flex-start;
        height: 100%;
    }

}
@media (max-width: 767px) {
    .single-product-cart {
        align-items: center;
    }

}
.single-qty {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.single-qty-btn {
    background: none;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #222;
}
.single-qty-btn:hover {
    background: #f5f5f5;
}

.single-qty-input {
    width: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 10px 0;
    font-size: 15px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.single-qty-input::-webkit-inner-spin-button,
.single-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.single_add_to_cart_button {
    padding: 20px;
    background-color: #663399;
    border-radius: 30px;
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-family: 'MazzardSoftH', system-ui, sans-serif;
    width: 100%;
}
.add-spolu {
    width: 70%;

}
@media (max-width: 1200px) {

    .add-spolu {
        width: 100%;
    }
}

.single_add_to_cart_button:hover {
    background: #444;
}
.single_add_to_cart_button.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .single-product-gallery {
        position: static;
    }
}

/*-----------PRODUKT CENA DETAIL (single product)----------------*/
.cena-detail-akcia .price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.cena-detail-akcia .price ins {
    order: 1;
    color: #D9342B;
    font-size: 32px;
    font-weight: 700;
    text-decoration: none;
}
.cena-detail-akcia .price del {
    order: 2;
    color: #999999;
    font-size: 18px;
    text-decoration: line-through;
    font-weight: 400;
}

.cena-detail-zelena .price {
    color: #0A472E;
    font-size: 32px;
    font-weight: 700;
}


/*-----------POPIS PRODUKTU (obsah z WYSIWYG editora)----------------*/
.popis-kratky p,
.popis-dlhy p {
    display: block;
    margin: 0 0 15px 0;
    line-height: 1.6em;
}
.popis-kratky p:last-child,
.popis-dlhy p:last-child {
    margin-bottom: 0;
}
.popis-kratky ul,
.popis-dlhy ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    list-style: disc;
}
.popis-kratky ol,
.popis-dlhy ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
    list-style: decimal;
}
.popis-kratky li,
.popis-dlhy li {
    margin-bottom: 8px;
    line-height: 1.6em;
    display: list-item;
}
.popis-kratky strong,
.popis-dlhy strong {
    font-weight: 700;
}
.popis-kratky em,
.popis-dlhy em {
    font-style: italic;
}
.popis-kratky h1, .popis-kratky h2, .popis-kratky h3,
.popis-kratky h4, .popis-kratky h5, .popis-kratky h6,
.popis-dlhy h1, .popis-dlhy h2, .popis-dlhy h3,
.popis-dlhy h4, .popis-dlhy h5, .popis-dlhy h6 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.popis-kratky a,
.popis-dlhy a {
    text-decoration: underline;
}
.popis-dlhy img {
    max-width: 100%;
    height: auto;
}
.popis-kratky img {
    width: 100% !important;
    height: 100% !important;
    max-width: 80px;
    max-height: 80px;
}
.popis-kratky blockquote,
.popis-dlhy blockquote {
    margin: 0 0 15px 0;
    padding-left: 15px;
    border-left: 3px solid #dddddd;
}

/*-----------HVIEZDIČKY HODNOTENIA (star-rating)----------------*/
.star-rating {
    display: inline-block;
    overflow: hidden;
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 16px;
    width: 5.4em;
    letter-spacing: 2px;
    font-family: system-ui, sans-serif;
}
.star-rating::before {
    content: "\2605\2605\2605\2605\2605";
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    color: #dddddd;
}
.star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}
.star-rating span::before {
    content: "\2605\2605\2605\2605\2605";
    top: 0;
    position: absolute;
    left: 0;
    color: #F4A62A;
}

/*-----------ZÁLOŽKY PRODUKTU (Popis / Ďalšie informácie / Recenzie)----------------*/
.woocommerce-tabs.wc-tabs-wrapper {
    width: 100%;
}
.woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #e5e5e5;
}
.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}
.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: -16px;
    color: #0A472E;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a {
    color: #80891B;
    border-bottom-color: #80891B;
}
.woocommerce-tabs .panel {
    line-height: 1.6em;
}
.woocommerce-tabs .panel h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0A472E;
    margin: 0 0 15px 0;
}

/*-----------OBSAH ZÁLOŽKY POPIS (rovnaká typografia ako popis-kratky/popis-dlhy)----------------*/
.woocommerce-Tabs-panel--description p {
    display: block;
    margin: 0 0 15px 0;
    line-height: 1.6em;
}
.woocommerce-Tabs-panel--description p:last-child {
    margin-bottom: 0;
}
.woocommerce-Tabs-panel--description ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
    list-style: disc;
}
.woocommerce-Tabs-panel--description ol {
    margin: 0 0 15px 0;
    padding-left: 20px;
    list-style: decimal;
}
.woocommerce-Tabs-panel--description li {
    margin-bottom: 8px;
    line-height: 1.6em;
    display: list-item;
}
.woocommerce-Tabs-panel--description strong {
    font-weight: 700;
}
.woocommerce-Tabs-panel--description em {
    font-style: italic;
}
.woocommerce-Tabs-panel--description h1,
.woocommerce-Tabs-panel--description h3,
.woocommerce-Tabs-panel--description h4,
.woocommerce-Tabs-panel--description h5,
.woocommerce-Tabs-panel--description h6 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
}
.woocommerce-Tabs-panel--description img {
    max-width: 100%;
    height: auto;
}

/*-----------ZÁLOŽKA ĎALŠIE INFORMÁCIE (tabuľka atribútov)----------------*/
.woocommerce-Tabs-panel--additional_information table {
    width: 100%;
    border-collapse: collapse;
}
.woocommerce-Tabs-panel--additional_information tr {
    border-bottom: 1px solid #eeeeee;
}
.woocommerce-Tabs-panel--additional_information th,
.woocommerce-Tabs-panel--additional_information td {
    text-align: left;
    padding: 10px 15px 10px 0;
    font-size: 14px;
}
.woocommerce-Tabs-panel--additional_information th {
    color: #0A472E;
    font-weight: 700;
    width: 220px;
}

/*-----------ZÁLOŽKA RECENZIE----------------*/
#reviews .commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}
#reviews .comment {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
}
#reviews .comment_container img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}
#reviews .comment-text {
    flex: 1;
}
#reviews .comment-text .meta {
    margin-bottom: 8px;
    font-size: 13px;
    color: #777777;
}
#reviews .woocommerce-review__author {
    color: #0A472E;
    font-weight: 700;
}
#reviews .description p {
    margin: 0;
    line-height: 1.6em;
}
#reviews p.stars {
    margin: 0 0 10px 0;
}
#reviews p.stars a {
    text-decoration: none;
}
#review_form_wrapper {
    margin-top: 30px;
}

/*-----------IKONY V POPISE PRODUKTU (náhrada za WP SVG Icons)----------------*/
.wc-legacy-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    line-height: 1;
    font-style: normal;
}
.wc-legacy-icon svg {
    display: block;
}
