/* =============================================
   متجر الينبع الإلكتروني - الأنماط الرئيسية
   ============================================= */

/* === CSS Variables === */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --secondary: #1e293b;
    --accent: #f59e0b;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font: 'Cairo', sans-serif;
    --container: 1320px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    font-size: 14px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font);
}

input,
select,
textarea {
    font-family: var(--font);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Bar === */
.top-bar {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 8px 0;
    overflow: hidden;
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-links a {
    color: white;
    opacity: 0.9;
    font-size: 13px;
}

.top-bar-links a:hover {
    opacity: 1;
}

.top-bar-links span {
    cursor: pointer;
    font-size: 12px;
}

.top-bar-announcements {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: marquee 30s linear infinite;
}

.top-bar-announcements span {
    white-space: nowrap;
}

.top-bar-announcements .separator {
    opacity: 0.4;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(100%);
    }
}

/* === Header === */
.main-header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.search-bar {
    flex: 1;
    max-width: 600px;
}

.search-bar form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.search-bar button {
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border: none;
    font-size: 16px;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
}

.header-action-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.cart-count {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Navigation === */
.main-nav {
    background: white;
    border-top: 1px solid var(--border-light);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-item>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    transition: var(--transition);
}

.nav-item>a:hover {
    color: var(--primary);
    background: rgba(13, 148, 136, 0.05);
}

.nav-item>a i:first-child {
    font-size: 14px;
}

.dropdown-arrow {
    font-size: 10px !important;
    transition: var(--transition);
}

.nav-item.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    border: 1px solid var(--border-light);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-right: 24px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 22px;
    color: var(--text-primary);
    padding: 8px;
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin: 20px auto;
    max-width: var(--container);
}

.hero-slider .container {
    padding: 0;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
    min-width: 100%;
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px;
    max-width: 600px;
}

.slide-content h1 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
}

.slide-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.btn-shop {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 36px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-shop:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev {
    right: 20px;
}

.slider-arrow.next {
    left: 20px;
}

/* === Section Styles === */
.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-view-all:hover {
    background: var(--primary-dark);
    transform: translateX(-4px);
}

/* === Category Cards === */
.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.category-card-wrapper {
    text-align: center;
}

.category-card {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    aspect-ratio: 3 / 4;
    background: #eef2f7;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.03);
}

.category-card-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(160deg, #f0f0f0 0%, #dce3ea 100%);
    color: #8a95a5;
}

.category-card-fallback i {
    font-size: 52px;
    color: #b0bcc8;
}

.category-card-fallback h3 {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c0c8d0;
    margin: 0;
}

.category-card-fallback span {
    font-size: 16px;
    font-weight: 700;
    color: #a0aab4;
    letter-spacing: 6px;
}

.category-card-label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* === Brand Logos === */
.brands-section {
    padding: 40px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.brands-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.brands-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.brand-logo {
    width: 100px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    cursor: pointer;
}

.brand-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.brand-logo img {
    max-height: 40px;
    object-fit: contain;
}

.brand-logo-text {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* === Product Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.products-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    padding: 20px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    overflow: hidden;
}

.product-card-image img {
    max-height: 140px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

.product-card-info {
    padding: 14px;
}

.product-card-brand {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

.product-card-old-price {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-card-colors {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: var(--primary);
}

.product-card-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--primary);
    color: white;
}

/* === Peripherals Section === */
.peripherals-section {
    background: var(--bg-light);
    padding: 50px 0;
}

.peripherals-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
}

.peripherals-banner {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    min-height: 280px;
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.peripherals-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.peripherals-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.peripherals-banner:hover img {
    transform: scale(1.03);
}

.peripherals-banner-fallback {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    color: white;
    position: relative;
}

.peripherals-banner-fallback::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
}

.peripherals-banner-fallback h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.peripherals-banner-fallback p {
    opacity: 0.8;
    font-size: 13px;
    position: relative;
}

.peripherals-banner-fallback .btn-shop {
    margin-top: 20px;
    align-self: flex-start;
    position: relative;
}

.peripherals-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.peripheral-cat-card {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.peripheral-cat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.peripheral-cat-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 8px;
}

.peripheral-cat-card span {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

.peripheral-cat-card .count {
    font-size: 11px;
    color: var(--text-light);
}

/* === Gaming Section === */
.gaming-section {
    padding: 50px 0;
}

.gaming-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gaming-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 280px;
    cursor: pointer;
    transition: var(--transition);
}

.gaming-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gaming-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gaming-card:hover img {
    transform: scale(1.05);
}

.gaming-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(76, 29, 149, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.gaming-card-overlay h3 {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.gaming-card-overlay span {
    font-size: 14px;
    opacity: 0.9;
}

/* === Brand Banners === */
.brand-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.brand-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 200px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.brand-banner:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.brand-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(22, 33, 62, 0.7));
    color: white;
    z-index: 2;
    transition: background 0.3s ease;
}

.brand-banner:hover .brand-banner-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5), rgba(22, 33, 62, 0.5));
}

