* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
}

/* ============ LOGIN MODAL ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease-in;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #ffffff;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.3s ease-out;
}

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

.login-container {
    padding: 40px;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}

.login-container h1 {
    color: #1e40af;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitle {
    color: #5b7c99;
    font-size: 0.95em;
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #dbeafe;
    border-radius: 6px;
    font-size: 1em;
    transition: all 0.3s ease;
    background-color: #f0f9ff;
}

.form-group input:focus {
    outline: none;
    border-color: #1e40af;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.signup-text {
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}

.signup-text a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.signup-text a:hover {
    text-decoration: underline;
}

#signupForm {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #dbeafe;
}

#signupForm h3 {
    color: #1e40af;
    margin-bottom: 15px;
}

/* ============ NAVBAR ============ */
.navbar {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.nav-logo {
    max-height: 50px;
    width: auto;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-left: 40px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.search-container {
    position: relative;
}

.search-container input {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    width: 200px;
    font-size: 0.9em;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5em;
    color: white;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
}

.btn-logout {
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 60px 30px;
    text-align: center;
    margin: 20px 0;
    border-radius: 10px;
    margin-left: 30px;
    margin-right: 30px;
}

.hero-section h2 {
    color: #1e40af;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero-section p {
    color: #3b82f6;
    font-size: 1.1em;
}

/* ============ FILTER SECTION ============ */
.filter-section {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.filter-section h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.category-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    background-color: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

.category-btn:hover {
    background-color: #bfdbfe;
    border-color: #3b82f6;
}

.category-btn.active {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border-color: #1e40af;
}

/* ============ PRODUCTS SECTION ============ */
.products-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: #f8fafc;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15);
    border-color: #3b82f6;
}

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #1e40af;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: #3b82f6;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-name {
    color: #1e40af;
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
    flex: 1;
}

.product-rating {
    color: #f59e0b;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.product-price {
    color: #1e40af;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
}

.btn-add-cart {
    padding: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* ============ SHOPPING CART ============ */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: #ffffff;
    border-left: 2px solid #dbeafe;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #dbeafe;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.cart-header h3 {
    color: #1e40af;
    font-size: 1.3em;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #1e40af;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-cart:hover {
    transform: scale(1.2);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #f0f9ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    margin-bottom: 15px;
}

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

.cart-item-name {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #3b82f6;
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.2s ease;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.empty-cart {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-cart p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #dbeafe;
    background-color: #f8fafc;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #1e40af;
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-continue {
    width: 100%;
    padding: 12px;
    background-color: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background-color: #bfdbfe;
    border-color: #3b82f6;
}

/* ============ UTILITY CLASSES ============ */
.hidden {
    display: none !important;
}

/* ============ REVIEWS PAGE ============ */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    min-height: calc(100vh - 70px);
}

.reviews-content h2 {
    color: #1e40af;
    font-size: 2.2em;
    margin-bottom: 10px;
}

.reviews-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.review-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #1e40af;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 10px;
}

.stat-label {
    color: #1e40af;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 8px;
}

.stat-stars {
    font-size: 1.3em;
}

.rating-breakdown {
    background-color: #f8fafc;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.rating-breakdown h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-label {
    min-width: 120px;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.95em;
}

.bar-container {
    flex: 1;
    height: 25px;
    background-color: #dbeafe;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #93c5fd;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
    transition: width 0.3s ease;
}

.rating-count {
    min-width: 50px;
    text-align: right;
    color: #666;
    font-weight: 600;
}

.write-review-section {
    text-align: center;
    margin-bottom: 40px;
}

.btn-write-review {
    padding: 14px 40px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
}

.btn-write-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.reviews-list {
    margin-top: 40px;
}

.reviews-list h3 {
    color: #1e40af;
    margin-bottom: 25px;
    font-size: 1.3em;
}

.review-item {
    background-color: #ffffff;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
    border-color: #3b82f6;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.review-date {
    color: #999;
    font-size: 0.9em;
}

.review-rating {
    font-size: 1.2em;
    color: #f59e0b;
}

.review-title {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.review-body {
    color: #555;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.review-verified {
    color: #10b981;
    font-size: 0.85em;
    font-weight: 600;
}

/* ============ REVIEW FORM MODAL ============ */
#reviewFormModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

#reviewFormModal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in;
}

.review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.review-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: slideUp 0.3s ease-out;
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid #dbeafe;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.review-modal-header h2 {
    color: #1e40af;
    margin: 0;
    font-size: 1.5em;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #1e40af;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.2);
}

