/* ===== PRODUCT MODAL ADDITIONALS IMPROVEMENTS ===== */

/* Category header styling */
.additionals-category {
    margin-bottom: 1.5rem;
}

.category-header {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(230, 126, 34, 0.1);
}

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    font-size: 0.9rem;
    color: #E67E22;
}

.category-title {
    color: #E67E22;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.category-line {
    height: 1px;
    background: linear-gradient(to right, rgba(230, 126, 34, 0.3), transparent);
}

/* Additional cards styling */
.additional-card {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.additional-card:hover {
    border-color: #E67E22;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

.additional-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.additional-card input[type="checkbox"]:checked + .additional-card-label {
    border-color: #E67E22;
    background: rgba(230, 126, 34, 0.05);
}

.additional-card input[type="checkbox"]:checked + .additional-card-label .additional-card-check {
    opacity: 1;
    transform: scale(1);
    background: #E67E22;
    color: white;
}

.additional-card-label {
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.additional-card-content {
    flex-grow: 1;
}

.additional-main-info {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.additional-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-right: 0.5rem;
}

.additional-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 0.9rem;
    white-space: nowrap;
}

.additional-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 0.25rem;
}

.additional-card-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .additionals-grid .col-md-6 {
        margin-bottom: 0.75rem;
    }
    
    .additional-card {
        padding: 0.75rem;
    }
    
    .category-header {
        margin-bottom: 0.75rem;
    }
    
    .category-title {
        font-size: 0.9rem;
    }
}

/* ===== ZARA-INSPIRED CHECKOUT SUMMARY ===== */

/* Zara-style checkout items */
.zara-checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.zara-checkout-item:last-child {
    border-bottom: none;
}

.zara-checkout-item:hover {
    background-color: #fafafa;
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.zara-item-main {
    flex: 1;
    margin-right: 1rem;
}

.zara-item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.zara-item-details {
    margin-bottom: 0.75rem;
}

.zara-size {
    display: inline-block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zara-additionals {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.zara-notes {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.zara-item-quantity {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zara-item-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
}

/* Zara-style empty cart */
.zara-empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
}

.empty-cart-text {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Clean scrollbar for checkout items */
#checkoutCartItems {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

#checkoutCartItems::-webkit-scrollbar {
    width: 2px;
}

#checkoutCartItems::-webkit-scrollbar-track {
    background: transparent;
}

#checkoutCartItems::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 1px;
}

#checkoutCartItems::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ===== MODERN ORDER SUMMARY DESIGN ===== */

/* Contenedor principal del resumen - diseño moderno */
.zara-summary-card {
    border: none !important;
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.zara-summary-body {
    padding: 1.5rem !important;
    background: transparent !important;
    border: none !important;
}

/* Título del resumen - diseño moderno */
.checkout-order-summary h6 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 0 1.5rem 0 !important;
    text-align: left !important;
    border: none !important;
    padding: 0 0 1rem 0 !important;
    background: transparent !important;
    border-bottom: 2px solid rgba(230, 126, 34, 0.1) !important;
    position: relative;
}

.checkout-order-summary h6::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #E67E22;
    border-radius: 1px;
}

.checkout-order-summary h6 i {
    display: inline-block !important;
    margin-right: 0.5rem !important;
    color: #E67E22 !important;
}

/* Contenedor de items del resumen */
#checkoutCartItems {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 400px;
    overflow-y: auto;
}

/* Items individuales del resumen - estilo moderno */
.zara-checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #E67E22;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.zara-checkout-item:last-child {
    margin-bottom: 0;
}

.zara-checkout-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
    border-left-color: #d35400;
}

/* Información principal del item */
.zara-item-main {
    flex: 1;
    margin-right: 1rem;
}

.zara-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.zara-item-details {
    margin-bottom: 0.5rem;
}

