* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h2 {
    color: #4facfe;
    font-weight: 800;
    letter-spacing: 1px;
}

.track-btn {
    background: transparent;
    border: 1px solid #4facfe;
    color: #4facfe;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.track-btn:hover {
    background: #4facfe;
    color: white;
}

.cart-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.cart-btn:hover {
    background: #334155;
}

#cart-count {
    background: #4facfe;
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.slider-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Dark overlay */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.cta-btn {
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.3);
}

/* Products Section */
.products-section {
    padding: 80px 40px;
    min-height: 50vh;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header .line {
    height: 4px;
    width: 60px;
    background: #4facfe;
    margin: 0 auto;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.8);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 10px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.product-info p {
    color: #94a3b8;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4facfe;
    display: block;
    margin-bottom: 20px;
}

.add-to-cart {
    width: 100%;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid #4facfe;
    color: #4facfe;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart:hover {
    background: #4facfe;
    color: white;
}

/* Footer */
footer {
    background: #0b1121;
    padding: 60px 40px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-content h3, .footer-content h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-content p, .footer-content a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-content a:hover {
    color: #4facfe;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #64748b;
    font-size: 0.8rem;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    transition: right 0.3s;
}

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

.cart-sidebar {
    position: absolute;
    right: 0; top: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-header button {
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
}

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

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.cart-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
}

.cart-item-info h4 { font-size: 1rem; }
.cart-item-info p { color: #94a3b8; font-size: 0.9rem; margin-top: 5px;}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 5px;
}

.qty-controls button {
    background: none; border: none; color: white; cursor: pointer; padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    background: #4facfe;
    color: white; border: none; padding: 15px;
    border-radius: 12px; font-weight: bold; font-size: 1.1rem;
    cursor: pointer;
}

/* Checkout Overlay */
.checkout-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.checkout-overlay.active {
    display: flex;
}

.checkout-box {
    background: #1e293b;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}

.checkout-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px;
}

.checkout-header button {
    background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer;
}

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

.input-group label {
    display: block; margin-bottom: 8px; color: #cbd5e1; font-size: 0.9rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
}

.input-group textarea {
    height: 100px; resize: none;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: #4facfe;
}

.payment-options {
    display: flex; gap: 15px; margin-top: 5px;
}
.pay-option {
    background: rgba(255,255,255,0.05);
    padding: 10px 15px; border-radius: 8px;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; border: 1px solid rgba(255,255,255,0.1);
    flex: 1; font-size: 14px; color: white;
}
.pay-option:hover { background: rgba(255,255,255,0.1); }

.place-order-btn {
    width: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    color: white; border: none; padding: 15px;
    border-radius: 12px; font-weight: bold; font-size: 1.1rem;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.auth-tab {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.auth-tab.active {
    background: #4facfe;
    border-color: #4facfe;
}
.auth-box {
    width: 450px !important;
}

/* History Cards */
.history-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}
.history-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 10px;
}
.history-header h4 { color: #4facfe; }
.status-badge {
    padding: 4px 10px; border-radius: 15px; font-size: 12px; font-weight: bold; text-transform: capitalize;
}
.status-pending { background: rgba(234,179,8,0.2); color: #facc15; }
.status-delivered { background: rgba(34,197,94,0.2); color: #4ade80; }
.status-cancelled, .status-returned { background: rgba(239,68,68,0.2); color: #f87171; }
.status-out_for_delivery { background: rgba(59,130,246,0.2); color: #60a5fa; }

.history-items p { font-size: 13px; color: #cbd5e1; margin-bottom: 4px; }
.history-total { font-weight: bold; margin-top: 10px; color: white; }

.history-actions {
    display: flex; justify-content: flex-end; margin-top: 10px; gap: 10px;
}
.action-btn {
    background: transparent; border: 1px solid #ef4444; color: #ef4444;
    padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: bold; cursor: pointer;
}
.action-btn:hover { background: #ef4444; color: white; }
.action-btn.return { border-color: #f59e0b; color: #f59e0b; }
.action-btn.return:hover { background: #f59e0b; color: white; }

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error {
    background: #ef4444;
}
