/* Cart Page Styles */
.cart-page {
    padding: 80px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.cart-items-container,
.cart-summary {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.cart-items-container h2,
.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Cart Items */
.cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr auto;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.item-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.item-details {
    padding: 0 15px;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.item-price {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background-color: #e5e5e5;
}

.quantity-btn.minus {
    color: #d32f2f;
}

.quantity-btn.plus {
    color: #388e3c;
}

.item-quantity span {
    margin: 0 10px;
    font-weight: 500;
}

.item-total {
    font-weight: 500;
    color: var(--text-primary);
}

.remove-btn {
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.remove-btn:hover {
    color: #b71c1c;
}

/* Cart Summary */
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
}

.summary-row.total {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-size: 1rem;
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.continue-shopping:hover {
    color: var(--primary-color);
}

/* Empty Cart */
.empty-cart-container {
    text-align: center;
    padding: 60px 0;
}

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

.empty-cart-container h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-cart-container p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Side Login/Register Buttons */
.side-auth-buttons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-auth-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 30px 0 0 30px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateX(100px);
    opacity: 0.9;
    animation: slideIn 0.5s forwards;
    animation-delay: 0.5s;
}

.side-auth-btn:hover {
    transform: translateX(0);
    opacity: 1;
}

.side-auth-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.login-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.register-btn {
    background: linear-gradient(135deg, #ff9a44 0%, #fc6076 100%);
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* Payment Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-modal:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.order-summary {
    margin: 25px 0;
    text-align: center;
}

.order-summary h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.payment-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.auth-buttons .btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}

#auth-options {
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }
    
    .item-image {
        grid-row: span 3;
    }
    
    .item-details {
        grid-column: 2;
        padding: 0;
    }
    
    .item-quantity {
        grid-column: 2;
        grid-row: 2;
    }
    
    .item-total {
        grid-column: 2;
        grid-row: 3;
    }
    
    .remove-btn {
        position: absolute;
        right: 0;
        top: 15px;
    }
    
    .side-auth-buttons {
        bottom: 20px;
        top: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
    }
    
    .side-auth-btn {
        border-radius: 50%;
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
    }
    
    .side-auth-btn span {
        display: none;
    }
    
    .side-auth-btn i {
        margin: 0;
        font-size: 1.5rem;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile notification styles */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
        max-width: 250px;
    }
}

/* Payment Modal Adjustments */
.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.payment-btn:before {
    content: "\f09d";
    font-family: "Font Awesome 5 Free";
    margin-right: 8px;
}

/* Loading Indicator */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.loading-spinner p {
    color: var(--text-secondary);
}

/* Top Login/Register Banner */
.auth-banner {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 12px 0;
    margin-bottom: 20px;
}

.auth-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.auth-banner p {
    margin: 0;
    font-size: 0.95rem;
}

.auth-banner .auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-banner .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 4px;
}

.auth-banner .btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
}

.auth-banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Form Sections Layout */
.form-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: var(--border-radius);
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-group.half {
    flex: 1;
}

/* Update payment button */
.payment-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.payment-btn:before {
    content: "\f09d";
    font-family: "Font Awesome 5 Free";
    margin-right: 8px;
    font-weight: 900;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Payment Modal Adjustments */
.modal-content {
    max-width: 800px; /* Increase width */
    margin: 2% auto; /* More top space */
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .form-sections {
        grid-template-columns: 1fr;
    }
    
    .auth-banner .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .auth-banner .auth-buttons {
        width: 100%;
    }
    
    .auth-banner .btn {
        flex: 1;
        justify-content: center;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }
    
    .item-image {
        grid-row: span 3;
    }
    
    .item-details {
        grid-column: 2;
        padding: 0;
    }
    
    .item-quantity {
        grid-column: 2;
        grid-row: 2;
    }
    
    .item-total {
        grid-column: 2;
        grid-row: 3;
    }
    
    .remove-btn {
        position: absolute;
        right: 0;
        top: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 5px;
    }
} 