.ck-public .ck-product-list h1 {
    font-size: clamp(2rem,4vw,3rem)
}

.ck-public .ck-product-heading h1 {
    font-size: clamp(2.5rem,5vw,3.5rem)
}

.ck-public .ck-product-list {
    padding-top: 36px
}

.ck-public .ck-product-card {
    display: flex;
    flex-direction: column
}

    .ck-public .ck-product-card .ck-card-image {
        display: block;
        position: relative
    }

    .ck-public .ck-product-card .ck-card-body {
        display: flex;
        flex-direction: column;
        flex: 1
    }

    .ck-public .ck-product-card .ck-card-bottom {
        margin-top: auto
    }

.ck-public .ck-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 12px;
    background: var(--ck-explore-bg);
    color: var(--ck-primary);
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.ck-public .ck-product-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,2fr);
    gap: 16px;
    margin: 0 auto 32px;
    max-width: 760px
}

    .ck-public .ck-product-search-field {
        min-width: 0
    }

    .ck-public .ck-product-search label {
        display: block;
        color: var(--ck-primary-dark);
        font-weight: 700;
        margin-bottom: 8px
    }

    .ck-public .ck-product-search-actions {
        display: grid;
        grid-template-columns: minmax(0,1fr) auto;
        gap: 12px
    }

    .ck-public .ck-product-search input,
    .ck-public .ck-product-search select {
        width: 100%;
        min-width: 0;
        height: 56px;
        padding: 12px 16px;
        border: 1px solid var(--ck-border);
        border-radius: 8px;
        font: inherit;
        background-color: var(--ck-card);
        color: var(--ck-primary-dark)
    }

    .ck-public .ck-product-search select {
        appearance: none;
        padding-right: 44px;
        text-overflow: ellipsis;
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23072A5C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center
    }

    .ck-public .ck-product-search .ck-button {
        min-height: 56px;
        padding: 12px 20px;
        border-radius: 8px;
        white-space: nowrap;
        cursor: pointer
    }

    .ck-public .ck-product-search :is(input, select):focus {
        border-color: var(--ck-explore-bg);
        outline: 2px solid var(--ck-explore-bg);
        outline-offset: 2px
    }

    .ck-public .ck-product-search .ck-text-link {
        grid-column: 1 / -1;
        justify-self: start;
        display: inline-flex;
        align-items: center;
        min-height: 44px
    }

.ck-public .ck-result-count {
    font-size: .9rem
}

.ck-public .ck-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px
}

    .ck-public .ck-pagination > a {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        border-radius: 6px
    }

    .ck-public .ck-pagination [aria-current=page] {
        background: var(--ck-primary-dark);
        color: white
    }

.ck-public .ck-product-detail {
    padding-top: 36px
}

.ck-public .ck-breadcrumb {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    margin-bottom: 36px
}

    .ck-public .ck-breadcrumb a {
        text-decoration: underline;
        text-underline-offset: 4px
    }

.ck-public .ck-product-heading {
    margin-bottom: 32px
}

    .ck-public .ck-product-heading > p:last-child {
        font-size: 1.1rem
    }

.ck-public .ck-product-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 320px;
    gap: 38px;
    align-items: start
}

.ck-public .ck-product-content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0
}

.ck-public .ck-product-contact {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 112px;
    border: 1px solid var(--ck-border);
    border-radius: 12px;
    background: var(--ck-card);
    padding: 28px;
    box-shadow: 0 8px 30px #123c4a0a
}

    .ck-public .ck-product-contact .ck-price {
        margin-bottom: 20px
    }

        .ck-public .ck-product-contact .ck-price strong {
            font-size: 2.1rem
        }

    .ck-public .ck-product-contact .ck-actions {
        flex-direction: column;
        gap: 10px
    }

    .ck-public .ck-product-contact .ck-button {
        min-height: 44px;
        padding: 10px 16px;
        gap: 8px;
        font-size: .875rem;
        background: #fff;
        color: var(--ck-primary);
        border: 1px solid var(--ck-primary);
        box-shadow: none
    }

    .ck-public .ck-product-contact .ck-button:hover {
        background: var(--ck-bg);
        color: var(--ck-primary);
        text-decoration: none
    }

    .ck-public .ck-product-contact .ck-button:focus-visible {
        outline: 2px solid var(--ck-primary);
        outline-offset: 3px
    }

    .ck-public .ck-product-contact p {
        font-size: .9rem;
        text-align:center;
    }

