/* =========================================================
   GLAD ALICE - MINI CHEESECAKES
   ========================================================= */

.cheesecake-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;

    max-width: 900px;
    margin: 8px auto 0;
}

.cheesecake-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #ffffff;

    border: 4px solid #765044;
    border-radius: 14px;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}


/* ---------- Image ---------- */

.cheesecake-card img {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
}


/* ---------- Copy ---------- */

.cheesecake-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 13px 14px 15px;

    text-align: center;
}

.cheesecake-card h3 {
    margin: 0 0 7px;

    font-family: "Oswald", Arial, sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.1;

    color: #765044;
    text-transform: uppercase;
}

.cheesecake-description {
    margin: 0 0 10px;

    font-size: 13px;
    line-height: 1.4;

    color: var(--text-dark);
}

.cheesecake-allergen {
    margin: -2px 0 9px;

    font-size: 12px;
    font-weight: 800;

    color: #765044;
}


/* =========================================================
   SIZE / PRICE BUTTONS
   ========================================================= */

.cheesecake-size-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;

    margin-top: auto;
    padding-top: 10px;

    border-top: 1px solid #dccdc7;
}

.cheesecake-size-button {
    display: block;

    padding: 7px 5px;

    border: 1px solid #b86b5d;
    border-radius: 6px;

    background: #fff8f5;

    color: #713d33;
    text-decoration: none;
    text-align: center;

    transition: 0.15s ease;
}

.cheesecake-size-button:hover {
    background: #f7e4df;
    transform: translateY(-1px);
}

.cheesecake-size,
.cheesecake-size-button .cheesecake-price {
    display: block;
}

.cheesecake-size {
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cheesecake-size-button .cheesecake-price {
    margin-top: 2px;
    padding-top: 0;

    border-top: 0;

    font-size: 0.84rem;
    font-weight: 700;

    color: #e94f64;
}


/* ---------- Standalone card price ---------- */

.cheesecake-card-copy > .cheesecake-price {
    margin-top: auto;
    padding-top: 9px;

    border-top: 2px solid rgba(118, 80, 68, 0.18);

    font-size: 17px;
    font-weight: 800;

    color: #d94463;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .cheesecake-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .cheesecake-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
}
