.quiz-container {
    font-family: 'Arial', sans-serif;
    text-align: center;
    max-width: 500px;
    width: 90%;
    margin: 50px auto;
    direction: rtl;
}

.quiz-icon {
    font-size: 3rem;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.quiz-icon:hover {
    transform: scale(1.1);
}

.quiz-content {
    display: none;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.question {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option:hover {
    background-color: #f0f0f0;
}

.result {
    margin-top: 20px;
    font-weight: bold;
    display: none;
}

.discount-code {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-top: 10px;
    display: none;
}

.correct {
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.incorrect {
    background-color: #f2dede;
    border-color: #ebccd1;
}






/* ==================== معرض الصور الثان
ي الإبداعي ==================== */
/* الكلاس text-primary في الوضع المظلم */
/* الكلاس text-primary في الوضع المظلم */

.s-block__display-all{
color: #ab9b1c !important;
}

.discount-amount {
    color: #f5538e !important;
}
.s-block--tabs .quicklinks-item.is-active {
    color: #414042;
    color: #83a3c1ed !important;
}
body.dark-mode .text-primary,
.dark-mode .text-primary,
[data-theme="dark"] .text-primary {
    color: #ffffff !important;
}
/* الأنيميشن الأساسي */
@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        transform: scale(0.8) translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: scale(1) translateY(0); 
        opacity: 1; 
    }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* المعرض الإبداعي الثاني */
.creative-gallery-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: galleryFadeIn 1s ease forwards;
    animation-delay: 0.5s;
}

.creative-gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.creative-gallery-grid {
    position: relative;
    width: 100%;
    height: 600px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

/* العنوان في المنتصف */
.gallery-center-title {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s ease;
}

.gallery-center-title h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #182939;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-center-title p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

/* مواضع الصور */
.creative-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.creative-gallery-item.top-left {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.creative-gallery-item.top-right {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.creative-gallery-item.center-top {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.creative-gallery-item.bottom-left {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.creative-gallery-item.bottom-right {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

.creative-gallery-item.bottom-center {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

.creative-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.6s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
}

/* تأثيرات الهوفر */
.creative-gallery-item:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.3);
    z-index: 5;
}

.creative-gallery-item:hover .creative-image {
    transform: scale(1.05);
}

.creative-gallery-item:hover .image-overlay {
    opacity: 1;
}

/* تأثير تصغير الصور الأخرى عند الهوفر */
.creative-gallery-grid:hover .creative-gallery-item:not(:hover) {
    transform: scale(0.95);
    opacity: 0.7;
}

/* تأثير خاص للعنوان عند الهوفر على الصور */
.creative-gallery-grid:hover .gallery-center-title {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(255, 215, 0, 0.2);
}

/* أنماط النافذة المنبثقة */
.creative-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.creative-gallery-modal .modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.creative-gallery-modal .modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.creative-gallery-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.creative-gallery-modal .modal-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.creative-gallery-modal .modal-image {
    width: 80vw;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.creative-gallery-modal .modal-info {
    padding: 20px;
    text-align: center;
}

.creative-gallery-modal .modal-info h3 {
    margin: 0 0 10px 0;
    color: #182939;
    font-size: 1.5rem;
}

.creative-gallery-modal .modal-info p {
    margin: 0;
    color: #6c757d;
    font-size: 1rem;
}

/* الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .creative-gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 15px;
    }

    .gallery-center-title {
        grid-column: 1;
        grid-row: 1;
        padding: 20px;
    }

    .gallery-center-title h2 {
        font-size: 2rem;
    }

    .creative-gallery-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 200px;
    }

    .creative-gallery-item.center-top {
        order: 2;
    }

    .creative-gallery-item.top-left {
        order: 3;
    }

    .creative-gallery-item.top-right {
        order: 4;
    }

    .creative-gallery-item.bottom-left {
        order: 5;
    }

    .creative-gallery-item.bottom-right {
        order: 6;
    }

    .creative-gallery-item.bottom-center {
        order: 7;
    }

    .creative-gallery-item:hover {
        transform: scale(1.02) translateY(-5px);
    }

    .creative-gallery-grid:hover .creative-gallery-item:not(:hover) {
        transform: none;
        opacity: 1;
    }

    .creative-gallery-modal .modal-image {
        width: 95vw;
        height: 50vh;
    }

    .creative-gallery-modal .modal-info {
        padding: 15px;
    }

    .creative-gallery-modal .modal-info h3 {
        font-size: 1.3rem;
    }
}

/* دعم الوضع المظلم */
body.dark-mode .creative-gallery-section {
    background: transparent;
}

body.dark-mode .gallery-center-title {
    background: rgba(26, 26, 46, 0.95);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.5);
}

body.dark-mode .gallery-center-title h2 {
    color: #FFD700;
}

body.dark-mode .gallery-center-title p {
    color: #cccccc;
}

body.dark-mode .creative-gallery-modal .modal-content {
    background: #1a1a2e;
}

body.dark-mode .creative-gallery-modal .modal-info h3 {
    color: #FFD700;
}

body.dark-mode .creative-gallery-modal .modal-info p {
    color: #cccccc;
}

/* دعم الوضع الفاتح */
body.light-mode .creative-gallery-section {
    background: transparent;
}

body.light-mode .gallery-center-title {
    background: rgba(255, 255, 255, 0.95);
    color: #212529;
}

body.light-mode .gallery-center-title h2 {
    color: #182939;
}

body.light-mode .gallery-center-title p {
    color: #6c757d;
}
/* معرض الصور التفاعلي - محسن للأداء */
.image-gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f1f3f4 100%);
    position: relative;
    overflow: hidden;
}

.image-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #182939, transparent);
    opacity: 0.2;
}

.image-gallery-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* رأس المعرض */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 700;
    color: #182939;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}



.gallery-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* حاوي المعرض */
.gallery-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.gallery-row {
    display: flex;
    gap: 15px;
    height: 400px;
    transition: all 0.4s ease;
}

/* كاردز المعرض */
.gallery-card {
    position: relative;
    flex: 1;
    min-width: 80px;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    will-change: flex, transform;
}

/* رابط الكارد */
.card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* placeholder للصور */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f2f5 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #182939;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* الصور */
.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.gallery-image:not(.lazy-load) {
    opacity: 1;
}

/* طبقة التراكب */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(24, 41, 57, 0.95));
    color: white;
    padding: 25px 15px 15px;
    transform: translateY(100%);
    transition: all 0.4s ease;
    z-index: 3;
    opacity: 0;
}

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

.image-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #e4f5ff;
    line-height: 1.2;
}

