.cake-detail {
    background: #000;
    /* (max-width:768px) and (max-width:990px) → điều kiện này thực ra trùng với max-width:768px, nên mình giữ nội dung nhưng gộp logic cho bạn */
}

.cake-detail .cake-detail__main-row {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .cake-detail .cake-detail__main-row {
        grid-template-columns: 1fr 1fr;
    }
}

.cake-detail .cake-detail__info-card,
.cake-detail .cake-detail__media-card,
.cake-detail .cake-detail__quantity-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 6px 24px #0000;
    padding: 16px;
}

.cake-detail .card--flat {
    box-shadow: 0 2px 12px #0000;
}

.cake-detail .card--sm {
    padding: 12px;
}

.cake-detail .gallery__row {
    gap: 16px;
}

@media (min-width: 992px) {
    .cake-detail .gallery__row {
        grid-template-columns: 160px 1fr;
    }
}

.cake-detail .gallery__figure {
    border-radius: 5px;
    overflow: hidden;
}

.cake-detail .gallery__image {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.cake-detail .cake-detail__name {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.cake-detail .cake-detail__pricing {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.cake-detail .price-stack {
    align-items: baseline;
    display: flex;
    gap: 10px;
}

.cake-detail .price.price--current {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.cake-detail .qty-row {
    display: FLEX;
    gap: 16px;
}

@media (min-width: 720px) {
    .cake-detail .qty-row {
        align-items: center;
    }
}

.cake-detail .qty-control {
    align-items: center;
    display: flex;
    gap: 12px;
}

.cake-detail .qty-label {
    color: #fff;
    font-size: 20px;
}

.cake-detail .number-input {
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    display: inline-flex;
    overflow: hidden;
    padding: 10px;
}

.cake-detail .number-input .btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    min-width: 40px;
    transition: 0.15s ease;
    width: 40px;
    padding: unset;
}

.cake-detail .number-input .btn-icon:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.cake-detail .number-input .btn-icon:not(:disabled):hover {
    background: #f3f4f6;
}

.cake-detail .number-input__field {
    border: none;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    text-align: center;
    width: 39px;
}

.cake-detail .btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 10px;
    height: var(--h);
    justify-content: left;
    padding: 0 30px;
    transition: 0.2s ease;
}

.cake-detail .btn.btn--xl {
    --h: 43px;
}

.cake-detail .btn.btn--primary {
    background: #fff;
    color: #161616;
    font-size: 18px;
}

.cake-detail .btn.btn--primary:hover {
    filter: brightness(1.05);
}

.cake-detail .btn.btn--primary:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cake-detail .btn .btn__icon {
    font-size: 18px;
}

.cake-detail .content-details-products {
    color: #fff;
    line-height: 1.6;
    margin: 12px 0 16px;
    margin-bottom: 20px;
}

.cake-detail .content-details-products p {
    margin: 0 0 10px;
    FONT-SIZE: 22PX;
}

.cake-detail .cake-detail__container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 30px 20px 0;
}

.cake-detail .cake-detail__main-row {
    margin-bottom: 10px;
}

.cake-detail .cake-detail__info-card,
.cake-detail .cake-detail__media-card {
    background: unset;
    border-radius: 5px;
    box-shadow: 0 20px 40px #000 14;
    overflow: hidden;
}

.cake-detail .cake-detail__name {
    color: #fff;
    margin-bottom: 10px !important;
}

.cake-detail .cake-detail__pricing {
    margin-bottom: 10px;
}

.cake-detail .cake-detail__quantity-card {
    background: unset;
    border: none;
    border-radius: 15px;
    margin-bottom: 15px;
}

.cake-detail .content-details-products ul li {
    font-size: 21px;
    margin-bottom: 5px;
    list-style: disc;
    margin-left: 20px;
}

.cake-detail .cake-detail__quantity-card {
    padding-left: 0px;
}
.cake-detail .btn.btn--primary:hover {
    background: rgb(252, 198, 80);
    color: #000;
}
@media (max-width: 768px) {
    .cake-detail .cake-detail__container {
        padding: 30px 0px;
    }
}


section.cake-detail .cta-primary {
    display: flex;
    align-items: center;
    gap: 0px 20px;
}

@media(max-width:550px) {
    .cake-detail .qty-row {
        align-items: end;
    }

    .cake-detail .qty-control {
        flex-direction: column;
        align-items: start;
    }
    .card.card--flat.cake-detail__info-card {
    padding: 17px 0px;
}
}

.price.price--old {
    color: #cdcdcd;
    font-size: 30px;
    font-weight: 400;
}