.review-form {
    padding: 30px;
}

.rating-input {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.star {
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.star:hover,
.star.active {
    transform: scale(1.2);
    opacity: 1;
}

.review-form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background-color: #dbeafe;
    color: #1e40af;
    border: 2px solid #93c5fd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #bfdbfe;
    border-color: #3b82f6;
}

.btn-submit-review {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .reviews-container {
        padding: 15px;
    }

    .review-stats {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        gap: 10px;
    }

    .review-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .rating-input {
        justify-content: center;
    }

    .star {
        font-size: 1.8em;
    }
}

/* ============ UTILITY CLASSES ============ */

/* ============ CHECKOUT PAGE ============ */
.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    min-height: calc(100vh - 70px);
}

.checkout-content h2 {
    color: #1e40af;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-summary {
        position: static;
        order: 2;
    }
    
    .checkout-form {
        order: 1;
    }
}

.order-summary {
    background-color: #f8fafc;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

@media (max-width: 768px) {
    .order-summary {
        padding: 20px 15px;
    }
}

.order-summary h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.checkout-items {
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #dbeafe;
    gap: 10px;
}

.checkout-item-name {
    color: #333;
    font-weight: 600;
    flex: 1;
    font-size: 0.95em;
}

.checkout-item-price {
    color: #1e40af;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.summary-divider {
    height: 2px;
    background-color: #dbeafe;
    margin: 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    color: #666;
    font-size: 0.95em;
}

.summary-row.total {
    font-size: 1.2em;
    font-weight: 700;
    color: #1e40af;
    padding-top: 15px;
    border-top: 2px solid #dbeafe;
}

.checkout-form {
    background-color: #ffffff;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 25px;
}

@media (max-width: 768px) {
    .checkout-form {
        padding: 20px 15px;
    }
}

.checkout-form h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.2em;
}

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

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

.form-group label {
    display: block;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dbeafe;
    border-radius: 6px;
    font-size: 1em;
    background-color: #f0f9ff;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .form-group input,
    .form-group select {
        padding: 14px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1e40af;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.form-group.checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.btn-proceed {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-proceed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* ============ PAYMENT PAGE ============ */
.payment-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    min-height: calc(100vh - 70px);
}

.payment-content h2 {
    color: #1e40af;
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 992px) {
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-review {
        position: static;
        order: 2;
    }
    
    .payment-method {
        order: 1;
    }
}

.payment-method {
    background-color: #f8fafc;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 25px;
}

@media (max-width: 768px) {
    .payment-method {
        padding: 20px 15px;
    }
}

.payment-method h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
}

.payment-option input {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #1e40af;
}

.payment-option label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: #ffffff;
    border: 2px solid #dbeafe;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    font-weight: 500;
    min-height: 60px;
}

@media (max-width: 480px) {
    .payment-option label {
        padding: 18px 15px;
        font-size: 1em;
    }
}

.payment-option input:checked + label {
    background-color: #dbeafe;
    border-color: #1e40af;
    color: #1e40af;
}

.payment-icon {
    font-size: 1.5em;
}

.payment-form {
    animation: fadeIn 0.3s ease-in;
}

#otherPaymentMessage {
    background-color: #dbeafe;
    border: 2px solid #1e40af;
    border-radius: 6px;
    padding: 20px;
    color: #1e40af;
    font-size: 0.95em;
    line-height: 1.5;
}

