/* deluxe.css - Standalone styles for Deluxe Order page */

/* Back Button - Copy from order.css */
.back-button-container {
    display: block;
    margin-top: 40px;
    margin-bottom: 48px;
    margin-left: 80px;
    margin-right: 80px;
    width: fit-content;
}

.back-button {
    background: #FBFAF9;
    border: #F0EFEB solid 1px;
    border-radius: 300px;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #F5F4F2;
}

.back-button img {
    width: 20px;
    height: 20px;
}

a {
    text-decoration: none;
}

/* Page Layout */
.deluxe-page {
    margin-left: 80px;
    margin-right: 80px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.page-title h1 {
    font-family: 'Geist', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #222221;
    margin: 0;
    letter-spacing: -0.4px;
}

/* Main Layout */
.deluxe-layout {
    display: flex;
    justify-content: space-between;
    gap: 96px;
}

.deluxe-options-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.deluxe-summary-section {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    height: fit-content;
}

/* Card Styles */
.deluxe-info-card,
.deluxe-order-card {
    padding: 24px 20px;
    background: #FCFCFB;
    border-radius: 12px;
    border: #F6F6F3 solid 1px;
    transition: all 0.3s ease;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deluxe-info-card h2,
.deluxe-order-card h2 {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #222221;
    margin: 0;
    letter-spacing: -0.4px;
}

.deluxe-info-card p,
.deluxe-order-card p {
    font-family: 'Geist', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #898683;
    line-height: auto;
    letter-spacing: -0.4px;
    margin: 0;
}

.price-info {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #898683;
    margin-top: 8px;
}

.prep-time {
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    font-style: italic;
    color: #72706F;
    margin-top: 8px;
}

/* Combo Selection */
.deluxe-combos-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header h3 {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #222221;
    margin: 0;
}

.section-header p {
    font-family: 'Geist', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #898683;
    margin: 0;
}

/* Combos Grid */
.combos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Combo Card */
.combo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #F5F4F1;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.combo-card:hover {
    background: #EDECE7;
    transform: translateY(-2px);
}

.combo-card.selected {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Combo Image */
.combo-image {
    width: 100%;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    background: #EDECE7;
}

.combo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.combo-card.selected .combo-image {
    background: rgba(255, 255, 255, 0.2);
}

/* Combo Content */
.combo-content {
    flex: 1;
}

.combo-name {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #222221;
    margin: 0 0 4px 0;
    transition: color 0.3s ease;
}

.combo-description {
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    color: #898683;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.combo-price {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #222221;
    margin-top: 8px;
    transition: color 0.3s ease;
}

/* Selected state colors */
.combo-card.selected .combo-name,
.combo-card.selected .combo-description,
.combo-card.selected .combo-price {
    color: #ffffff;
}

/* Price Display */
.price-display-section {
    margin-top: 8px;
}

#comboPriceDisplay {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #898683;
    margin: 0;
    text-align: right;
}

/* Order Summary */
.order-summary {
    font-family: 'Geist', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #4b4a48;
    line-height: auto;
    letter-spacing: -0.4px;
    margin: 0;
}

/* Continue Button */
.deluxe-continue-btn {
    background: #222221;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Geist', sans-serif;
    letter-spacing: -0.2px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 280px;
}

.deluxe-continue-btn:hover {
    background: #000;
    transform: translateY(-1px);
}

.deluxe-continue-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.deluxe-continue-btn:disabled:hover {
    background: #222221;
    transform: none !important;
}

/* Shake animation for validation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #898683;
    text-align: center;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #222221;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (min-width: 744px) and (max-width: 1279px) {
    .back-button-container {
        margin-left: 64px;
        margin-right: 64px;
    }
    
    .deluxe-page {
        margin-left: 64px;
        margin-right: 64px;
        margin-bottom: 64px;
        gap: 64px;
    }
    
    .page-title h1 {
        font-size: 40px;
    }
    
    .deluxe-layout {
        flex-direction: column;
        gap: 64px;
    }
    
    .deluxe-options-section,
    .deluxe-summary-section {
        width: 100%;
    }
    
    .combos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deluxe-continue-btn {
        width: 100%;
    }
}

@media (min-width: 320px) and (max-width: 743px) {
    .back-button-container {
        margin-top: 24px;
        margin-bottom: 32px;
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .deluxe-page {
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 32px;
        gap: 40px;
    }
    
    .page-title h1 {
        font-size: 24px;
    }
    
    .deluxe-layout {
        flex-direction: column;
        gap: 48px;
    }
    
    .deluxe-options-section,
    .deluxe-summary-section {
        width: 100%;
    }
    
    .combos-grid {
        grid-template-columns: 1fr;
    }
    
    .combo-card {
        padding: 14px;
    }
    
    .combo-image {
        height: 120px;
    }
    
    .deluxe-info-card h2,
    .deluxe-order-card h2,
    .section-header h3 {
        font-size: 18px;
    }
    
    .deluxe-info-card p,
    .deluxe-order-card p,
    .section-header p {
        font-size: 16px;
    }
    
    .deluxe-continue-btn {
        width: 100%;
        padding: 14px 20px;
    }
}