/* Best Fashion - Premium Kids Wear Theme */
:root {
    --primary-color: #ff6b6b;
    /* Playful Pink/Red */
    --secondary-color: #4ecdc4;
    /* Fresh Mint/Blue */
    --accent-color: #ffe66d;
    /* Sunny Yellow */
    --dark-text: #2d3436;
    --light-text: #636e72;
    --bg-color: #f7f9fc;
    --white: #ffffff;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.cta-btn {
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    animation: fadeInUp 1s ease 0.6s backwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
    background-color: #ff5252;
}

/* Products Section */
.products-section {
    padding: 4rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.product-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.product-price {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.buy-btn-small {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover .buy-btn-small {
    background: var(--primary-color);
    color: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 25px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: zoomIn 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.modal-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.color-selection {
    margin-bottom: 2rem;
    text-align: left;
}

.color-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-text);
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.color-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.color-btn.selected {
    border-color: var(--dark-text);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--dark-text);
}

.color-btn:hover {
    transform: scale(1.1);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

/* About & Contact Styles */
.page-header {
    background-color: #fdf2f2;
    padding: 4rem 5%;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.content-section {
    padding: 4rem 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.contact-info-item {
    margin-bottom: 2rem;
}

.contact-info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Footer */
footer {
    background: #2d3436;
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        /* Hide for now, can add JS toggle if needed but keeping simple */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Mobile Product Grid Layout - Dense to show ~8 products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns side-by-side */
        gap: 0.8rem;
        /* Tighter gap */
        padding: 0 0.5rem;
        /* Less container padding */
    }

    .products-section {
        padding: 2rem 2%;
        /* Compact section padding */
    }

    .product-card {
        border-radius: 12px;
        /* Smaller radius */
    }

    .product-image {
        height: 140px;
        /* Significantly smaller image height */
    }

    .product-info {
        padding: 0.8rem 0.5rem;
        /* Compact info padding */
    }

    .product-name {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .buy-btn-small {
        margin-top: 0.5rem;
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}