/**
 * ============================================================================
 * Alnilen Client Storefront Styles
 * ============================================================================
 */

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --primary-deep: #0A5C5E;
    --primary-blue: #0D7377;
    --accent-cyan: #0E8589;
    --accent-light-cyan: #10969B;
    --accent-green: #0D7377;
    --highlight-pink: #E91E63;
    --highlight-orange: #FF5722;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-gray: #64748B;
    --text-light: #94A3B8;
    --border-light: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 10px;
}

/* ============================================================
   Utility
   ============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   Top Bar
   ============================================================ */
.top-bar {
    background: var(--primary-deep);
    color: white;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.top-bar-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    padding: 0 8px;
}

.top-bar-links a:hover { color: white; }

.top-bar-links .login-link {
    color: #F472B6;
    font-weight: 500;
}

.top-bar-links .login-link:hover { color: #F9A8D4; }

.top-bar-separator {
    color: rgba(255,255,255,0.3);
    margin: 0 5px;
}

.sdg-badge {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
}

.top-bar-announcement {
    font-size: 13px;
    color: rgba(255,255,255,0.95);
}

/* Mobile top controls — hidden on desktop, shown on mobile */
.top-bar-mobile {
    display: none;
    align-items: center;
    gap: 8px;
}

.top-bar-mobile a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.top-bar-mobile .login-link {
    color: #F472B6;
    font-weight: 500;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.dark-mode-toggle:hover { color: #FCD34D; }

/* ============================================================
   Dark Mode
   ============================================================ */
html.dark-mode {
    --bg-light: #0F172A;
    --bg-white: #1E293B;
    --text-dark: #F1F5F9;
    --text-gray: #94A3B8;
    --text-light: #64748B;
    --border-light: #334155;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}

html.dark-mode .top-bar {
    background: #0B1120;
}

html.dark-mode .header {
    background: linear-gradient(to left, #0F766E, #0A4A4C, #071E22);
}

/* nav-bar inherits header gradient — no separate dark override needed */

html.dark-mode .newsletter-section {
    background: linear-gradient(135deg, #071E22 0%, #0A4A4C 50%, #0A5C5E 100%);
}

html.dark-mode .footer {
    background: #0B1120;
}

html.dark-mode .search-bar input {
    color: var(--text-dark);
}

html.dark-mode .categories-panel {
    background: var(--bg-white);
}

html.dark-mode .categories-panel-list a {
    color: var(--text-dark);
    border-bottom-color: var(--border-light);
}

/* ============================================================
   Header
   ============================================================ */
.header {
    background: linear-gradient(to left, #14B8A6, #0D7377, #0A5C5E);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo { flex-shrink: 0; }

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img { transform: scale(1.05); }

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 600px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.search-bar input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

.search-bar input::placeholder { color: var(--text-light); }

.search-btn {
    background: var(--bg-light);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover { background: var(--border-light); }

.search-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-gray);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}

.header-action:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.header-action svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.header-action:hover svg { transform: scale(1.1); }

.header-action span {
    font-size: 12px;
    font-weight: 500;
}

.header-action .badge {
    position: absolute;
    top: 5px;
    left: 10px;
    background: var(--highlight-pink);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce-in 0.5s ease;
}

@keyframes bounce-in {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================================
   Navigation Bar (inside header, below search)
   ============================================================ */
.nav-bar {
    margin-top: 12px;
}

.nav-bar-inner {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.nav-bar-inner::-webkit-scrollbar { display: none; }

.nav-bar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 13.5px;
    border-radius: 50px;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    cursor: pointer;
    font-family: inherit;
}

.nav-bar-item:hover {
    background: rgba(255,255,255,0.18);
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.nav-bar-item.hot {
    background: rgba(252, 211, 77, 0.15);
    color: #FCD34D;
    border-color: rgba(252, 211, 77, 0.3);
}
.nav-bar-item.hot:hover {
    background: rgba(252, 211, 77, 0.25);
}

/* Active nav item */
.nav-bar-item.active {
    background: rgba(255,255,255,0.22);
    color: white;
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 8px rgba(255,255,255,0.1);
}
.nav-bar-item.hot.active {
    background: rgba(252, 211, 77, 0.28);
    border-color: rgba(252, 211, 77, 0.5);
}

.nav-bar-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Categories toggle — hidden on desktop (sidebar visible), shown <=1200px */
.nav-bar-item.categories-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.25);
    font-weight: 600;
}

/* Mobile Categories Slide-in Panel */
.categories-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-overlay.open {
    display: block;
    opacity: 1;
}

.categories-panel {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-white);
    z-index: 2001;
    box-shadow: var(--shadow-xl);
    transition: right 0.35s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.categories-panel.open {
    right: 0;
}

.categories-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    color: white;
    flex-shrink: 0;
}

.categories-panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.categories-panel-close {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.3s ease;
}

.categories-panel-close:hover {
    background: rgba(255,255,255,0.3);
}

.categories-panel-list {
    flex: 1;
    overflow-y: auto;
}

.categories-panel-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.categories-panel-list a:last-child { border-bottom: none; }

.categories-panel-list a:hover {
    background: var(--bg-light);
    color: var(--primary-blue);
    padding-right: 30px;
}

.categories-panel-list a svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-cyan);
    flex-shrink: 0;
}

/* Prevent body scroll when panel is open */
body.categories-open { overflow: hidden; }

/* Legacy nav-links removed — replaced by .nav-bar */

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section { padding: 25px 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 20px;
    min-height: 500px;
}

/* Sidebar Categories */
.sidebar-categories {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    color: white;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-list { list-style: none; }

.sidebar-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-list li:last-child a { border-bottom: none; }

.sidebar-list li a:hover {
    background: linear-gradient(90deg, rgba(0, 200, 232, 0.1), transparent);
    color: var(--primary-blue);
    padding-right: 25px;
}

.sidebar-list li a svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: all 0.3s ease;
}

.sidebar-list li a:hover svg { opacity: 1; }

.sidebar-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item-label i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--primary-teal);
    flex-shrink: 0;
}

.sidebar-list li a:hover .sidebar-item-label i {
    color: var(--primary-blue);
}

/* Slide-in panel icons */
.categories-panel-list a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
    color: var(--primary-teal);
}

/* Hero Slider */
.hero-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 300px;
    aspect-ratio: 16 / 9;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active { opacity: 1; }

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

.hero-slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 60px 40px 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
}