.image-description {
    font-size: 0.85rem;
    line-height: 1.3;
    opacity: 0.9;
    margin: 0 0 15px 0;
}

/* زر تسوق الآن */
.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #182939;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-top: 10px;
    text-decoration: none;
}

.shop-button:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.shop-button .arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.shop-button:hover .arrow {
    transform: translateX(-3px);
}

/* تأثيرات التفاعل الأساسية */
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 41, 57, 0.25);
}

.gallery-card:hover .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

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

/* تأثير التوسع والانضغاط */
.gallery-row.hover-active .gallery-card.expanded {
    flex: 3;
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(24, 41, 57, 0.3);
    z-index: 10;
}

.gallery-row.hover-active .gallery-card.compressed {
    flex: 0.5;
    opacity: 0.7;
    filter: blur(1px) brightness(0.8);
}

.gallery-card.expanded .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card.expanded .gallery-image {
    transform: scale(1.05);
}

/* تأثيرات الأجهزة اللمسية */
.gallery-card.mobile-expanded {
    flex: 2.5;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24, 41, 57, 0.25);
    z-index: 10;
}

.gallery-card.mobile-expanded .card-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-card.mobile-expanded .gallery-image {
    transform: scale(1.05);
}

/* التصميم المتجاوب */
@media (max-width: 1200px) {
    .gallery-row {
        gap: 12px;
        height: 350px;
    }

    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-card {
        border-radius: 15px;
    }
}

