:root {
    --primary: #00bfff; 
    --primary-hover: #0099cc;
    --secondary: #050505; 
    --secondary-hover: #000000;
    --dark: #2c3e50;
    --dark-light: #34495e;
    --light: #f8fafc;
    --gray: #333333; /* التعديل هنا: كان #7f8c8d */
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --danger: #00bfff;
    --success: #00bfff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.14);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    width: 100%;
    overflow-x: clip; /* استخدمنا clip بدلاً من hidden عشان الـ sticky يشتغل */
}

.text-orange {
    color: var(--primary);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-light);
    position: sticky;
    top: 0;
    z-index: 997; /* رفعنا الرقم عشان الناف بار تكون دايماً فوق كل محتوى الموقع */
    box-shadow: var(--shadow-sm);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition);
}

.dropbtn i {
    font-size: 12px;
    color: var(--primary);
}

.dropbtn:hover {
    background-color: var(--light);
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-md);
    z-index: 10;
    top: 110%;
    
    /* التعديل هنا */
    left: 0; 
    right: auto; 
    
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

@media (max-width: 992px) {
    .dropdown-content {
        right: auto;
        left: 0;
    }
}

.dropdown-content a {
    color: var(--secondary);
    padding: 14px 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-light);
}

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

.dropdown-content a i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--primary);
    padding-right: 25px;
}

.show {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

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

.search-container {
    display: flex;
    width: 45%;
    background-color: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.search-container:focus-within {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.12);
}

.search-container input {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--secondary);
    outline: none;
}

.search-btn {
    padding: 0 25px;
    background-color: transparent;
    color: var(--secondary);
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    color: var(--secondary);
    transition: var(--transition);
}

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

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-btn {
    padding: 10px 24px;
    border: none;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.login-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--secondary);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99;
    animation: fadeIn 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    padding: 30px 40px; /* قللنا البادنج من فوق وتحت شوية */
    width: 450px;
    max-width: 90%;
    max-height: 85vh; /* السحر هنا: أقصى ارتفاع 85% من الشاشة */
    overflow-y: auto; /* إضافة سكرول داخلي لو المحتوى أطول من الشاشة */
    border-radius: 24px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
}

/* عشان الموبايلات الصغيرة كمان نظبط السكرول */
@media (max-width: 480px) {
    .modal {
        padding: 25px 20px;
        max-height: 80vh; 
    }
}

.cart-modal {
    width: 550px;
}

@keyframes slideUp {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(0, 191, 255, 0.12);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto 20px;
}

.modal-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--secondary);
    font-weight: 800;
    font-size: 24px;
}

.modal-title i {
    color: var(--primary);
    margin-left: 10px;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
}

.modal-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
    background-color: var(--light);
}

.modal-input:focus {
    border-color: var(--primary);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.12);
}

.modal-input:focus + i, .input-group:focus-within i {
    color: var(--primary);
}

.modal-link {
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
    color: var(--gray);
}

.modal-link span {
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
}

.modal-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
}

.modal-submit:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-left: 5px;
}

.cart-items::-webkit-scrollbar {
    width: 5px;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: var(--gray-light);
    border-radius: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
}

.item-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-img {
    width: 60px;
    height: 80px;
    background-color: var(--light);
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}

.item-info h4 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 5px;
    font-weight: 700;
}

.item-price {
    color: var(--primary);
    font-weight: 800;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--light);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}

.quantity-control button {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    color: var(--secondary);
    transition: var(--transition);
}

.quantity-control button:hover {
    color: var(--primary);
}

.quantity-control span {
    font-weight: 700;
    color: var(--secondary);
    width: 20px;
    text-align: center;
}

.delete-btn {
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.delete-btn:hover {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.cart-summary {
    background-color: var(--light);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--gray-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--secondary);
}

.free-delivery {
    color: var(--success);
}

.total-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary);
    border-top: 1px solid var(--gray-light);
    padding-top: 15px;
}

main {
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.sub-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scrollbar-width: none; 
}

.sub-categories::-webkit-scrollbar {
    display: none; 
}

.sub-cat {
    padding: 10px 24px;
    background-color: var(--white);
    color: var(--secondary);
    border: 1px solid var(--gray-light);
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.sub-cat:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.product-cards {
    margin-bottom: 60px;
    margin-top: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary);
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    color: var(--primary-hover);
    transform: translateX(-5px);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 191, 255, 0.30);
}

.product-img {
    height: 220px;
    background-color: var(--light);
    border-bottom: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.brand {
    color: var(--gray);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

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

.add-to-cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--light);
    color: var(--secondary);
    border: 1px solid var(--gray-light);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-to-cart-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.why-choose-us {
    text-align: center;
    margin-bottom: 60px;
    background-color: var(--secondary);
    border-radius: var(--radius);
    padding: 60px 30px;
    color: var(--white);
}

.why-choose-us h2 {
    margin-bottom: 50px;
    font-size: 28px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-box {
    padding: 20px;
}

.feature-icon {
    font-size: 32px;
    background-color: rgba(0, 191, 255, 0.12);
    color: var(--primary);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}

.feature-box p {
    color: var(--gray-light);
    font-size: 15px;
    opacity: 0.8;
}

footer {
    background-color: var(--secondary-hover);
    color: var(--white);
    padding: 60px 5% 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer-logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-content p {
    color: var(--gray-light);
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 400px;
}

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

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-light);
    opacity: 0.6;
    font-size: 14px;
}

.product-page-main {
    padding: 20px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--gray);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.breadcrumb i {
    font-size: 10px;
}

.current-page {
    color: var(--primary);
    font-weight: 700;
}

.single-product-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 60px;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
}

.main-image-container {
    width: 100%;
    height: 400px;
    background-color: var(--light);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-light);
}