#otherPaymentMessage strong {
    font-weight: 700;
}

.order-review {
    background-color: #f8fafc;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

@media (max-width: 768px) {
    .order-review {
        padding: 20px 15px;
    }
}

.order-review h3 {
    color: #1e40af;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.payment-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 0.9em;
    gap: 10px;
}

@media (max-width: 480px) {
    .payment-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 15px;
    }
}

.payment-item-name {
    color: #333;
    font-weight: 600;
    flex: 1;
}

.payment-item-price {
    color: #1e40af;
    white-space: nowrap;
}

.payment-summary-divider {
    height: 2px;
    background-color: #dbeafe;
    margin: 15px 0;
}

.payment-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #666;
    font-size: 0.9em;
}

.payment-summary-row.total {
    font-size: 1.1em;
    font-weight: 700;
    color: #1e40af;
    padding-top: 10px;
    border-top: 2px solid #dbeafe;
}

.security-info {
    background-color: #dbeafe;
    border: 2px solid #1e40af;
    border-radius: 6px;
    padding: 12px;
    color: #1e40af;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    font-size: 0.9em;
}

.btn-complete-payment {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-complete-payment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* ============ SUCCESS PAGE ============ */
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    padding: 30px;
}

.success-content {
    background-color: #ffffff;
    border: 2px solid #1e40af;
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(30, 64, 175, 0.2);
    max-width: 500px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    font-size: 3em;
    margin-bottom: 20px;
}

.success-content h1 {
    color: #1e40af;
    font-size: 2em;
    margin-bottom: 10px;
}

.success-content > p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.order-confirmation {
    background-color: #f8fafc;
    border: 2px solid #dbeafe;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #dbeafe;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-item span {
    color: #666;
}

.confirmation-item strong {
    color: #1e40af;
    font-weight: 700;
}

.confirmation-message {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 25px;
}

.btn-continue-shopping {
    padding: 14px 30px;
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

/* ============ UTILITY CLASSES ============ */

/* ============ RESPONSIVE ============ */
/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
        order: 2;
    }

    .logo {
        order: 1;
        font-size: 1.5em;
    }

    .nav-right {
        order: 3;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
        flex-direction: column;
        gap: 0;
        margin: 0;
        width: 100%;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        order: 4;
    }

    .nav-menu.active {
        max-height: 500px;
        padding: 15px 0;
    }

    .nav-menu a {
        margin: 0;
        padding: 15px 30px;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Small screens (mobile phones) */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: auto;
        min-height: 60px;
    }

    .logo {
        font-size: 1.3em;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        top: 60px;
    }

    .nav-right {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .search-container {
        flex: 1 1 100%;
        order: 5;
    }

    .search-container input {
        width: 100%;
        font-size: 0.9em;
    }

    .cart-icon {
        font-size: 0.9em;
    }

    .btn-logout {
        padding: 8px 16px;
        font-size: 0.85em;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .hero-section {
        margin-left: 15px;
        margin-right: 15px;
        padding: 40px 20px;
    }

    .hero-section h2 {
        font-size: 1.8em;
    }

    .filter-section,
    .products-container {
        padding: 15px;
    }

    .checkout-container,
    .payment-container {
        padding: 20px 15px;
    }

    .checkout-content h2,
    .payment-content h2 {
        font-size: 1.6em;
    }

    .summary-row,
    .payment-summary-row {
        font-size: 0.9em;
    }

    .btn-proceed,
    .btn-complete-order {
        padding: 16px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 90%;
    }

    .login-container {
        padding: 30px 20px;
    }

    .checkout-content h2,
    .payment-content h2 {
        font-size: 1.4em;
    }

    .order-summary h3,
    .checkout-form h3,
    .payment-method h3,
    .order-review h3 {
        font-size: 1.1em;
    }

    .category-buttons {
        gap: 8px;
    }

    .category-btn {
        padding: 10px 15px;
        font-size: 0.85em;
    }
}