@media (max-width: 768px) {
    .image-gallery-section {
        padding: 60px 0;
    }

    .gallery-header {
        margin-bottom: 40px;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .gallery-subtitle {
        font-size: 1.1rem;
    }

    .gallery-row {
        gap: 8px;
        height: 280px;
    }

    .gallery-card {
        border-radius: 12px;
        min-width: 60px;
    }

    /* تعطيل تأثيرات hover على الأجهزة اللمسية */
    .gallery-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .gallery-card:hover .gallery-image {
        transform: none;
    }

    .gallery-card:hover .card-overlay {
        transform: translateY(100%);
        opacity: 0;
    }

    /* إظهار المحتوى عند النقر على الأجهزة الصغيرة */
    .card-overlay {
        transform: translateY(100%);
        opacity: 0;
        background: linear-gradient(transparent, rgba(24, 41, 57, 0.9));
        padding: 15px 10px 10px;
    }

    .image-title {
        font-size: 1rem;
    }

    .image-description {
        font-size: 0.8rem;
    }

    .shop-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .image-gallery-section {
        padding: 40px 0;
    }

    .image-gallery-section .container {
        padding: 0 15px;
    }

    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .gallery-subtitle {
        font-size: 1rem;
    }

    .gallery-row {
        gap: 6px;
        height: 220px;
    }

    .gallery-card {
        border-radius: 10px;
        min-width: 40px;
    }

    .card-overlay {
        padding: 12px 8px 8px;
    }

    .image-title {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .image-description {
        font-size: 0.75rem;
    }

    .shop-button {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-top: 8px;
    }

    /* تحسين تأثير التوسع للشاشات الصغيرة */
    .gallery-card.mobile-expanded {
        flex: 2;
    }
}

/* تحسينات الأداء */
.image-gallery-section * {
    box-sizing: border-box;
}

.gallery-card {
    contain: layout style paint;
}

.gallery-image {
    will-change: transform;
}

/* تأثيرات إضافية للتفاعل */
.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
    pointer-events: none;
}

.gallery-card.expanded::before {
    opacity: 1;
}

/* تحسين الانتقالات */
.gallery-row {
    transition: all 0.3s ease;
}

.gallery-card {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* تأثير التحميل */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-card {
    animation: slideInFromBottom 0.8s ease forwards;
}

.gallery-card:nth-child(1) { animation-delay: 0.1s; }
.gallery-card:nth-child(2) { animation-delay: 0.2s; }
.gallery-card:nth-child(3) { animation-delay: 0.3s; }
.gallery-card:nth-child(4) { animation-delay: 0.4s; }
.gallery-card:nth-child(5) { animation-delay: 0.5s; }
.gallery-card:nth-child(6) { animation-delay: 0.6s; }

/* تأثير إضافي للتوسع السلس */
@keyframes expandWidth {
    from {
        flex: 1;
    }
    to {
        flex: 3;
    }
}

/* دعم الوضع المظلم */
body.dark-mode .image-gallery-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .gallery-title {
    color: #FFD700;
}

body.dark-mode .gallery-subtitle {
    color: #cccccc;
}

body.dark-mode .gallery-card {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

body.dark-mode .card-overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.8));
}

body.dark-mode .image-title {
    color: #1a1a2e;
}

body.dark-mode .image-description {
    color: rgba(26, 26, 46, 0.8);
}

body.dark-mode .shop-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
}

body.dark-mode .shop-button:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
}

@keyframes compressWidth {
    from {
        flex: 1;
    }
    to {
        flex: 0.5;
    }
}
/* قسم خريطة المتجر - محسن للأداء */
.store-map-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.store-map-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #182939, transparent);
    opacity: 0.3;
}

.store-map-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* رأس القسم */
.map-header {
    text-align: center;
    margin-bottom: 40px;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #182939;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.map-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #182939, #3e4f5f);
    border-radius: 2px;
}

/* مبدل الفروع */
.branch-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.branch-btn {
    padding: 12px 24px;
    border: 2px solid #182939;
    background: transparent;
    color: #182939;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.branch-btn:hover {
    background: #182939;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 41, 57, 0.3);
}

.branch-btn.active {
    background: #182939;
    color: white;
    box-shadow: 0 3px 10px rgba(24, 41, 57, 0.4);
}

/* حاوي الخريطة */
.map-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.google-map {
    width: 100%;
    height: 100%;
    border: none;
}

/* شاشة التحميل */
.map-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #182939;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.map-loading p {
    color: #6c757d;
    font-size: 1rem;
    margin: 0;
}

