/* ============================================
   enilk.com - Premium E-Ticarət Platforması
   REKSTECH MMC | 2023-2026
   CSS Version: 2.0.0
   ============================================ */

/* ---------- CSS RESET ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- ROOT DƏYİŞƏNLƏR ---------- */
:root {
    /* Əsas rənglər */
    --primary: #008081;
    --primary-dark: #006063;
    --primary-light: #e0f0f0;
    --primary-soft: #ccf0f0;
    --secondary: #f5a623;
    --secondary-dark: #e09515;
    --secondary-light: #fef3e0;
    
    /* Neytral rənglər */
    --dark: #1a202c;
    --dark-gray: #2d3748;
    --gray: #718096;
    --light-gray: #f7fafc;
    --border: #e2e8f0;
    --border-dark: #cbd5e0;
    
    /* Status rəngləri */
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #ed8936;
    --info: #3182ce;
    
    /* Kölgələr */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Keçidlər */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Boşluqlar */
    --container-padding: 1rem;
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-full: 9999px;
}

/* ---------- TİPOQRAFİYA ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--dark);
    background-color: var(--light-gray);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- SKROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ---------- ANNOUNCEMENT BAR ---------- */
.announcement-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 0.875rem;
    position: relative;
    z-index: 1001;
}

.announcement-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.announcement-content i:first-child {
    font-size: 1.125rem;
}

.close-announcement {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.close-announcement:hover {
    opacity: 1;
}

/* ---------- MAIN HEADER ---------- */
.main-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Logo */
.logo-area h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo-area span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
}

.logo-tagline {
    font-size: 0.6875rem;
    color: var(--gray);
    margin-top: -0.25rem;
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-fast);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 128, 129, 0.1);
}

.search-wrapper input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9375rem;
}

.search-wrapper button {
    background: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-weight: 500;
}

.search-wrapper button:hover {
    background: var(--primary-dark);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem;
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border);
}

.suggestion-item:hover {
    background: var(--primary-light);
}

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

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: color var(--transition-fast);
    padding: 0.25rem 0;
}

.action-item:hover {
    color: var(--primary);
}

.action-item i {
    font-size: 1.25rem;
}

.action-item span {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--secondary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--border-radius-full);
    min-width: 18px;
    text-align: center;
}

/* User Dropdown */
.action-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    margin-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 100;
}

.action-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ---------- CATEGORY NAVBAR ---------- */
.category-nav {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.category-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-hamburger {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    font-weight: 500;
    cursor: pointer;
}

.category-list {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem 0;
    overflow-x: auto;
    white-space: nowrap;
}

.category-list li a {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.category-list li a:hover,
.category-list li a.active-category {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.campaign-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 1101;
    transition: left var(--transition);
    box-shadow: var(--shadow-xl);
}

.mobile-sidebar.active {
    left: 0;
}

.mobile-sidebar-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-header h3 {
    color: var(--primary);
    margin: 0;
}

.mobile-sidebar-header i {
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-category-list {
    padding: 1rem;
}

.mobile-category-list li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

/* ---------- HERO SLIDER ---------- */
.hero-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
}

.slide.active-slide {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideUp 0.6s ease;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    animation: slideUp 0.6s ease 0.1s backwards;
}

.slide-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    animation: slideUp 0.6s ease 0.2s backwards;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.slider-btn:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.slider-btn.prev {
    left: 1rem;
}

.slider-btn.next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition);
}

.dot.active {
    background: white;
    width: 24px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- FILTER SECTION ---------- */
.filter-section {
    background: white;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 90px;
    z-index: 99;
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-gray);
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range-inputs input {
    width: 100px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    outline: none;
    font-size: 0.875rem;
}

.price-range-inputs input:focus {
    border-color: var(--primary);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    outline: none;
}

.filter-btn, .reset-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: var(--border-radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

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

.filter-btn:hover {
    background: var(--primary-dark);
}

.reset-btn {
    background: var(--light-gray);
    color: var(--dark);
    border: 1px solid var(--border);
}

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

/* ---------- MAIN CONTENT ---------- */
.main-content {
    min-height: 500px;
    padding: 2rem 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
}

.section-header h2 i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

#productCountInfo {
    color: var(--gray);
    font-size: 0.875rem;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.75rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    cursor: pointer;
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    z-index: 2;
}

.product-badge.hot {
    background: var(--warning);
}

.product-badge.discount {
    background: var(--success);
}

.product-image {
    position: relative;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(145deg, #f9fbfd, #f1f5f9);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image i {
    font-size: 80px;
    color: var(--dark-gray);
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn i {
    font-size: 1rem;
    color: var(--gray);
}

.favorite-btn.active i {
    color: var(--danger);
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.product-info {
    padding: 1.25rem;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-light);
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    margin-bottom: 0.75rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.rating i {
    font-size: 0.75rem;
    color: #ffc107;
}

.rating span {
    font-size: 0.75rem;
    color: var(--gray);
    margin-left: 0.25rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.old-price {
    font-size: 0.875rem;
    text-decoration: line-through;
    color: var(--gray);
}

.discount-percent {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

.stock-info {
    font-size: 0.75rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding: 1rem 0;
}

.pagination button {
    background: white;
    border: 1px solid var(--border);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 0.875rem;
    color: var(--gray);
}

/* ---------- DISCOUNT BANNER ---------- */
.discount-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: 2rem 1.5rem;
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: white;
}

.discount-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.discount-content strong {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
}

.copy-code-btn {
    background: white;
    color: var(--primary);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all var(--transition);
}

.copy-code-btn:hover {
    transform: scale(1.02);
}

.discount-timer {
    text-align: center;
}

.timer {
    display: flex;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.timer span {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25re