/* =========================================
   1. GLOBAL & RESET
   ========================================= */
body {
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f8;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
* { box-sizing: border-box; }

/* =========================================
   2. HERO HEADER
   ========================================= */
.hero-section {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, #2c0e38 0%, #4a1c5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.logo-container img { height: 90px; margin-bottom: 15px; }
.site-title-text { font-size: 2rem; font-weight: 800; }

/* =========================================
   3. INTRO CONTENT CARD (Centered)
   ========================================= */
.main-wrapper {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);

    /* Positioning */
    margin-top: -80px;
    position: relative;
    z-index: 10;
    margin-bottom: 40px;
    text-align: center;

    /* CENTERING FIX */
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.content-paragraph { font-size: 1.1rem; line-height: 1.8; color: #555; margin-bottom: 20px; }

.note-box {
    background: #fff8e1;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 10px;
}

/* =========================================
   4. COUNTRY FLAGS GRID (Centered)
   ========================================= */
.countries-section {
    /* CENTERING FIX */
    max-width: 1100px;
    width: 100%;
    margin: 40px auto; /* 'auto' centers it horizontally */
    text-align: center;
}

.section-title { font-size: 1.8rem; font-weight: 800; color: #2c0e38; margin-bottom: 30px; }

.flags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Ensures items inside are centered */
    gap: 20px;
}

.country-item {
    display: flex; flex-direction: column; align-items: center;
    background: #fff; padding: 15px; border-radius: 12px;
    width: 100px; box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.country-item:hover { transform: translateY(-5px); }
.country-item img { width: 50px; height: auto; border-radius: 4px; margin-bottom: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.country-item span { font-weight: 700; color: #333; }

/* =========================================
   5. PRODUCTS GRID (Centered)
   ========================================= */
.products-container {
    margin-top: 50px;

    /* CENTERING FIX */
    max-width: 1300px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.header-title { text-align: center; color: #2c0e38; font-size: 1.8rem; font-weight: 800; margin-bottom: 30px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Force 4 Cols */
    gap: 25px;
}

/* =========================================
   6. CARD STYLES
   ========================================= */
.hall-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.2s;
    display: flex; flex-direction: column; border: 1px solid #eee;
}
.hall-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(143, 63, 153, 0.15); }

.main-img { width: 100%; height: 180px; object-fit: cover; }
.gallery-grid { display: flex; height: 60px; gap: 2px; margin-top: 2px; }
.gallery-img { flex: 1; height: 100%; object-fit: cover; }

.card-body { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; text-align: right; }
.card-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 10px 0; color: #2c0e38; }
.vendor-name { font-size: 0.85rem; color: #888; margin-bottom: 8px; }
.card-desc { font-size: 0.9rem; color: #666; margin-bottom: 10px; line-height: 1.4; flex-grow: 1; }
.card-location { font-size: 0.85rem; color: #555; font-weight: 600; margin-top: auto; }

/* =========================================
   7. "SEE ALL" BUTTON
   ========================================= */
.btn-container { text-align: center; margin-top: 50px; margin-bottom: 30px; }

.see-more-btn {
    background-color: #8f3f99;
    color: #fff !important;
    padding: 12px 40px;
    border-radius: 50px; /* FIXED: Was missing 'px' and closing brace */
    display: inline-block;
    font-weight: bold;
}

/* =========================================
   8. FOOTER LAYOUT
   ========================================= */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.footer-center { text-align: center; color: #777; font-size: 0.9rem; }
.footer-center p { margin: 0; }
.footer-right { justify-self: end; }

/* Menu Styling */
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; }
.footer-menu li { display: inline-flex; align-items: center; }
.footer-menu a { color: #666; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-menu a:hover { color: #7e3af2; text-decoration: underline; }
.footer-menu li:not(:last-child)::after { content: "-"; margin-right: 10px; color: #ccc; }

@media (max-width: 768px) {
    .footer-grid { display: flex; flex-direction: column-reverse; gap: 15px; text-align: center; }
    .footer-right { justify-self: center; }
}

/* =========================================
   9. EXTRA CARD STYLES (Product Card)
   ========================================= */
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
    transition: 0.3s; display: flex; flex-direction: column;
    height: 100%; text-align: right; direction: rtl;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.product-image-container { position: relative; height: 200px; overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; }

.product-details { padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.product-title { margin: 0; font-size: 1.1rem; font-weight: 800; color: #333; }

.product-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: #666; font-weight: 600; }
.meta-item { display: flex; align-items: center; gap: 5px; }

/* Badges */
.hall-type-badge { padding: 2px 8px; border-radius: 12px; font-size: 0.8rem; font-weight: bold; }
.badge-closed { background-color: #f3e5f5; color: #8f3f99; border: 1px solid #e1bee7; }
.badge-open { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

.view-btn { margin-top: auto; color: #8f3f99; font-weight: bold; font-size: 0.9rem; display: inline-block; }

/* THUMBNAILS */
.card-thumbs-strip {
    display: flex; gap: 4px; padding: 6px 10px 0 10px;
    height: 60px; width: 100%; box-sizing: border-box;
}
.mini-thumb { flex: 1; height: 100%; border-radius: 6px; overflow: hidden; border: 1px solid #eee; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.product-card:hover .mini-thumb img { transform: scale(1.1); }