/* معلومات الفرع */
.branch-info {
    padding: 30px;
    background: linear-gradient(135deg, #182939 0%, #3e4f5f 100%);
    color: white;
    display: flex;
    align-items: center;
}

.info-content {
    width: 100%;
}

.branch-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #e4f5ff;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.info-item i {
    width: 20px;
    height: 20px;
    margin-left: 15px;
    color: #e4f5ff;
    font-size: 1.1rem;
}

/* أيقونات بسيطة */
.icon-location::before { content: '📍'; }
.icon-phone::before { content: '📞'; }
.icon-clock::before { content: '🕒'; }

.info-item span {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* نافذة معلومات الخريطة */
.map-info-window {
    max-width: 250px;
    padding: 10px;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.map-info-window h4 {
    margin: 0 0 10px 0;
    color: #182939;
    font-size: 1.1rem;
    font-weight: 700;
}

.map-info-window p {
    margin: 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.map-info-window strong {
    color: #182939;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .store-map-section {
        padding: 40px 0;
    }
    
    .map-title {
        font-size: 2rem;
    }
    
    .map-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    .branch-info {
        padding: 25px 20px;
    }
    
    .branch-name {
        font-size: 1.3rem;
    }
    
    .branch-switcher {
        gap: 8px;
    }
    
    .branch-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .store-map-section .container {
        padding: 0 15px;
    }
    
    .map-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .map-header {
        margin-bottom: 30px;
    }
    
    .branch-switcher {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .branch-btn {
        width: 200px;
        text-align: center;
    }
    
    .map-wrapper {
        height: 250px;
    }
    
    .branch-info {
        padding: 20px 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    
    .info-item i {
        margin-left: 0;
        margin-bottom: 5px;
    }
}

/* تحسينات الأداء */
.store-map-section * {
    box-sizing: border-box;
}

.google-map {
    will-change: transform;
}

.branch-btn {
    will-change: transform, background-color;
}

/* تأثيرات إضافية للتفاعل */
.map-container {
    transition: transform 0.3s ease;
}

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

.info-item {
    transition: background-color 0.2s ease;
}

.info-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

/* أزرار الإجراءات */
.info-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.maps-btn,
.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.maps-btn {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.maps-btn:hover {
    background: linear-gradient(135deg, #3367d6, #2d8f47);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.call-btn {
    background: linear-gradient(135deg, #182939, #3e4f5f);
    color: white;
}

.call-btn:hover {
    background: linear-gradient(135deg, #0f1a26, #2a3a4a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 41, 57, 0.3);
}

.maps-btn i,
.call-btn i {
    font-size: 1.1rem;
}

/* الوضع المظلم */
body.dark-mode .store-map-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

body.dark-mode .map-title {
    color: #FFD700;
}

body.dark-mode .branch-btn {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border-color: rgba(255, 215, 0, 0.3);
}

body.dark-mode .branch-btn.active,
body.dark-mode .branch-btn:hover {
    background: #FFD700;
    color: #1a1a2e;
}

body.dark-mode .branch-info {
    background: rgba(26, 26, 46, 0.9);
    border-color: rgba(255, 215, 0, 0.3);
}

body.dark-mode .branch-name {
    color: #FFD700;
}

body.dark-mode .info-item {
    color: #cccccc;
}

body.dark-mode .call-btn {
    background: linear-gradient(135deg, #FFD700, #ffc107);
    color: #1a1a2e;
}

body.dark-mode .call-btn:hover {
    background: linear-gradient(135deg, #e6c200, #e0a800);
}

body.dark-mode .google-map {
    filter: invert(90%) hue-rotate(180deg);
}

body.dark-mode .map-loading {
    background: rgba(26, 26, 46, 0.95);
    color: #cccccc;
}

/* استجابة الأزرار للشاشات الصغيرة */
@media (max-width: 768px) {
    .info-actions {
        flex-direction: column;
        gap: 10px;
    }

    .maps-btn,
    .call-btn {
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }
}

.product-single .s-add-product-button-main salla-mini-checkout-widget
{
background-color:#000000 !important;
}
.s-button-primary{
background-color:black !important;
}