/* =====================================================
   E-Commerce Store - Modern Design System
   Font: Cairo | RTL Support | Responsive
   Version: 2.0 Enhanced
   ===================================================== */

/* === CSS VARIABLES === */
:root {
    /* Primary Colors - Orange */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    
    /* Secondary Colors - Black */
    --secondary: #1f2937;
    --secondary-dark: #111827;
    
    /* Accent Colors */
    --accent: #f97316;
    --accent-dark: #ea580c;
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #06b6d4;
    --info-light: #cffafe;
    
    /* Neutral Colors */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --black: #000000;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Spacing */
    --container-max: 1600px;
    --section-spacing: 60px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 19px;
    line-height: 1.7;
    color: var(--gray-700);
    background: var(--gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* === TOP BAR === */
.top-bar {
    background: var(--gray-900);
    color: var(--gray-300);
    font-size: 13px;
    padding: 10px 0;
}

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

.top-bar-info {
    display: flex;
    gap: 24px;
}

.top-bar-info a,
.top-bar-actions a {
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-info a:hover,
.top-bar-actions a:hover {
    color: var(--white);
}

.top-bar-actions {
    display: flex;
    gap: 20px;
}

.lang-switch {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* === MAIN HEADER === */
.main-header {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
}

/* Search */
.search-box {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
    background: var(--white);
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.search-form button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
    background: var(--white);
}

.search-input-wrapper i {
    padding: 0 16px;
    color: var(--gray-400);
    font-size: 18px;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 0;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.search-input-wrapper button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

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

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

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.suggestion-item:hover {
    background: var(--gray-50);
}

.suggestion-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.suggestion-item div {
    display: flex;
    flex-direction: column;
}

.suggestion-item strong {
    color: var(--gray-800);
    font-size: 14px;
}

.suggestion-item span {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray-500);
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 16px;
    color: var(--gray-600);
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.action-btn .icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.action-btn:hover .icon-wrapper {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2);
    transform: scale(1.05);
}

.action-btn i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.action-btn:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.action-btn span:not(.badge) {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.action-btn:hover span:not(.badge) {
    color: var(--primary);
}

.action-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
    animation: pulse-badge 2s infinite;
}

.icon-wrapper .badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

[dir="ltr"] .action-btn .badge,
[dir="ltr"] .icon-wrapper .badge {
    right: auto;
    left: -6px;
}

/* Special styles for each action button */
.action-btn[href*="profile"] .icon-wrapper,
.action-btn[href*="login"] .icon-wrapper {
    background: linear-gradient(145deg, #ede9fe, #ddd6fe);
}
.action-btn[href*="profile"]:hover .icon-wrapper,
.action-btn[href*="login"]:hover .icon-wrapper {
    background: linear-gradient(145deg, #c4b5fd, #a78bfa);
}
.action-btn[href*="profile"]:hover i,
.action-btn[href*="login"]:hover i {
    color: #7c3aed;
}

.action-btn[href*="wishlist"] .icon-wrapper {
    background: linear-gradient(145deg, #fce7f3, #fbcfe8);
}
.action-btn[href*="wishlist"]:hover .icon-wrapper {
    background: linear-gradient(145deg, #f9a8d4, #f472b6);
}
.action-btn[href*="wishlist"]:hover i {
    color: #db2777;
}

.action-btn[href*="cart"] .icon-wrapper {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
}
.action-btn[href*="cart"]:hover .icon-wrapper {
    background: linear-gradient(145deg, #fdba74, #fb923c);
}
.action-btn[href*="cart"]:hover i {
    color: #ea580c;
}

.mobile-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    border-radius: 14px;
    font-size: 22px;
    color: var(--gray-700);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: var(--primary);
}

/* === NAVIGATION === */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
}

.nav-menu > li > a.active {
    position: relative;
}

.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

[dir="ltr"] .dropdown-menu {
    right: auto;
    left: 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--gray-600);
    font-size: 14px;
    transition: var(--transition);
}

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

.dropdown-menu a.view-all {
    border-top: 1px solid var(--gray-200);
    margin-top: 8px;
    padding-top: 16px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === LANGUAGE BUTTON === */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(145deg, #f3f4f6, #e5e7eb);
    border-radius: 10px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
    color: var(--primary);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
}

/* === MARQUEE INFO BAR === */
.marquee-bar {
    background: linear-gradient(135deg, #1f2937, #111827);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.marquee-bar::before,
.marquee-bar::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-bar::before {
    right: 0;
    background: linear-gradient(to left, #1f2937, transparent);
}

.marquee-bar::after {
    left: 0;
    background: linear-gradient(to right, #1f2937, transparent);
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-content {
    display: flex;
    gap: 50px;
    padding: 0 25px;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.marquee-item i {
    color: #f97316;
    font-size: 16px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-bar:hover .marquee-wrapper {
    animation-play-state: paused;
}

/* === MAIN CONTENT === */
.main-content {
    flex: 1;
    margin-top: 0;
    padding-top: 0;
}

.section {
    padding: var(--section-spacing) 0;
}

/* Remove top padding from first section (banner/hero) */
.main-content > .section:first-child,
.main-content > .hero-slider:first-child,
.main-content > .hero-banners:first-child,
.main-content > div:first-child .section,
.main-content > div:first-child,
.section.no-top-padding {
    padding-top: 0;
    margin-top: 0;
}

.hero-slider,
.hero-banners {
    margin-top: 0;
    padding-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent);
}

.hero-desc {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-height: 450px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* === CARDS === */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.15);
    border-color: var(--primary);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100);
}

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

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

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

[dir="ltr"] .product-badges {
    right: auto;
    left: 12px;
}

.product-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.badge-hot {
    background: var(--accent);
    color: var(--white);
}

.product-actions {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(-15px);
    transition: var(--transition);
}

[dir="ltr"] .product-actions {
    left: auto;
    right: 15px;
    transform: translateX(15px);
}

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

.product-action-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.product-info {
    padding: 24px;
}

.product-category {
    display: block;
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-name a {
    color: var(--gray-900);
}

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

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

.product-rating .stars {
    display: flex;
    gap: 3px;
    color: var(--accent);
    font-size: 14px;
}

.product-rating span {
    color: var(--gray-400);
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

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

.old-price {
    font-size: 16px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-footer {
    padding-top: 18px;
    border-top: 1px solid var(--gray-100);
}

/* === CATEGORIES GRID === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-white {
    background: var(--white);
    color: var(--gray-800);
}

.btn-light {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Select2 Custom Styling */
.select2-container--default .select2-selection--single {
    height: 50px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 10px 16px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    padding: 0;
    color: var(--gray-800);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 12px;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: auto;
    left: 12px;
}

.select2-dropdown {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--primary);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary);
    outline: none;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-primary { background: var(--primary-100); color: var(--primary-dark); }
.badge-success { background: var(--success-light); color: #065f46; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #0e7490; }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }

/* === ALERTS === */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success { background: var(--success-light); color: #065f46; border-right: 4px solid var(--success); }
.alert-danger { background: var(--danger-light); color: #991b1b; border-right: 4px solid var(--danger); }
.alert-warning { background: var(--warning-light); color: #92400e; border-right: 4px solid var(--warning); }
.alert-info { background: var(--info-light); color: #0e7490; border-right: 4px solid var(--info); }

[dir="ltr"] .alert { border-right: none; border-left-width: 4px; border-left-style: solid; }
[dir="ltr"] .alert-success { border-left-color: var(--success); }
[dir="ltr"] .alert-danger { border-left-color: var(--danger); }
[dir="ltr"] .alert-warning { border-left-color: var(--warning); }
[dir="ltr"] .alert-info { border-left-color: var(--info); }

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 70px;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 22px;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* === FOOTER === */
.main-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    margin-top: auto;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
}

.footer-logo .logo-text {
    font-size: 22px;
    color: var(--white);
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
}

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

.footer-col ul li a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-right: 8px;
}

[dir="ltr"] .footer-col ul li a:hover {
    padding-right: 0;
    padding-left: 8px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info li i {
    color: var(--primary-light);
    margin-top: 4px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

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

.payment-methods {
    display: flex;
    gap: 12px;
}

.payment-methods img {
    height: 28px;
    filter: grayscale(1) brightness(2);
    opacity: 0.7;
    transition: var(--transition);
}

.payment-methods img:hover {
    filter: none;
    opacity: 1;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

[dir="ltr"] .toast-container {
    left: auto;
    right: 20px;
}

.toast {
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(-120%);
    transition: var(--transition);
    min-width: 280px;
}

[dir="ltr"] .toast {
    transform: translateX(120%);
}

.toast.show {
    transform: translateX(0);
}

.toast-success { border-right: 4px solid var(--success); }
.toast-error { border-right: 4px solid var(--danger); }
.toast-info { border-right: 4px solid var(--info); }

[dir="ltr"] .toast { border-right: none; }
[dir="ltr"] .toast-success { border-left: 4px solid var(--success); }
[dir="ltr"] .toast-error { border-left: 4px solid var(--danger); }
[dir="ltr"] .toast-info { border-left: 4px solid var(--info); }

.toast i {
    font-size: 20px;
}

.toast-success i { color: var(--success); }
.toast-error i { color: var(--danger); }
.toast-info i { color: var(--info); }

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* === TABLE === */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid var(--gray-200);
}

[dir="ltr"] .table th,
[dir="ltr"] .table td {
    text-align: left;
}

.table th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 13px;
    color: var(--gray-600);
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: var(--gray-50);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar-info {
        display: none;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .header-search,
    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 16px;
    }
    
    .header-links {
        display: none;
    }
    
    .marquee-bar {
        padding: 10px 0;
    }
    
    .marquee-item {
        font-size: 13px;
    }
    
    .action-btn span:not(.badge) {
        display: none;
    }
    
    .action-btn {
        padding: 6px;
    }
    
    .action-btn .icon-wrapper {
        width: 46px;
        height: 46px;
    }
    
    .action-btn i {
        font-size: 20px;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--white);
        z-index: 1000;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
    }
    
    [dir="ltr"] .main-nav.active {
        right: auto;
        left: 0;
    }
    
    .main-nav.active .nav-menu {
        flex-direction: column;
        padding: 20px;
    }
    
    .main-nav.active .nav-menu > li > a {
        padding: 14px;
        border-radius: var(--radius);
    }
    
    .main-nav.active .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--gray-50);
        margin-top: 8px;
        border-radius: var(--radius);
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* === FOOTER ENHANCED === */
.footer-col ul {
    max-height: none;
    columns: 1;
}

.footer-col ul li {
    break-inside: avoid;
    margin-bottom: 8px;
}

.footer-col ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-right: 10px;
}

[dir="ltr"] .footer-col ul li a:hover {
    padding-left: 10px;
    padding-right: 0;
}

/* Footer grid for 4 columns */
@media (min-width: 769px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
        gap: 40px;
    }
    
    .footer-col:nth-child(3) ul {
        columns: 2;
        column-gap: 20px;
    }
}

/* === NAV DROPDOWN ENHANCED === */
.has-dropdown {
    position: relative;
}

.dropdown-menu hr {
    margin: 8px 15px;
    border: none;
    border-top: 1px solid var(--gray-200);
}

.nav-menu .has-dropdown:hover > .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   ENHANCED DESIGN IMPROVEMENTS
   تحسينات التصميم المتقدمة
   ===================================================== */

/* === DEFAULT PRODUCT IMAGE === */
.product-image img[src*="placeholder"],
.product-image img:not([src]),
.product-image img[src=""] {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

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

img[onerror] {
    min-height: 200px;
    background: var(--gray-100);
}

/* === IMPROVED PRODUCT CARDS === */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    position: relative;
    padding-top: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

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

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

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

[dir="ltr"] .product-badges {
    right: auto;
    left: 12px;
}

.product-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s;
    z-index: 2;
}

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

.product-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-600);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
}

.product-action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: var(--gray-800);
    transition: color 0.2s;
}

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

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

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

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
}

.product-rating .stars {
    color: #fbbf24;
}

.product-rating .count {
    color: var(--gray-500);
}

/* === IMPROVED BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* === IMPROVED CARDS === */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary);
}

.card-body {
    padding: 24px;
}

/* === IMPROVED FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-700);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

/* === IMPROVED ALERTS === */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border-right: 4px solid var(--success);
}

.alert-danger, .alert-error {
    background: var(--danger-light);
    color: #991b1b;
    border-right: 4px solid var(--danger);
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border-right: 4px solid var(--warning);
}

.alert-info {
    background: var(--info-light);
    color: #0e7490;
    border-right: 4px solid var(--info);
}

[dir="ltr"] .alert-success,
[dir="ltr"] .alert-danger,
[dir="ltr"] .alert-error,
[dir="ltr"] .alert-warning,
[dir="ltr"] .alert-info {
    border-right: none;
    border-left: 4px solid;
}

/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === BADGE IMPROVEMENTS === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: var(--success-light); color: #065f46; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-info { background: var(--info-light); color: #0e7490; }
.badge-primary { background: var(--primary-100); color: var(--primary-dark); }

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3, .empty-state h4 {
    font-size: 20px;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

[dir="ltr"] .scroll-top {
    right: auto;
    left: 30px;
}

/* === SECTION TITLE === */
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

[dir="ltr"] .section-title::after {
    right: auto;
    left: 0;
}

/* === PRODUCTS GRID === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* === PAGINATION === */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: white;
    color: var(--gray-600);
    border-radius: var(--radius);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (min-width: 769px) {
    .hide-desktop { display: none !important; }
}