.thumbnails-container {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background-color: var(--light);
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover, .active-thumb {
    border-color: var(--primary);
}

.product-brand {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 10px;
    background-color: rgba(0, 191, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
}

.product-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
}

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

.in-stock {
    color: var(--success);
}

.product-price-container {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

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

.product-short-description {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 15px;
}

.product-actions-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quantity-wrapper label {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.lg-control {
    width: fit-content;
    padding: 8px 15px;
}

.lg-control .qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary);
    outline: none;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    flex: 1;
    padding: 15px 30px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-icon {
    width: 54px;
    height: 54px;
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    color: var(--secondary);
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-icon:hover {
    border-color: var(--danger);
    color: var(--danger);
    background-color: rgba(231, 76, 60, 0.05);
}

.product-description-tabs {
    background-color: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background-color: var(--light);
    border-bottom: 1px solid var(--gray-light);
}

.tab-btn {
    padding: 18px 30px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--secondary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background-color: var(--white);
}

.tab-content {
    display: none;
    padding: 40px;
    line-height: 1.8;
    color: var(--secondary);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

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

.specs-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
}

.specs-list li span {
    width: 150px;
    font-weight: 700;
    color: var(--gray);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-link .product-img {
    transition: var(--transition);
}

.product-link:hover .product-img {
    opacity: 0.9;
}

.product-link:hover h3 {
    color: var(--primary);
    transition: var(--transition);
}

.mobile-bottom-nav {
    display: none; 
}

@media (max-width: 992px) {
    .search-container {
        width: 35%;
    }
    .single-product-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 80px;
    }

    header {
        padding: 12px 20px;
        gap: 15px;
    }

    .header-right {
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .dropdown {
        display: none;
    }

    .search-container {
        width: auto;
        flex: 1;
    }

    .search-container input {
        padding: 10px 15px;
        font-size: 14px;
    }

    .search-btn {
        padding: 0 15px;
    }

    .header-actions {
        gap: 15px;
    }

.mobile-menu-btn {
    display: none;
}

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 400px;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 9999;
        padding: 8px;
        justify-content: space-between;
        border-radius: 20px;
        border: 1px solid var(--gray-light);
    }

    .nav-item {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--gray);
        font-size: 11px;
        font-weight: 700;
        gap: 4px;
        transition: var(--transition);
        padding: 8px 0;
        border-radius: 12px;
    }

    .nav-item i {
        font-size: 20px;
    }

    .nav-item.active {
        color: var(--primary);
        background-color: var(--light);
    }

    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .product-img {
        height: 160px;
    }

    .why-choose-us {
        padding: 40px 20px;
    }

    .tab-btn {
        padding: 15px;
        font-size: 15px;
        flex: 1;
        text-align: center;
    }
    
    .tab-content {
        padding: 20px;
    }

    .main-image-container {
        height: 300px;
    }
    
    .product-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .modal {
        padding: 30px 20px;
    }
}

.checkout-wrapper {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--gray-light);
}

.section-title {
    color: var(--secondary);
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.delivery-card {
    flex: 1;
    background: var(--light);
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: var(--transition);
}

.delivery-card:hover {
    border-color: rgba(0, 191, 255, 0.30);
}

.delivery-card.active {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 1px var(--primary);
}

.delivery-card input[type="radio"] {
    accent-color: var(--primary);
    margin-top: 4px;
    transform: scale(1.1);
}

.method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.method-info i {
    color: var(--gray);
    font-size: 18px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.delivery-card.active .method-info i {
    color: var(--primary);
}

.method-info span {
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
}

.method-info small {
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
}

.address-group {
    transition: var(--transition);
    max-height: 100px;
    opacity: 1;
    overflow: hidden;
}

.address-group.hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
}

.vf-cash-notice {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.vf-cash-notice i {
    font-size: 28px;
}

.vf-cash-notice p {
    font-size: 13px;
    margin-bottom: 0;
}

.vf-cash-notice h3 {
    font-size: 20px;
    letter-spacing: 1px;
    margin-top: 5px;
}

.store-notice {
    background-color: rgba(0, 191, 255, 0.12);
    color: var(--success);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    border: 1px solid rgba(0, 191, 255, 0.24);
}

.store-notice i {
    font-size: 24px;
}

.latest-products-section {
    margin: 30px 5%;
}

.latest-slider-container {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap; /* دي أهم حاجة بتجبر المنتجات تفضل في صف واحد */
    gap: 15px;
    padding: 15px 0;
    scroll-behavior: auto !important; /* مهم جداً عشان التمرير بالـ JS ميخرفش */
}

/* لإخفاء شريط التمرير المزعج (اختياري) */
.latest-slider-container::-webkit-scrollbar {
    display: none;
}

.latest-slider-container .card {
    min-width: 250px;
    flex-shrink: 0;
    margin: 0;
}

.slider-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    background-color: var(--white);
    color: var(--secondary);
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: var(--light);
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 191, 255, 0.12); 
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(26, 43, 76, 0.05);
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 191, 255, 0.07);
    top: 40%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.05); }
    100% { transform: translate(-20px, 20px) scale(0.95); }
}

.store-categories-section {
    margin: 30px 5%;
}

.contact-page-main {
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-light);
    margin-bottom: 50px;
}

.contact-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

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

.contact-subtitle {
    color: var(--gray);
    font-size: 15px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-light);
}

.info-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-icon {
    width: 54px;
    height: 54px;
    background-color: rgba(0, 191, 255, 0.12);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    background-color: var(--primary);
    color: var(--white);
}

.info-content h3 {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 4px;
    font-weight: 800;
}

.info-content p {
    color: var(--gray);
    font-size: 15px;
    font-weight: 600;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.map-wrapper {
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        min-height: 300px;
    }
}

.cta-section {
    background: var(--secondary);
    margin: 0 5% 40px; 
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '\f590'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -30px;
    font-size: 220px;
    opacity: 0.03;
    transform: rotate(15deg);
    pointer-events: none;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--gray-light);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-content p strong {
    color: var(--primary); 
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background-color: var(--primary); 
    color: var(--white); 
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    border-radius: 30px;
    transition: var(--transition);
}

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

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 20px;
        margin: 0 5% 30px; 
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-btn {
        width: 100%; 
    }
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; 
}

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

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

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px; 
    background-color: #00bfff; 
    color: #FFF;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.30);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #0099cc;
    transform: scale(1.05) translateY(-3px);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        /* كانت 95، خليناها 100 عشان تترفع 5 بيكسل لفوق */
        bottom: 100px; 
        left: 20px;
        font-size: 28px;
    }
}

.top-bar {
    background-color: var(--primary); 
    color: var(--white);
    padding: 8px 5%;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 100; 
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.top-bar-content p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-content i {
    font-size: 14px;
}

.top-bar-content a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 800;
    margin-right: 8px;
    transition: var(--transition);
}

.top-bar-content a:hover {
    color: var(--white);
}

.top-bar-close {
    position: absolute;
    left: 0; 
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: var(--transition);
    padding: 0 10px;
}

.top-bar-close:hover {
    color: var(--white);
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .top-bar-content p {
        text-align: center;
        flex-wrap: wrap; 
        justify-content: center;
    }
    
    .top-bar-close {
        display: none; 
    }
}

.wholesale-banner {
    background: var(--secondary);
    margin: 0 5% 40px; 
    border-radius: var(--radius);
    padding: 50px 40px; 
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.wholesale-banner::after {
    content: '\f49e'; 
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: -20px;
    top: -30px;
    font-size: 220px; 
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
}

.wholesale-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.wholesale-text {
    text-align: right;
}

.wholesale-text .badge {
    background-color: var(--primary); 
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 15px;
}

.wholesale-text h2 {
    font-size: 28px; 
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}

.wholesale-text h2 i {
    color: var(--primary);
}

.wholesale-text p {
    font-size: 15px; 
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
    color: var(--gray-light);
}

.wholesale-btn {
    background-color: var(--white);
    color: var(--secondary);
    padding: 15px 36px; 
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px; 
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

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

@media (max-width: 768px) {
    .wholesale-banner {
        padding: 40px 20px;
        margin: 0 5% 30px; 
        text-align: center;
    }
    
    .wholesale-content {
        flex-direction: column;
    }
    
    .wholesale-text {
        text-align: center;
    }
    
    .wholesale-text h2 {
        font-size: 24px;
        justify-content: center;
    }
    
    .wholesale-btn {
        width: 100%;
        justify-content: center;
    }
}

/* تنسيقات بانر الصورة الواحدة (بعد تصغير الحجم) */
.hero-banner-only {
    display: block;
    width: 100%;
    max-width: 1000px; /* تصغير عرض البانر في الديسكتوب (كان 1200) */
    margin: 0 auto 50px auto; /* توسيط البانر ومسافة أسفله */
    box-shadow: var(--shadow-lg); 
    border-radius: 24px; /* حواف منحنية للديسكتوب */
    overflow: hidden; 
    border: 1px solid var(--gray-light); 
    transition: var(--transition); 
}

.hero-banner-only .banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hero-banner-only img {
    width: 100%;
    display: block;
    height: auto;
    max-height: 350px; /* تقليل أقصى ارتفاع للديسكتوب ليتناسب مع العرض */
    object-fit: cover; 
}

.hero-banner-only:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); /* لون الظل معدل للثيم الأزرق */
}

/* التجاوب مع الموبايل (عرض الشاشة 768 بكسل أو أقل) */
@media (max-width: 768px) {
    .hero-banner-only {
        width: calc(100% + 10%); 
        margin-left: -5%; 
        margin-right: -5%;
        
        /* السحر هنا: هوامش سلبية لكسر الـ 40 بيكسل الخاصة بالـ main عشان تلزق في الناف بار */
        margin-top: -40px; 
        margin-bottom: 30px; 
        
        /* تحريك البانر لليسار بمقدار 5 بيكسل (لأن اتجاه الموقع RTL، بنزق من اليمين) */
        position: relative;
        right: 5px; 
        
        border-radius: 0; 
        max-width: none; 
        border: none; 
    }
    
    .hero-banner-only img {
        width: 100%;
        height: auto;
        max-height: 220px; 
        object-fit: cover; 
    }
}

/* ========================================= */
/* 1. تصميم بانر العناوين (وصل حديثاً، الأقسام، إلخ) */
/* ========================================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    
    /* السحر هنا: خلفية متدرجة فخمة من الأزرق للأزرق */
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    padding: 15px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white); /* لون الخط أبيض عشان يقرأ على الخلفية الغامقة */
    margin: 0;
}