.zara-size {
    display: inline-block;
    font-size: 0.8rem;
    color: #E67E22;
    background: rgba(230, 126, 34, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.zara-additionals {
    font-size: 0.8rem;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.25rem;
    display: inline-block;
    font-weight: 500;
}

.zara-notes {
    font-size: 0.8rem;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-style: italic;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.zara-item-quantity {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

/* Precio del item */
.zara-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27ae60;
    text-align: right;
    white-space: nowrap;
    min-width: 80px;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Empty cart moderno */
.zara-empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #95a5a6;
    background: white;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.empty-cart-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Totales section - diseño moderno */
.checkout-totals {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(230, 126, 34, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(230, 126, 34, 0.1);
}

.checkout-totals .d-flex {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.checkout-totals .d-flex:last-child {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(230, 126, 34, 0.2);
    font-size: 1.2rem;
    font-weight: 700;
    color: #E67E22;
}

/* Scrollbar moderno */
#checkoutCartItems::-webkit-scrollbar {
    width: 4px;
}

#checkoutCartItems::-webkit-scrollbar-track {
    background: rgba(230, 126, 34, 0.1);
    border-radius: 2px;
}

#checkoutCartItems::-webkit-scrollbar-thumb {
    background: #E67E22;
    border-radius: 2px;
}

#checkoutCartItems::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* Responsive moderno */
@media (max-width: 768px) {
    .zara-summary-body {
        padding: 1rem !important;
    }
    
    .zara-checkout-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .zara-item-main {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .zara-item-price {
        align-self: flex-end;
        min-width: 60px;
    }
    
    .zara-item-name {
        font-size: 0.9rem;
    }
    
    .zara-size,
    .zara-additionals,
    .zara-notes,
    .zara-item-quantity {
        font-size: 0.75rem;
        margin-right: 0.25rem;
        margin-bottom: 0.25rem;
    }
}

/* Zara-style payment summary */
.payment-summary {
    background: #fafafa;
    border: none;
    border-radius: 0;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.payment-summary h6 {
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.75rem;
}

.payment-summary .d-flex {
    padding: 0.5rem 0;
    border-bottom: none;
    font-size: 0.85rem;
}

.payment-summary .d-flex:last-child {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Legacy support for existing checkout cards */
.checkout-item-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.checkout-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #E67E22;
    opacity: 0.7;
}

.checkout-item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #E67E22;
}

.checkout-item-header {
    margin-bottom: 0;
}

.item-name {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

.item-total-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.item-details {
    margin-top: 0.5rem;
}

.item-quantity-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.quantity-badge {
    background: #E67E22;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.unit-price {
    color: #6c757d;
    font-size: 0.85rem;
}

.item-size {
    background: rgba(230, 126, 34, 0.1);
    color: #E67E22;
    padding: 0.15rem 0.4rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.item-additionals {
    color: #27ae60;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 6px;
    border-left: 3px solid #27ae60;
}

.item-notes {
    color: #f39c12;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f39c12;
}

/* Empty cart styling */
.empty-cart-summary {
    padding: 2rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Checkout totals section improvements */
#checkoutCartItems {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

#checkoutCartItems::-webkit-scrollbar {
    width: 6px;
}

#checkoutCartItems::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#checkoutCartItems::-webkit-scrollbar-thumb {
    background: #E67E22;
    border-radius: 3px;
}

#checkoutCartItems::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* Payment summary improvements */
.payment-summary {
    background: linear-gradient(135deg, #fdf6f0 0%, #f8f1e4 100%);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1rem;
}

.payment-summary h6 {
    color: #E67E22;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(230, 126, 34, 0.1);
}

.payment-summary .d-flex {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(230, 126, 34, 0.05);
}

.payment-summary .d-flex:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(230, 126, 34, 0.1);
    font-size: 1.1rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .checkout-item-card {
        padding: 0.75rem;
    }
    
    .item-name {
        font-size: 0.9rem;
    }
    
    .item-total-price {
        font-size: 1rem;
    }
    
    .item-quantity-price {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .payment-summary {
        padding: 1rem;
    }
}

/* ===== CART MODAL IMPROVEMENTS ===== */

/* Cart modal styling con esquema FlavorFinder */
#cartModal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(230, 126, 34, 0.15);
    overflow: hidden;
}

#cartModal .modal-header {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 1.5rem;
    color: white;
}

#cartModal .modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#cartModal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#cartModal .btn-close:hover {
    opacity: 1;
}

#cartModal .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    background: #fff;
}

/* Cart items styling */
.cart-item {
    border: none !important;
    border-bottom: 1px solid rgba(230, 126, 34, 0.1) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
    background: #fff !important;
    transition: all 0.2s ease;
}

.cart-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

.cart-item:hover {
    background: rgba(230, 126, 34, 0.05) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.1);
}

.cart-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.cart-item .text-primary {
    color: #E67E22 !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item .text-info {
    color: #27ae60 !important;
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item .text-warning {
    color: #f39c12 !important;
    font-size: 0.85rem;
    font-style: italic;
}

.cart-item .text-muted {
    color: #7f8c8d !important;
    font-size: 0.85rem;
}

/* Quantity controls styling */
.quantity-controls {
    gap: 0.5rem;
}

.quantity-controls .btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 6px;
    border: 2px solid #E67E22;
    background: white;
    color: #E67E22;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-controls .btn:hover {
    background: #E67E22;
    color: white;
    transform: scale(1.05);
}

.quantity-controls .btn-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.quantity-controls .btn-danger:hover {
    background: #e74c3c;
    color: white;
}

.quantity-controls span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

/* Cart total styling */
#cartModal h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #E67E22;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(230, 126, 34, 0.2);
    text-align: center;
}

