/* ========== CART & CHECKOUT STYLES ========== */

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== CART SECTION ========== */
.cart-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a0712 0%, #2D1B4E 100%);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, #F5F5DC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.back-to-shop {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F5F5DC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-shop:hover {
    color: #fff;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

/* ========== CART ITEMS ========== */
.cart-items {
    background: rgba(45, 27, 78, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty i {
    font-size: 4rem;
    color: #F5F5DC;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #F5EFE6;
}

.cart-empty p {
    color: rgba(245, 239, 230, 0.7);
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F5EFE6;
    margin-bottom: 5px;
}

.cart-item-size {
    color: rgba(245, 239, 230, 0.7);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 1.1rem;
    color: #F5F5DC;
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.1);
    color: #F5F5DC;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #F5F5DC;
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    color: #F5EFE6;
    font-weight: 500;
}

.cart-item-remove {
    color: rgba(245, 239, 230, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: #ff4444;
}

/* ========== CART SUMMARY ========== */
.cart-summary {
    position: sticky;
    top: 100px;
}

.summary-card {
    background: rgba(45, 27, 78, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.summary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #F5EFE6;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: rgba(245, 239, 230, 0.8);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: #F5F5DC;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.summary-row.discount {
    color: #4CAF50;
}

.promo-code {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.promo-code input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #F5EFE6;
    font-family: 'Montserrat', sans-serif;
}

.promo-code input::placeholder {
    color: rgba(245, 239, 230, 0.5);
}

.security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: rgba(245, 239, 230, 0.6);
    font-size: 0.9rem;
}

/* ========== CHECKOUT SECTION ========== */
.checkout-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #0a0712 0%, #2D1B4E 100%);
}

.checkout-header {
    margin-bottom: 40px;
}

.checkout-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #fff, #F5F5DC);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 20px 0;
}

.back-to-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #F5F5DC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-cart:hover {
    color: #fff;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 239, 230, 0.5);
    transition: color 0.3s ease;
}

.step.completed {
    color: #4CAF50;
}

.step.active {
    color: #F5F5DC;
}

.step i {
    font-size: 1.5rem;
}

.checkout-container {
    max-width: 800px;
    margin: 0 auto;
}

.checkout-form {
    background: rgba(45, 27, 78, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ========== FORM STYLES ========== */
.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #F5EFE6;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #F5EFE6;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: #F5EFE6;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #F5F5DC;
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: rgba(245, 239, 230, 0.5);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========== PAYMENT METHODS ========== */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + .payment-option {
    border-color: #F5F5DC;
    background: rgba(212, 175, 55, 0.1);
}

.payment-option i {
    font-size: 1.5rem;
    color: #F5F5DC;
}

.payment-option span {
    color: #F5EFE6;
    font-size: 0.9rem;
}

.payment-details {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.cod-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(245, 239, 230, 0.8);
}

.cod-info i {
    color: #F5F5DC;
}

.razorpay-info {
    color: rgba(245, 239, 230, 0.8);
}

.razorpay-info i {
    color: #4CAF50;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.razorpay-info p {
    margin-bottom: 15px;
}

.razorpay-info ul {
    list-style: none;
    padding: 0;
}

.razorpay-info li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.razorpay-info li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* ========== ORDER SUMMARY ========== */
.order-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.order-summary h3 {
    margin-bottom: 20px;
    color: #F5EFE6;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: rgba(245, 239, 230, 0.8);
}

.place-order-btn {
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.security-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: rgba(245, 239, 230, 0.6);
    font-size: 0.9rem;
}

.security-info i {
    color: #4CAF50;
}

/* ========== SUCCESS MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #2D1B4E, #0a0712);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #F5EFE6;
    margin-bottom: 15px;
}

.modal-content p {
    color: rgba(245, 239, 230, 0.8);
    margin-bottom: 10px;
}

.order-number {
    color: #F5F5DC;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
    
    .checkout-steps {
        gap: 20px;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
}

/* ========== BUTTON STYLES (reusing from main) ========== */
.primary-button {
    background: linear-gradient(135deg, #F5F5DC, #B8941F);
    color: #2D1B4E;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.secondary-button {
    background: transparent;
    color: #F5F5DC;
    border: 1px solid #F5F5DC;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
}

.secondary-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}

.full-width {
    width: 100%;
    text-align: center;
}
