/* Unified Ordering Modal Styles for Arrocísimo */
/* Mobile-first responsive design with 44px touch targets */

/* ==================== MODAL CONTAINER ==================== */
.unified-ordering-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.unified-ordering-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.unified-ordering-modal.show .modal-content {
    transform: scale(1);
}

/* ==================== PROGRESS INDICATOR ==================== */
.modal-progress {
    display: flex;
    background: var(--crema-oscuro, #E0D8B0);
    padding: 20px;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--vino-tinto-claro, #A61E3C);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active {
    color: var(--vino-tinto-medio, #8A0028);
}

.progress-step.completed {
    color: var(--dorado, #D4AF37);
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.progress-step.active .step-circle {
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    border-color: var(--vino-tinto-medio, #8A0028);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--dorado, #D4AF37);
    color: white;
    border-color: var(--dorado, #D4AF37);
}

.step-label {
    text-align: center;
    line-height: 1.2;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--vino-tinto-medio, #8A0028);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

/* ==================== MODAL BODY ==================== */
.modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
    position: relative;
}

.step-container {
    min-height: 400px;
    position: relative;
}

/* Modal-specific step content - Don't interfere with product pages */
.modal-content .step-content,
.personalization-modal .step-content,
.unified-modal .step-content {
    padding: 30px;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

.modal-content .step-content.active,
.personalization-modal .step-content.active,
.unified-modal .step-content.active {
    opacity: 1;
    transform: translateX(0);
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--crema-oscuro, #E0D8B0);
    padding-bottom: 20px;
}

.step-header h3 {
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Lora', serif;
}

.step-header p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.step-body {
    min-height: 200px;
}

/* ==================== MODAL FOOTER ==================== */
.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: var(--crema-claro, #F5F5DC);
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
}

#prev-step-btn {
    min-width: 120px;
    min-height: 44px;
}

#next-step-btn {
    min-width: 120px;
    min-height: 44px;
}

.step-info {
    flex: 1;
    text-align: center;
    font-weight: 600;
    color: var(--vino-tinto-medio, #8A0028);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    font-size: 0.95rem;
}

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

.btn-primary {
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--vino-tinto-oscuro, #5C001F);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--crema-oscuro, #E0D8B0);
    color: var(--vino-tinto-medio, #8A0028);
}

.btn-secondary:hover:not(:disabled) {
    background: #d4c79f;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover:not(:disabled) {
    background: #1da851;
    transform: translateY(-2px);
}

/* ==================== QUANTITY CONTROLS ==================== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--vino-tinto-medio, #8A0028);
    background: white;
    color: var(--vino-tinto-medio, #8A0028);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.qty-btn:hover {
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    transform: scale(1.1);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.quantity-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    min-width: 30px;
    text-align: center;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal-progress {
        padding: 15px 10px;
    }
    
    .progress-step {
        font-size: 0.75rem;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .step-label {
        display: none; /* Hide labels on mobile to save space */
    }
    
    .modal-content .step-content,
    .personalization-modal .step-content,
    .unified-modal .step-content {
        padding: 20px 15px;
    }
    
    .step-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .step-info {
        order: -1;
    }
    
    .modal-footer .btn {
        width: 100%;
        max-width: 200px;
    }
    
    #prev-step-btn,
    #next-step-btn {
        min-width: auto;
        width: 45%;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-progress {
        padding: 10px 5px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    
    .modal-content .step-content,
    .personalization-modal .step-content,
    .unified-modal .step-content {
        padding: 15px 10px;
    }
    
    .step-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .step-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-footer {
        padding: 10px 15px;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.modal-content:focus {
    outline: 3px solid var(--dorado, #D4AF37);
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid var(--dorado, #D4AF37);
    outline-offset: 2px;
}

.qty-btn:focus {
    outline: 2px solid var(--dorado, #D4AF37);
    outline-offset: 2px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

.modal-content .step-content.entering,
.personalization-modal .step-content.entering,
.unified-modal .step-content.entering {
    animation: slideInFromRight 0.4s ease forwards;
}

.modal-content .step-content.leaving,
.personalization-modal .step-content.leaving,
.unified-modal .step-content.leaving {
    animation: slideOutToLeft 0.3s ease forwards;
}

/* ==================== LOADING STATES ==================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--vino-tinto-medio, #8A0028);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

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

/* ==================== STEP 1: PRODUCT SELECTION ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--vino-tinto-claro, #A61E3C);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 0, 40, 0.15);
}

.product-card.selected {
    border-color: var(--vino-tinto-medio, #8A0028);
    background: linear-gradient(145deg, #fff, #faf8f5);
}

.product-card.quantity-changed {
    transform: scale(1.02);
}

.product-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.premium-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dorado, #D4AF37);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.variation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 0.9rem;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    margin-bottom: 8px;
    font-family: 'Lora', serif;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    margin-bottom: 15px;
}

.price-note {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    margin-top: 4px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.selection-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--dorado, #D4AF37);
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeInScale 0.3s ease;
}

.toppings-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.85rem;
    padding: 8px 0;
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
}

.step-summary {
    background: var(--crema-claro, #F5F5DC);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
}

.next-step-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--vino-tinto-claro, #A61E3C);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid var(--vino-tinto-claro, #A61E3C);
    animation: slideInFromBottom 0.4s ease;
}

/* ==================== RESPONSIVE FOR STEP 1 ==================== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image-container {
        height: 150px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-name {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-summary {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 12px;
    }
    
    .product-image-container {
        height: 130px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .quantity-controls {
        gap: 10px;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ==================== STEP 2: VARIATIONS ==================== */
.variations-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.product-variations {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.variations-header {
    background: var(--crema-claro, #F5F5DC);
    padding: 20px;
    border-bottom: 1px solid var(--crema-oscuro, #E0D8B0);
}

.product-summary {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--vino-tinto-claro, #A61E3C);
}

.product-details h4 {
    margin: 0 0 5px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}

.quantity-badge {
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.variations-body {
    padding: 25px;
}

.variation-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 1rem;
    font-weight: 600;
}

/* Size Variations */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.size-option {
    cursor: pointer;
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.size-card {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.size-option:hover .size-card {
    border-color: var(--vino-tinto-claro, #A61E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 0, 40, 0.1);
}

.size-option.selected .size-card {
    border-color: var(--vino-tinto-medio, #8A0028);
    background: linear-gradient(145deg, #fff, #faf8f5);
}

.size-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.size-info h6 {
    margin: 0 0 5px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 700;
}

.size-description {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0;
}

.size-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    margin: 8px 0 0 0;
}

.size-selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--dorado, #D4AF37);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.size-option.selected .size-selection-indicator {
    opacity: 1;
}

/* Layer Variations */
.base-layer-info {
    margin-bottom: 25px;
}

.layer-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 10px;
    margin-top: 15px;
}

.layer-visual {
    font-size: 2.5rem;
    width: 60px;
    text-align: center;
}

.layer-info h6 {
    margin: 0 0 5px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 700;
}

.layer-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.layer-status {
    background: var(--dorado, #D4AF37);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.top-layer-selection {
    margin-top: 25px;
}

.selection-label {
    margin-bottom: 15px;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 600;
}

.layer-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.layer-option {
    cursor: pointer;
    position: relative;
}

.layer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.layer-card {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.layer-option:hover .layer-card {
    border-color: var(--vino-tinto-claro, #A61E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 0, 40, 0.1);
}

.layer-option.selected .layer-card {
    border-color: var(--vino-tinto-medio, #8A0028);
    background: linear-gradient(145deg, #fff, #faf8f5);
}

.layer-card .layer-visual {
    font-size: 2rem;
    margin-bottom: 10px;
}

.layer-card .layer-info h6 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.layer-card .layer-info p {
    font-size: 0.8rem;
    margin: 0;
}

.layer-selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--dorado, #D4AF37);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.layer-option.selected .layer-selection-indicator {
    opacity: 1;
}

/* Product Subtotals */
.product-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--crema-claro, #F5F5DC);
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
    font-weight: 600;
}

.subtotal-label {
    color: #666;
}

.subtotal-amount {
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.subtotal-amount.price-updated {
    transform: scale(1.1);
    color: var(--dorado, #D4AF37);
}

/* Variations Summary */
.variations-summary {
    background: var(--crema-claro, #F5F5DC);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

.summary-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    justify-content: center;
}

.total-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.total-label {
    color: var(--vino-tinto-medio, #8A0028);
}

.total-amount {
    color: var(--vino-tinto-medio, #8A0028);
    transition: all 0.3s ease;
}

.total-amount.total-updated {
    transform: scale(1.05);
    color: var(--dorado, #D4AF37);
}

/* Loading Step */
.loading-step {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loading-container {
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--crema-oscuro, #E0D8B0);
    border-top: 4px solid var(--vino-tinto-medio, #8A0028);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-message {
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Animations for Step 2 */
.selection-animation {
    animation: selectionPulse 0.4s ease;
}

@keyframes selectionPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive for Step 2 */
@media (max-width: 768px) {
    .variations-container {
        gap: 20px;
    }
    
    .variations-header {
        padding: 15px;
    }
    
    .variations-body {
        padding: 20px 15px;
    }
    
    .size-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .layer-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-summary {
        gap: 12px;
    }
    
    .product-thumb {
        width: 50px;
        height: 50px;
    }
    
    .product-details h4 {
        font-size: 1rem;
    }
    
    .size-card,
    .layer-card {
        padding: 15px;
        min-height: 100px;
    }
    
    .layer-visual,
    .size-icon {
        font-size: 1.8rem;
    }
    
    .variations-summary {
        padding: 20px 15px;
    }
    
    .total-preview {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ==================== STEP 3: TOPPINGS ==================== */
.toppings-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.control-options {
    display: flex;
    gap: 15px;
}

.apply-all-btn,
.clear-all-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9rem;
}

.quick-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 600;
    font-size: 0.9rem;
}

.toppings-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.product-toppings-section {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 15px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.product-toppings-section.expanded {
    border-color: var(--vino-tinto-claro, #A61E3C);
}

.product-toppings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--crema-claro, #F5F5DC);
    border-bottom: 1px solid var(--crema-oscuro, #E0D8B0);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-toppings-header:hover {
    background: var(--crema-oscuro, #E0D8B0);
}

.product-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.variation-badge {
    background: var(--vino-tinto-claro, #A61E3C);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.expand-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--vino-tinto-medio, #8A0028);
    transition: all 0.3s ease;
    cursor: pointer;
}

.expand-toggle:hover {
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    transform: scale(1.1);
}

.product-toppings-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 25px;
}

.product-toppings-section.expanded .product-toppings-body {
    padding: 25px;
}

.toppings-category {
    margin-bottom: 30px;
}

.toppings-category:last-of-type {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 1.1rem;
    font-weight: 700;
}

.category-count {
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

.toppings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.topping-option {
    cursor: pointer;
    position: relative;
    display: block;
}

.topping-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    /* pointer-events: none; - Removed to allow interaction in enhanced-customization.js */
}

.topping-card {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.topping-option:hover .topping-card {
    border-color: var(--vino-tinto-claro, #A61E3C);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 0, 40, 0.1);
}

.topping-option.selected .topping-card {
    border-color: var(--vino-tinto-medio, #8A0028);
    background: linear-gradient(145deg, #fff, #faf8f5);
}

.topping-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.topping-info {
    flex: 1;
}

.topping-name {
    margin: 0 0 5px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 700;
    font-size: 0.95rem;
}

.topping-description {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.topping-price {
    min-width: 80px;
    text-align: right;
}

.free-badge {
    background: var(--dorado, #D4AF37);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.price-badge {
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 700;
    font-size: 0.9rem;
}

.topping-selection-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--dorado, #D4AF37);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.topping-option.selected .topping-selection-indicator {
    opacity: 1;
}

.product-toppings-subtotal {
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
    margin-top: 20px;
    padding-top: 20px;
}

.subtotal-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--vino-tinto-medio, #8A0028);
    padding-top: 10px;
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
    margin-top: 10px;
}

.toppings-summary {
    background: var(--crema-claro, #F5F5DC);
    border-radius: 15px;
    padding: 25px;
    margin-top: 20px;
}

/* Animations for Step 3 */
.selection-animation {
    animation: toppingPulse 0.3s ease;
}

@keyframes toppingPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Responsive for Step 3 */
@media (max-width: 768px) {
    .toppings-control-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .control-options {
        order: 2;
        justify-content: center;
        width: 100%;
    }
    
    .control-options .btn {
        flex: 1;
        max-width: 160px;
    }
    
    .quick-stats {
        order: 1;
        justify-content: center;
        gap: 25px;
    }
    
    .product-toppings-header {
        padding: 15px;
    }
    
    .product-toppings-body {
        padding: 0 15px;
    }
    
    .product-toppings-section.expanded .product-toppings-body {
        padding: 20px 15px;
    }
    
    .toppings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .topping-card {
        padding: 14px;
        min-height: 80px;
    }
    
    .topping-icon {
        font-size: 1.8rem;
        min-width: 45px;
    }
    
    .topping-name {
        font-size: 0.9rem;
    }
    
    .topping-description {
        font-size: 0.8rem;
    }
    
    .category-header {
        font-size: 1rem;
    }
    
    .toppings-summary {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .toppings-control-bar {
        padding: 12px;
    }
    
    .control-options .btn {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .stat-item {
        font-size: 0.85rem;
    }
    
    .topping-card {
        padding: 12px;
        gap: 10px;
    }
    
    .topping-icon {
        font-size: 1.6rem;
        min-width: 40px;
    }
    
    .breakdown-line,
    .breakdown-total {
        font-size: 0.85rem;
    }
    
    .breakdown-total {
        font-size: 1rem;
    }
}

/* ==================== STEP 4: CART & CHECKOUT ==================== */
.order-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 15px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.summary-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Lora', serif;
}

.order-items-container,
.order-totals-section,
.delivery-info-section,
.whatsapp-preview-section,
.quick-actions-section {
    margin-bottom: 30px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    border: 2px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--crema-claro, #F5F5DC);
    border-bottom: 1px solid var(--crema-oscuro, #E0D8B0);
}

.item-basic-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.item-thumb {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--vino-tinto-claro, #A61E3C);
}

.item-details h5 {
    margin: 0 0 5px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-family: 'Lora', serif;
    font-size: 1.1rem;
}

.item-meta {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.item-quantity {
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.item-variation {
    background: var(--vino-tinto-claro, #A61E3C);
    color: white;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.item-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
}

.item-toppings {
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid var(--crema-oscuro, #E0D8B0);
}

.toppings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 0.9rem;
    font-weight: 600;
}

.toppings-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topping-tag {
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.topping-tag.free {
    background: var(--dorado, #D4AF37);
    color: white;
}

.topping-tag.premium {
    background: var(--vino-tinto-claro, #A61E3C);
    color: white;
}

.item-price-breakdown {
    padding: 15px 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.9rem;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    padding-top: 10px;
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
    margin-top: 10px;
}

.totals-breakdown {
    background: var(--crema-claro, #F5F5DC);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.totals-row:last-child {
    margin-bottom: 0;
}

.totals-separator {
    height: 1px;
    background: var(--crema-oscuro, #E0D8B0);
    margin: 15px 0;
}

.totals-row.grand-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--vino-tinto-medio, #8A0028);
    padding-top: 10px;
    border-top: 2px solid var(--vino-tinto-medio, #8A0028);
}

.total-label {
    color: #666;
}

.grand-total .total-label {
    color: var(--vino-tinto-medio, #8A0028);
}

.total-amount {
    font-weight: 600;
    color: var(--vino-tinto-medio, #8A0028);
}

.delivery-info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 10px;
}

.info-item i {
    width: 20px;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 1rem;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-details strong {
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 0.9rem;
}

.info-details span {
    color: #666;
    font-size: 0.9rem;
}

.delivery-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
    font-size: 0.9rem;
}

.message-preview {
    border: 2px solid #25D366;
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #25D366;
    color: white;
    font-weight: 600;
}

.preview-header i {
    font-size: 1.2rem;
}

.preview-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.preview-body pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-buttons .btn {
    min-width: 180px;
    min-height: 44px;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

/* Responsive for Step 4 */
@media (max-width: 768px) {
    .order-summary-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .summary-stat {
        justify-content: center;
        text-align: center;
    }
    
    .stat-info {
        align-items: center;
        text-align: center;
    }
    
    .item-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .item-basic-info {
        width: 100%;
        justify-content: center;
    }
    
    .item-total {
        font-size: 1.3rem;
    }
    
    .item-toppings {
        padding: 12px 15px;
    }
    
    .item-price-breakdown {
        padding: 12px 15px;
    }
    
    .totals-breakdown {
        padding: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .delivery-info-content {
        gap: 12px;
    }
    
    .info-item {
        padding: 10px;
    }
    
    .preview-body {
        padding: 15px;
        max-height: 250px;
    }
    
    .preview-body pre {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .order-summary-stats {
        padding: 15px 10px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .item-thumb {
        width: 50px;
        height: 50px;
    }
    
    .item-details h5 {
        font-size: 1rem;
    }
    
    .totals-row {
        font-size: 0.9rem;
    }
    
    .totals-row.grand-total {
        font-size: 1.1rem;
    }
    
    .toppings-list {
        gap: 6px;
    }
    
    .topping-tag {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    .preview-body pre {
        font-size: 0.8rem;
    }
}

/* ==================== PRODUCT DETAIL VIEW ==================== */
.modal-content .step-content.product-detail-mode,
.personalization-modal .step-content.product-detail-mode,
.unified-modal .step-content.product-detail-mode {
    padding: 25px;
}

.product-detail-hero {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.product-detail-image {
    flex: 0 0 300px;
    position: relative;
}

.product-detail-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    border: 2px solid var(--crema-oscuro, #E0D8B0);
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-detail-title {
    color: var(--vino-tinto-medio, #8A0028);
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    margin: 0 0 8px 0;
}

.product-detail-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vino-tinto-medio, #8A0028);
    margin-bottom: 10px;
}

.product-detail-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-feature-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--crema-claro, #F5F5DC);
    border: 1px solid var(--crema-oscuro, #E0D8B0);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: var(--vino-tinto-medio, #8A0028);
}

.detail-feature-badge i {
    font-size: 0.8rem;
    color: var(--dorado, #D4AF37);
}

.product-detail-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.detail-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-quantity-label {
    font-weight: 600;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 0.95rem;
}

.detail-customize-btn {
    flex: 1;
    max-width: 200px;
    background: var(--vino-tinto-medio, #8A0028);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.detail-customize-btn:hover {
    background: var(--vino-tinto-oscuro, #5C001F);
    transform: translateY(-2px);
}

.product-detail-tabs {
    margin-top: 30px;
    border-top: 1px solid var(--crema-oscuro, #E0D8B0);
    padding-top: 25px;
}

.detail-tabs-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--crema-oscuro, #E0D8B0);
}

.detail-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    min-height: 44px;
}

.detail-tab-btn.active {
    color: var(--vino-tinto-medio, #8A0028);
    border-bottom-color: var(--vino-tinto-medio, #8A0028);
    font-weight: 600;
}

.detail-tab-btn:hover:not(.active) {
    color: var(--vino-tinto-claro, #A61E3C);
}

.detail-tab-content {
    display: none;
    padding: 20px 0;
}

.detail-tab-content.active {
    display: block;
}

.detail-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.detail-ingredient-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 10px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.detail-ingredient-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.detail-ingredient-info h6 {
    margin: 0 0 3px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 600;
    font-size: 0.9rem;
}

.detail-ingredient-info p {
    margin: 0;
    color: #666;
    font-size: 0.8rem;
    line-height: 1.3;
}

.detail-nutrition-table {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 20px;
    margin-top: 15px;
    padding: 20px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 10px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.detail-nutrition-label {
    color: #666;
    font-size: 0.9rem;
}

.detail-nutrition-value {
    font-weight: 600;
    color: var(--vino-tinto-medio, #8A0028);
    text-align: right;
    font-size: 0.9rem;
}

.detail-toppings-preview {
    margin-top: 20px;
    padding: 20px;
    background: var(--crema-claro, #F5F5DC);
    border-radius: 12px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.detail-toppings-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-weight: 600;
    font-size: 1rem;
}

.detail-toppings-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-toppings-category h6 {
    margin: 0 0 10px 0;
    color: var(--vino-tinto-medio, #8A0028);
    font-size: 0.9rem;
    font-weight: 600;
}

.detail-toppings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-topping-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--crema-oscuro, #E0D8B0);
}

.detail-topping-name {
    font-size: 0.85rem;
    color: #666;
}

.detail-topping-price {
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-topping-price.free {
    color: var(--dorado, #D4AF37);
}

.detail-topping-price.premium {
    color: var(--vino-tinto-medio, #8A0028);
}

/* Responsive for Product Detail View */
@media (max-width: 768px) {
    .modal-content .step-content.product-detail-mode,
.personalization-modal .step-content.product-detail-mode,
.unified-modal .step-content.product-detail-mode {
        padding: 20px 15px;
    }
    
    .product-detail-hero {
        flex-direction: column;
        gap: 20px;
    }
    
    .product-detail-image {
        flex: none;
        width: 100%;
    }
    
    .product-detail-main-image {
        height: 200px;
    }
    
    .product-detail-title {
        font-size: 1.3rem;
    }
    
    .product-detail-price {
        font-size: 1.2rem;
    }
    
    .product-detail-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .detail-quantity-controls {
        justify-content: center;
    }
    
    .detail-customize-btn {
        max-width: none;
        width: 100%;
    }
    
    .detail-tabs-nav {
        flex-wrap: wrap;
        gap: 2px;
    }
    
    .detail-tab-btn {
        flex: 1;
        min-width: 100px;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .detail-ingredients-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .detail-nutrition-table {
        padding: 15px;
        gap: 8px 15px;
    }
    
    .detail-toppings-categories {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .product-detail-features {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modal-content .step-content.product-detail-mode,
.personalization-modal .step-content.product-detail-mode,
.unified-modal .step-content.product-detail-mode {
        padding: 15px 10px;
    }
    
    .product-detail-hero {
        gap: 15px;
    }
    
    .product-detail-main-image {
        height: 180px;
        border-radius: 12px;
    }
    
    .product-detail-title {
        font-size: 1.2rem;
    }
    
    .product-detail-features {
        gap: 6px;
    }
    
    .detail-feature-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .detail-tab-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .detail-ingredient-item {
        padding: 10px;
        gap: 8px;
    }
    
    .detail-ingredient-icon {
        font-size: 1.3rem;
        min-width: 25px;
    }
    
    .detail-nutrition-table {
        padding: 12px;
        gap: 6px 12px;
    }
    
    .detail-toppings-preview {
        padding: 15px;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.modal-open {
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ==================== CONTINUE SHOPPING FEATURES ==================== */

/* Enhanced action buttons for Step 4 */
.quick-actions-section .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.quick-actions-section .action-buttons .btn {
    padding: 14px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.btn-success {
    background: #27ae60;
    color: white;
    border: 2px solid #27ae60;
}

.btn.btn-success:hover {
    background: #229954;
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn.btn-whatsapp {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
}

.btn.btn-whatsapp:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Cart Added Notification */
.cart-added-notification {
    position: fixed;
    top: 80px;
    right: -400px;
    z-index: 10001;
    background: #27ae60;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.cart-added-notification.show {
    right: 20px;
    animation: slideInBounce 0.5s ease-out;
}

.cart-added-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-added-notification .notification-content i {
    font-size: 24px;
    color: #fff;
}

.cart-added-notification .notification-content span {
    font-weight: 600;
    font-size: 16px;
}

.cart-added-notification .notification-content small {
    display: block;
    opacity: 0.9;
    font-size: 13px;
    margin-top: 2px;
}

@keyframes slideInBounce {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    60% {
        transform: translateX(-10px) scale(1.05);
        opacity: 1;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Mobile responsive for continue shopping */
@media (max-width: 768px) {
    .quick-actions-section .action-buttons {
        gap: 10px;
    }
    
    .quick-actions-section .action-buttons .btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 48px;
    }
    
    .cart-added-notification {
        top: 60px;
        right: -100%;
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
    
    .cart-added-notification.show {
        right: 10px;
        left: 10px;
    }
}