/* Empty cart message */
#cartModal .text-muted.text-center {
    padding: 3rem 1rem;
    color: #95a5a6 !important;
    font-size: 1rem;
    font-weight: 500;
}

/* Modal footer styling */
#cartModal .modal-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
}

#cartModal .modal-footer .btn {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#cartModal .modal-footer .btn-secondary {
    background: transparent;
    border: 2px solid #95a5a6;
    color: #95a5a6;
}

#cartModal .modal-footer .btn-secondary:hover {
    background: #95a5a6;
    color: white;
    transform: translateY(-1px);
}

#cartModal .modal-footer .btn-success {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%);
    border: 2px solid #E67E22;
    color: white;
}

#cartModal .modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%);
    border-color: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Scrollbar for cart modal */
#cartModal .modal-body::-webkit-scrollbar {
    width: 4px;
}

#cartModal .modal-body::-webkit-scrollbar-track {
    background: rgba(230, 126, 34, 0.1);
    border-radius: 2px;
}

#cartModal .modal-body::-webkit-scrollbar-thumb {
    background: #E67E22;
    border-radius: 2px;
}

#cartModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

/* Dark theme support */
[data-theme="dark"] .additional-card {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

[data-theme="dark"] .additional-card:hover {
    border-color: #E67E22;
    background: #34495e;
}

[data-theme="dark"] .additional-name {
    color: #ecf0f1;
}

[data-theme="dark"] .checkout-item-card {
    background: #2c3e50;
    border-color: #34495e;
    color: #ecf0f1;
}

[data-theme="dark"] .item-name {
    color: #ecf0f1;
}

[data-theme="dark"] .empty-cart-summary {
    background: #34495e;
    border-color: #4a5f7a;
    color: #ecf0f1;
}

[data-theme="dark"] .payment-summary {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-color: rgba(230, 126, 34, 0.3);
    color: #ecf0f1;
}

/* Dark theme for cart modal */
[data-theme="dark"] #cartModal .modal-content {
    background: #2c3e50;
    color: #ecf0f1;
}

[data-theme="dark"] #cartModal .modal-header {
    background: #34495e;
    border-bottom-color: #4a5f7a;
}

[data-theme="dark"] #cartModal .modal-title {
    color: #ecf0f1;
}

[data-theme="dark"] #cartModal .modal-footer {
    background: #34495e;
    border-top-color: #4a5f7a;
}

[data-theme="dark"] .cart-item {
    border-bottom-color: #4a5f7a !important;
}

[data-theme="dark"] .cart-item:hover {
    background: #34495e !important;
}

[data-theme="dark"] .cart-item strong {
    color: #ecf0f1;
}

[data-theme="dark"] #cartModal h5 {
    color: #ecf0f1;
    border-top-color: #4a5f7a;
}

/* ===== PRODUCT MODAL SIZE SELECTION IMPROVEMENTS ===== */

/* Size section header styling */
#productSizes .option-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid rgba(230, 126, 34, 0.1) !important;
    position: relative;
}

#productSizes .option-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #E67E22;
    border-radius: 1px;
}

#productSizes .option-title i {
    color: #E67E22 !important;
    margin-right: 0.5rem !important;
}

/* Size options container */
.size-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Individual size option styling */
.size-option {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    overflow: hidden;
}

.size-option:hover {
    border-color: #E67E22;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

/* Hide default radio button */
.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Size label styling */
.size-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
}