.hero-slide-tag {
    display: inline-block;
    background: var(--accent-cyan);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    animation: slide-in-right 0.6s ease;
}

.hero-slide-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    animation: slide-in-right 0.6s ease 0.1s backwards;
}

.hero-slide-discount {
    font-size: 48px;
    font-weight: 900;
    color: var(--highlight-pink);
    margin-bottom: 20px;
    animation: slide-in-right 0.6s ease 0.2s backwards;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: slide-in-right 0.6s ease 0.3s backwards;
}

.hero-slide-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(-5px);
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--accent-cyan);
    width: 30px;
    border-radius: 10px;
}

/* Side Banners */
.hero-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-banner {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.4s ease;
}

.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-banner:hover img { transform: scale(1.05); }

.promo-banner-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    color: white;
}

.promo-banner-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.promo-banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-banner-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-light-cyan);
}

.promo-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.promo-banner:hover .promo-banner-link {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Features Section
   ============================================================ */
.features-section { padding: 30px 0; }

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

.feature-card {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 200, 232, 0.1), rgba(0, 191, 165, 0.1));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--accent-cyan);
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ============================================================
   Section Header (shared)
   ============================================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
}

.section-title-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.section-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.section-link:hover {
    color: var(--accent-cyan);
    gap: 12px;
}

/* ============================================================
   Products Section
   ============================================================ */
.products-section { padding: 40px 0; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.product-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.product-badge.sale { background: var(--highlight-pink); }
.product-badge.new { background: var(--accent-green); }
.product-badge.hot { background: var(--highlight-orange); }

/* Product Image */
.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Product Actions (hover overlay) */
.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.product-action-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.product-action-btn:hover { background: var(--primary-blue); }
.product-action-btn:hover svg { fill: white; }

.product-action-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--text-dark);
    transition: fill 0.3s ease;
}

/* Product Info */
.product-info { padding: 20px; }

.product-category {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover { color: var(--primary-blue); }

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: #FFC107;
    font-size: 13px;
}

