/* Auth Pages Specific Styles - For Login, Cart, Checkout Pages Only */
.auth-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 450px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: #6c757d;
    font-size: 16px;
}

.auth-form .form-group {
    position: relative;
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px 45px 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.auth-form input:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.password-toggle {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #495057;
}

.checkbox-container input {
    margin-right: 8px;
    width: auto;
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.auth-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.auth-divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.social-button {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.social-button:hover {
    border-color: #007bff;
    transform: translateY(-1px);
}

.google-button {
    color: #db4437;
}

.facebook-button {
    color: #4267B2;
}

.auth-footer {
    text-align: center;
    color: #6c757d;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Cart Page Specific Styles */
.cart-page {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-cart i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-cart h3 {
    color: #495057;
    margin-bottom: 10px;
}

/* Enhanced Cart Item Styles */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    align-items: start;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.cart-item-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-item-slide.active {
    opacity: 1;
}

.cart-item-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.cart-item-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.cart-item-slider-dot.active {
    background: white;
}

.cart-item-content {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.cart-item-price {
    font-weight: 700;
    color: #007bff;
    font-size: 18px;
    margin-bottom: 12px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Professional Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.quantity-btn:hover {
    background: #007bff;
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #6c757d;
}

.quantity-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    background: white;
    font-weight: 600;
    color: #2c3e50;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.quantity-input:focus {
    outline: none;
    background: #f8f9fa;
}

.remove-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #dc3545;
    color: white;
}

.cart-summary {
    position: relative;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
}

.btn-block {
    width: 100%;
    margin: 15px 0;
}

.continue-shopping {
    display: block;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    margin-top: 15px;
}

.continue-shopping:hover {
    text-decoration: underline;
}

/* Checkout Page Specific Styles */
.checkout-page {
    padding: 30px 0;
    min-height: calc(100vh - 200px);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6c757d;
}

.step.active {
    color: #007bff;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.step.active .step-number {
    background: #007bff;
    color: white;
}

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-form-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

/* Enhanced Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Enhanced Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.payment-method:hover {
    border-color: #007bff;
    transform: translateY(-1px);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + label {
    color: #007bff;
}

.payment-method input[type="radio"]:checked ~ .payment-method {
    border-color: #007bff;
    background: #f8f9fa;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

.payment-method i {
    font-size: 20px;
    width: 24px;
}

.payment-method small {
    color: #6c757d;
    margin-left: auto;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.form-actions .btn {
    flex: 1;
}

.order-summary-section {
    position: relative;
}

.order-summary-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
}

.summary-title {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
    font-size: 18px;
}

.checkout-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-details {
    flex: 1;
}

.checkout-item-title {
    font-weight: 500;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.checkout-item-price {
    font-weight: 600;
    color: #007bff;
    font-size: 14px;
}

.checkout-item-quantity {
    color: #6c757d;
    font-size: 12px;
}

.summary-totals {
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.summary-row.total {
    border-bottom: none;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #e9ecef;
}

.delivery-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #007bff;
}

.delivery-info h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 16px;
}

.delivery-info p {
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.delivery-info p:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-success i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.modal-success h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-success p {
    color: #6c757d;
    margin-bottom: 10px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-actions .btn {
    flex: 1;
}

/* Enhanced Header Styles for Auth Pages */
.auth-pages-header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-pages-header .account-dropdown {
    position: relative;
}

.auth-pages-header .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
}

.auth-pages-header .account-dropdown:hover .dropdown-content {
    display: block;
}

.auth-pages-header .dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    transition: background 0.3s ease;
}

.auth-pages-header .dropdown-content a:hover {
    background: #f8f9fa;
}

/* Footer Styles for Auth Pages */
.auth-pages-footer {
    margin-top: auto;
    background: #2c3e50;
    color: white;
    padding: 20px 0;
}

.auth-pages-footer .footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 25px;
    }
    
    .cart-container,
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkout-steps {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    /* Enhanced Mobile Cart Items */
    .cart-item {
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 15px;
        position: relative;
    }
    
    .cart-item-content {
        grid-column: 1 / -1;
        order: 2;
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
        order: 1;
    }
    
    .cart-item-actions {
        grid-column: 1 / -1;
        order: 3;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f8f9fa;
    }
    
    .quantity-controls {
        order: 1;
    }
    
    .remove-item {
        order: 2;
    }
    
    .cart-item-title {
        font-size: 15px;
    }
    
    .cart-item-price {
        font-size: 16px;
    }
    
    /* Mobile Checkout Improvements */
    .checkout-form-section {
        padding: 20px;
    }
    
    .order-summary-card {
        position: static;
        margin-top: 20px;
    }
    
    .summary-card {
        position: static;
    }
    
    .payment-method label {
        flex-wrap: wrap;
    }
    
    .payment-method small {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
        padding: 20px;
    }
    
    .cart-items,
    .checkout-form-section,
    .order-summary-card {
        padding: 15px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 10px;
        padding: 12px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 40px;
        height: 32px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}