.size-option input[type="radio"]:checked + .size-label {
    background: rgba(230, 126, 34, 0.05);
    border-color: #E67E22;
}

.size-option input[type="radio"]:checked + .size-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #E67E22;
}

.size-option input[type="radio"]:checked + .size-label::after {
    content: '✓';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #E67E22;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Size info section */
.size-info {
    flex-grow: 1;
    margin-right: 1rem;
}

.size-info strong {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 0.25rem;
}

.size-info small {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    display: block;
}

/* Size price styling */
.size-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* Selected state styling */
.size-option input[type="radio"]:checked + .size-label .size-price {
    background: rgba(230, 126, 34, 0.1);
    color: #E67E22;
}

.size-option input[type="radio"]:checked + .size-label .size-info strong {
    color: #E67E22;
}

/* Responsive size options */
@media (max-width: 768px) {
    .size-options {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .size-label {
        padding: 0.75rem;
    }
    
    .size-info strong {
        font-size: 1rem;
    }
    
    .size-price {
        font-size: 1.1rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ===== CUSTOMER AUTH SECTION IMPROVEMENTS ===== */

/* Remove the green background and improve styling */
#customerAuthSection {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
}

/* Auth section card styling */
.auth-section-card {
    background: linear-gradient(135deg, #fff 0%, #fafafa 100%) !important;
    border: 2px solid rgba(230, 126, 34, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease;
}

.auth-section-card:hover {
    border-color: rgba(230, 126, 34, 0.3);
    box-shadow: 0 4px 20px rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
}

/* Auth section header */
.auth-section-card h6 {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
}

.auth-section-card h6 i {
    color: #E67E22 !important;
    margin-right: 0.5rem !important;
    font-size: 1.2rem !important;
}

/* Auth section description */
.auth-section-card p {
    color: #6c757d !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
}

/* Auth buttons container */
.auth-section-card .d-flex {
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

/* Auth buttons styling */
.btn-auth-login,
.btn-auth-register {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%) !important;
    border: 2px solid #E67E22 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px !important;
}

.btn-auth-register {
    background: linear-gradient(135deg, #A93226 0%, #922B21 100%) !important;
    border-color: #A93226 !important;
}

.btn-auth-login:hover,
.btn-auth-register:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3) !important;
    color: white !important;
}

.btn-auth-login:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%) !important;
    border-color: #d35400 !important;
}

.btn-auth-register:hover {
    background: linear-gradient(135deg, #922B21 0%, #7B241C 100%) !important;
    border-color: #922B21 !important;
    box-shadow: 0 4px 12px rgba(169, 50, 38, 0.3) !important;
}

.btn-auth-login i,
.btn-auth-register i {
    margin-right: 0.5rem !important;
    font-size: 0.9rem !important;
}

/* Responsive auth section */
@media (max-width: 768px) {
    .auth-section-card {
        padding: 1.25rem !important;
    }
    
    .auth-section-card .d-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .btn-auth-login,
    .btn-auth-register {
        width: 100% !important;
        min-width: auto !important;
        padding: 0.875rem 1rem !important;
    }
    
    .auth-section-card h6 {
        font-size: 1rem !important;
        text-align: center !important;
    }
    
    .auth-section-card p {
        text-align: center !important;
        font-size: 0.85rem !important;
    }
}

/* Success alert styling for authenticated users */
.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(46, 204, 113, 0.05) 100%) !important;
    border: 2px solid rgba(39, 174, 96, 0.2) !important;
    border-radius: 12px !important;
    color: #27ae60 !important;
    padding: 1rem 1.5rem !important;
    margin: 1rem 0 !important;
}

.alert-success .d-flex {
    align-items: center !important;
}

.alert-success i {
    color: #27ae60 !important;
    font-size: 1.1rem !important;
}

.alert-success strong {
    color: #1e8449 !important;
    font-weight: 600 !important;
}

.alert-success small {
    color: #27ae60 !important;
    opacity: 0.8 !important;
}

.alert-success .btn {
    background: transparent !important;
    border: 2px solid #27ae60 !important;
    color: #27ae60 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.alert-success .btn:hover {
    background: #27ae60 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

/* Dark theme support for auth section */
[data-theme="dark"] .auth-section-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-color: rgba(230, 126, 34, 0.3) !important;
    color: #ecf0f1 !important;
}

[data-theme="dark"] .auth-section-card h6 {
    color: #ecf0f1 !important;
}

[data-theme="dark"] .auth-section-card p {
    color: #bdc3c7 !important;
}

[data-theme="dark"] .alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.2) 0%, rgba(46, 204, 113, 0.1) 100%) !important;
    border-color: rgba(39, 174, 96, 0.4) !important;
    color: #2ecc71 !important;
}

