/* ============================================================
CATALOG SITEMAP PAGE (Simple)
Location: /assets/css/04-pages/catalog-sitemap.css
Dependencies: st-global, st-grid-standard
FIXED: Container layout, product alignment, mobile responsive
============================================================ */

/* ============================================================================
PAGE BASE
============================================================================ */
.st-hub-page.st-sitemap-page {
    background: var(--st-canvas, #FCFAF9);
    min-height: 100vh;
}

/* ============================================================================
HERO SECTION (From Page Template)
============================================================================ */
.st-sitemap-hero {
    background: var(--st-canvas, #FCFAF9);
    padding: 60px 0;
    border-bottom: 1px solid var(--st-stone-200, #e5e7eb);
    text-align: center;
}

.st-sitemap-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.st-sitemap-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--st-charcoal-900, #111827);
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.st-sitemap-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--st-stone-500, #6b7280);
    line-height: 1.6;
}

/* Mobile Hero */
@media (max-width: 767px) {
    .st-sitemap-hero {
        padding: 40px 0;
    }
}

/* ============================================================================
SHORTCODE CONTENT SECTION
============================================================================ */
.st-sitemap-content {
    padding: 60px 0;
    background: var(--st-canvas, #FCFAF9);
}

.st-sitemap-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================================
CONTAINER GRID (FIXED)
============================================================================ */
.st-sitemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* ============================================================================
CATEGORY CARDS
============================================================================ */
.st-sitemap-category-section {
    background: var(--white, #ffffff);
    padding: 25px;
    border-radius: var(--st-radius-md, 12px);
    border: 1px solid var(--st-stone-200, #e5e7eb);
    transition: all 0.3s ease;
}

.st-sitemap-category-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--st-brand-700, #be0038);
}

.st-sitemap-cat-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--st-charcoal-900, #111827);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--st-brand-700, #be0038);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.st-sitemap-cat-title .st-category-count {
    font-size: 0.85rem;
    color: var(--st-stone-500, #6b7280);
    background: var(--st-canvas, #FCFAF9);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
}

/* ============================================================================
PRODUCT LIST (FIXED ALIGNMENT)
============================================================================ */
.st-sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.st-sitemap-item {
    margin-bottom: 0;
}

/* Product Link - FIXED: Image & Text Alignment */
.st-sitemap-product-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 12px;
    background: var(--white, #ffffff);
    border-radius: var(--st-radius-sm, 8px);
    text-decoration: none;
    color: var(--st-charcoal-900, #111827);
    font-size: 0.9rem;
    transition: all 0.25s ease;
    border: 1px solid var(--st-stone-200, #e5e7eb);
    height: 100%;
    gap: 10px;
}

.st-sitemap-product-link:hover {
    background: var(--white, #ffffff);
    color: var(--st-brand-700, #be0038);
    border-color: var(--st-brand-700, #be0038);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Product Thumbnail - FIXED SIZE */
.st-sitemap-featured-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius, 6px);
    overflow: hidden;
    background: var(--bg-light);
}

.st-sitemap-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.st-sitemap-product-link:hover .st-sitemap-featured-image img {
    transform: scale(1.05);
}

/* Product Title - FIXED */
.st-sitemap-product-title {
    text-align: center;
    line-height: 1.4;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.85rem;
    width: 100%;
}

/* ============================================================================
NO PRODUCTS MESSAGE
============================================================================ */
.st-sitemap-no-products {
    padding: 20px;
    text-align: center;
    color: var(--text-muted, #666);
    font-style: italic;
    background: var(--bg-light);
    border-radius: var(--border-radius, 8px);
}

/* ============================================================================
CTA SECTION
============================================================================ */
.st-sitemap-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.st-cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
}

.st-cta-box h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.st-cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.st-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.st-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--white);
    color: #25D366;
    border-radius: var(--border-radius, 12px);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.st-btn-whatsapp:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.st-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border: 2px solid var(--white);
    border-radius: var(--border-radius, 12px);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.st-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ============================================================================
RESPONSIVE (FIXED MOBILE)
============================================================================ */
@media (max-width: 992px) {
    .st-sitemap-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .st-sitemap-content {
        padding: 40px 0;
    }
    
    .st-sitemap-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .st-sitemap-category-section {
        padding: 20px;
    }
    
    .st-sitemap-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .st-sitemap-featured-image {
        width: 70px;
        height: 70px;
    }
    
    .st-sitemap-product-title {
        font-size: 0.8rem;
    }
    
    .st-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .st-btn-whatsapp,
    .st-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .st-sitemap-wrapper {
        padding: 0 15px;
    }
    
    .st-sitemap-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .st-sitemap-featured-image {
        width: 60px;
        height: 60px;
    }
    
    .st-sitemap-product-title {
        font-size: 0.75rem;
    }
    
    .st-sitemap-cat-title {
        font-size: 1.1rem;
    }
}

/* ============================================================================
SKIN ADJUSTMENTS (Token-Driven)
============================================================================ */
.st-sitemap-category-section,
.st-sitemap-product-link {
    border-radius: var(--border-radius);
}

.st-sitemap-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}