h2 {
    font-weight: 200;
    font-size: medium;
}

/*
.cake-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1em;
}
*/

/*
.cake-archive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

@media (max-width: 768px) {
    .cake-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .cake-archive {
        grid-template-columns: 1fr;
    }
}
*/

.cake-archive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
}

@media (max-width: 768px) {
    .cake-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 420px) {
    .cake-archive {
        grid-template-columns: 1fr;
    }
}

.cake-card {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cake-image__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.cake-card__model {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 0.6em 0.6em;
    font-weight: bold;
    font-size: 0.9em;
    border-radius: 3px;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .cake-card__model {
        padding: 0.5em 0.5em;
        font-size: 0.8em;
    }
}





/*
.cake-card {
    position: relative;
}
.cake-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}
*/


.cake-card__model-number {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--kbps-global-color-custom-02);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

@media (min-width: 1024px) {
    .cake-card__model-number {
        width: 38px;
        height: 38px;
    }
}

.cake-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    border-radius: 5px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}
.filling-list {
    list-style: none;
    padding: 0;
}
.filling-list li {
    margin: 0.5em 0;
}
.filling-list a {
    text-decoration: none;
    color: #0073aa;
}
.filling-list a:hover {
    text-decoration: underline;
}

.main-image img {
    max-width: 100%;
    height: auto;
}
.cake-details p {
    margin: 0.5em 0;
}
.selected-filling .filling-card {
    display: flex;
    align-items: center;
    gap: 1em;
}
.filling-image img {
    max-width: 150px;
    height: auto;
}
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.gallery-image img {
    max-width: 200px;
    height: auto;
}

.scroll-to-footer {
    padding: 0.5em 1em;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}



/*SLIDER*/

.slider.cake-card {
    height: 40vh;
    width: 100%;
}

.slider.cake-card__link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.slider.cake-card__image {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.slider.cake-card__model {
    bottom: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    font-size: 10px;
    z-index: 100;
}


.wedding-block__big-photo-wrapper:hover .cake-card__model {
    background-color: var(--kbps-global-color-main);
}



/*Cake gallery*/
.cake-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 200px;
    height: auto;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.cake-card:hover {
    transform: scale(1.02);
}

.cake-card:hover .cake-card__model {
    background: var(--kbps-global-color-main);
    color: #fff;
}

.cake-card__model {
    transition: background 0.3s ease, color 0.3s ease;
}



/* Контейнер для изображения */
.cake-image-link {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 0%; /* 150% Соотношение 2:3 через padding trick */
    overflow: hidden;
    background-color: #f5f5f5;
}

.cake-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.model-number.cake-card__model {
    width: 18px;
    height: 18px;
    align-self: center;
    padding: 0.6rem 0.6rem;
    font-weight: bold;
    color: white;
    background-color: var(--kbps-global-color-custom-02);
    border: none;
    cursor: pointer;
    z-index: 1;
}


/*Cake type title text*/

.cake-type-title-text {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.cake-type-title-text .left-column,
.cake-type-title-text .right-column {
    flex: 1 1 50%;
    min-width: 50%;
}

/*Hide on mobile*/
@media (max-width: 420px) {
    .cake-type-title-text {
        display: none;
    }
}


.wp-block-spacer.spacer-color {
    background-color: var(--kbps-global-color-main);
}

div .product_meta {
    display: none;
}

.has-small-font-size {
    font-size: 10px !important;
}

.has-normal-font-size {
    font-size: 12px !important;
}

.has-large-font-size {
    font-size: 16px !important;
}

.pagination {
    display: block;
    font-size: small;
    font-weight: 200;
    margin-top: 2rem;
}