[data-theme="dark"] .alert-success strong {
    color: #2ecc71 !important;
}

[data-theme="dark"] .alert-success small {
    color: #2ecc71 !important;
}

/* ===== ADDITIONAL PRODUCT MODAL IMPROVEMENTS ===== */

/* Product modal header improvements */
.product-modal-header {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%) !important;
    border-bottom: none !important;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.5rem !important;
    color: white !important;
}

.product-modal-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
}

.product-modal-title i {
    color: white !important;
    opacity: 0.9 !important;
}

.btn-close-custom {
    filter: brightness(0) invert(1) !important;
    opacity: 0.8 !important;
}

.btn-close-custom:hover {
    opacity: 1 !important;
}

/* Product modal body improvements */
.product-modal-body {
    padding: 2rem !important;
    background: #fff !important;
}

/* Product details section */
.product-details-section {
    height: 100% !important;
}

.product-header {
    border-bottom: 2px solid rgba(230, 126, 34, 0.1) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.product-name {
    color: #2c3e50 !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.product-description {
    color: #6c757d !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1rem !important;
}

.price-section {
    display: flex !important;
    align-items: baseline !important;
    gap: 0.5rem !important;
}

.current-price {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #27ae60 !important;
}

.price-label {
    font-size: 0.9rem !important;
    color: #6c757d !important;
    font-weight: 500 !important;
}

/* Option sections styling */
.option-section {
    background: rgba(248, 249, 250, 0.5) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    border: 1px solid rgba(230, 126, 34, 0.1) !important;
    transition: all 0.3s ease !important;
}

.option-section:hover {
    border-color: rgba(230, 126, 34, 0.2) !important;
    background: rgba(248, 249, 250, 0.8) !important;
}

/* Quantity selector improvements */
.quantity-selector {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    justify-content: flex-start !important;
}

.quantity-btn {
    width: 40px !important;
    height: 40px !important;
    border: 2px solid #E67E22 !important;
    background: white !important;
    color: #E67E22 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.quantity-btn:hover {
    background: #E67E22 !important;
    color: white !important;
    transform: scale(1.05) !important;
}

.quantity-input {
    width: 60px !important;
    height: 40px !important;
    text-align: center !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    background: white !important;
}

.quantity-input:focus {
    border-color: #E67E22 !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
    outline: none !important;
}

/* Notes textarea improvements */
.notes-textarea {
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    resize: vertical !important;
    transition: all 0.3s ease !important;
}

.notes-textarea:focus {
    border-color: #E67E22 !important;
    box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25) !important;
    outline: none !important;
}

/* Total section improvements */
.total-section {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05) 0%, rgba(211, 84, 0, 0.02) 100%) !important;
    border: 2px solid rgba(230, 126, 34, 0.1) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    margin-top: 1.5rem !important;
}

.total-breakdown {
    margin-bottom: 0 !important;
}

.total-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.total-amount {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #E67E22 !important;
}

/* Product modal footer improvements */
.product-modal-footer {
    background: #f8f9fa !important;
    border-top: 2px solid rgba(230, 126, 34, 0.1) !important;
    border-radius: 0 0 12px 12px !important;
    padding: 1.5rem !important;
}

.footer-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
}

.total-display {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.total-label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.total-price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #E67E22 !important;
}

.action-buttons {
    display: flex !important;
    gap: 0.75rem !important;
}

.btn-cancel {
    background: transparent !important;
    border: 2px solid #95a5a6 !important;
    color: #95a5a6 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-cancel:hover {
    background: #95a5a6 !important;
    color: white !important;
    transform: translateY(-1px) !important;
}