/* تعديل زر "عرض الكل" عشان يليق مع البانر */
.view-all {
    color: var(--white);
    background-color: rgba(255, 255, 255, 0.15); /* خلفية بيضاء شفافة */
    text-decoration: none;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-all:hover {
    background-color: var(--white);
    color: var(--primary); /* يقلب أزرق لما تقف عليه */
    transform: translateX(-5px);
}

/* تعديل أزرار الأسهم عشان تليق مع البانر الغامق */
.section-header .arrow-btn {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-header .arrow-btn:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* ========================================= */
/* 2. تصميم خلفية شريط الأقسام (الكاتيجوريز) */
/* ========================================= */
.sub-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    
    /* خلفية متدرجة خفيفة جداً تدمج الأزرق مع الأزرق */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 191, 255, 0.10));
    padding: 15px 20px; /* مسافة داخلية عشان الزراير متلزقش في الحواف */
    border-radius: 20px;
    border: 1px solid rgba(37, 99, 235, 0.15); /* إطار أزرق شفاف */
    margin-bottom: 20px;
}

.sub-categories::-webkit-scrollbar {
    display: none; 
}

/* تعديل للموبايل عشان البانر ميطلعش بره الشاشة */
@media (max-width: 768px) {
    .section-header {
        padding: 12px 20px;
        flex-direction: column; /* نخلي العنوان فوق والزراير تحته لو الشاشة ضيقة */
        gap: 15px;
        text-align: center;
    }
    
    .sub-categories {
        padding: 10px 15px;
        border-radius: 16px;
    }

.login-btn {
        font-size: 0; 
        padding: 0;
        width: 38px;
        height: 38px;
        border-radius: 50%; 
        justify-content: center;
        gap: 0;
        /* لو حابب تظبط المسافة بينه وبين السلة */
        margin-left: 5px; 
    }

    .login-btn i {
        font-size: 16px; 
        margin: 0;
    }

    /* إخفاء كلمة "حسابي" في حالة إن اليوزر مسجل دخول بالفعل */
    #userNameDisplay {
        display: none;
    }
}

.full-categories-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* استخدام dvh بيخليها تاخد طول الشاشة بالظبط في الموبايلات الحديثة حتى لو شريط المتصفح ظهر أو اختفى */
    height: 100vh; 
    height: 100dvh; 
    background-color: #fff; /* لازم لون خلفية عشان يغطي الموقع بالكامل */
    z-index: 999; /* لازم يكون رقم عالي جداً عشان يغطي الموقع كله */
    display: flex;
    flex-direction: column;
    padding-bottom: 70px; /* مساحة عشان المحتوى ميتغطاش تحت البار السفلي */
}

/* هيدر نافذة الأقسام */
.full-cats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 2;
}

.full-cats-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--primary, #00bfff);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-cats-btn {
    background: #f9f9f9;
    border: 1px solid #eee;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-cats-btn:active {
    background: #eee;
}

/* جسم النافذة الذي يحتوي على اليمين واليسار */
.full-cats-body {
    display: flex;
    flex: 1; /* يأخذ باقي المساحة المتاحة تحت الهيدر */
    overflow: hidden; /* لمنع تمرير الشاشة بالكامل */
}

/* القائمة الجانبية اليمنى (الأقسام الرئيسية) */
.cats-sidebar {
    width: 30%;
    background: #f4f5f7;
    overflow-y: auto;
    border-left: 1px solid #eeeeee;
}

.cat-tab {
    padding: 18px 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid #e9e9e9;
    transition: all 0.3s ease;
}

.cat-tab.active {
    background: #ffffff;
    color: var(--primary, #00bfff);
    border-right: 4px solid var(--primary, #00bfff);
}

/* محتوى الأقسام الفرعية اليسرى */
.cats-content {
    width: 70%;
    background: #ffffff;
    overflow-y: auto;
    padding: 15px;
}

.subcat-group-title {
    color: var(--primary, #00bfff);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

.subcat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
}

.subcat-item span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

/* ========================================= */
/* تصميمات الموبايل (البحث، الـ FAB، الـ Glassmorphism) */
/* ========================================= */
@media (max-width: 768px) {
    /* إخفاء شريط البحث الطويل للديسكتوب */
    .search-container {
        display: none;
    }
    
    /* إظهار أيقونة البحث الخاصة بالموبايل */
    .mobile-only-icon {
        display: flex !important;
        font-size: 20px;
    }

    /* إخفاء سلة الديسكتوب من الهيدر */
    .desktop-cart-btn {
        display: none !important;
    }

    /* شريط التنقل السفلي (تأثير Glassmorphism) */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 25px; /* رفع الشريط عن الحافة السفلية */
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 400px;
        justify-content: space-between;
        align-items: center;
        padding: 5px 20px; /* تقليل الارتفاع للسماح ببروز الزر العائم */
        
        /* تأثير الزجاج (Glassmorphism) */
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.9);
        border-radius: 30px; /* تدوير الحواف بالكامل */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        z-index: 9999;
    }

    .nav-item {
        flex: unset; /* إزالة الـ flex:1 لضبط المسافات حول الزر العائم */
        padding: 5px 10px;
        gap: 2px;
    }

/* زر السلة العائم (FAB) */
    .fab-cart {
        background: linear-gradient(135deg, var(--primary), #0099cc);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 4px solid var(--white); 
        color: var(--white);
        box-shadow: 0 8px 20px rgba(0, 191, 255, 0.40);
        
        /* التعديل هنا: غيرنا القيمة من -25 لـ -12 عشان ينزل لتحت شوية */
        transform: translateY(-3px); 
        
        cursor: pointer;
        position: relative;
        z-index: 10;
        transition: var(--transition);
        padding: 0;
    }

    .fab-cart i {
        font-size: 22px;
        color: var(--white);
    }

    .fab-cart .cart-badge {
        top: -2px;
        right: -2px;
        background: var(--danger);
        border: 2px solid var(--white); /* إطار أحمر وأبيض للرقم */
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .fab-cart:active {
        transform: translateY(-20px) scale(0.95);
    }
}

/* شريط البحث المنبثق للموبايل */
.mobile-search-popup {
    display: none; /* مخفي افتراضياً */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    animation: slideDownSearch 0.3s ease-out forwards;
    display: none; /* يتم التحكم فيه بالـ JS */
    align-items: center;
    gap: 15px;
}

.mobile-search-content {
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--light);
    border: 1px solid var(--primary);
    border-radius: 30px;
    padding: 2px 10px;
}

.mobile-search-content input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    outline: none;
    font-size: 15px;
}

.close-search-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--light);
    border-radius: 50%;
}

@keyframes slideDownSearch {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================= */
/* تخصيص شكل شريط التمرير (Scrollbar) */
/* ========================================= */

/* عرض شريط التمرير */
::-webkit-scrollbar {
    width: 10px;  /* للنزول والطلوع */
    height: 8px;  /* للاسكرول الأفقي لو موجود */
}

/* خلفية مسار شريط التمرير */
::-webkit-scrollbar-track {
    background: var(--light); 
    border-radius: 10px;
}

/* الجزء اللي بتسحبه بالماوس (الـ Thumb) */
::-webkit-scrollbar-thumb {
    background: var(--primary); /* اللون الأزرق الفاتح الخاص بالموقع */
    border-radius: 10px;
}

/* لون الـ Thumb لما تقف عليه بالماوس */
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover); /* أو ممكن تستخدم var(--secondary) لو عايزه يقلب أزرق كحلي */
}

