:root {
    --primary: #f21e25;
    --primary-alt: #d11218;
    --secondary-dark: #071c4d;
    --text-dark: #212529;
    --text-light: #6c757d;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --border: #dee2e6;
    --star-gold: #ffc107;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navbar */
.main-nav {
    background: var(--secondary-dark);
    padding: 0.75rem 0;
    color: white;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-bar {
    flex: 0 0 45%;
    position: relative;
}

.search-bar form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 0.65rem 3rem 0.65rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.875rem;
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-bar button {
    position: absolute;
    right: 0.5rem;
    background: var(--primary);
    border: none;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.search-bar button:hover {
    background: var(--primary-alt);
    transform: scale(1.05);
}

.search-bar button i {
    width: 18px;
    height: 18px;
    color: white;
}

.nav-user-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wishlist-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
}

.wishlist-btn .badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50%;
}

.auth-btn {
    background: var(--primary);
    padding: 0.5rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.auth-btn:hover {
    background: var(--primary-alt);
}

/* Menu Bar */
.menu-bar {
    background: #0a235c;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

.menu-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.menu-links a {
    padding: 0.875rem 0;
    font-weight: 500;
    font-size: 0.9375rem;
    display: block;
    opacity: 0.9;
}

.menu-links a:hover {
    opacity: 1;
    border-bottom: 2px solid var(--primary);
}

.support-center {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.support-center i {
    font-size: 1.25rem;
    color: #aaa;
}

.support-info b {
    color: var(--primary);
    display: block;
    margin-bottom: -4px;
}

.support-info small {
    font-size: 0.7rem;
    color: #999;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 500px;
    background: #f1f5f9;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

/* Category Bubbles */
.category-grid {
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.cat-item {
    text-align: center;
    width: 110px;
    cursor: pointer;
    transform: translateY(0);
    transition: 0.3s;
}

.cat-item:hover {
    transform: translateY(-5px);
}

.cat-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f1f5f9;
    padding: 10px;
    margin: 0 auto 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s;
}

.cat-item:hover .cat-img {
    border-color: var(--primary);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cat-item span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: block;
    line-height: 1.2;
}

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    padding: 1.5rem;
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 10;
    font-weight: 700;
}

.product-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info .cat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    display: block;
}

.product-rating {
    color: var(--star-gold);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.product-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

/* Banners */
.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.promo-card {
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 240px;
    display: flex;
    align-items: center;
}

.promo-pink {
    background: #fdf2f2;
}

.promo-blue {
    background: #edfaff;
}

.promo-content {
    flex: 1;
    z-index: 2;
}

.promo-content h4 {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.promo-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.promo-img {
    position: absolute;
    right: 1rem;
    bottom: 0;
    width: 220px;
    z-index: 1;
    opacity: 0.9;
}

/* Brand Slider */
.brand-slider-container {
    background: #fff;
    padding: 3rem 0;
    border-top: 1px solid #eee;
}

.brand-track {
    display: flex;
    gap: 2rem;
    overflow: hidden;
    white-space: nowrap;
}

.brand-item {
    flex: 0 0 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: 0.3s;
}

.brand-item:hover {
    filter: grayscale(0);
    opacity: 1;
    border-color: var(--primary);
}

.brand-item img {
    max-width: 140px;
    max-height: 70px;
    object-fit: contain;
}

/* Newsletter */
.newsletter-section {
    background: #fdf2f8;
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    overflow: hidden;
    position: relative;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.newsletter-form {
    display: flex;
    margin-top: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid #eee;
    width: 450px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    padding: 0 1.5rem;
    outline: none;
}

.newsletter-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}