/* ============================================
   SITEMAP PAGE - Matches Figma Design
   Enqueue this file via functions.php:
   wp_enqueue_style( 'sitemap', get_template_directory_uri() . '/assets/css/sitemap.css' );
   ============================================ */

.sitemap-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 60px 60px;
    font-family: inherit;
}

/* ---- Breadcrumb ---- */

/* ---- Section Title ---- */
.sitemap-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0 0 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

/* ============================================
   CATEGORIES GRID
   ============================================ */
.sitemap-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin-bottom: 56px;
}

.sitemap-category-column {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Parent category header */
.sitemap-parent-link {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.sitemap-parent-link:hover {
    color: #1a6e3c;
}

/* Child category links */
.sitemap-child-link {
    display: block;
    font-size: 16px;
    color: #444;
    text-decoration: none;
    padding: 3px 0;
    line-height: 1.5;
    transition: color 0.2s;
}
.sitemap-child-link:hover {
    color: #1a6e3c;
    text-decoration: underline;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.sitemap-brands-section {
    margin-top: 8px;
}

.brands-alphabet-group {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 2px;
    border-bottom: 1px solid #f0f0f0;
    padding: 8px 0;
}

.brands-letter-label {
    font-size: 32px;
    font-weight: 600;
    color: #8B9194;
    min-width: 80px;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

/* Brand items container — wraps into multiple rows */
.brands-letter-items {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    align-items: stretch;
    margin-top: auto;
 
}


 .brand-link {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    padding: 12px 24px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s;
    line-height: 1;
}
.brand-link:hover {
    color: #1a6e3c;
    text-decoration: underline;
}

/* ============================================
   RTL SUPPORT (Arabic)
   ============================================ */
body.rtl .sitemap-wrapper,
html[dir="rtl"] .sitemap-wrapper {
    direction: rtl;
}
html[dir="rtl"] .brands-letter-label {
    margin-left: 12px;
    margin-right: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .sitemap-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .sitemap-wrapper {
        padding: 24px 20px 40px;
    }
    .sitemap-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}
@media (max-width: 480px) {
    .sitemap-categories-grid {
        grid-template-columns: 1fr;
    }
}