/* تنسيق قائمة حسابي لتصبح نافذة في منتصف الشاشة للموبايل */
@media (max-width: 768px) {
    #userDropdownMenu {
        position: fixed !important;       /* تحويلها من مطلقة إلى نافذة ثابتة على الشاشة */
        top: 50% !important;             /* التموضع في منتصف الارتفاع */
        left: 50% !important;            /* التموضع في منتصف العرض */
        transform: translate(-50%, -50%) !important; /* التوسيط الدقيق وبدقة 100% */
        
        /* إلغاء التنسيقات القديمة */
        right: auto !important;
        top: 50% !important;
        
        /* أبعاد النافذة */
        width: 85% !important;           /* عرض مناسب لشاشات الموبايل */
        max-width: 320px !important;     /* أقصى عرض عشان متبقاش ضخمة */
        
        /* التصميم والشكل */
        background-color: var(--white) !important;
        border-radius: 24px !important;   /* حواف دائرية تتماشى مع الهوية */
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important; /* ظل قوي لإبراز النافذة */
        border: 1px solid var(--gray-light) !important;
        padding: 10px 0 !important;
        z-index: 100000 !important;       /* جعلها فوق شريط التنقل السفلي والـ FAB */
        
        /* أنيميشن خفيف أثناء الظهور */
        animation: modalFadeIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    }

    /* تعديل شكل الروابط بالداخل لتناسب ضغطات الأصابع */
    #userDropdownMenu a {
        padding: 16px 20px !important;
        font-size: 15px !important;
        border-bottom: 1px solid var(--gray-light) !important;
    }
    
    #userDropdownMenu a:last-child {
        border-bottom: none !important;
    }
}

/* حركة ظهور النافذة */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==========================================
   تصميم قائمة البحث المنسدلة (Dropdown Search)
   ========================================== */
.search-dropdown {
    position: absolute;
    top: 110%; /* تظهر أسفل مربع البحث مباشرة */
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    z-index: 9999;
    display: none; /* مخفية افتراضياً */
}

.search-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background 0.2s ease;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background-color: #f8fafc;
}

.search-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    margin-left: 12px;
    border: 1px solid #eee;
}

.search-item-info {
    flex: 1;
}

.search-item-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #050505;
    /* لقص النص الطويل وإضافة نقاط... */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.search-item-price {
    font-size: 13px;
}

/* ==========================================
   تأثير الفيدباك لأزرار الموبايل ناف السفلي
   ========================================== */
.mobile-bottom-nav .nav-item {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); /* حركة مرنة وسلسة */
    position: relative;
}

/* تأثير لحظة اللمس بالصبع (Shrink/Bounce Effect) */
.mobile-bottom-nav .nav-item:active {
    transform: scale(0.88); /* يصغر بنسبة بسيطة عند الضغط */
}

/* فيدباك خاص بزر السلة العائم عشان موقعه متسنتر في النص */
.mobile-bottom-nav .fab-cart:active {
    transform: translate(-50%, -35%) scale(0.9) !important; /* الحفاظ على السنتر مع تأثير الضغط */
}

/* شكل الأيقونة والنص لما يكون الزرار نشط (Active) */
.mobile-bottom-nav .nav-item.active {
    color: var(--primary) !important; /* هيتحول للون الأساسي للمتجر */
    font-weight: 800;
}

.mobile-bottom-nav .nav-item.active i {
    transform: translateY(-5px); /* رفع الأيقونة لأعلى سنة */
    color: var(--primary);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* ظل خفيف تحت الأيقونة المرفوعة */
}

/* أنيميشن ناعم للأيقونة عند التحول */
.mobile-bottom-nav .nav-item i {
    transition: transform 0.2s ease-in-out, color 0.2s;
}

#catBreadcrumb a:hover {
    color: var(--secondary) !important;
    text-decoration: underline !important;
}
/* =========================================================
   Client fixes: desktop categories, stable order, mobile polish
   ========================================================= */
@media (min-width: 1180px) {
    .desktop-categories-panel {
        position: fixed;
        top: 96px;
        right: 18px;
        width: 240px;
        max-height: calc(100vh - 125px);
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--gray-light);
        border-radius: 18px;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
        z-index: 850;
        padding: 12px;
    }

    body.has-desktop-cats main {
        max-width: 1600px;
        padding-right: 295px;
    }

    body.has-desktop-cats .store-categories-section {
        display: none;
    }

    .desktop-cats-title {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 14px;
        margin-bottom: 8px;
        border-radius: 14px;
        background: linear-gradient(135deg, rgba(0, 191, 255, 0.14), rgba(23,49,99,0.08));
        color: var(--secondary);
        font-size: 17px;
        font-weight: 900;
    }

    .desktop-cat-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 13px;
        margin-bottom: 7px;
        border-radius: 13px;
        text-decoration: none;
        color: var(--secondary);
        font-size: 14px;
        font-weight: 800;
        border: 1px solid transparent;
        transition: var(--transition);
    }

    .desktop-cat-link i {
        width: 22px;
        color: var(--primary);
        text-align: center;
        font-size: 16px;
    }

    .desktop-cat-link:hover,
    .desktop-cat-link.active {
        background: var(--light);
        border-color: rgba(0, 191, 255, 0.35);
        transform: translateX(-3px);
        color: var(--primary);
    }

    .desktop-cat-all {
        background: var(--secondary);
        color: white;
    }

    .desktop-cat-all i {
        color: white;
    }
}

@media (max-width: 1179px) {
    .desktop-categories-panel {
        display: none !important;
    }
}

.cat-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cat-tab i {
    color: var(--primary);
    font-size: 14px;
}

.subcat-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #eeeeee;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.subcat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subcat-thumb i {
    font-size: 28px;
    color: var(--primary);
}

.subcat-item-all .subcat-thumb {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.18), rgba(23,49,99,0.12));
}

@media (max-width: 768px) {
    main {
        padding: 20px 4% 105px;
    }

    .hero-banner-only img,
    .banner-link img {
        border-radius: 18px;
    }

    .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card {
        border-radius: 16px;
        overflow: hidden;
    }

    .card-content h3 {
        font-size: 13px;
        line-height: 1.4;
    }

    .latest-slider-container .card {
        min-width: 155px;
    }

    .full-categories-menu {
        border-radius: 0;
    }

    .full-cats-header {
        position: sticky;
        top: 0;
    }

    .cats-sidebar {
        width: 36%;
    }

    .cats-content {
        width: 64%;
        padding: 12px;
    }

    .subcat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .search-dropdown {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        max-height: 70vh;
        border-radius: 18px;
        z-index: 10001;
    }
}


/* =========================================================
   Salla-inspired complete redesign for Maktabet Nour
   Paste this block after the old CSS or use this file directly.
   ========================================================= */
:root {
    --primary: #00bfff;
    --primary-hover: #0099cc;
    --primary-soft: #e0f7ff;
    --secondary: #050505;
    --secondary-hover: #000000;
    --accent: #00bfff;
    --accent-soft: #e0f7ff;
    --danger: #ef4444;
    --success: #00bfff;
    --dark: #050505;
    --dark-light: #17202a;
    --light: #f6f7fb;
    --gray: #4b5563;
    --gray-light: #e5e7eb;
    --white: #ffffff;
    --radius: 22px;
    --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.09);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body.salla-inspired-theme,
body {
    background:
        radial-gradient(circle at 88% -8%, rgba(0, 191, 255, 0.16), transparent 34%),
        radial-gradient(circle at 10% 8%, rgba(245,158,11,0.12), transparent 30%),
        linear-gradient(180deg, #fbfcff 0%, #f6f7fb 42%, #ffffff 100%);
    color: var(--dark);
}

::selection {
    background: var(--primary);
    color: #fff;
}

.bg-shapes {
    background:
        radial-gradient(circle at 78% 18%, rgba(0, 191, 255, 0.14), transparent 24%),
        radial-gradient(circle at 12% 55%, rgba(245,158,11,0.10), transparent 22%);
}

.top-bar {
    background: linear-gradient(90deg, var(--secondary), #1e3a8a, var(--primary-hover));
    padding: 10px 5%;
    letter-spacing: 0;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.1);
}

.top-bar-content {
    justify-content: center;
}

.top-bar-content p {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

header {
    top: 0;
    margin: 0 auto;
    padding: 16px 5%;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 10px 35px rgba(15,23,42,0.07);
}

.logo {
    position: relative;
    font-size: 28px;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    box-shadow: 0 12px 25px rgba(0, 191, 255, 0.30);
    display: inline-block;
}

.logo::after {
    content: "ن";
    position: absolute;
    right: 11px;
    top: 3px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.text-orange {
    color: var(--primary);
}

.header-right {
    gap: 26px;
}

.dropbtn {
    color: var(--secondary);
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: var(--shadow-sm);
    border-radius: 999px;
    padding: 11px 18px;
}

.dropbtn:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.dropdown-content,
#userDropdownMenu,
.search-dropdown {
    border: 1px solid rgba(15,23,42,0.08) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
}

.dropdown-content a:hover,
.search-item:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.11), rgba(245,158,11,0.07));
}

