/**
 * Combo Detail Page Styles (BEM)
 * Theme color: #d86580
 */

:root {
    --combo-primary: #d86580;
    --combo-primary-hover: #c7546f;
    --combo-primary-light: rgba(216, 101, 128, 0.08);
    --combo-primary-border: rgba(216, 101, 128, 0.25);
    --combo-primary-shadow: rgba(216, 101, 128, 0.3);
}

.combo-detail {
    padding: 24px 0;
}

/* Main Card */
.combo-detail__card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
    margin-top: 12px;
}

.combo-detail__card>.row {
    row-gap: 24px;
}

.combo-detail__image-wrap {
    width: 100%;
    max-height: 440px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-detail__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.combo-detail__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* height: 100%; */
}

.combo-detail__title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    word-break: break-word;
}

.combo-detail__prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.combo-detail__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--combo-primary);
    line-height: 1.2;
}

.combo-detail__compare-price {
    font-size: 16px;
    color: #94a3b8;
    text-decoration: line-through;
    line-height: 1.2;
}

.combo-detail__description {
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
    word-break: break-word;
}

/* Actions: Quantity & Buttons */
.combo-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}

.combo-detail__qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: fit-content;
    background: #ffffff;
    overflow: hidden;
}

.combo-detail__qty-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}

.combo-detail__qty-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.combo-detail__qty-input {
    width: 52px;
    height: 38px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    background: transparent;
    outline: none;
    box-sizing: border-box;
}

.combo-detail__qty-input::-webkit-outer-spin-button,
.combo-detail__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.combo-detail__buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.combo-detail__btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: none;
    box-sizing: border-box;
}

.combo-detail__btn:active {
    transform: translateY(1px);
}

.combo-detail__btn--cart {
    background-color: var(--combo-primary-light);
    color: var(--combo-primary);
    border: 1.5px solid var(--combo-primary);
}

.combo-detail__btn--cart:hover {
    background-color: var(--combo-primary);
    color: #ffffff;
}

.combo-detail__btn--cart svg {
    stroke: currentColor;
    flex-shrink: 0;
}

.combo-detail__btn--buy {
    background-color: var(--combo-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--combo-primary-shadow);
}

.combo-detail__btn--buy:hover {
    background-color: var(--combo-primary-hover);
    box-shadow: 0 6px 18px rgba(216, 101, 128, 0.4);
    transform: translateY(-1px);
}

.combo-detail__btn--contact {
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 32px;
}

.combo-detail__btn--contact:hover {
    background-color: #1d4ed8;
}

/* Sections: Products & Content */
.combo-detail__products-section,
.combo-detail__content-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.combo-detail__section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.combo-detail__products-grid {
    row-gap: 20px;
}

/* Content Details Responsive Reset */
.combo-detail__content {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
}

.combo-detail__content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

