/**
 * TrailLab Global Styles
 * Styles applied to all pages
 */

/* Astra Container - Force block display */
.ast-container {
    display: block !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

/* Fix Astra Shop Summary Wrap alignment */
.astra-shop-summary-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.astra-shop-summary-wrap > * {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.astra-shop-summary-wrap .woocommerce-result-count,
.astra-shop-summary-wrap .woocommerce-ordering,
.astra-shop-summary-wrap .woocommerce-result-count *,
.astra-shop-summary-wrap .woocommerce-ordering * {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.ast-woocommerce-container {
    width: 80%;
    margin: 0 auto;
}

/* ========================
   Shared Page Hero Section
   ======================== */
.traillab-page-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    height: 360px;
    overflow: hidden;
    background: #1a1a2e;
}

.traillab-page-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.traillab-page-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.7) 0%, rgba(211, 47, 47, 0.3) 100%);
}

.traillab-page-hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.traillab-page-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: #D32F2F;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}

.traillab-page-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    color: white;
}

@media (min-width: 768px) {
    .traillab-page-hero-title {
        font-size: 3.5rem;
    }
}

.traillab-page-hero-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 38rem;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

@media (min-width: 768px) {
    .traillab-page-hero-desc {
        font-size: 1.125rem;
    }
}

@media (max-width: 640px) {
    .traillab-page-hero {
        height: 280px;
    }
    
    .traillab-page-hero-title {
        font-size: 2rem;
    }
    
    .traillab-page-hero-content {
        padding: 0 1.25rem;
    }
}

/* ========================
   Global Footer
   ======================== */
.traillab-footer {
    background: #0f172a;
    color: #cbd5e1;
    font-family: 'Inter', 'Outfit', sans-serif;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.traillab-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}

.traillab-footer-top {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traillab-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.traillab-footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.traillab-footer-logo-img {
    display: block;
    max-width: 130px;
    max-height: 40px;
    width: auto;
    height: auto;
}

.traillab-footer-logo:hover {
    color: #D32F2F;
}

.traillab-footer-tagline {
    font-size: 0.875rem;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
    max-width: 28ch;
}

.traillab-footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.traillab-footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    transition: all 0.2s;
}

.traillab-footer-social-link:hover {
    background: #D32F2F;
    color: white;
    transform: translateY(-2px);
}

.traillab-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.traillab-footer-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: white;
    margin: 0 0 1.25rem;
}

.traillab-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.traillab-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.traillab-footer-links a:hover {
    color: white;
}

.traillab-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0;
    margin-top: 0;
}

.traillab-footer-copyright {
    font-size: 0.8125rem;
    color: #475569;
    margin: 0;
}

/* Footer responsive */
@media (max-width: 768px) {
    .traillab-footer-inner {
        padding: 3rem 1.5rem 0;
    }

    .traillab-footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .traillab-footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .traillab-footer-tagline {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .traillab-footer-columns {
        grid-template-columns: 1fr 1fr;
    }
}

