/* Webflow Data Display Styles */
* {
    box-sizing: border-box;
}

/* Data Container */
.data-container {
    min-height: 400px;
    position: relative;
}

/* Hidden state for slider buttons */
.slider-btn.hidden {
    display: none;
}







/* No data message */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
}









.no-variants {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}



/* Clean Product Configurator */
.product-configurator {
}

.product-header-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 5rem;
    align-items: start;
}

.product-header-left {
    display: flex;
    flex-direction: column;
}

.product-header-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 6rem;
    align-self: start;
}

.header-picto-container {
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.header-picto-container svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-picto-container-mobile {
    width: 100%;
    max-width: 500px;
    height: 300px;
    display: none;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.header-picto-container-mobile svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    margin-top: 20px;
}

.product-variants-section {
    margin-bottom: 20px;
}

.product-specifications-section {
    margin-bottom: 20px;
}

.product-dimensions-info-header {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

/* Construction, Electrical Specs and Specifications */
.specs-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 20px;
}

.spec-box {

}

.spec-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spec-item {
    display: flex;
    gap: 1rem;
}

.spec-label {
    font-weight: 500;
    color: #333;
    min-width: 150px;
}

.spec-value {
    color: #666;
}

/* Shape Selector */
.shape-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    position: relative;
    width: 100%;
}

.shape-options-container {
    overflow: hidden;
    width: 100%;
    margin-bottom: 15px;
}

.shape-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shape-options::-webkit-scrollbar {
    display: none;
}

.slider-controls {
    display: flex;
    gap: 10px;
    align-self: flex-start;
}

.slider-btn {
    background: #fff;
    border: 2px solid #ddd;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    border-color: #999;
    color: #333;
}

.shape-option {
    width: 5rem;
    height: 5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f0f0f0;
}

.shape-option.active {
    border: none;
    background-color: #000;
}

.shape-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shape-option .picto-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-option .picto-container svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Jednotná tloušťka tahu pro všechny SVG prvky */
.shape-option .picto-container svg * {
    stroke-width: 2px !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

/* Vybraný produkt - černé pozadí a bílé tahy */
.shape-option.active .picto-container {
    background-color: #000;
}

.shape-option.active .picto-container svg {
    filter: invert(1);
}

/* Product View */
.product-view {
    display: none;
    margin-top: 2rem;
}

.product-view.active {
    display: block;
}

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

/* Product Specs */
.product-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;

}

.spec-options h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.option-squares {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.option-square {
    width: 100px;
    background-color: #ddd;
    cursor: pointer;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    border: 2px solid #f5f5f5;
    overflow: visible;
    box-sizing: content-box;
}

.option-square.selected {
    border: 2px solid #333;
}

.square-image {
    width: 100px;
    height: 50px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.square-placeholder {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    background: #000;
    color: #fff;
    margin-bottom: 4px;
    display: none;
}

.square-placeholder.no-image {
    background: white;
    border: 1px solid #ddd;
}

.cross-icon {
    font-size: 12px;
    color: #999;
    font-weight: bold;
    line-height: 1;
}

.variant-label {
    width: 100%;
    font-size: 0.75rem;
    text-align: left;
    line-height: 1.2;
    word-wrap: break-word;
    padding: 0.5rem;
    background: #f5f5f5;
    color: #333;
    overflow: visible;
    display: block;
    box-sizing: border-box;
    white-space: normal;
}

.variant-label.alone {
    background: #f5f5f5;
}

/* Product Visual */
.product-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    top: 6rem;
    z-index: 10;
    align-self: start;
}

/* Zajistí, aby sticky fungoval - rodičovský element nesmí mít overflow */
.product-main {
    overflow: visible !important;
}

.product-info {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column-reverse;
}

.product-info img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    transform: scale(1.3);
}

/* Zoom efekt odstraněn */
.product-info img.preview-image {
    /* transform: scale(1.1); */
}

.main-picto-container {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    overflow: hidden;
}

.main-picto-container svg {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.default-material-container {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    overflow: hidden;
}

.default-material-container svg {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.default-material-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
}


.material-info {
 padding: 1rem;
}

.material-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.material-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.product-dimension {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    color: #666;
}

/* Variant Info Display - removed, no longer showing variant name and code */

/* Downloads */
.product-downloads {
    padding-bottom: 3rem;
}


.product-code {
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 0;
}

.product-dimensions-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.dimension-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dimension-item strong {
    color: #333;
}

.download-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Download links use Webflow button classes: button is-secondary is-small */

/* Responsive */
@media (max-width: 1024px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-header-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-header-right {
        position: static;
        top: auto;
        display: none;
    }

    .header-picto-container-mobile {
        display: flex;
    }

    .shape-option {
        width: 4rem;
        height: 4rem;
        flex-shrink: 0;
    }

    .shape-option img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    .slider-controls {
        gap: 8px;
    }
    .specs-container {
        grid-template-columns: 1fr;
    }

    /* Download buttons use Webflow classes */
}

/* Material Modal - zobrazení na breakpointu 1024px a méně */
.material-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.material-modal.active {
    display: flex;
}

.material-modal-content {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.material-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.material-modal-close:hover {
    color: #666;
}

.material-modal-container {
    width: 100%;
    max-width: 700px;
    margin-bottom: 1rem;
}

.material-modal-info {
    text-align: center;
    width: 100%;
}

.material-modal-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 0.5rem;
}

.material-modal-desc {
    color: #666;
    font-size: 14px;
}

/* Skrytí product-info na breakpointu 1024px a méně */
@media (max-width: 1024px) {
    .product-info {
        display: none;
    }
}
