/* ==========================================================================
   com_pricetracker — Layout
   Hero header, breadcrumb, stats bar, Gantry fixes
   Shared across all views
   ========================================================================== */

/* --------------------------------------------------------------------------
   Gantry Layout Fixes
   -------------------------------------------------------------------------- */

body.com_pricetracker #g-container-top {
    background-color: var(--pt-hero-bg);
    padding-top: 35px;
    padding-bottom: 35px;
}

body.com_pricetracker #logo-7505-particle {
    padding-top: 0;
}

body.com_pricetracker.view-category .g-content,
body.com_pricetracker.view-hub .g-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Hero Header
   Shared between view=hub and view=category
   -------------------------------------------------------------------------- */

.pt-category-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: var(--pt-hero-gradient);
    color: var(--pt-text-inverse);
    margin-bottom: 24px;
}

.pt-category-header-inner {
    padding: 18px 24px 0;
}

.pt-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pt-header-top-left {
    flex: 1 1 auto;
    min-width: 0;
}

.pt-header-top-right {
    flex: 0 0 360px;
    max-width: 360px;
}

.pt-category-title {
    color: var(--pt-text-inverse);
    margin: 0 0 8px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.08;
}

.pt-category-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Stats Bar
   -------------------------------------------------------------------------- */

.pt-header-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 22px;
}

.pt-header-stat {
    padding: 18px 18px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.pt-header-stat:last-child {
    border-right: 0;
}

.pt-header-stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--pt-text-inverse);
}

.pt-header-stat-label {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.pt-header-stat-drop .pt-header-stat-value {
    color: #ff6b6b;
}

/* --------------------------------------------------------------------------
   Breadcrumb — default (light background)
   -------------------------------------------------------------------------- */

.pt-breadcrumb {
    max-width: var(--pt-max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--pt-text-faint);
}

.pt-breadcrumb a {
    color: var(--pt-text-faint);
    text-decoration: none;
    transition: color 0.2s;
}

.pt-breadcrumb a:hover {
    color: var(--pt-accent);
}

.pt-breadcrumb-sep {
    margin: 0 0.375rem;
    color: var(--pt-text-faint);
}

.pt-breadcrumb > span:last-child {
    color: var(--pt-text-secondary);
}

/* Breadcrumb — on purple hero */
.pt-category-header .pt-breadcrumb {
    max-width: none;
    margin: 0 0 18px;
    padding: 0;
    overflow: visible;
}

.pt-breadcrumb-header {
    font-size: 14px;
    color: var(--pt-text-faint);
}

.pt-breadcrumb-header a {
    color: var(--pt-text-faint);
}

.pt-breadcrumb-header a:hover {
    color: var(--pt-bg-white);
}

.pt-breadcrumb-header .pt-breadcrumb-sep {
    color: var(--pt-text-faint);
    opacity: 0.6;
}

.pt-breadcrumb-header span:last-child {
    color: var(--pt-bg-white);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hub Header (landing page title block)
   -------------------------------------------------------------------------- */

.pt-hub-header {
    padding: 2rem 0 1.5rem;
}

.pt-hub-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--pt-text-primary);
    margin: 0 0 0.5rem;
}

.pt-hub-intro {
    font-size: 1rem;
    color: var(--pt-text-muted);
    margin: 0;
    max-width: 36rem;
}

/* --------------------------------------------------------------------------
   Tablet / Small Desktop
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .pt-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .pt-header-top-right {
        flex: 1 1 auto;
        max-width: none;
    }

    .pt-header-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 12px;
    }

    .pt-header-stat:nth-child(3n) {
        border-right: 0;
    }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .g-content .pt-category {
        margin-left: -16px;
        margin-right: -16px;
    }

    .pt-category-header {
        border-radius: 0;
        margin-bottom: 20px;
    }

    .pt-category-header-inner {
        padding: 18px 16px 0;
    }

    .pt-breadcrumb-header {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .pt-category-title {
        font-size: 24px;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .pt-category-subtitle {
        font-size: 15px;
        line-height: 1.45;
    }

    .pt-header-top {
        gap: 14px;
    }

    .pt-header-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .pt-header-stat {
        padding: 14px 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
        border-top: 0;
    }

    .pt-header-stat:nth-child(2n) {
        border-right: 0;
    }

    .pt-header-stat:nth-child(n+3) {
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .pt-header-stat-value {
        font-size: 1.7rem;
    }

    .pt-header-stat-label {
        font-size: 0.72rem;
    }

    .pt-breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .pt-hub-header {
        padding: 1.5rem 0 1rem;
    }

    .pt-hub-title {
        font-size: 1.375rem;
    }
}