.brand-banner-overlay h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.brand-banner-overlay span {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* === Network Solutions === */
.network-section {
    padding: 50px 0;
    text-align: center;
}

.network-section .section-title {
    text-align: center;
    display: block;
    margin-bottom: 40px;
}

.network-section .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.network-card {
    text-align: center;
    padding: 24px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
    background: white;
}

.network-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.network-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.network-card img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.network-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}




/* === Contact Bar & Footer === */
.contact-bar {
    background: var(--bg-light);
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.contact-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
}

.contact-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.contact-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-content {
    background: white;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 6px;
}

.footer-bottom {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
}

/* ===================================================
   CATEGORY PAGE STYLES
   =================================================== */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

.category-page {
    padding-bottom: 50px;
}

.category-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.category-page-title {
    font-size: 24px;
    font-weight: 800;
}

.category-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-products-grid .product-card-image {
    height: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===================================================
   PRODUCT PAGE STYLES
   =================================================== */
.product-page {
    padding: 20px 0 50px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.product-main-image {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.product-main-image img {
    max-height: 350px;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    padding: 6px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary);
}

.product-thumbnail img {
    max-height: 60px;
    object-fit: contain;
}

.product-info {
    padding-top: 10px;
}

.product-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.product-breadcrumb a {
    color: var(--text-secondary);
}

.product-breadcrumb a:hover {
    color: var(--primary);
}

.product-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.product-meta a {
    color: var(--primary);
    font-weight: 600;
}

.product-price-section {
    margin-bottom: 20px;
}

.product-price-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
}

.product-price-currency {
    font-size: 16px;
    font-weight: 600;
}

.product-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.product-availability.in-stock {
    color: #16a34a;
}

.product-availability.in-stock i {
    font-size: 10px;
}

.product-availability.out-of-stock {
    color: #dc2626;
}

.product-description {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.9;
}

.product-description ul {
    list-style: disc;
    padding-right: 20px;
    margin-top: 8px;
}

.product-description ul li {
    margin-bottom: 4px;
}

/* Color Options */
.product-colors {
    margin-bottom: 20px;
}

.product-colors label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.color-options {
    display: flex;
    gap: 8px;
}

.color-option {
    padding: 6px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.color-option:hover,
.color-option.active {
    border-color: var(--primary);
    color: var(--primary);
}

/* Cash on Delivery */
.cod-notice {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.cod-notice h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cod-notice h4 i {
    color: var(--primary);
}

.cod-notice p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quantity & Add to Cart */
.product-quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.qty-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-light);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.qty-btn:hover {
    background: var(--primary);
    color: white;
}

.qty-input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 700;
    outline: none;
}

.btn-add-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-buy-now {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-buy-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.3);
}

