/* ============================================
   SITEMAP PAGE - Enhanced Design
   ============================================ */

/* Sitemap Page Header */
.sitemap-page-header {
    text-align: center;
    padding: 40px 20px 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbdcfd;
    border-radius: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.sitemap-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.sitemap-page-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
}

.sitemap-page-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    animation: sitemapIconRotate 20s linear infinite;
}

@keyframes sitemapIconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sitemap-page-icon i {
    font-size: 32px;
    color: #fff;
}

.sitemap-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    position: relative;
}

.sitemap-page-intro {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Sitemap Sections - Two column 50/50 */
.sitemap-sections.sitemap-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.sitemap-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sitemap-column-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* When no categories, right column uses full width */
.sitemap-sections.sitemap-right-only {
    grid-template-columns: 1fr;
}

.sitemap-sections.sitemap-right-only .sitemap-column-left {
    display: none;
}

.sitemap-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.sitemap-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 18px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-section-title i {
    color: var(--primary-bg, #667eea);
    font-size: 20px;
}

.sitemap-section-content {
    padding: 24px;
}

/* Category tree */
.sitemap-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-tree .sitemap-children {
    list-style: none;
    margin: 4px 0 4px 20px;
    padding-left: 16px;
    border-left: 2px solid #e2e8f0;
}

.sitemap-item {
    margin-bottom: 8px;
}

.sitemap-item:last-child {
    margin-bottom: 0;
}

.sitemap-link {
    display: inline-block;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    padding: 4px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.sitemap-link:hover {
    color: var(--primary-bg, #667eea);
}

.sitemap-item-level-2 .sitemap-link {
    font-size: 14px;
}

.sitemap-item-level-3 .sitemap-link {
    font-size: 14px;
    color: #64748b;
}

/* Shop & account cards */
.sitemap-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.sitemap-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sitemap-card i {
    font-size: 18px;
    color: var(--primary-bg, #667eea);
    flex-shrink: 0;
}

.sitemap-card:hover {
    background: #fff;
    border-color: var(--primary-bg, #667eea);
    color: var(--primary-bg, #667eea);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* Information list */
.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-list-item {
    margin-bottom: 8px;
}

.sitemap-list-item:last-child {
    margin-bottom: 0;
}

.sitemap-list-item .sitemap-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sitemap-list-item .sitemap-link::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: var(--primary-bg, #667eea);
}

/* Contact CTA */
.sitemap-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-bg, #1a1a2e) 0%, var(--header-bg, #16213e) 100%);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sitemap-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.sitemap-cta-link i {
    font-size: 14px;
}

/* Responsive - stack columns */
@media (max-width: 768px) {
    .sitemap-sections.sitemap-two-columns {
        grid-template-columns: 1fr;
    }

    .sitemap-column,
    .sitemap-column-right {
        gap: 20px;
    }

    .sitemap-page-header {
        padding: 30px 16px 24px;
        margin-bottom: 20px;
    }

    .sitemap-page-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 16px;
    }

    .sitemap-page-icon i {
        font-size: 24px;
    }

    .sitemap-page-title {
        font-size: 22px;
    }

    .sitemap-page-intro {
        font-size: 14px;
    }

    .sitemap-section-title {
        padding: 14px 18px;
        font-size: 16px;
    }

    .sitemap-section-content {
        padding: 18px;
    }

    .sitemap-cards {
        grid-template-columns: 1fr;
    }

    .sitemap-tree .sitemap-children {
        margin-left: 12px;
        padding-left: 12px;
    }
}
