@import url('./navbar.css');
@import url('./loader.css');
@import url('./logo.css');
/* Layout & Components */

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--container-width);
    z-index: 1000;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 35px;
    width: auto;
    margin-right: 12px;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

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

.cart-icon {
    position: relative;
    font-size: 1.2rem;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}

/* Sections */
section {
    padding: 100px 0;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #112240 0%, #0a192f 100%);
    padding-top: var(--header-height);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.product-card {
    padding: 20px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure uniform height */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.p-info h3 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.2rem;
}

.p-info .price {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.p-info button {
    width: 100%;
    margin-top: auto;
    /* Push button to bottom */
}

/* Mobile Responsive Grid */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns fixed */
        gap: 12px;
        /* Smaller gap */
        padding: 20px 0;
    }

    .product-card {
        padding: 10px;
        /* Reduced padding */
    }

    .product-card img {
        height: 150px;
        /* Smaller image height */
        margin-bottom: 10px;
    }

    .p-info h3 {
        font-size: 0.95rem;
        /* Smaller font */
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .p-info .price {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .p-info button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}