.btn-add-cart {
    background: linear-gradient(135deg, #E67E22 0%, #d35400 100%) !important;
    border: 2px solid #E67E22 !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #d35400 0%, #c0392b 100%) !important;
    border-color: #d35400 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3) !important;
    color: white !important;
}

/* Responsive product modal */
@media (max-width: 768px) {
    .product-modal-body {
        padding: 1.5rem !important;
    }
    
    /* Reduce footer height on mobile */
    .product-modal-footer {
        padding: 1rem !important;
    }
    
    .footer-content {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }
    
    .total-display {
        justify-content: center !important;
        margin-bottom: 0.5rem !important;
    }
    
    .total-label {
        font-size: 1rem !important;
    }
    
    .total-price {
        font-size: 1.2rem !important;
    }
    
    .action-buttons {
        flex-direction: row !important;
        gap: 0.5rem !important;
    }
    
    .btn-cancel,
    .btn-add-cart {
        flex: 1 !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
    }
    
    .quantity-selector {
        justify-content: center !important;
    }
    
    .size-options {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce modal footer padding for cart modal too */
    #cartModal .modal-footer {
        padding: 1rem !important;
    }
    
    #cartModal .modal-footer .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Reduce checkout modal footer height */
    #checkoutModal .modal-footer {
        padding: 1rem !important;
    }
    
    #checkoutModal .modal-footer .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .product-modal-footer {
        padding: 0.5rem !important;
    }
    
    .footer-content {
        gap: 0.25rem !important;
    }
    
    .total-display {
        margin-bottom: 0.25rem !important;
    }
    
    .total-label {
        font-size: 0.9rem !important;
    }
    
    .total-price {
        font-size: 1.1rem !important;
    }
    
    .action-buttons {
        gap: 0.25rem !important;
    }
    
    .btn-cancel,
    .btn-add-cart {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
        min-height: 36px !important;
        white-space: nowrap !important;
    }
    
    .btn-cancel {
        flex: 0.8 !important;
    }
    
    .btn-add-cart {
        flex: 1.2 !important;
    }
    
    #cartModal .modal-footer,
    #checkoutModal .modal-footer {
        padding: 0.5rem !important;
    }
    
    #cartModal .modal-footer .btn,
    #checkoutModal .modal-footer .btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.75rem !important;
    }
}

/* Ultra small devices (phones, less than 400px) */
@media (max-width: 399.98px) {
    .product-modal-footer {
        padding: 0.4rem !important;
    }
    
    .footer-content {
        gap: 0.2rem !important;
    }
    
    .total-display {
        margin-bottom: 0.2rem !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.1rem !important;
    }
    
    .total-label {
        font-size: 0.8rem !important;
    }
    
    .total-price {
        font-size: 1rem !important;
    }
    
    .action-buttons {
        gap: 0.2rem !important;
        width: 100% !important;
    }
    
    .btn-cancel,
    .btn-add-cart {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.7rem !important;
        min-height: 32px !important;
        border-width: 1px !important;
    }
    
    .btn-cancel {
        flex: 0.7 !important;
    }
    
    .btn-add-cart {
        flex: 1.3 !important;
    }
}

/* Dark theme support for product modal */
[data-theme="dark"] .product-modal-body {
    background: #2c3e50 !important;
    color: #ecf0f1 !important;
}

[data-theme="dark"] .product-name {
    color: #ecf0f1 !important;
}

[data-theme="dark"] .product-description {
    color: #bdc3c7 !important;
}

[data-theme="dark"] .option-section {
    background: rgba(52, 73, 94, 0.5) !important;
    border-color: rgba(230, 126, 34, 0.3) !important;
}

[data-theme="dark"] .total-section {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(211, 84, 0, 0.05) 100%) !important;
    border-color: rgba(230, 126, 34, 0.3) !important;
}

[data-theme="dark"] .total-line {
    color: #ecf0f1 !important;
}

[data-theme="dark"] .total-label {
    color: #ecf0f1 !important;
}

[data-theme="dark"] .product-modal-footer {
    background: #34495e !important;
    border-top-color: rgba(230, 126, 34, 0.3) !important;
}

[data-theme="dark"] .quantity-input {
    background: #34495e !important;
    border-color: #4a5f7a !important;
    color: #ecf0f1 !important;
}

[data-theme="dark"] .notes-textarea {
    background: #34495e !important;
    border-color: #4a5f7a !important;
    color: #ecf0f1 !important;
}

[data-theme="dark"] .size-option {
    background: #34495e !important;
    border-color: #4a5f7a !important;
}

[data-theme="dark"] .size-info strong {
    color: #ecf0f1 !important;
}

[data-theme="dark"] .size-info small {
    color: #bdc3c7 !important;
}
