#softshell-konfigurator {
    max-width: 1050px;
    margin: 35px auto;
    padding: 28px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #fff;
    font-family: inherit;
}

.soft-konf-layout {
    display: flex;
    gap: 45px;
    align-items: flex-start;
}

.soft-konf-preview {
    width: 48%;
    position: relative;
}

.soft-konf-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.soft-konf-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

/*
 * U velikostí 80–116 schováme horní část společné vrstvy vzoru,
 * kde jsou kapsy. Proto zůstane viditelná jen oblast kolen.
 * Pokud by po testu bylo potřeba hranici o pár pixelů posunout,
 * upraví se pouze hodnota 44 %.
 */
.soft-konf-layer.bez-kapes {
    clip-path: inset(44% 0 0 0);
}

.soft-konf-options {
    width: 52%;
}

.soft-konf-title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 25px;
}

.soft-konf-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 24px 0 10px;
}

.soft-konf-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.soft-konf-button {
    appearance: none;
    border: 2px solid #ddd;
    background: #fff;
    padding: 9px 13px;
    border-radius: 7px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    transition: border-color .2s, box-shadow .2s;
}

.soft-konf-button:hover {
    border-color: #777;
}

.soft-konf-button.active {
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
    font-weight: 700;
}

.soft-color-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.soft-color-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #aaa;
    display: inline-block;
    flex: 0 0 18px;
}

.soft-color-black {
    background: #292929;
}

.soft-color-blue {
    background: #00495c;
}

.soft-color-grey {
    background: #666;
}

.soft-pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.soft-pattern-button {
    appearance: none;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    font: inherit;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.soft-pattern-button:hover {
    border-color: #777;
}

.soft-pattern-button.active {
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
    font-weight: 700;
}

.soft-pattern-thumb {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 5px;
    background: #fafafa;
    border-radius: 5px;
}

.soft-pattern-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.soft-pocket-info {
    margin-top: 13px;
    padding: 11px 13px;
    background: #f5f5f5;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.45;
}

.soft-pocket-info strong {
    font-weight: 700;
}

.soft-konf-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #e3a008;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 750px) {
    #softshell-konfigurator {
        padding: 18px;
    }

    .soft-konf-layout {
        flex-direction: column;
        gap: 24px;
    }

    .soft-konf-preview,
    .soft-konf-options {
        width: 100%;
    }

    .soft-pattern-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .soft-pattern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