.product-rating .count {
    font-size: 12px;
    color: var(--text-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 20px;
    font-weight: 800;
    color: var(--highlight-pink);
}

.product-price .old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ============================================================
   Categories Section
   ============================================================ */
.categories-section {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary-deep), var(--primary-blue));
}

.category-card:hover .category-icon svg { fill: white; }

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 200, 232, 0.1), rgba(0, 191, 165, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.category-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-blue);
    transition: fill 0.4s ease;
}

.category-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-count {
    font-size: 13px;
    color: var(--text-gray);
}

/* ============================================================
   Banner Section
   ============================================================ */
.banner-section { padding: 40px 0; }

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.banner-card {
    position: relative;
    height: 280px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.banner-card:hover::before {
    background: linear-gradient(135deg, rgba(61, 61, 143, 0.7) 0%, rgba(0, 200, 232, 0.4) 100%);
}

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

.banner-card:hover img { transform: scale(1.1); }

.banner-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.banner-subtitle {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.banner-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    width: fit-content;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: var(--accent-cyan);
    color: white;
}

/* ============================================================
   Newsletter Section
   ============================================================ */
.newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-blue) 50%, var(--accent-cyan) 100%);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.newsletter-text { color: white; }

.newsletter-text h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3);
}

.newsletter-form button {
    padding: 18px 40px;
    background: var(--highlight-pink);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--highlight-orange);
    transform: scale(1.05);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .logo { margin-bottom: 20px; }

.footer-about .logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.footer-contact li svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

.footer-payments {
    display: flex;
    gap: 15px;
}

.footer-payments img {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-payments img:hover { opacity: 1; }

/* ============================================================
   Animations
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Touch-friendly
   ============================================================ */
@media (hover: none) {
    .product-actions {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    .promo-banner-link {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Responsive: <= 1200px
   ============================================================ */
@media (max-width: 1200px) {
    .hero-grid { grid-template-columns: 1fr 300px; }
    .sidebar-categories { display: none; }
    .nav-bar-item.categories-toggle { display: flex; }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Responsive: <= 992px
   ============================================================ */
@media (max-width: 992px) {
    .top-bar-links { display: none; }
    .top-bar-announcement { display: none; }
    .top-bar-mobile { display: flex; }
    .top-bar-content { justify-content: center; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-banners { flex-direction: row; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .banner-grid { grid-template-columns: repeat(2, 1fr); }
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    /* nav-bar scrolls horizontally on smaller screens */
}

/* ============================================================
   Responsive: <= 768px — Bottom Nav Bar
   ============================================================ */
@media (max-width: 768px) {
    .top-bar { padding: 8px 0; }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    .logo img { height: 40px; }
    .search-container {
        order: 3;
        width: 100%;
        max-width: none;
    }
    .header-actions { gap: 5px; }
    .header-action { padding: 8px 10px; }
    .header-action span { display: none; }

    /* Nav bar compact on mobile */
    .nav-bar { margin-top: 10px; }

    .nav-bar-item {
        padding: 7px 12px;
        font-size: 12px;
        gap: 5px;
    }

    .nav-bar-item span { display: none; }

    .nav-bar-item svg {
        width: 20px;
        height: 20px;
    }

    /* Show text only for categories toggle */
    .nav-bar-item.categories-toggle span { display: inline; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .banner-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .section-title h2 { font-size: 22px; }
    .hero-slide-title { font-size: 24px; }
    .hero-slide-discount { font-size: 36px; }
}

/* ============================================================
   Responsive: <= 480px
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-banners { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-info { padding: 12px; }
    .product-name { font-size: 13px; }
    .product-price .current { font-size: 16px; }
    .product-image { height: 180px; }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card { padding: 20px 15px; }
    .category-icon { width: 60px; height: 60px; }
    .category-icon svg { width: 30px; height: 30px; }

    .newsletter-form { flex-direction: column; }
    .newsletter-form input,
    .newsletter-form button { width: 100%; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-main { aspect-ratio: 4 / 3; min-height: 250px; }
    .hero-slide-content { padding: 30px 20px 25px; }
    .hero-slide-title { font-size: 20px; }
    .hero-slide-discount {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .hero-slide-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    .promo-banner-content { padding: 20px; }
    .promo-banner-title { font-size: 16px; }
    .promo-banner-price { font-size: 24px; }
}
