﻿/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins","Tajawal",sans-serif;
    background: #f1f5f9;
    color: #1e293b;
    direction: rtl;
}

/* TOP BAR */
.top-bar {
    background: #111827;
    color: white;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: #2563eb;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
}

.brand-tagline {
    font-size: 12px;
    opacity: .8;
}

/* LANGUAGE */
.lang-switch button {
    background: #1f2937;
    color: white;
    border: 1px solid #475569;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

    .lang-switch button:hover {
        background: #2563eb;
    }

/* NAVBAR */
.main-nav {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

    .main-nav ul {
        list-style: none;
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
    }

    .main-nav a {
        color: #cbd5e1;
        padding: 10px 18px;
        border-radius: 8px;
        transition: .2s;
    }

        .main-nav a:hover,
        .main-nav .active a {
            background: #2563eb;
            color: white;
        }

/* SLIDER */
.slides {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
}

    .slide.active {
        display: block;
    }

.hero-slider {
    margin: 26px auto;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
}

    .hero-slider img {
        width: 100%;
        height: 320px;
        object-fit: cover;
    }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

    .slider-dots .dot {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #94a3b8;
        cursor: pointer;
    }

    .slider-dots .active {
        background: #2563eb;
    }

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 28px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 20;
}

    .arrow.left {
        left: 10px;
    }

    .arrow.right {
        right: 10px;
    }

    .arrow:hover {
        background: rgba(0,0,0,0.7);
    }

/* CATEGORY GRID */
.categories-grid {
    max-width: 1200px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    padding: 14px;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(0,0,0,.1);
    text-align: center;
    transition: .25s;
    cursor: pointer;
}

    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(0,0,0,.15);
    }

    .category-card img {
        width: 100%;
        height: 140px;
        border-radius: 12px;
        object-fit: cover;
    }

.category-name {
    font-size: 15px;
    margin-top: 8px;
    font-weight: 600;
}

/* PRODUCT GRID */
.products-grid {
    max-width: 1200px;
    margin: 26px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 26px;
}

.product-card {
    background: white;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    transition: .25s;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(0,0,0,.16);
    }

.main-image img {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
}

.thumbs {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

    .thumbs img {
        height: 100px;
        object-fit: cover;
        border-radius: 10px;
        cursor: pointer;
    }

/* RANDOM GALLERY */
.random-gallery-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

    .random-gallery-grid img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 14px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

@media (min-width: 600px) {
    .random-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .random-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

        .random-gallery-grid img {
            height: 200px;
        }
}

/* BUTTON */
.whatsapp-btn {
    margin-top: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #10b981;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

    .whatsapp-btn:hover {
        background: #0d9a6b;
    }

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
    z-index: 200;
}

    .lightbox.open {
        display: flex;
    }

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 34px;
    color: white;
    cursor: pointer;
}

/* ========================= */
/* SOCIAL ICONS (VERTICAL)   */
/* ========================= */

.centered-footer {
    text-align: left;
    direction: ltr;
}

.vertical-icons {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 10px;
}

    .vertical-icons img {
        width: 38px;
        height: 38px;
        cursor: pointer;
        transition: .2s;
    }

        .vertical-icons img:hover {
            transform: scale(1.15);
            opacity: 0.9;
        }


/* FOOTER */
.site-footer {
    background: #111827;
    color: #e2e8f0;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-start; /* ← يخلي المحتوى جهة الشمال */
    direction: ltr; /* ← ترتيب طبيعي */
}


.footer-bottom {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: .6;
}