.ck-public .ck-gallery {
    min-width: 0;
    max-width: 100%
}

.ck-public .ck-gallery-large {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ck-bg);
    aspect-ratio: 3/2;
    cursor: zoom-in
}

    .ck-public .ck-gallery-large img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.ck-public .ck-gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 8px 6px;
    margin-top: 8px
}

    .ck-public .ck-gallery-thumbs button {
        display: block;
        flex: 0 0 clamp(80px,18vw,120px);
        padding: 0;
        border: 3px solid transparent;
        border-radius: 8px;
        overflow: hidden;
        background: var(--ck-bg);
        aspect-ratio: 3/2;
        cursor: pointer
    }

        .ck-public .ck-gallery-thumbs button[aria-current=true] {
            border-color: var(--ck-accent)
        }

    .ck-public .ck-gallery-thumbs img {
        width: 100%;
        height: 100%;
        object-fit: cover
    }

.ck-public .ck-gallery-hint {
    font-size: .8rem;
    margin-top: 14px
}

.ck-public .ck-product-about {
    margin-top: 42px
}

.ck-public .ck-related {
    margin-top: 72px
}

.ck-public .ck-editor {
    overflow-wrap: anywhere;
    min-width: 0;
    max-width: 100%;
    line-height: 1.85
}

    .ck-public .ck-editor h2, .ck-public .ck-editor h3, .ck-public .ck-editor h4 {
        margin-top: 30px
    }

    .ck-public .ck-editor h2 {
        font-size: 2rem
    }

    .ck-public .ck-editor p, .ck-public .ck-editor ul, .ck-public .ck-editor ol {
        margin-bottom: 22px
    }

    .ck-public .ck-editor ul, .ck-public .ck-editor ol {
        padding-left: 26px
    }

    .ck-public .ck-editor a {
        color: var(--ck-primary-dark);
        text-decoration: underline;
        text-underline-offset: 3px
    }

    .ck-public .ck-editor img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 24px auto
    }

    .ck-public .ck-editor figure {
        margin: 24px 0
    }

    .ck-public .ck-editor figcaption {
        font-size: .85rem;
        color: var(--ck-secondary-text)
    }

    .ck-public .ck-editor blockquote {
        margin: 24px 0;
        padding: 10px 24px;
        border-left: 4px solid var(--ck-accent);
        background: var(--ck-card)
    }

    .ck-public .ck-editor pre {
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        max-width: 100%;
        padding: 18px;
        background: var(--ck-card)
    }

    .ck-public .ck-editor table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        border-collapse: collapse
    }

    .ck-public .ck-editor td, .ck-public .ck-editor th {
        border: 1px solid var(--ck-border);
        padding: 10px
    }

@media(max-width:900px) {
    .ck-public .ck-product-layout {
        grid-template-columns: minmax(0,1fr)
    }

    .ck-public .ck-product-contact {
        grid-column: 1;
        grid-row: 1;
        position: static
    }

    .ck-public .ck-product-content {
        grid-row: 2
    }

    .ck-public .ck-product-contact .ck-actions {
        flex-direction: row
    }

    .ck-public .ck-product-contact .ck-button {
        flex: 1
    }
}

@media(max-width:600px) {
    .ck-public .ck-product-search,
    .ck-public .ck-product-search-actions {
        grid-template-columns: minmax(0,1fr)
    }

    .ck-public .ck-product-contact {
        padding: 22px
    }

    .ck-public .ck-product-contact .ck-button {
        flex: 1 1 auto;
        width: auto;
        padding: 8px 10px;
        gap: 6px;
        font-size: .8rem
    }

    .ck-public .ck-product-heading h1 {
        font-size: 2.6rem
    }

    .ck-public .ck-related {
        margin-top: 48px
    }
}

.ck-public:has([data-product-gallery]) .ck-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .8rem 4rem;
    color: white;
    background: #0009;
    text-align: center;
    max-height: 25vh;
    overflow: auto;
}

    .ck-public:has([data-product-gallery]) .ck-photo-caption strong, .ck-public:has([data-product-gallery]) .ck-photo-caption span {
        display: block;
        white-space: pre-wrap;
    }