.search-container {
    width: min(46%, 580px);
    height: 52px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    overflow: visible;
    position: relative;
}

.search-container input {
    padding: 0 24px;
    font-weight: 700;
    color: var(--secondary);
}

.search-container:focus-within {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 5px rgba(0, 191, 255, 0.14), var(--shadow-md);
}

.search-btn {
    margin: 6px;
    min-width: 42px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    padding: 0 16px;
}

.search-btn:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: scale(1.03);
}

.header-actions {
    gap: 14px;
}

.icon-btn,
.mobile-menu-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    color: var(--secondary);
}

.icon-btn:hover {
    background: var(--secondary);
    color: #fff;
}

.cart-badge {
    top: -7px;
    right: -7px;
    background: var(--accent);
    box-shadow: 0 8px 18px rgba(245,158,11,0.35);
}

.login-btn,
.modal-submit,
.btn-primary,
.cta-btn,
.wholesale-btn,
.hero-cta {
    border-radius: 999px;
    font-weight: 900;
}

.login-btn {
    background: var(--secondary);
    padding: 13px 21px;
    box-shadow: var(--shadow-sm);
}

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

main {
    max-width: 1440px;
    padding: 34px 5% 60px;
}

/* Hero */
.hero-banner-only.salla-hero {
    max-width: none;
    width: 100%;
    min-height: 430px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    margin: 0 auto 28px;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.96), rgba(6,78,59,0.94)),
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.30), transparent 35%);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-banner-only.salla-hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    background:
        radial-gradient(circle at 82% 12%, rgba(245,158,11,0.32), transparent 20%),
        radial-gradient(circle at 10% 90%, rgba(37, 99, 235, 0.24), transparent 26%);
    pointer-events: none;
}

.hero-copy,
.hero-media {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.14);
    color: #e0f7ff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 18px;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.18;
    letter-spacing: -1.2px;
    font-weight: 900;
    max-width: 720px;
    margin-bottom: 16px;
}

.hero-copy p {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    line-height: 1.9;
    max-width: 620px;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-cta {
    min-height: 50px;
    padding: 13px 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.primary-hero-btn {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.28);
}

.primary-hero-btn:hover {
    background: #60a5fa;
    transform: translateY(-3px);
}

.secondary-hero-btn {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}

.secondary-hero-btn:hover {
    background: #fff;
    color: var(--secondary);
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-points span {
    color: rgba(255,255,255,0.84);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-points i {
    color: var(--accent);
    margin-left: 6px;
}

.hero-media {
    display: block;
    height: 340px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 26px 55px rgba(0,0,0,0.22);
    transform: rotate(-1.2deg);
}

.hero-media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-media:hover img {
    transform: scale(1.05);
}

.hero-banner-only:hover {
    transform: none;
}

.store-highlights {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 34px;
}

.highlight-card {
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 191, 255, 0.30);
}

.highlight-card i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary-hover);
    border-radius: 16px;
    font-size: 19px;
    flex: 0 0 auto;
}

.highlight-card strong {
    display: block;
    color: var(--secondary);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 2px;
}

.highlight-card span {
    color: var(--gray);
    font-size: 12px;
    font-weight: 700;
}

/* Sections */
.latest-products-section,
.store-categories-section {
    margin: 34px 0;
}

#offersSection {
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(254,243,199,0.55)) !important;
    border: 1px solid rgba(245,158,11,0.20) !important;
    border-radius: 28px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.section-header {
    margin-bottom: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.section-header h2 {
    color: var(--secondary) !important;
    font-size: clamp(22px, 2.2vw, 30px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.section-header h2::after {
    content: "";
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    display: inline-block;
}

.view-all,
.section-header .arrow-btn,
.arrow-btn {
    color: var(--secondary);
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: var(--shadow-sm);
}

.view-all:hover,
.arrow-btn:hover,
.section-header .arrow-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.latest-slider-container {
    gap: 18px;
    padding: 10px 4px 20px;
}

.latest-slider-container .card {
    min-width: 265px;
}

.sub-categories {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 24px;
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.sub-cat,
.cat-tab,
.desktop-cat-link {
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.08);
    color: var(--secondary);
    box-shadow: 0 4px 14px rgba(15,23,42,0.04);
}

.sub-cat:hover,
.sub-cat.active,
.cat-tab.active,
.desktop-cat-link:hover,
.desktop-cat-link.active {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.sub-cat.active i,
.cat-tab.active i,
.desktop-cat-link.active i,
.desktop-cat-link:hover i {
    color: #fff;
}

/* Product cards */
.grid-container {
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 22px;
}

.card {
    background: #fff;
    border: 1px solid rgba(15,23,42,0.07);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 191, 255, 0.30);
}

.card:hover::before {
    opacity: 1;
}

.product-img,
.item-img,
.main-image-container,
.thumbnail,
.subcat-thumb {
    background:
        linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.product-img {
    height: 230px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 18px;
}

.product-img img,
.item-img img,
.main-image-container img,
.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

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

.card-content {
    padding: 18px;
}

.card h3 {
    font-size: 16px;
    min-height: 45px;
    color: var(--secondary);
}

.brand,
.product-short-description,
.breadcrumb,
.product-meta {
    color: var(--gray);
}

.brand {
    background: #f8fafc;
    border: 1px solid rgba(0,0,0,0.07);
    width: fit-content;
    padding: 5px 11px;
    border-radius: 999px;
    margin-top: 6px;
}

.card-footer {
    border-top: 1px dashed rgba(0,0,0,0.12);
    margin-top: 16px;
}

.price,
.item-price,
.product-price {
    color: var(--primary-hover);
}

.price {
    font-size: 21px;
}

.add-to-cart-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
    box-shadow: 0 12px 22px rgba(0,0,0,0.16);
}

.add-to-cart-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px) rotate(-3deg);
}

/* Blocks */
.why-choose-us,
.wholesale-banner,
.cta-section {
    border-radius: 34px;
    background:
        linear-gradient(135deg, var(--secondary), #1e3a8a 68%, var(--primary-hover));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.why-choose-us {
    padding: 58px 34px;
}

.feature-box {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 26px;
    backdrop-filter: blur(10px);
}

.feature-icon,
.info-icon {
    background: rgba(0, 191, 255, 0.16);
    color: #bfdbfe;
}

.feature-box:hover .feature-icon,
.info-card:hover .info-icon {
    background: var(--primary);
    color: #fff;
}

.wholesale-banner,
.cta-section {
    margin: 34px 5%;
    border: 1px solid rgba(255,255,255,0.12);
}

.wholesale-text .badge {
    background: var(--accent);
}

.wholesale-text h2 i,
.cta-content p strong {
    color: #bfdbfe;
}

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

.wholesale-btn:hover {
    background: var(--accent);
    color: #fff;
}

.cta-btn,
.btn-primary,
.modal-submit {
    background: var(--primary);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.cta-btn:hover,
.btn-primary:hover,
.modal-submit:hover {
    background: var(--primary-hover);
}

footer {
    background: #000000;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 50px;
}

.social-links a {
    border: 1px solid rgba(255,255,255,0.10);
}

/* Modals / cart / checkout */
.overlay {
    background: rgba(2,6,23,0.54);
    backdrop-filter: blur(10px);
}

.modal {
    border-radius: 28px;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 32px 90px rgba(2,6,23,0.28);
}

.modal-icon {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.modal-input,
.quantity-control,
.cart-summary,
.checkout-wrapper,
.delivery-card {
    background: #f8fafc;
    border-color: rgba(15,23,42,0.08);
    border-radius: 16px;
}

.modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.14);
}

.delivery-card.active {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.12);
}

.vf-cash-notice {
    background: rgba(239,68,68,0.08);
    color: var(--danger);
    border-color: rgba(239,68,68,0.16);
}

.store-notice {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.16);
}

