/*------galéria produktu - sticky pri scrollovaní-----*/
.product-gallery-sticky {
    align-self: flex-start;
    position: sticky;
    top: 120px;
}
@media (max-width: 767px) {
    .product-gallery-sticky {
        position: static;
    }
}

/*------skladova dostupnost css-----*/
.skladova-dostupnost-wrap {
    box-sizing: border-box;
    background: #F1F1FB;
    border-radius: 18px;
    padding: 18px 20px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}
.skladova-dostupnost-wrap.show {
    opacity: 1;
    height: auto;
}
.skladova-dostupnost-wrap.hide {
    opacity: 0;
    height: 0;
}

.skladova-dostupnost-header {
    padding-bottom: 10px;
}
.skladova-dostupnost-title {
    text-transform: uppercase;
    letter-spacing: .3px;
}

.skladova-dostupnost-items {
    margin-top: 4px;
}
.skladova-dostupnost-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.skladova-dostupnost-item:last-child {
    border-bottom: none;
}
.skladova-dostupnost-label {
    font-size: 15px;
}
.skladova-dostupnost-item.available .skladova-dostupnost-label {
    font-weight: 700;
    color: #1a1a1a;
}
.skladova-dostupnost-item.unavailable .skladova-dostupnost-label {
    font-weight: 500;
    color: #8a8d99;
}
.skladova-dostupnost-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.skladova-dostupnost-status svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.skladova-dostupnost-item.available .skladova-dostupnost-status {
    color: #1f9d55;
}
.skladova-dostupnost-item.unavailable .skladova-dostupnost-status {
    color: #e02424;
}

/*------skladova dostupnost - header + info popup-----*/
.skladova-dostupnost-info-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #7a7d8a;
    display: flex;
    align-items: center;
}
.skladova-dostupnost-info-btn:hover {
    color: #424654;
}

.skladova-dostupnost-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.skladova-dostupnost-info-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.skladova-dostupnost-info-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.skladova-dostupnost-info-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.skladova-dostupnost-info-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-sizing: border-box;
    transform: scale(.9) translateY(12px);
    transition: transform 0.25s ease;
}
.skladova-dostupnost-info-panel.is-open .skladova-dostupnost-info-card {
    transform: scale(1) translateY(0);
}

.skladova-dostupnost-info-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #424654;
}

/*------size guide popup-----*/
.size-guide-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.size-guide-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.size-guide-panel {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.size-guide-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.size-guide-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 32px;
    box-sizing: border-box;
    transform: scale(.9) translateY(12px);
    transition: transform 0.25s ease;
}
.size-guide-panel.is-open .size-guide-card {
    transform: scale(1) translateY(0);
}
.size-guide-card p + p {
    margin-top: 10px;
}

.size-guide-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #424654;
}

/*------história značky (Značky plugin) - sekcia na spodku produktovej stránky-----*/
.gc-brand-story-title {
    margin-bottom: 24px;
}
.gc-brand-story-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.gc-brand-story-grid.gc-brand-story-grid-single {
    grid-template-columns: 1fr;
}
@media (max-width: 767px) {
    .gc-brand-story-grid {
        grid-template-columns: 1fr;
    }
}

.gc-brand-story-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 357px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #F5F5F7;
    display: flex;
    align-items: flex-end;
}
.gc-brand-story-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 75%),
        rgba(0, 0, 0, .25);
}
.gc-brand-story-image-content {
    position: relative;
    z-index: 1;
    padding: 28px;
    align-self: center;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
    padding-top: 30px;
    padding-bottom: 30px;
}
.gc-brand-story-image-text {
    max-width: 460px;
    line-height: 1.5;
}

.gc-brand-story-side {
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #e8e8e8;
}
.gc-brand-story-side-text {
    line-height: 1.6;
}



/*
---------------
--------------------PRODUCT PAGE----------------------
---------------
*/

/* Hlavný obrázok */
.product-gallery-swiper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: auto;
    text-align: center;
}
.product-gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
    background-color: white;
}

/* Miniatúry */
.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;
    width: 100%;
    max-width: 110px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: white;
    border-radius: 20px;
}
.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}
.product-thumb:hover {
    opacity: 0.7;
}
.product-thumb.active-thumb {
    opacity: 1;
}
.ciara {
    border: 1px solid #e5e5e5;
}
.ciara-bottom {
    border-bottom: 1px solid #e5e5e5;
}

/*-----------PRODUKT: VÝBER VARIÁCIE + PRIDAŤ DO KOŠÍKA----------------*/

.size-options {
    flex-wrap: wrap;
}

.size-option {
    flex: 1 1 calc((100% - 40px) / 5);
    max-width: calc((100% - 40px) / 5);
    min-width: 64px;
    padding: 12px 14px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    background: #fff;
    color: #222;
    cursor: pointer;
    text-align: center;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.size-option:hover:not(.is-disabled) {
    border-color: #2F5FE0;
}
.size-option.is-selected {
    background: #2F5FE0;
    border-color: #2F5FE0;
    color: #fff;
}
.size-option.is-disabled {
    position: relative;
    color: #bbb;
    background: #f5f5f7;
    border-color: #eee;
    cursor: not-allowed;
}
.size-option.is-disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top right, transparent calc(50% - 1px), #ddd calc(50% - 1px), #ddd calc(50% + 1px), transparent calc(50% + 1px));
}

.size-guide-link {
    color: #2F5FE0;
}

.add-to-cart-btn {
    border: none;
    background: #2F5FE0;
    color: #fff;
    padding: 16px;
    cursor: pointer;
}
.add-to-cart-btn:hover:not(:disabled) {
    background: #2450c2;
}
.add-to-cart-btn:disabled {
    background: #a9bbee;
    cursor: not-allowed;
}
.add-to-cart-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}
.add-to-cart-icon {
    flex-shrink: 0;
}

.buy-now-btn {
    border: none;
    background: #22e35a;
    color: #111;
    padding: 16px;
    cursor: pointer;
}




