/* --- Customization Modal --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-card {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.custom-modal-header {
    padding: 16px 24px;
    position: relative;
}

.modal-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.modal-title-row h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-black);
}

.info-icon {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.8;
}

.modal-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 12px;
}

.modal-item-description {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    opacity: 0.9;
}

.modal-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.modal-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-close-circle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.btn-close-circle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.custom-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-black);
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 20px;
    opacity: 0.7;
}

.extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-grey);
}

.extra-item:last-child {
    border-bottom: none;
}

.extra-info {
    display: flex;
    flex-direction: column;
}

.extra-name {
    font-weight: 600;
}

.extra-price {
    font-size: 14px;
    color: var(--text-dark);
}

.btn-toggle-extra {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-grey);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary-green);
    font-size: 20px;
    transition: var(--transition);
}

.btn-toggle-extra.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* --- Modal Footer --- */
.custom-modal-footer {
    padding: 24px;
    border-top: 1px solid var(--border-grey);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-qty-control {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-grey);
}

.btn-modal-qty {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
}

.modal-qty-number {
    font-weight: 800;
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.btn-confirm-add {
    flex: 1;
    padding: 16px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-confirm-add:hover {
    background: var(--primary-green-hover);
}

.btn-show-more {
    display: block;
    width: 100%;
    padding: 12px 0;
    background: none;
    border: none;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.btn-show-more:hover {
    text-decoration: underline;
}
