:root {
    --primary-color: #2f153f;
    --secondary-color: #f5f5f7;
    --text-color: #1d1d1f;
    --light-text-color: #86868b;
    --border-color: #d2d2d7;
    --white-color: #ffffff;
    --black-color: #000000;
    --gradient-light: linear-gradient(135deg, #e6f2ff, #d9e8ff);
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--white-color);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

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

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-top {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 2rem;
    color: var(--text-color);
}

.header-search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0 2rem;
}

.shop-now-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 1rem;
}

.search-box {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    flex-grow: 1;
    max-width: 400px;
}

.search-box input {
    border: none;
    padding: 0.75rem;
    outline: none;
    width: 100%;
}

.search-box button {
    background: none;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    color: var(--light-text-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.action-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.action-item i {
    font-size: 1.5rem;
    color: var(--light-text-color);
}

.action-item .badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-bottom {
    padding: 0.5rem 0;
}

.header-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-bottom-right {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text-color);
}

.header-bottom-right span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.hero-main {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #005cb9;
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.hero-slide-content {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: var(--white-color);
}

.hero-slide-content .subtitle {
    font-weight: 500;
}

.hero-slide-content .title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.btn-primary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1.5rem;
}

.slider-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.slider-nav button {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.dot.active {
    background-color: var(--white-color);
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
}

.side-banner {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    color: var(--white-color);
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.banner-content p {
    font-size: 0.9rem;
}

.banner-content h3 {
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

.banner-content a {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.banner-1 { background-color: #6e48aa; }
.banner-2 { background-color: #1d1d1f; }

/* Categories Section */
.categories-section {
    padding: 2rem 0;
}

.categories-slider {
    background: var(--gradient-light);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.categories-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-wrapper::-webkit-scrollbar {
    display: none;
}

.category-item {
    text-align: center;
    flex-shrink: 0;
}

.category-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.category-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.slider-btn {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Features Section */
.features-section {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
}

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

/* Featured Products Section */
.featured-products-section {
    padding: 2rem 0;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    height: 400px;
}

.featured-card {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--text-color);
}

.featured-card:nth-child(1) { background-color: #f0f4f8; }
.featured-card:nth-child(2) { background-color: #fde2e4; }
.featured-card:nth-child(3) { background-color: #d4f1f4; }

/* Product Grid Section */
.product-grid-section {
    padding: 3rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--light-text-color);
    text-transform: uppercase;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-search-container {
        margin: 0 1rem;
    }
    .nav-list, .header-bottom-right {
        gap: 1rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: auto;
    }
    .featured-card:nth-child(1) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    .header-search-container {
        order: 3;
        width: 100%;
        margin: 0;
    }
    .header-bottom {
        display: none; /* Simple solution for mobile, can be replaced with a burger menu */
    }
    .hero-side {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .featured-grid {
        grid-template-columns: 1fr;
    }
}