/* Contact/product pages */
.single-product-container,
.product-description-tabs,
.contact-container {
    border-radius: 30px;
    border: 1px solid rgba(15,23,42,0.07);
    box-shadow: var(--shadow-sm);
}

.product-brand {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.tab-btn.active {
    color: var(--primary-hover);
    border-bottom-color: var(--primary);
}

/* Mobile category menu */
.full-categories-menu {
    background: #fff;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -20px 60px rgba(2,6,23,0.18);
}

.full-cats-header {
    background: linear-gradient(135deg, var(--secondary), #1e3a8a);
    color: #fff;
}

.close-cats-btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
}

/* Floating buttons */
.whatsapp-float {
    background: #00bfff;
    box-shadow: 0 18px 35px rgba(59, 130, 246, 0.34);
}

.whatsapp-float:hover {
    background: #0099cc;
}

.mobile-bottom-nav {
    border-radius: 26px;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.14);
}

.mobile-bottom-nav .nav-item.active {
    background: var(--primary-soft);
    color: var(--primary-hover) !important;
}

.fab-cart {
    background: var(--secondary) !important;
    color: #fff !important;
    box-shadow: 0 16px 32px rgba(15,23,42,0.24) !important;
}

/* Responsive */
@media (max-width: 1180px) {
    header {
        padding: 14px 4%;
    }

    .search-container {
        width: 40%;
    }

    .store-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-banner-only.salla-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 28px;
    }

    .hero-media {
        height: 260px;
        transform: none;
    }

    .search-container {
        width: auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 92px;
    }

    .top-bar-content p {
        padding: 4px 10px;
    }

    header {
        padding: 12px 14px;
        gap: 10px;
    }

    .logo {
        font-size: 21px;
    }

    .logo::before {
        width: 36px;
        height: 36px;
        border-radius: 14px;
    }

    .logo::after {
        right: 10px;
        top: 3px;
        font-size: 21px;
    }

    .login-btn,
    .desktop-cart-btn {
        display: none !important;
    }

    .mobile-only-icon {
        display: inline-flex !important;
    }

    main {
        padding: 18px 4% 42px;
    }

    .hero-banner-only.salla-hero {
        width: 100%;
        margin: 0 0 20px;
        right: auto;
        border-radius: 28px;
        padding: 22px;
    }

    .hero-copy h1 {
        font-size: 30px;
    }

    .hero-copy p {
        font-size: 14px;
    }

    .hero-actions a {
        width: 100%;
    }

    .hero-points {
        gap: 8px;
    }

    .hero-points span {
        flex: 1 1 130px;
        text-align: center;
    }

    .hero-media {
        height: 210px;
        border-radius: 22px;
    }

    .store-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }

    .highlight-card {
        padding: 12px;
        border-radius: 18px;
        align-items: flex-start;
    }

    .highlight-card i {
        width: 38px;
        height: 38px;
        border-radius: 13px;
        font-size: 16px;
    }

    .highlight-card strong {
        font-size: 13px;
    }

    .highlight-card span {
        font-size: 11px;
    }

    #offersSection {
        padding: 16px;
        border-radius: 24px;
    }

    .section-header h2 {
        font-size: 21px;
    }

    .section-header h2::after {
        width: 30px;
    }

    .grid-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .latest-slider-container .card {
        min-width: 168px;
    }

    .product-img {
        height: 150px;
        padding: 12px;
    }

    .card-content {
        padding: 13px;
    }

    .card h3 {
        font-size: 13px;
        min-height: 40px;
    }

    .brand {
        font-size: 11px;
        padding: 4px 8px;
    }

    .price {
        font-size: 16px;
    }

    .add-to-cart-btn {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .why-choose-us,
    .wholesale-banner,
    .cta-section {
        border-radius: 26px;
        margin-left: 4%;
        margin-right: 4%;
    }

    .wholesale-content {
        text-align: center;
    }

    .modal {
        width: 94%;
        border-radius: 24px;
    }

    .mobile-bottom-nav {
        bottom: 12px;
        width: 94%;
    }
}

@media (max-width: 420px) {
    .store-highlights {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 27px;
    }

    .hero-media {
        height: 180px;
    }
}

/* =========================================================
   Final client override: Sky blue + Black theme
   ========================================================= */
:root {
    --primary: #00bfff;
    --primary-hover: #0099cc;
    --primary-soft: #e0f7ff;
    --secondary: #050505;
    --secondary-hover: #000000;
    --accent: #00d5ff;
    --accent-soft: #e6fbff;
    --dark: #050505;
    --dark-light: #17202a;
    --light: #f5fcff;
    --gray: #333333;
    --gray-light: #d9eef6;
    --white: #ffffff;
    --success: #00bfff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.16);
}

body {
    background-color: var(--light);
    color: var(--dark);
}

.top-bar,
.login-btn,
.btn-primary,
.cta-btn,
.sub-cat.active,
.cart-badge,
.add-to-cart-btn:hover,
.feature-box:hover .feature-icon,
.info-card:hover .info-icon,
.social-links a:hover,
.arrow-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.login-btn:hover,
.btn-primary:hover,
.cta-btn:hover,
.modal-submit:hover {
    background-color: var(--primary-hover);
}

header,
.card,
.modal,
.checkout-wrapper,
.contact-container,
.product-description-tabs,
.single-product-container,
.mobile-bottom-nav {
    background-color: var(--white);
}

.logo,
.dropbtn,
.search-btn,
.icon-btn,
.card h3,
.section-title,
.modal-title,
.summary-row,
.total-price,
.product-title,
.quantity-control span,
.quantity-control button,
.info-content h3 {
    color: var(--secondary);
}

.text-orange,
.dropbtn i,
.dropdown-content a i,
.search-btn:hover,
.icon-btn:hover,
.price,
.item-price,
.product-price,
.current-page,
.view-all:hover,
.product-brand,
.tab-btn.active,
.contact-title span,
.footer-logo .text-orange {
    color: var(--primary) !important;
}

.search-container:focus-within,
.modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.16);
}

.section-header,
.salla-hero,
.wholesale-banner,
.cta-section {
    background: linear-gradient(135deg, #000000 0%, #00bfff 100%) !important;
    color: var(--white);
}

.sub-categories {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.05), rgba(0, 191, 255, 0.10));
    border-color: rgba(0, 191, 255, 0.22);
}

.card:hover,
.sub-cat:hover,
.thumbnail:hover,
.active-thumb,
.delivery-card.active {
    border-color: rgba(0, 191, 255, 0.45) !important;
}

.feature-icon,
.modal-icon,
.info-icon,
.product-brand,
.desktop-cats-title,
.subcat-item-all .subcat-thumb {
    background-color: rgba(0, 191, 255, 0.12) !important;
    color: var(--primary) !important;
}

footer {
    background: #000000 !important;
    color: #ffffff !important;
}

footer .footer-logo,
footer .footer-logo.logo,
footer .footer-logo:not(.text-orange) {
    color: #ffffff !important;
}

footer .footer-logo .text-orange {
    color: var(--primary) !important;
}

footer .footer-content p,
footer .footer-bottom {
    color: rgba(255, 255, 255, 0.78) !important;
}

