:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #e0e0e0;
    --secondary-text: #a0a0a0;
    --card-bg: #1a1a1a;
    --primary-btn: #ffffff;
    --primary-btn-text: #000000;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
    --glass-bg: rgba(26, 26, 26, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-text);
}

.cart-icon {
    position: relative;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-color);
    color: var(--bg-color);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: radial-gradient(circle at center, #2a2a2a 0%, #0d0d0d 100%);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-btn);
    color: var(--primary-btn-text);
    font-weight: 600;
    border-radius: 50px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    animation: fadeInUp 1.2s ease-out;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Products Section */
.products-section {
    padding: 5rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--secondary-text);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-speed);
    position: relative;
    border: 1px solid var(--glass-border);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    /* Square images */
    object-fit: cover;
    background: #222;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--secondary-text);
    font-size: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.add-to-cart-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: #111;
    z-index: 2000;
    padding: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.item-details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.item-price {
    color: var(--secondary-text);
    font-size: 0.85rem;
}

.cart-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-btn);
    color: var(--primary-btn-text);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--secondary-text);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: var(--font-main);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3000;
}

.toast {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    animation: slideIn 0.3s forwards, fadeOut 0.3s forwards 2.7s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.toast-icon {
    color: #4CAF50;
}

.toast-message {
    font-size: 0.95rem;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.7);
}

.checkout-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #151515;
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    transition: transform 0.3s;
}

.checkout-modal.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    margin-bottom: 0.5rem;
}

.modal-content p {
    color: var(--secondary-text);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
    appearance: none;
    /* Remove default arrow */
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-color);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.cancel-btn,
.pay-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    border: none;
    font-family: var(--font-main);
}

.cancel-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pay-btn {
    background: var(--text-color);
    color: var(--bg-color);
}

.pay-btn:hover {
    background: #e0e0e0;
}

/* Page Headers & Content */
.page-header {
    padding: 8rem 1rem 4rem;
    text-align: center;
    background: radial-gradient(circle at center, #1f1f1f 0%, #0d0d0d 100%);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

.page-content {
    padding: 8rem 5% 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-block {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--secondary-text);
    line-height: 1.8;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    margin-top: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: #e0e0e0;
}

/* Tracking Page Styles */
.tracking-container {
    max-width: 700px;
    margin: 0 auto;
}

.tracking-search {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tracking-input {
    flex-grow: 1;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1.1rem;
}

.tracking-input:focus {
    outline: none;
    border-color: var(--text-color);
}

.primary-btn {
    padding: 0 2rem;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.primary-btn:hover {
    background: #e0e0e0;
}

.tracking-result {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    animation: fadeInUp 0.5s ease-out;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.order-date {
    color: var(--secondary-text);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-track {
    margin: 2rem 0;
    padding: 0 1rem;
}

#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    padding: 0;
    position: relative;
}

#progressbar li {
    list-style-type: none;
    color: var(--secondary-text);
    text-transform: uppercase;
    font-size: 0.75rem;
    width: 25%;
    float: left;
    position: relative;
    text-align: center;
    z-index: 2;
}

#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 25px;
    height: 25px;
    line-height: 23px;
    display: block;
    font-size: 12px;
    color: var(--secondary-text);
    background: var(--bg-color);
    border: 2px solid var(--secondary-text);
    border-radius: 50%;
    margin: 0 auto 10px auto;
    font-weight: 700;
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: var(--secondary-text);
    position: absolute;
    left: -50%;
    top: 12px;
    z-index: -1;
}

#progressbar li:first-child:after {
    content: none;
}

#progressbar li.active {
    color: var(--text-color);
}

#progressbar li.active:before {
    border-color: var(--text-color);
    color: var(--bg-color);
    background: var(--text-color);
}

#progressbar li.active+li:after {
    background: var(--text-color);
}

/* Order Summary Box */
.order-summary-box {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.order-summary-box h4 {
    margin-bottom: 1rem;
}

#orderItemsList {
    list-style: none;
    margin-bottom: 1rem;
}

#orderItemsList li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--secondary-text);
    font-size: 0.95rem;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--glass-border);
}

.tracking-error {
    text-align: center;
    color: #ff4444;
    padding: 2rem;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.2);
}