.combo-detail__content table {
    width: 100% !important;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.combo-detail__content iframe {
    max-width: 100% !important;
}

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

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .combo-detail {
        padding: 20px 0;
    }

    .combo-detail__card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .combo-detail__title {
        font-size: 22px;
    }

    .combo-detail__price {
        font-size: 22px;
    }

    .combo-detail__products-section,
    .combo-detail__content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Mobile & Tablet Portrait (max-width: 767px) */
@media (max-width: 767px) {
    .combo-detail {
        padding: 14px 0;
    }

    .combo-detail__card {
        padding: 16px;
        border-radius: 10px;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .combo-detail__card>.row {
        row-gap: 18px;
    }

    .combo-detail__image-wrap {
        max-height: 380px;
        border-radius: 8px;
    }

    .combo-detail__info {
        gap: 14px;
    }

    .combo-detail__title {
        font-size: 19px;
        line-height: 1.35;
    }

    .combo-detail__prices {
        gap: 10px;
    }

    .combo-detail__price {
        font-size: 20px;
    }

    .combo-detail__compare-price {
        font-size: 14px;
    }

    .combo-detail__description {
        font-size: 14px;
        line-height: 1.6;
    }

    .combo-detail__actions {
        margin-top: 4px;
        padding-top: 14px;
        gap: 14px;
    }

    .combo-detail__products-section,
    .combo-detail__content-section {
        padding: 16px 14px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .combo-detail__section-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .combo-detail__products-grid {
        row-gap: 14px;
    }
}

/* Mobile Phone (max-width: 576px) */
@media (max-width: 576px) {
    .combo-detail__buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .combo-detail__btn {
        width: 100%;
        min-height: 44px;
        padding: 11px 16px;
        font-size: 14.5px;
    }

    .combo-detail__image-wrap {
        max-height: 340px;
    }

    .combo-detail__products-grid {
        row-gap: 12px;
    }
}

/* Small Mobile Phone (max-width: 480px) */
@media (max-width: 480px) {
    .combo-detail__card {
        padding: 14px 12px;
    }

    .combo-detail__image-wrap {
        max-height: 300px;
    }

    .combo-detail__title {
        font-size: 17.5px;
        line-height: 1.35;
    }

    .combo-detail__prices {
        gap: 8px;
    }

    .combo-detail__price {
        font-size: 18.5px;
    }

    .combo-detail__compare-price {
        font-size: 13.5px;
    }

    .combo-detail__qty-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .combo-detail__qty-input {
        width: 44px;
        height: 35px;
        font-size: 14px;
    }

    .combo-detail__btn {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .combo-detail__products-section,
    .combo-detail__content-section {
        padding: 14px 10px;
    }

    .combo-detail__section-title {
        font-size: 15.5px;
    }

    .combo-detail__content {
        font-size: 14px;
        line-height: 1.6;
    }
}


/* Content Details Responsive Reset */
.combo-detail__content {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    word-break: break-word;
    overflow-wrap: break-word;
}

.combo-detail__content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
}

.combo-detail__content table {
    width: 100% !important;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.combo-detail__content iframe {
    max-width: 100% !important;
}

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

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .combo-detail {
        padding: 20px 0;
    }

    .combo-detail__card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .combo-detail__title {
        font-size: 22px;
    }

    .combo-detail__price {
        font-size: 22px;
    }

    .combo-detail__products-section,
    .combo-detail__content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
}

/* Mobile & Tablet Portrait (max-width: 767px) */
@media (max-width: 767px) {
    .combo-detail {
        padding: 14px 0;
    }

    .combo-detail__card {
        padding: 16px;
        border-radius: 10px;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .combo-detail__card>.row {
        row-gap: 18px;
    }

    .combo-detail__image-wrap {
        max-height: 380px;
        border-radius: 8px;
    }

    .combo-detail__info {
        gap: 14px;
    }

    .combo-detail__title {
        font-size: 19px;
        line-height: 1.35;
    }

    .combo-detail__prices {
        gap: 10px;
    }

    .combo-detail__price {
        font-size: 20px;
    }

    .combo-detail__compare-price {
        font-size: 14px;
    }

    .combo-detail__description {
        font-size: 14px;
        line-height: 1.6;
    }

    .combo-detail__actions {
        margin-top: 4px;
        padding-top: 14px;
        gap: 14px;
    }

    .combo-detail__products-section,
    .combo-detail__content-section {
        padding: 16px 14px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .combo-detail__section-title {
        font-size: 16px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .combo-detail__products-grid {
        row-gap: 14px;
    }
}

/* Mobile Phone (max-width: 576px) */
@media (max-width: 576px) {
    .combo-detail__buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .combo-detail__btn {
        width: 100%;
        min-height: 44px;
        padding: 11px 16px;
        font-size: 14.5px;
    }

    .combo-detail__image-wrap {
        max-height: 340px;
    }

    .combo-detail__products-grid {
        row-gap: 12px;
    }
}

/* Small Mobile Phone (max-width: 480px) */
@media (max-width: 480px) {
    .combo-detail__card {
        padding: 14px 12px;
    }

    .combo-detail__image-wrap {
        max-height: 300px;
    }

    .combo-detail__title {
        font-size: 17.5px;
        line-height: 1.35;
    }

    .combo-detail__prices {
        gap: 8px;
    }

    .combo-detail__price {
        font-size: 18.5px;
    }

    .combo-detail__compare-price {
        font-size: 13.5px;
    }

    .combo-detail__qty-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .combo-detail__qty-input {
        width: 44px;
        height: 35px;
        font-size: 14px;
    }

    .combo-detail__btn {
        min-height: 42px;
        padding: 10px 14px;
        font-size: 14px;
    }

    .combo-detail__products-section,
    .combo-detail__content-section {
        padding: 14px 10px;
    }

    .combo-detail__section-title {
        font-size: 20px;
    }

    .combo-detail__content {
        font-size: 14px;
        line-height: 1.6;
    }
}