/* Sitemap Page Styles - Modern E-commerce Black & White Theme */
.sitemap-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fafafa;
    min-height: 100vh;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sitemap-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sitemap-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.sitemap-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.sitemap-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    padding: 1.5rem 2rem;
    background: #000000;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.sitemap-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
}

@media (min-width: 640px) {
    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sitemap-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.sitemap-card {
    background: white;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sitemap-card:last-child {
    border-bottom: none;
}

.sitemap-card:nth-child(3n) {
    border-right: none;
}

.sitemap-card:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.sitemap-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
    position: relative;
}

.sitemap-card h3::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #000000;
    border-radius: 2px;
}

.sitemap-card h3 a {
    text-decoration: none;
    color: #000000;
    transition: color 0.3s ease;
    display: block;
    padding-left: 1rem;
}

.sitemap-card h3 a:hover {
    color: #666666;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 1rem;
}

.sitemap-list li {
    margin-bottom: 0.75rem;
    position: relative;
}

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

.sitemap-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    position: relative;
}

.sitemap-list a:hover {
    color: #000000;
    background: #f0f0f0;
    transform: translateX(5px);
}

.sitemap-list a i {
    margin-right: 0.75rem;
    font-size: 0.75rem;
    color: #999999;
    transition: color 0.3s ease;
}

.sitemap-list a:hover i {
    color: #000000;
}

.sitemap-empty {
    text-align: center;
    padding: 1rem;
    color: #999999;
    font-style: italic;
    font-size: 0.9rem;
}

.back-to-top {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem auto 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.back-to-top::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;
}

.back-to-top:hover::before {
    left: 100%;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.back-to-top i {
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

/* Breadcrumb styles */
.breadcrumb {
    background: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #666666;
    text-decoration: underline;
}

.breadcrumb i {
    color: #999999;
    margin: 0 0.5rem;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    .sitemap-header h1 {
        font-size: 2rem;
    }

    .sitemap-section h2 {
        font-size: 1.25rem;
        padding: 1rem 1.5rem;
    }

    .sitemap-card h3 {
        font-size: 1rem;
    }

    .sitemap-list a {
        font-size: 0.85rem;
    }

    .sitemap-card {
        padding: 1rem;
    }
}

/* Loading animation for dynamic content */
.sitemap-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sitemap-loading::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Empty state styling */
.sitemap-empty {
    text-align: center;
    padding: 2rem;
    color: #999999;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem;
}

/* Accessibility improvements */
.sitemap-card:focus-within {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.sitemap-list a:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Print styles */
@media print {

    .back-to-top,
    .breadcrumb {
        display: none;
    }

    .sitemap-card {
        box-shadow: none;
        border: 1px solid #e5e5e5;
        break-inside: avoid;
    }

    .sitemap-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sitemap-header {
        background: #000000 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* Additional e-commerce styling */
.sitemap-section.categories h2 {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.sitemap-section.pages h2 {
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
}

.sitemap-section.links h2 {
    background: linear-gradient(135deg, #666666 0%, #999999 100%);
}

/* Hover effects for cards */
.sitemap-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sitemap-card:hover::after {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.sitemap-container::-webkit-scrollbar {
    width: 8px;
}

.sitemap-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sitemap-container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

.sitemap-container::-webkit-scrollbar-thumb:hover {
    background: #333333;
}