/* Variables */
:root {
    --primary: #EC1313;
    --primary-hover: #D01111;
    --bg: #F7F7F7;
    --text: #1A202C;
    --text-light: #4A5568;
    --white: #FFFFFF;
    --footer-bg: #000000;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: block;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Animations */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/**** Navigation ****/
.navbar {
    background-color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.1;
}

.logo-circle {
    background-color: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg);
    border-radius: 20px;
    padding: 8px 16px;
    width: 300px;
    border: 1px solid var(--border);
    position: relative;
}

.ajax-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
}

.ajax-search-results.active {
    display: block;
}

.ajax-search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
}

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

.ajax-search-item:hover {
    background-color: var(--bg);
}

.ajax-search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

.ajax-search-info {
    display: flex;
    flex-direction: column;
}

.ajax-search-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.ajax-search-price {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.ajax-search-empty {
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.search-bar i {
    color: var(--text-light);
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text);
}

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

.nav-links a {
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
}

/**** Hero Section ****/
.hero {
    margin-top: 80px;
    padding: 6rem 0;
    background-color: var(--white);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.5s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/**** Categories Section ****/
.categories {
    padding: 5rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 991px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 575px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .category-card {
        height: 280px;
    }
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
}

.category-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/**** Features Section ****/
.features {
    padding: 4rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background-color: var(--bg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/**** Highlights Section ****/
.highlights {
    padding: 5rem 0;
}

.highlight-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    background-color: var(--white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.highlight-features {
    flex: 1;
}

.highlight-features h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.highlight-features ul {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.highlight-features li {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.highlight-features li i {
    color: var(--primary);
    font-size: 1.5rem;
}

.highlight-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.highlight-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--primary);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.highlight-image img {
    position: relative;
    z-index: 1;
    max-height: 500px;
    transition: transform 0.5s ease;
}

.highlight-image img:hover {
    transform: scale(1.05) rotate(2deg);
}

/**** Products Section ****/
.products {
    padding: 5rem 0;
    background-color: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px 20px 20px;
    text-decoration: none;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #d32f2f;
    color: var(--white);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.product-img-wrapper {
    height: 220px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    margin-bottom: 25px;
}

.product-img-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: transparent;
}

.product-info h3 {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #000000;
    letter-spacing: 0;
    line-height: 1.3;
}

.product-info .weight {
    display: none;
}

.product-info .price {
    font-size: 18px;
    font-weight: 800;
    color: #1a4f9a; /* Matches the blue price from screenshot */
    margin-top: auto;
}

/**** Footer ****/
.footer {
    background-color: var(--footer-bg);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #A0AEC0;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: #A0AEC0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    background-color: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #A0AEC0;
    font-size: 0.9rem;
}



/**** Responsiveness ****/
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .highlight-container {
        flex-direction: column;
        text-align: center;
        padding: 3rem 2rem;
    }
    .highlight-features ul {
        align-items: center;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .product-layout {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .search-bar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    /* Mobile Nav Active */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        gap: 1.5rem;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .category-grid, .features-grid, .shop-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .social-icons {
        justify-content: center;
    }
    
    .tab-headers {
        flex-direction: column;
    }
}