/* Delivery & Warranty Info */
.product-extra-info {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.extra-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.extra-info-item i {
    font-size: 18px;
    color: var(--primary);
    margin-top: 2px;
}

.extra-info-item h5 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.extra-info-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Share */
.product-share {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-share span {
    font-size: 13px;
    font-weight: 600;
}

.product-share a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.product-share a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Related Products */
.related-section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.related-section .section-title {
    text-align: center;
    display: block;
    margin-bottom: 30px;
}

.related-section .section-title::after {
    right: 50%;
    transform: translateX(50%);
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.related-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.related-card img {
    height: 120px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.related-card h4 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .btn-details {
    display: inline-block;
    padding: 8px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.related-card .btn-details:hover {
    background: var(--primary-dark);
}

.related-card .product-card-price {
    margin-bottom: 10px;
}

/* Sticky Bottom Bar */
.sticky-product-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    display: none;
    z-index: 999;
}

.sticky-product-bar.show {
    display: block;
}

.sticky-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.sticky-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.sticky-bar-info img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.sticky-bar-name {
    font-size: 13px;
    font-weight: 600;
}

.sticky-bar-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
}

.sticky-bar-btn {
    padding: 10px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.sticky-bar-btn:hover {
    background: var(--primary-dark);
}



/* ===================================================
   RESPONSIVE DESIGN
   =================================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .network-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .gaming-grid {
        grid-template-columns: repeat(2, 1fr);
    }



    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: relative;
        top: auto;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .peripherals-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-announcements {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-content {
        gap: 12px;
    }

    .search-bar {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }

    .main-nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 10px;
    }

    .nav-item>a {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        border-radius: var(--radius);
        display: none;
    }

    .nav-item.has-dropdown.active .dropdown-menu {
        display: block;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gaming-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide {
        height: 300px;
    }

    .slide-content {
        padding: 30px;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .brand-banners {
        grid-template-columns: 1fr;
    }

    .network-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-items {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .peripherals-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .gaming-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        height: 250px;
    }

    .slide-content h1 {
        font-size: 20px;
    }

    .header-actions {
        gap: 4px;
    }

    .logo-text {
        font-size: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price-value {
        font-size: 22px;
    }

    .network-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Utilities === */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* === Loading Placeholder Images === */
.placeholder-img {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e2e8f0 50%, var(--bg-light) 100%);
    background-size: 200% 200%;
    animation: shimmer 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 40px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 48px;
}

/* =============================================
   تأثيرات الحركة والأنيميشن
   ============================================= */

/* --- Scroll Reveal Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal base class - content visible by default */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Only hide elements if JS has loaded and will reveal them */
.js-loaded .reveal:not(.active) {
    opacity: 0;
}

.js-loaded .reveal.fade-up:not(.active) {
    transform: translateY(50px);
}

.js-loaded .reveal.fade-right:not(.active) {
    transform: translateX(-50px);
}

.js-loaded .reveal.fade-left:not(.active) {
    transform: translateX(50px);
}

.js-loaded .reveal.scale-up:not(.active) {
    transform: scale(0.85);
}

.js-loaded .reveal.fade-down:not(.active) {
    transform: translateY(-30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Staggered children animation */
.stagger-children .reveal {
    transition-delay: calc(var(--i, 0) * 0.1s);
}

/* --- Brand Logo Float --- */
@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.brand-logo:hover {
    animation: floatLogo 1.5s ease-in-out infinite;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
}

/* --- Pulse Badge (New / Sale) --- */
@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.product-badge {
    animation: pulseBadge 2s ease-in-out infinite;
}

/* --- Hero Slider Entrance --- */
@keyframes heroTextSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide.active-slide .slide-content h1 {
    animation: heroTextSlide 0.8s ease-out forwards;
}

.slide.active-slide .slide-content p {
    animation: heroTextSlide 0.8s ease-out 0.15s forwards;
    opacity: 0;
}

.slide.active-slide .slide-content .btn-shop {
    animation: heroTextSlide 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

/* --- Section Title Underline Animation --- */
.section-title::after {
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

.section-title.reveal.active::after {
    width: 50px;
}

/* --- Card Hover Micro-Animations --- */
.product-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.product-card:active {
    transform: translateY(-2px);
    transition-duration: 0.1s;
}

.product-card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-actions {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Network Card Ripple --- */
.network-card {
    position: relative;
    overflow: hidden;
}

.network-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.network-card:hover::after {
    opacity: 1;
}

.network-card i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.network-card:hover i {
    transform: scale(1.15) translateY(-4px);
}

/* --- Gaming Card Shine Effect --- */
.gaming-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.gaming-card:hover::after {
    left: 130%;
}

/* --- Peripheral Card Bounce --- */
.peripheral-cat-card {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.peripheral-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.peripheral-cat-card i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.peripheral-cat-card:hover i {
    transform: scale(1.2) rotate(-5deg);
}

/* --- Brand Banner Parallax --- */
.brand-banner {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.brand-banner:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* --- Category Card Hover Effects --- */



/* --- Btn Discover Shine --- */
.btn-discover,
.btn-shop,
.btn-view-all {
    position: relative;
    overflow: hidden;
}

.btn-discover::after,
.btn-shop::after,
.btn-view-all::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-discover:hover::after,
.btn-shop:hover::after,
.btn-view-all:hover::after {
    left: 130%;
}

/* --- Top Bar Smooth Marquee --- */
@keyframes marqueeSmooth {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.top-bar-announcements {
    animation: marqueeSmooth 25s linear infinite;
}

/* --- Page Load Entrance --- */
@keyframes pageEnter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.main-content {
    animation: pageEnter 0.5s ease-out;
}

/* --- Sticky Header Slide --- */
.main-header {
    transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- Smooth Scroll snap for slider on touch --- */
@media (hover: none) {
    .slider-track {
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .slide {
        scroll-snap-align: start;
    }
}

/* --- Reduced motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* =============================================
   Advanced Category Layout & Filters
   ============================================= */

.category-header-bg {
    background: var(--bg-light);
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding-bottom: 60px;
    align-items: start;
}

/* --- Sidebar --- */
.category-sidebar {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
}

.filter-widget {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

.filter-widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Accordion Toggle Styles */
.filter-title.accordion-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    margin-bottom: 0;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.filter-title.accordion-toggle:hover {
    color: var(--primary);
}

.accordion-icon {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    transition: transform 0.3s ease;
    line-height: 1;
}

.filter-title.accordion-toggle.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding-top: 0;
}

.accordion-content.show {
    max-height: 500px;
    padding-top: 14px;
}

.filter-content.scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-left: 5px;
}

.filter-content.scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-content.scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.filter-content.scrollable::-webkit-scrollbar-track {
    background: #f1f5f9;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    background: white;
}

.custom-checkbox input:checked+.checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.custom-checkbox input:checked+.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: white;
}

/* Price Range Slider */
.price-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-slider-wrapper {
    position: relative;
    height: 36px;
}

.price-slider-wrapper input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    pointer-events: none;
    margin: 0;
    z-index: 2;
}

.price-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

.price-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
    margin-top: -7px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.4);
}

.price-slider-wrapper input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
}

.price-slider-track {
    position: absolute;
    top: 10px;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    width: 100%;
    z-index: 0;
}

.price-slider-track::after {
    content: '';
    position: absolute;
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    left: var(--track-left, 0%);
    right: var(--track-right, 0%);
}

.btn-filter-apply {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-apply:hover {
    background: var(--primary-dark);
}

.sidebar-cats {
    list-style: none;
    padding: 0;
}

.sidebar-cats li {
    margin-bottom: 10px;
}

.sidebar-cats a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
    display: block;
}

.sidebar-cats a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* --- Main Content --- */
.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.products-count {
    color: var(--text-secondary);
    font-size: 14px;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-wrapper label {
    font-size: 14px;
    color: var(--text-secondary);
}

.sort-wrapper select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

/* Grid View override */
.products-grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product Card Updates */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.product-image-wrapper {
    position: relative;
    padding: 20px;
    background: var(--bg-light);
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-wrapper img {
    max-height: 180px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-light);
}

.btn-add-cart-sm {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(13, 148, 136, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .category-layout {
        grid-template-columns: 240px 1fr;
    }

    .products-grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .category-sidebar.active {
        display: block;
        animation: slideInRight 0.3s ease;
    }

    .btn-toggle-sidebar {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: white;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        font-weight: 600;
        font-size: 14px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Product Hover Image Swap */
.product-card-image {
    position: relative;
    overflow: hidden;
}

.product-img-main,
.product-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    padding: 20px;
    transition: opacity 0.4s ease;
}

.product-img-main {
    z-index: 1;
    opacity: 1;
}

.product-img-hover {
    z-index: 2;
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

.product-card:hover .product-img-main {
    opacity: 0;
}

/* Brands Section Title Alignment */
.brands-section .section-title {
    text-align: right;
    margin-bottom: 30px;
}

/* === New Footer Design === */
.main-footer {
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 60px 0 30px;
    font-family: 'Cairo', sans-serif;
}

.footer-grid-new {
    display: grid;
    /* Info (Right/First) takes 0.7fr, Map (Left/Second) takes 1.3fr */
    grid-template-columns: 0.7fr 1.3fr;
    gap: 60px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-grid-new {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-info-section {
        order: 1;
        /* Info first on mobile too */
    }

    .footer-map-section {
        order: 2;
    }
}

/* Map Section (Left) */
.footer-map-section h3 {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
    /* Center map title */
}

.footer-map-container {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.waze-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.waze-link:hover {
    color: #0d9488;
}

/* Info Section (Right) */
.footer-info-section {
    text-align: inherit;
    /* Inherit RTL */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align to Start (Right in RTL) */
}

.footer-logo {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 80px;
    /* Force height constraint */
    width: auto;
    object-fit: contain;
    max-width: 250px;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #0d9488;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
}

.footer-links-list li {
    margin-bottom: 18px;
    border-bottom: 1px solid transparent;
}

.footer-links-list a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align to Start (Right in RTL) */
    gap: 15px;
    color: #334155;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.footer-links-list a:hover {
    color: #0d9488;
    transform: translateX(-5px);
    /* Move Left (negative x) */
}

.footer-links-list i {
    color: #334155;
    /* Dark icon color like screenshot */
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Specific icons colors */
.footer-links-list a:hover i {
    color: #0d9488;
}

.footer-social-new {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    /* Align Right */
    margin-top: 10px;
}

.footer-social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #334155;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s;
}

.footer-social-btn:hover {
    border-color: #0d9488;
    background: #0d9488;
    color: white;
}