* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --secondary: #2C3E50;
    --text: #2C3E50;
    --text-light: #7F8C8D;
    --border: #ECF0F1;
    --bg: #FFFFFF;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background: var(--secondary);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 25px;
}

.top-bar-right span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-left {
    display: flex;
    gap: 15px;
}

.top-bar a {
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}


.top-bar a:hover {
    background: rgba(255,255,255,0.1);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 10px 0;
}

.logo img {
    height: 140px;
    width: auto;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 14px 60px 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

.search-btn {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    gap: 30px;
}

.header-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.header-link:hover {
    color: var(--primary);
}

.header-link i {
    font-size: 24px;
}

.badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
    display: none;
}

/* Main Navigation */
.main-nav {
    border-top: 1px solid var(--border);
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
}

.nav-item {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 16px 24px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.main-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 1000px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 1px;
    z-index: 1000;
    overflow: hidden;
    padding: 20px;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.dropdown-column {
    text-align: right;
}

.dropdown-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.dropdown-item {
    display: block;
    padding: 8px 0;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    text-align: right;
    border-right: 3px solid transparent;
}

.dropdown-item:hover {
    color: var(--primary);
    padding-right: 10px;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 12px;
    margin-right: 8px;
    transition: transform 0.3s;
    display: inline-block;
}

.dropdown-toggle:hover::after {
    transform: rotate(180deg);
}


/* Hero Slider */
.hero-slider {
    position: relative;
    margin: 70px 0;
}

.slider-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.slide {
    display: none;
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    opacity: 1;
}

.slide-content {
    padding: 60px;
    color: white;
    z-index: 2;
}

.slide-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: #f5576c;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-hero:hover {
    transform: translateY(-2px);
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.slider-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-dot.active {
    background: white;
    border-color: var(--primary);
    transform: scale(1.2);
}

/* Sections */
.section {
    padding: 70px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
}

.view-all-link:hover {
    gap: 12px;
}


/* Categories */
.categories-section {
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.category-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.category-info {
    padding: 20px;
    text-align: center;
}

.category-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.product-wishlist:hover {
    transform: scale(1.1);
}

.product-wishlist i {
    color: var(--text-light);
    font-size: 18px;
}

.product-wishlist.active i {
    color: var(--primary);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    cursor: pointer;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    height: 44px;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

.stars {
    color: #f39c12;
}

.rating-count {
    color: var(--text-light);
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.old-price {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 10px;
}

.btn-add-cart {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-add-cart:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}


/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
}

.promo-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.promo-item i {
    font-size: 48px;
}

.promo-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-item p {
    font-size: 14px;
}

/* Deals Section */
.deals-section {
    padding: 0;
    margin: 70px 0;
}

.deals-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 400px;
}

.deals-content {
    padding: 60px;
    color: white;
}

.deals-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.deals-content h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.deals-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-deals {
    display: inline-block;
    background: white;
    color: #f5576c;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-deals:hover {
    transform: translateY(-2px);
}

.deals-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Filters */
.filters-container {
    margin-bottom: 40px;
}

.filters-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-select {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 600;
    min-width: 200px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-reset {
    padding: 12px 24px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reset:hover {
    background: var(--border);
}


/* Newsletter */
.newsletter-section {
    background: var(--secondary);
    padding: 60px 0;
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-text {
    color: white;
}

.newsletter-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
}

.btn-newsletter {
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.btn-newsletter:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 130px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 28px;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-large {
    max-width: 1000px;
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 24px 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .deals-banner {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    
    .slide-content h1 {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}


/* Products Main Section - FIRST */
.products-main-section {
    padding: 40px 0 70px;
    background: var(--bg);
}

.section-header-main {
    text-align: center;
    margin-bottom: 40px;
}

.section-header-main h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header-main p {
    font-size: 18px;
    color: var(--text-light);
}

.filters-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
    padding: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Section Headers Center */
.section-header-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-header-center h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.section-header-center p {
    font-size: 17px;
    color: var(--text-light);
}

/* Categories Section */
.categories-section {
    padding: 70px 0;
    background: var(--bg-light);
}

/* Featured Section */
.featured-section {
    padding: 70px 0;
    background: var(--bg);
}

/* Bestsellers Section */
.bestsellers-section {
    padding: 70px 0;
    background: var(--bg-light);
}