.whatsapp-float,
.fab-cart {
    background: linear-gradient(135deg, #000000, #00bfff) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(0, 191, 255, 0.35);
}

.whatsapp-float:hover {
    background: var(--primary-hover) !important;
}

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

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


/* =========================================================
   Final fix: make black text white on the sky/black theme
   ========================================================= */
:root {
    --dark: #ffffff;
}

body.salla-inspired-theme {
    background-color: #050505;
}

/* Header on black theme */
header {
    background-color: #000000 !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

header .logo,
header .dropbtn,
header .search-btn,
header .icon-btn,
header .mobile-menu-btn,
header #userNameDisplay,
header #userProfileBtn,
header #userProfileBtn i {
    color: #ffffff !important;
}

header .text-orange,
header .dropbtn i,
header .search-btn:hover,
header .icon-btn:hover {
    color: var(--primary) !important;
}

.search-container {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.search-container input {
    color: #ffffff !important;
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

.dropdown-content,
#userDropdownMenu {
    background-color: #050505 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.dropdown-content a,
#userDropdownMenu a {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.dropdown-content a:hover,
#userDropdownMenu a:hover {
    background-color: rgba(0, 191, 255, 0.14) !important;
    color: #ffffff !important;
}

/* All dark/gradient sections text */
.section-header,
.section-header *,
.salla-hero,
.salla-hero *,
.why-choose-us,
.why-choose-us *,
.wholesale-banner,
.wholesale-banner *,
.cta-section,
.cta-section *,
footer,
footer * {
    color: #ffffff !important;
}

/* Keep brand/accent parts sky blue where useful */
.section-header i,
.salla-hero .hero-kicker,
.salla-hero .hero-kicker i,
.salla-hero .secondary-hero-btn,
.wholesale-text .badge,
.wholesale-text h2 i,
.cta-content p strong,
footer .text-orange,
footer .footer-logo .text-orange,
.social-links a:hover i {
    color: var(--primary) !important;
}

/* Buttons remain readable */
.salla-hero .primary-hero-btn,
.salla-hero .primary-hero-btn *,
.cta-btn,
.cta-btn *,
.wholesale-btn:hover,
.wholesale-btn:hover * {
    color: #ffffff !important;
}

.salla-hero .secondary-hero-btn:hover,
.salla-hero .secondary-hero-btn:hover *,
.wholesale-btn,
.wholesale-btn * {
    color: #000000 !important;
}

/* Footer logo: make the word مكتبة white and نور sky */
footer .footer-logo,
footer .footer-logo.logo {
    color: #ffffff !important;
}

footer .footer-logo .text-orange {
    color: var(--primary) !important;
}

/* =========================================================
   FINAL CLEAN THEME FIX: sky + soft black, not heavy black
   ========================================================= */
:root {
    --primary: #00bfff !important;
    --primary-hover: #0099cc !important;
    --secondary: #0f172a !important;
    --secondary-hover: #020617 !important;
    --dark: #0f172a !important;
    --dark-light: #1e293b !important;
    --light: #f5fbff !important;
    --gray: #475569 !important;
    --gray-light: #dbeafe !important;
    --white: #ffffff !important;
    --danger: #0284c7 !important;
    --success: #00bfff !important;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    --shadow-md: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
    --shadow-lg: 0 18px 38px rgba(15, 23, 42, 0.12) !important;
}

html,
body,
body.salla-inspired-theme {
    background: linear-gradient(180deg, #f5fbff 0%, #ffffff 45%, #f5fbff 100%) !important;
    color: #0f172a !important;
}

.bg-shapes {
    background: transparent !important;
}

.shape-1 {
    background: rgba(0, 191, 255, 0.14) !important;
}

.shape-2 {
    background: rgba(15, 23, 42, 0.05) !important;
}

.shape-3 {
    background: rgba(0, 191, 255, 0.09) !important;
}

/* خفيفنا الهيدر: أبيض بدل الأسود التقيل */
header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(0, 191, 255, 0.18) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

header .logo,
header .dropbtn,
header .search-btn,
header .icon-btn,
header .mobile-menu-btn,
header #userNameDisplay {
    color: #0f172a !important;
}

header .text-orange,
header .dropbtn i,
header .search-btn:hover,
header .icon-btn:hover,
.text-orange,
.price,
.item-price,
.product-price,
.current-page,
.product-brand,
.tab-btn.active,
.contact-title span {
    color: #00bfff !important;
}

.search-container,
.mobile-search-content {
    background: #ffffff !important;
    border: 1px solid rgba(0, 191, 255, 0.30) !important;
}

.search-container input,
.mobile-search-content input {
    color: #0f172a !important;
}

.search-container input::placeholder,
.mobile-search-content input::placeholder {
    color: #64748b !important;
}

.dropdown-content,
#userDropdownMenu,
.mobile-search-popup {
    background: #ffffff !important;
    border-color: rgba(0, 191, 255, 0.22) !important;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12) !important;
}

.dropdown-content a,
#userDropdownMenu a {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}

.dropdown-content a:hover,
#userDropdownMenu a:hover {
    background: rgba(0, 191, 255, 0.10) !important;
    color: #0284c7 !important;
}

/* أماكن اللون الغامق تبقى شيك ومش أسود صريح */
.top-bar,
.section-header,
.salla-hero,
.why-choose-us,
.wholesale-banner,
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 58%, #00bfff 100%) !important;
    color: #ffffff !important;
}

.section-header *,
.salla-hero *,
.why-choose-us *,
.wholesale-banner *,
.cta-section * {
    color: #ffffff !important;
}

/* الزراير الفاتحة جوه البانرات */
.salla-hero .secondary-hero-btn,
.wholesale-btn,
.cta-btn.outline-btn:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.salla-hero .secondary-hero-btn *,
.wholesale-btn *,
.cta-btn.outline-btn:hover * {
    color: #0f172a !important;
}

.salla-hero .primary-hero-btn,
.cta-btn,
.wholesale-btn:hover,
.btn-primary,
.login-btn,
.modal-submit,
.sub-cat.active,
.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #00bfff, #0284c7) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.salla-hero .primary-hero-btn *,
.cta-btn *,
.wholesale-btn:hover *,
.btn-primary *,
.login-btn *,
.modal-submit *,
.sub-cat.active *,
.add-to-cart-btn:hover * {
    color: #ffffff !important;
}

.card,
.modal,
.cart-summary,
.single-product-container,
.product-description-tabs,
.contact-container,
.checkout-wrapper,
.delivery-card,
.sub-cat,
.desktop-categories-panel,
.full-categories-menu,
.full-cats-header,
.cats-content,
.subcat-thumb,
.mobile-bottom-nav {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(0, 191, 255, 0.16) !important;
}

.card *,
.modal *,
.cart-summary *,
.single-product-container *,
.product-description-tabs *,
.contact-container *,
.checkout-wrapper *,
.delivery-card *,
.sub-cat *,
.desktop-categories-panel *,
.full-categories-menu *,
.full-cats-header *,
.cats-content *,
.mobile-bottom-nav * {
    color: inherit;
}

.card h3,
.card-content h3,
.item-info h4,
.product-title,
.modal-title,
.section-title,
.info-content h3,
.contact-title,
.summary-row,
.total-price,
.quantity-control span,
.cat-tab,
.subcat-item span,
.nav-item {
    color: #0f172a !important;
}

.brand,
.product-short-description,
.contact-subtitle,
.info-content p,
.footer-content p,
.footer-bottom,
.breadcrumb,
.modal-link,
.nav-item {
    color: #475569 !important;
}

.sub-categories,
.tabs-header,
.quantity-control,
.close-search-btn,
.arrow-btn,
.method-info,
.address-group,
.store-notice {
    background: #eaf8ff !important;
    border-color: rgba(0, 191, 255, 0.22) !important;
    color: #0f172a !important;
}

.feature-icon,
.modal-icon,
.info-icon,
.product-brand,
.desktop-cats-title,
.subcat-item-all .subcat-thumb {
    background: rgba(0, 191, 255, 0.13) !important;
    color: #0284c7 !important;
}

/* الفوتر غامق ناعم، وكلمة مكتبة واضحة أبيض */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%) !important;
    color: #ffffff !important;
}

footer *,
footer .footer-logo,
footer .footer-logo.logo {
    color: #ffffff !important;
}

footer .footer-logo .text-orange,
footer .text-orange {
    color: #00bfff !important;
}

footer .footer-content p,
footer .footer-bottom {
    color: rgba(255, 255, 255, 0.76) !important;
}

