/* المتغيرات — ألوان متناسقة مع شعار Red IT */
:root {
    --primary: #c41e3a;
    --primary-dark: #9e1830;
    --secondary: #1a1a1a;
    --accent: #a8dadc;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #c41e3a;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Cairo, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .container { padding: 0 12px; }
}

@media (max-width: 576px) {
    .container { padding: 0 10px; }
}

/* الهيدر الموحد مع الشعار */
.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: #fff;
    box-shadow: var(--shadow);
}

/* تقسيمة الهيدر: شريط علوي (تواصل + بحث وشعار) + شريط سفلي (أيقونات + قائمة + تصنيفات) */
.header-split-layout {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

.header-split-layout .header-row {
    padding: 0;
    overflow: visible;
}

.header-split-layout .header-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.header-row-rtl {
    direction: rtl;
}

.header-row-top {
    background: #e8e9eb;
    background: linear-gradient(180deg, #f2f3f5 0%, #e8e9eb 100%);
    padding: 10px 0;
    font-size: 0.9rem;
    overflow-x: hidden;
}

.header-row-main {
    overflow-x: hidden;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

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

.header-contact-item i {
    font-size: 1rem;
}

.header-contact-number,
.header-contact-value {
    unicode-bidi: isolate;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d1e7f0;
    border-radius: 999px;
    padding: 8px 16px;
    min-width: 180px;
    max-width: 320px;
    width: 100%;
}

.header-search-form i {
    color: #6b7280;
    font-size: 0.95rem;
}

.header-search-form input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    background: #fff;
    border: none;
    border-right: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
    border-radius: 10px;
    padding: 12px 20px;
}

.header-logo-link:hover {
    transform: scale(1.03);
}

.header-logo-img {
    height: 88px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.header-logo-text {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.header-logo-text span {
    color: #1a1a1a;
}

.header-row-main {
    background: #fff;
    padding: 12px 0;
    overflow: visible;
}

.header-split-layout .header-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-split-layout .header-icon-item {
    position: relative;
    color: #374151;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 6px 10px;
    transition: color 0.2s;
}

.header-split-layout .header-icon-item:hover {
    color: var(--primary);
}

.header-split-layout .header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header-nav-link {
    padding: 8px 14px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.header-nav-link:hover {
    color: var(--primary);
}

.header-nav-link.header-nav-pill.active,
.header-nav-link.active {
    background: #ffe4e6;
    color: var(--primary);
}

/* زر القائمة (هامبرغر) — يظهر على الموبايل فقط */
.header-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s;
}
.header-nav-toggle:hover {
    background: var(--primary-dark);
}
.header-nav-toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}
.header-nav-toggle i {
    transition: transform 0.2s;
}

.header-categories-wrap {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.header-btn-categories {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    min-height: 44px;
}

.header-btn-categories:hover {
    background: var(--primary-dark);
    color: #fff;
}

.header-categories-chevron {
    font-size: 0.75rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.header-categories-wrap.is-open .header-categories-chevron {
    transform: rotate(180deg);
}

.header-categories-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    margin-top: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 12px;
    min-width: 260px;
    max-width: 320px;
    z-index: 2100;
    overflow: hidden;
    display: none;
}

.header-categories-dropdown.is-open {
    display: block !important;
    visibility: visible;
}

.header-categories-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.header-categories-list li {
    margin: 0;
}

.header-categories-list a {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    min-height: 44px;
    box-sizing: border-box;
}

.header-categories-list a:hover {
    background: #fef2f2;
    color: var(--primary);
}

.header-categories-list li:first-child a {
    font-weight: 600;
    color: var(--primary);
}

/* ========== تخطيط الجسم + شريط التصنيفات ========== */
.body-with-sidebar {
    display: flex;
    flex-direction: row;
    min-height: 60vh;
    gap: 0;
}
.categories-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
}
.categories-sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 1rem 1rem;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    width: calc(100% - 2rem);
    text-align: right;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.categories-sidebar-title:hover {
    background: var(--primary-dark);
}
.categories-sidebar-chevron {
    display: none;
    margin-right: auto;
    font-size: 0.8rem;
    transition: transform 0.25s;
}
.categories-sidebar.is-collapsed .categories-sidebar-chevron {
    transform: rotate(-90deg);
}
.categories-sidebar-title i:first-child {
    font-size: 1.1rem;
}
.categories-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem;
}
.categories-sidebar-list li {
    margin: 0;
}
.categories-sidebar-list a {
    display: block;
    padding: 10px 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 2px;
}
.categories-sidebar-list a:hover {
    background: #fef2f2;
    color: var(--primary);
}
.categories-sidebar-list li:first-child a {
    font-weight: 600;
    color: var(--primary);
}
.main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 992px) {
    .body-with-sidebar {
        flex-direction: column;
    }
    .categories-sidebar {
        width: 100%;
        max-height: none;
        position: static;
        border-left: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 1rem;
    }
    .categories-sidebar-title {
        margin: 0 0 0;
        width: 100%;
    }
    .categories-sidebar-list {
        display: block;
        padding: 0.75rem 0 0;
        max-height: 50vh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transition: max-height 0.3s ease;
    }
    .categories-sidebar.is-collapsed .categories-sidebar-list {
        max-height: 0;
        padding-top: 0;
        overflow: hidden;
    }
    .categories-sidebar-chevron {
        display: block;
    }
    .categories-sidebar-list li {
        flex: none;
    }
    .categories-sidebar-list a {
        margin-bottom: 2px;
        padding: 10px 1rem;
        font-size: 0.95rem;
    }
}

/* هيدر — تابلت */
@media (max-width: 992px) {
    .header-split-layout .header-row .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .header-split-layout .header-row-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .header-row-top { padding: 8px 0; }
    .header-top-right {
        order: -1;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .header-search-form {
        flex: 1;
        min-width: 0;
        max-width: 100%;
    }
    .header-contact {
        justify-content: center;
        gap: 1rem;
    }
    .header-contact-item { font-size: 0.85rem; min-height: 44px; align-items: center; }
    .header-logo-link { padding: 10px 16px; border-radius: 8px; }
    .header-logo-img {
        height: 72px;
        max-width: 220px;
    }
    .header-logo-text { font-size: 2rem; }
    .header-row-main {
        padding: 10px 0;
        overflow: visible;
        flex-wrap: wrap;
    }
    .header-row-main .header-row-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .header-nav-toggle {
        display: flex;
        order: 1;
    }
    .header-nav-menu {
        display: none;
        order: 10;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid #e5e7eb;
        margin-top: 0.5rem;
    }
    .header-nav-menu.is-open {
        display: flex;
    }
    .header-nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-radius: 8px;
        margin: 2px 0;
    }
    .header-nav-link:hover {
        background: #fef2f2;
    }
    .header-split-layout .header-icon-item { padding: 6px 8px; font-size: 1.1rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* هيدر — جوال أفقي / صغير */
@media (max-width: 768px) {
    .header-split-layout .header-row .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .header-row-top { padding: 6px 0; font-size: 0.85rem; }
    .header-top-right { gap: 0.5rem; }
    .header-contact {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    .header-contact-item {
        gap: 4px;
        min-height: 44px;
        align-items: center;
        padding: 4px 0;
    }
    .header-contact-item span:not(.header-contact-number):not(.header-contact-value) {
        display: none;
    }
    .header-search-form {
        min-width: 0;
        padding: 8px 12px;
    }
    .header-search-form input { font-size: 0.85rem; }
    .header-logo-link { padding: 8px 12px; border-radius: 8px; border-right-width: 1.5px; border-left-width: 1.5px; }
    .header-logo-img {
        height: 56px;
        max-width: 160px;
    }
    .header-logo-text { font-size: 1.5rem; }
    .header-row-main { padding: 8px 0; }
    .header-split-layout .header-row-inner { gap: 0.5rem; }
    .header-nav-menu {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .header-nav-link {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .header-split-layout .header-icon-item {
        padding: 8px 10px;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }
}

/* هيدر — جوال عمودي */
@media (max-width: 576px) {
    .header-split-layout .header-row .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    .header-row-top { padding: 6px 0; }
    .header-contact-item { font-size: 0.8rem; }
    .header-logo-link { padding: 6px 10px; border-radius: 6px; border-right-width: 1.5px; border-left-width: 1.5px; }
    .header-logo-img {
        height: 48px;
        max-width: 140px;
    }
    .header-logo-text { font-size: 1.35rem; }
    .header-row-main { padding: 6px 0; }
    .header-nav-link {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-height: 44px;
    }
    .header-split-layout .header-icons { gap: 0.5rem; }
    .header-split-layout .header-icon-item {
        min-width: 44px;
        min-height: 44px;
    }
}

/* هيدر — شاشات صغيرة جداً */
@media (max-width: 380px) {
    .header-split-layout .header-row .container {
        padding-left: 6px;
        padding-right: 6px;
    }
    .header-logo-link { padding: 5px 8px; border-radius: 6px; }
    .header-logo-img {
        height: 42px;
        max-width: 120px;
    }
    .header-logo-text { font-size: 1.2rem; }
    .header-nav-link {
        font-size: 0.7rem;
        padding: 6px 6px;
        min-height: 40px;
    }
    .header-split-layout .header-icon-item { min-width: 40px; min-height: 40px; }
}

.header-top-bar {
    background: var(--primary);
    color: #fff;
    padding: 8px 0;
    font-size: 0.9rem;
}

.header-top-dark {
    background: #1a365d;
    background: linear-gradient(180deg, #1e3a5f 0%, #1a365d 100%);
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-lang, .header-currency {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
}

.header-top-bar .container {
    display: flex;
    justify-content: center;
}

.header-layout-km .header-top-bar .container {
    justify-content: space-between;
}

.header-top-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.header-top-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.2s;
}

.header-top-links a:hover {
    opacity: 0.9;
}

.header-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-main {
    padding: 12px 0;
}

.header-inner-km {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.header-inner-km .header-actions-km {
    justify-self: end;
}

.header-inner-km .site-logo-center {
    justify-self: center;
}

.header-actions-km {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-icon-km {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    padding: 4px 8px;
    transition: color 0.2s;
}

.header-icon-km:hover {
    color: var(--primary);
}

.header-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.site-nav-under {
    border-top: 1px solid #e9ecef;
    margin-top: 12px;
    padding-top: 12px;
}

.site-nav-under ul {
    justify-content: center;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    max-width: 180px;
    display: block;
    object-fit: contain;
}

.site-logo .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.site-logo .logo-text span {
    color: #1a1a1a;
}

.header-search {
    flex: 1;
    min-width: 200px;
    max-width: 420px;
}

.search-form {
    display: flex;
    background: var(--light);
    border: 2px solid #e9ecef;
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 18px;
    font-size: 0.95rem;
    outline: none;
}

.search-form .search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.2s;
}

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

.site-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--primary);
    color: #fff;
}

/* توافق مع الهيدر القديم */
.main-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    color: var(--primary);
    font-size: 1.8rem;
}

.logo span {
    color: var(--secondary);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li a {
    text-decoration: none;
    color: var(--dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s;
}

.main-nav li a:hover,
.main-nav li a.active {
    background: var(--primary);
    color: white;
}

/* الأزرار */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: #c1121f;
}

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

.btn-secondary:hover {
    background: #14213d;
}

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

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

/* الهيرو */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* الأقسام */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary);
    font-size: 2rem;
}

/* المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.product-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.product-desc {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-price {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
}

.product-stock {
    color: var(--gray);
    font-size: 0.9rem;
}

/* النماذج */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.booking-form,
.login-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* التنبيهات */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* الفوتر */
.main-footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.site-footer-dark {
    background: #1a365d;
    background: linear-gradient(180deg, #1e3a5f 0%, #152a4a 100%);
    color: #fff;
}

.site-footer-dark .footer-section h3 {
    color: #e2e8f0;
}

.site-footer-dark .footer-section a,
.site-footer-dark .footer-section p {
    color: #cbd5e0;
}

.site-footer-dark .footer-section a:hover {
    color: #fff;
}

.site-footer-dark .footer-bottom {
    border-top-color: rgba(255,255,255,0.15);
}

.site-footer-dark .footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-layout-km .footer-content {
    display: none;
}

.footer-logo-row {
    text-align: center;
    padding: 2rem 0 1rem;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo-img {
    height: 56px;
    width: auto;
    max-width: 200px;
    opacity: 0.95;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.footer-social-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-social-icon:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

.footer-payment-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.footer-payment-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-payment-icon {
    font-size: 1.75rem;
    color: rgba(255,255,255,0.8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--accent);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* صفحة تسجيل الدخول */
.login-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.login-info {
    margin-top: 2rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 4px;
    text-align: center;
}

/* التصفية */
.filters {
    margin-bottom: 2rem;
    text-align: center;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 4px;
}

/* الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* التنسيقات العامة */
.text-center {
    text-align: center;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

/* التجاوب */
@media (max-width: 992px) {
    .header-inner {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
    }
    .header-top-links {
        gap: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .site-logo {
        justify-content: center;
    }
    .logo-img {
        height: 42px;
    }
    .site-nav ul {
        justify-content: center;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== أزرار مشاركة المنتجات (مشاركة + فيسبوك + إنستغرام) ========== */
.product-share-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.product-share-icons .share-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    background: var(--primary);
}
.product-share-icons .share-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.35);
    opacity: 0.95;
}
.product-share-icons .share-icon.share-copied {
    background: var(--success);
}
.product-share-icons .share-icon.share-fb {
    background: #1877f2;
}
.product-share-icons .share-icon.share-fb:hover {
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}
.product-share-icons .share-icon.share-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.product-share-icons .share-icon.share-ig:hover {
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.4);
}

.product-share-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}
.product-share-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.product-share-title i { margin-left: 6px; color: var(--primary); }
.product-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.product-share-btns .share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.product-share-btns .share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    color: #fff;
}
.product-share-btns .share-btn.share-copy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.product-share-btns .share-btn.share-copy:hover {
    box-shadow: 0 4px 14px rgba(196, 30, 58, 0.35);
}
.product-share-btns .share-btn.share-copied {
    background: var(--success);
}
.product-share-btns .share-btn.share-fb {
    background: #1877f2;
}
.product-share-btns .share-btn.share-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}