.social-links a {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.social-links a:hover,
.whatsapp-float,
.fab-cart {
    background: linear-gradient(135deg, #00bfff, #0284c7) !important;
    color: #ffffff !important;
}

.whatsapp-float i,
.fab-cart i {
    color: #ffffff !important;
}

.vf-cash-notice {
    background: rgba(0, 191, 255, 0.10) !important;
    color: #0f172a !important;
    border-color: rgba(0, 191, 255, 0.22) !important;
}

.vf-cash-notice * {
    color: #0f172a !important;
}

::-webkit-scrollbar-thumb {
    background: #00bfff !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #0284c7 !important;
}


/* ===== Final fix: white section titles and button text ===== */
/* عناوين: وصل حديثاً / الأقسام الرئيسية / عروض وتخفيضات */
body .section-header,
body #offersSection .section-header,
body .latest-products-section .section-header,
body .store-categories-section .section-header {
    background: linear-gradient(135deg, #0f172a 0%, #0284c7 60%, #00bfff 100%) !important;
    padding: 15px 24px !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 28px rgba(2, 132, 199, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body .section-header h2,
body .section-header h2 i,
body .section-header h2 span,
body #offersSection .section-header h2,
body .latest-products-section .section-header h2,
body .store-categories-section .section-header h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
}

body .section-header h2::after {
    background: rgba(255, 255, 255, 0.85) !important;
}

/* أي زر داخل بانر العنوان: النص والأيقونات أبيض */
body .section-header .view-all,
body .section-header .arrow-btn,
body .section-header button,
body .section-header a {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.32) !important;
    box-shadow: none !important;
}

body .section-header .view-all *,
body .section-header .arrow-btn *,
body .section-header button *,
body .section-header a * {
    color: #ffffff !important;
}

body .section-header .view-all:hover,
body .section-header .arrow-btn:hover,
body .section-header button:hover,
body .section-header a:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
}

/* النصوص والأيقونات داخل الأزرار المهمة تبقى أبيض */
body .login-btn,
body .login-btn *,
body .btn-primary,
body .btn-primary *,
body .modal-submit,
body .modal-submit *,
body .checkout-btn,
body .checkout-btn *,
body .search-btn,
body .search-btn *,
body .add-to-cart-btn,
body .add-to-cart-btn *,
body .hero-cta,
body .hero-cta *,
body .cta-btn,
body .cta-btn *,
body .wholesale-btn,
body .wholesale-btn *,
body .sub-cat.active,
body .sub-cat.active *,
body .cat-tab.active,
body .cat-tab.active *,
body .desktop-cat-link.active,
body .desktop-cat-link.active *,
body .fab-cart,
body .fab-cart *,
body .whatsapp-float,
body .whatsapp-float * {
    color: #ffffff !important;
}

/* أزرار كانت خلفيتها بيضاء داخل البانرات نخليها مناسبة للنص الأبيض */
body .secondary-hero-btn,
body .wholesale-btn,
body .cta-btn.outline-btn,
body .cta-btn.outline-btn:hover {
    background: linear-gradient(135deg, #00bfff, #0284c7) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

body .secondary-hero-btn *,
body .wholesale-btn *,
body .cta-btn.outline-btn *,
body .cta-btn.outline-btn:hover * {
    color: #ffffff !important;
}



/* =========================================================
   Header image on top fix
   ========================================================= */
.hero-banner-only.salla-hero {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 28px !important;
    min-height: auto !important;
}

.hero-banner-only.salla-hero .hero-media {
    order: 1 !important;
    width: 100% !important;
    height: clamp(230px, 34vw, 430px) !important;
    max-width: 100% !important;
    border-radius: 28px !important;
    transform: none !important;
    margin: 0 !important;
}

.hero-banner-only.salla-hero .hero-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.hero-banner-only.salla-hero .hero-copy {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.hero-banner-only.salla-hero .hero-copy h1,
.hero-banner-only.salla-hero .hero-copy p {
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero-banner-only.salla-hero .hero-actions,
.hero-banner-only.salla-hero .hero-points {
    justify-content: center !important;
}

@media (max-width: 768px) {
    .hero-banner-only.salla-hero {
        padding: 18px !important;
        gap: 18px !important;
    }

    .hero-banner-only.salla-hero .hero-media {
        height: 210px !important;
        border-radius: 22px !important;
    }
}

@media (max-width: 420px) {
    .hero-banner-only.salla-hero .hero-media {
        height: 180px !important;
    }
}

/* =========================================================
   Final touch fixes 2026-07-08
   - Restore category-card images inside category.html despite old .sub-cat !important rules
   - Ensure cart button is visible on desktop and mobile FAB is visible on mobile
   ========================================================= */
body .category-cat-card.sub-cat,
body .category-cat-card.sub-cat:hover,
body .category-cat-card.sub-cat.active {
    background: var(--cat-card-bg) !important;
    background-image: var(--cat-card-bg) !important;
    background-size: cover !important;
    background-position: center !important;
    color: #fff !important;
    border-color: transparent !important;
}
body .category-cat-card.sub-cat *,
body .category-cat-card.sub-cat:hover *,
body .category-cat-card.sub-cat.active * {
    color: #fff !important;
}
body .category-cat-card.sub-cat .category-cat-icon {
    background: rgba(255,255,255,.22) !important;
}
body .category-cat-card.sub-cat.active {
    outline: 3px solid var(--primary) !important;
    outline-offset: 3px !important;
}
@media (min-width: 769px) {
    #cartBtn.desktop-cart-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    #mobileCartBtn.fab-cart {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    #mobileCartBtn.fab-cart,
    #mobileCartBtn.fab-cart * {
        color: #fff !important;
    }
}

/* =========================================================
   Final consistency fixes 2026-07-09
   - Cart buttons in category/product pages match home page
   - Product-card cart button is visible even if old inline styles exist
   - Mobile FAB cart stays blue/visible on every page
   ========================================================= */

/* Header desktop cart button: نفس شكل زر الصفحة الرئيسية وواضح على الهيدر الفاتح */
body header #cartBtn.desktop-cart-btn {
    width: 48px !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.10) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-sm) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body header #cartBtn.desktop-cart-btn i {
    color: #0f172a !important;
}

body header #cartBtn.desktop-cart-btn:hover {
    background: var(--secondary) !important;
    color: #ffffff !important;
    border-color: var(--secondary) !important;
    transform: translateY(-2px);
}

body header #cartBtn.desktop-cart-btn:hover i {
    color: #ffffff !important;
}

body header #cartBtn.desktop-cart-btn .cart-badge {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
}

@media (max-width: 768px) {
    body header #cartBtn.desktop-cart-btn {
        display: none !important;
    }
}

/* زر إضافة المنتج للسلة داخل كروت المنتجات: موحد بين الرئيسية والأقسام */
body .card .add-to-cart-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 10px !important;
    background: var(--light) !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 191, 255, 0.25) !important;
    font-size: 16px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
    transition: var(--transition) !important;
    padding: 0 !important;
}

body .card .add-to-cart-btn i {
    color: inherit !important;
}

body .card .add-to-cart-btn:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 191, 255, 0.24) !important;
}

body .card .add-to-cart-btn:hover i {
    color: #ffffff !important;
}

/* زر السلة العائم في الموبايل: يظهر بنفس الشكل على الرئيسية/الأقسام/المنتج */
@media (max-width: 768px) {
    body .mobile-bottom-nav {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body .mobile-bottom-nav #mobileCartBtn.fab-cart,
    body .mobile-bottom-nav #mobileCartBtn.fab-cart.active {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, var(--primary), #0284c7) !important;
        color: #ffffff !important;
        border: 4px solid #ffffff !important;
        box-shadow: 0 10px 24px rgba(0, 191, 255, 0.38) !important;
        transform: translateY(-3px) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    body .mobile-bottom-nav #mobileCartBtn.fab-cart i,
    body .mobile-bottom-nav #mobileCartBtn.fab-cart.active i {
        color: #ffffff !important;
        font-size: 22px !important;
    }

    body .mobile-bottom-nav #mobileCartBtn.fab-cart .cart-badge {
        top: -2px !important;
        right: -2px !important;
        width: 22px !important;
        height: 22px !important;
        background: var(--secondary) !important;
        color: #ffffff !important;
        border: 2px solid #ffffff !important;
        font-size: 11px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* تنسيق الحالة النشطة في الناف السفلي بدون التأثير على زر السلة */
body .mobile-bottom-nav .nav-item.active:not(.fab-cart) {
    background: rgba(0, 191, 255, 0.12) !important;
    color: #0284c7 !important;
}

body .mobile-bottom-nav .nav-item.active:not(.fab-cart) i,
body .mobile-bottom-nav .nav-item.active:not(.fab-cart) span {
    color: #0284c7 !important;
}
