/**
 * Top Pneus - Styles Page d'Accueil
 *
 * Styles pour les sections de la page d'accueil :
 * - Hero avec recherche
 * - Avantages
 * - Catégories (saisons, véhicules, gammes)
 * - Marques
 * - Confiance/Stats
 * - CTA
 *
 * @package TopPneus
 * @since 2.0.0
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.tp-hero {
    position: relative;
    color: var(--tp-white);
    padding: var(--tp-space-2xl) 0;
    min-height: 450px;
    display: flex;
    align-items: center;
    background-color: var(--tp-gray-100);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

/* Hero avec image de fond */
.tp-hero.has-bg-image {
    background-image: var(--tp-hero-bg);
}

.tp-hero.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.65) 0%, rgba(26, 26, 26, 0.45) 100%);
    z-index: 1;
}

.tp-hero.has-bg-image .tp-hero-inner {
    position: relative;
    z-index: 2;
}

/* Titre et texte bien blancs sur fond image */
.tp-hero.has-bg-image h1 {
    color: var(--tp-white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tp-hero.has-bg-image p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.tp-hero.has-bg-image .tp-hero-links a {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--tp-white) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.tp-hero.has-bg-image .tp-hero-links a:hover {
    background: var(--tp-red, #E31837) !important;
    color: var(--tp-white) !important;
    border-color: var(--tp-red, #E31837);
}

/* Hero sans image (fond clair) */
.tp-hero:not(.has-bg-image) {
    background: linear-gradient(135deg, var(--tp-gray-50) 0%, var(--tp-gray-100) 100%);
    color: var(--tp-gray-900);
}

.tp-hero:not(.has-bg-image) p {
    color: var(--tp-gray-600);
}

.tp-hero:not(.has-bg-image) .tp-hero-links a {
    background: var(--tp-white, #fff);
    color: var(--tp-gray-900);
    border-color: var(--tp-gray-200);
}

.tp-hero:not(.has-bg-image) .tp-hero-links a:hover {
    background: var(--tp-red, #E31837);
    color: var(--tp-white, #fff);
    border-color: var(--tp-red, #E31837);
}

.tp-hero-inner {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    width: 100%;
}

.tp-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--tp-space-md);
    line-height: 1.2;
}

.tp-hero p {
    font-size: 1.1rem;
    color: var(--tp-gray-300);
    margin: 0 0 var(--tp-space-xl);
    max-width: 600px;
}

/* Seasonal message */
.tp-hero-seasonal {
    margin: calc(-1 * var(--tp-space-md)) 0 var(--tp-space-lg);
    font-size: 0.95rem;
    font-style: italic;
}

.tp-hero-seasonal a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-hero-seasonal a:hover {
    color: var(--tp-white);
    text-decoration: underline;
}

/* -------------------------------------------------------------------------
   HERO - DIMENSIONS HELP LINK
   Link to tire dictionary below search bar
   ------------------------------------------------------------------------- */

.tp-hero-dimensions-help {
    margin: var(--tp-space-sm) 0 0;
    font-size: var(--tp-text-sm, 0.875rem);
    color: rgba(255, 255, 255, 0.7);
}

.tp-hero-dimensions-help a {
    color: var(--tp-white);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
}

.tp-hero-dimensions-help a:hover {
    color: var(--tp-white);
    text-decoration-color: var(--tp-red);
}

/* -------------------------------------------------------------------------
   HERO - BARRE DE RECHERCHE
   Targets the [toppneus_search] shortcode output inside .tp-hero
   ------------------------------------------------------------------------- */

.tp-hero .tp-search-box {
    max-width: 700px;
    margin-bottom: var(--tp-space-lg);
    position: relative;
}

.tp-hero .tp-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--tp-white);
    border-radius: var(--tp-radius-lg);
    padding: 6px;
    box-shadow: var(--tp-shadow-lg);
}

.tp-hero .tp-search-icon {
    color: var(--tp-gray-400);
    margin-left: var(--tp-space-md);
    flex-shrink: 0;
}

.tp-hero .tp-search-input {
    flex: 1;
    border: none;
    padding: var(--tp-space-md);
    font-size: 1rem;
    color: var(--tp-gray-900);
    background: transparent;
    min-width: 0;
}

.tp-hero .tp-search-input:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--tp-primary);
}

.tp-hero .tp-search-input::placeholder {
    color: var(--tp-gray-500);
}

.tp-hero .tp-search-btn {
    background: var(--tp-red);
    color: var(--tp-white);
    border: none;
    padding: var(--tp-space-md) var(--tp-space-xl);
    border-radius: var(--tp-radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--tp-transition-normal, 0.2s ease);
    white-space: nowrap;
}

.tp-hero .tp-search-btn:hover {
    background: var(--tp-gray-900);
}

/* Live search results dropdown */
.tp-hero .tp-live-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tp-white);
    border-radius: 0 0 var(--tp-radius-lg) var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-lg);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.tp-live-results[hidden] {
    display: none;
}

.tp-search-result-item {
    display: flex;
    align-items: center;
    gap: var(--tp-space-md);
    padding: var(--tp-space-sm) var(--tp-space-md);
    text-decoration: none;
    color: var(--tp-gray-900);
    border-bottom: 1px solid var(--tp-gray-100);
    transition: background var(--tp-transition-fast, 0.15s ease);
}

.tp-search-result-item:hover,
.tp-search-result-item:focus {
    background: var(--tp-gray-50);
    outline: none;
}

.tp-search-result-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--tp-radius-sm);
    background: var(--tp-gray-50);
    flex-shrink: 0;
}

.tp-search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tp-search-result-brand {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tp-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tp-search-result-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tp-gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tp-search-result-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tp-gray-900);
    white-space: nowrap;
}

.tp-hero-links {
    display: flex;
    gap: var(--tp-space-sm, 8px);
    flex-wrap: wrap;
    margin-top: var(--tp-space-md, 12px);
}

.tp-hero-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--tp-radius-md, 6px);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.15);
    color: var(--tp-white, #fff);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.tp-hero-links a:hover {
    background: var(--tp-red, #E31837);
    color: var(--tp-white, #fff);
    border-color: var(--tp-red, #E31837);
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.3);
    text-decoration: none;
}

/* TrustIndex badge in hero — click goes to /reviews/ */
.tp-hero-trust {
    position: relative;
    display: inline-block;
    margin-top: var(--tp-space-lg);
}

.tp-hero-trust-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

/* ==========================================================================
   SECTION AVANTAGES
   ========================================================================== */

.tp-avantages {
    padding: var(--tp-space-2xl) 0;
    background: var(--tp-gray-50);
}

.tp-avantages-grid {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tp-space-lg);
}

.tp-avantage-card {
    background: var(--tp-white);
    padding: var(--tp-space-xl);
    border-radius: var(--tp-radius-lg); /* 8px — consistent with category cards */
    text-align: center;
    box-shadow: var(--tp-shadow-sm);
    border: 2px solid var(--tp-gray-200); /* Standardized: 2px like category cards */
}

.tp-avantage-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--tp-space-md);
    color: var(--tp-secondary);
}

.tp-avantage-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--tp-space-sm);
    color: var(--tp-gray-900);
}

.tp-avantage-card p {
    font-size: 0.9rem;
    color: var(--tp-gray-600);
    margin: 0;
}

/* ==========================================================================
   SECTION CATÉGORIES
   ========================================================================== */

.tp-categories {
    padding: var(--tp-space-2xl) 0;
}

.tp-section-header {
    max-width: var(--tp-container-width);
    margin: 0 auto var(--tp-space-xl);
    padding: 0 var(--tp-space-lg);
    text-align: center;
    display: block;
    cursor: default;
}

.tp-section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--tp-space-xs);
    display: block;
}

.tp-section-header p {
    color: var(--tp-gray-500);
    margin: 0;
    font-size: 0.95rem;
    display: block;
    pointer-events: none;
}

.tp-categories-row {
    max-width: var(--tp-container-width);
    margin: 0 auto var(--tp-space-xl);
    padding: 0 var(--tp-space-lg);
}

.tp-categories-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--tp-gray-600);
    margin: 0 0 var(--tp-space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-categories-grid {
    display: grid;
    gap: var(--tp-space-md);
}

.tp-categories-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
}

.tp-categories-3 {
    grid-template-columns: repeat(3, 1fr);
}

.tp-categories-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Carte catégorie */
.tp-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--tp-space-xl) var(--tp-space-lg);
    background: var(--tp-white);
    border: 2px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-lg);
    text-decoration: none;
    color: var(--tp-gray-900);
    transition: all var(--tp-transition-normal, 0.2s ease);
    text-align: center;
}

.tp-category-card:hover {
    border-color: var(--tp-red);
    box-shadow: var(--tp-shadow-md);
    transform: translateY(-2px);
}

.tp-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: var(--tp-space-sm);
    color: var(--tp-gray-600);
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-category-icon svg {
    width: 32px;
    height: 32px;
}

.tp-category-card:hover,
.tp-category-card:hover h4,
.tp-category-card:hover .tp-category-count,
.tp-category-card:hover .tp-category-icon {
    color: var(--tp-red);
}

.tp-category-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--tp-space-xs);
    color: var(--tp-gray-900);
}

.tp-category-count {
    font-size: 0.8rem;
    color: var(--tp-gray-500);
}

/* CTA "Vous connaissez vos dimensions ?" */
.tp-categories-cta {
    max-width: var(--tp-container-width);
    margin: var(--tp-space-md) auto 0;
    padding: 0 var(--tp-space-lg);
    text-align: center;
}

.tp-categories-cta a {
    color: var(--tp-gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-categories-cta a:hover {
    color: var(--tp-red);
    text-decoration: underline;
}

/* ==========================================================================
   SECTION COMMENT ÇA MARCHE (3 Steps)
   ========================================================================== */

.tp-how-it-works {
    padding: var(--tp-space-2xl) 0;
}

.tp-how-steps {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tp-space-xl);
    text-align: center;
}

.tp-how-step {
    position: relative;
    padding: var(--tp-space-lg);
}

.tp-how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tp-red);
    color: var(--tp-white);
    font-weight: 700;
    font-size: var(--tp-text-sm, 0.875rem);
    margin-bottom: var(--tp-space-sm);
}

.tp-how-step-icon {
    color: var(--tp-gray-600);
    margin-bottom: var(--tp-space-sm);
}

.tp-how-step h3 {
    font-size: var(--tp-text-lg, 1.125rem);
    font-weight: 600;
    color: var(--tp-gray-900);
    margin: 0 0 var(--tp-space-xs);
}

.tp-how-step p {
    font-size: var(--tp-text-sm, 0.875rem);
    color: var(--tp-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Connector lines between steps (desktop only) */
@media (min-width: 768px) {
    .tp-how-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: calc(var(--tp-space-xl) * -0.5);
        transform: translateX(50%);
        width: 40px;
        height: 2px;
        background: var(--tp-gray-200);
    }
}

@media (max-width: 767px) {
    .tp-how-steps {
        grid-template-columns: 1fr;
        gap: var(--tp-space-lg);
    }
}

/* ==========================================================================
   SECTION BESTSELLERS (Meilleures Ventes)
   ========================================================================== */

.tp-bestsellers {
    padding: var(--tp-space-2xl) 0;
    background: var(--tp-gray-50);
}

.tp-bestsellers-grid {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tp-space-lg);
}

.tp-bestseller-card {
    background: var(--tp-white);
    border: 2px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-lg);
    padding: var(--tp-space-lg);
    text-decoration: none;
    text-align: center;
    transition: all var(--tp-transition-normal, 0.2s ease);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tp-bestseller-card:hover {
    border-color: var(--tp-red);
    box-shadow: var(--tp-shadow-md);
    transform: translateY(-2px);
}

.tp-bestseller-image {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--tp-space-md);
    overflow: hidden;
}

.tp-bestseller-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tp-bestseller-brand {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--tp-gray-500);
    letter-spacing: 0.05em;
    margin-bottom: var(--tp-space-xs);
}

.tp-bestseller-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--tp-gray-800);
    margin: 0 0 var(--tp-space-sm);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tp-bestseller-card:hover .tp-bestseller-name {
    color: var(--tp-red);
}

.tp-bestseller-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tp-gray-900);
    margin-top: auto;
}

.tp-bestsellers-cta {
    max-width: var(--tp-container-width);
    margin: var(--tp-space-lg) auto 0;
    padding: 0 var(--tp-space-lg);
    text-align: center;
}

.tp-bestsellers-cta a {
    color: var(--tp-gray-600);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-bestsellers-cta a:hover {
    color: var(--tp-red);
    text-decoration: underline;
}

/* ==========================================================================
   SECTION MARQUES
   ========================================================================== */

.tp-marques {
    padding: var(--tp-space-2xl) 0;
    background: var(--tp-gray-50);
}

.tp-marques-grid {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--tp-space-md);
}

/* Mobile: horizontal scroll instead of wrap */
@media (max-width: 600px) {
    .tp-marques-grid {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--tp-space-sm);
    }
    .tp-marque-logo {
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    /* Hide scrollbar but keep functionality */
    .tp-marques-grid::-webkit-scrollbar {
        height: 4px;
    }
    .tp-marques-grid::-webkit-scrollbar-track {
        background: var(--tp-gray-100);
        border-radius: 2px;
    }
    .tp-marques-grid::-webkit-scrollbar-thumb {
        background: var(--tp-gray-300);
        border-radius: 2px;
    }
}

.tp-marque-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;                   /* WCAG touch target — 44px minimum */
    padding: var(--tp-space-md) var(--tp-space-lg);
    background: var(--tp-white);
    border: 2px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-lg); /* Standardized: 8px like category cards */
    color: var(--tp-gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--tp-transition-slow, 0.3s ease);
}

.tp-marque-logo:hover {
    border-color: var(--tp-red);
    color: var(--tp-red);
    transform: translateY(-2px);
    box-shadow: var(--tp-shadow-sm);
}

/* Brand logo images (when uploaded via admin) */
.tp-marque-logo.has-logo {
    padding: var(--tp-space-sm) var(--tp-space-md);
}

.tp-marque-logo.has-logo img {
    max-width: 120px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--tp-transition-slow, 0.3s ease);
}

.tp-marque-logo.has-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.tp-marques-all {
    text-align: center;
    margin: var(--tp-space-lg) 0 0;
}

.tp-marques-all a {
    color: var(--tp-gray-600);
    text-decoration: none;
    font-size: var(--tp-text-sm, 0.875rem);
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-marques-all a:hover {
    color: var(--tp-red);
}

/* ==========================================================================
   SECTION CONFIANCE / STATS
   ========================================================================== */

.tp-confiance {
    padding: var(--tp-space-2xl) 0;
}

.tp-confiance-inner {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--tp-space-2xl);
}

.tp-confiance-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--tp-space-md);
}

.tp-confiance-content p {
    color: var(--tp-gray-600);
    margin: 0 0 var(--tp-space-lg);
}

.tp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--tp-space-xl);
}

.tp-stat {
    text-align: center;
}

.tp-stat-icon {
    display: block;
    margin: 0 auto var(--tp-space-xs);
    color: var(--tp-red);
    line-height: 1;
}

.tp-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--tp-secondary);
    display: block;
}

.tp-stat-label {
    font-size: 0.85rem;
    color: var(--tp-gray-600);
}

/* ==========================================================================
   SECTION BLOG RECENT (Nos Conseils)
   ========================================================================== */

.tp-blog-recent {
    padding: var(--tp-space-2xl) 0;
}

.tp-blog-grid {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--tp-space-lg);
}

.tp-blog-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    transition: box-shadow var(--tp-transition-normal, 0.2s ease);
}

.tp-blog-card:hover {
    box-shadow: var(--tp-shadow-md);
}

.tp-blog-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.tp-blog-card-body {
    padding: var(--tp-space-md);
}

.tp-blog-card-date {
    display: block;
    font-size: var(--tp-text-xs, 0.75rem);
    color: var(--tp-gray-400);
    margin-bottom: var(--tp-space-xs);
}

.tp-blog-card-body h3 {
    font-size: var(--tp-text-base, 1rem);
    font-weight: 600;
    margin: 0 0 var(--tp-space-xs);
    line-height: 1.3;
}

.tp-blog-card-body h3 a {
    color: var(--tp-gray-900);
    text-decoration: none;
}

.tp-blog-card-body h3 a:hover {
    color: var(--tp-red);
}

.tp-blog-card-body p {
    font-size: var(--tp-text-sm, 0.875rem);
    color: var(--tp-gray-600);
    line-height: 1.5;
    margin: 0 0 var(--tp-space-sm);
}

.tp-blog-card-link {
    font-size: var(--tp-text-sm, 0.875rem);
    color: var(--tp-red);
    text-decoration: none;
    font-weight: 500;
}

.tp-blog-card-link:hover {
    text-decoration: underline;
}

.tp-blog-see-all {
    text-align: center;
    margin: var(--tp-space-lg) 0 0;
}

.tp-blog-see-all a {
    color: var(--tp-gray-600);
    text-decoration: none;
    font-size: var(--tp-text-sm, 0.875rem);
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-blog-see-all a:hover {
    color: var(--tp-red);
}

@media (max-width: 768px) {
    .tp-blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SECTION CTA
   ========================================================================== */

.tp-cta {
    padding: var(--tp-space-2xl) 0;
    background: var(--tp-gray-900);
    color: var(--tp-white);
    text-align: center;
}

.tp-cta-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
}

.tp-cta h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 var(--tp-space-md);
    color: var(--tp-white);
}

.tp-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--tp-space-xl);
}

.tp-cta-btn {
    display: inline-block;
    background: var(--tp-white);
    color: var(--tp-primary);
    padding: var(--tp-space-md) var(--tp-space-xl);
    border-radius: var(--tp-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--tp-transition-normal, 0.2s ease);
}

.tp-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(227, 24, 55, 0.35);
    background: var(--tp-white);
    color: var(--tp-red);
}

/* CTA contact info (phone + hours) */
.tp-cta-contact {
    margin-top: var(--tp-space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tp-space-sm);
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.tp-cta-or {
    color: rgba(255, 255, 255, 0.6);
}

.tp-cta-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #25d366 !important;           /* WhatsApp brand green — visible on dark bg */
    text-decoration: none !important;
    font-weight: 600;
    transition: color var(--tp-transition-normal, 0.2s ease);
}

.tp-cta-whatsapp:hover {
    color: var(--tp-white) !important;
}

.tp-cta-hours {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ==========================================================================
   RESPONSIVE - HOMEPAGE
   ========================================================================== */

@media (max-width: 900px) {
    .tp-avantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-categories-3 {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

    .tp-confiance-inner {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 600px) {
    .tp-hero {
        min-height: 280px;
        padding: var(--tp-space-xl) 0;
    }

    .tp-hero h1 {
        font-size: 1.8rem;
    }

    .tp-hero p {
        margin-bottom: var(--tp-space-lg);
    }

    .tp-hero .tp-search-input-wrap {
        flex-direction: column;
        padding: var(--tp-space-sm);
    }

    .tp-hero .tp-search-icon {
        display: none;
    }

    .tp-hero .tp-search-input {
        width: 100%;
        text-align: center;
    }

    .tp-hero .tp-search-btn {
        width: 100%;
        margin-top: var(--tp-space-sm);
    }

    .tp-hero-links {
        justify-content: center;
    }

    .tp-avantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--tp-space-md);
    }

    .tp-avantage-card {
        padding: var(--tp-space-lg);
    }

    .tp-avantage-icon {
        width: 36px;
        height: 36px;
    }

    .tp-avantage-card h3 {
        font-size: 0.875rem;
    }

    .tp-avantage-card p {
        font-size: 0.8rem;
    }

    .tp-categories-2 {
        max-width: 100%;
    }

    .tp-categories-3,
    .tp-categories-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-categories-3 > :last-child {
        grid-column: 1 / -1;
    }

    .tp-category-card {
        padding: var(--tp-space-lg) var(--tp-space-md);
    }

    .tp-category-icon {
        width: 40px;
        height: 40px;
    }

    .tp-category-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Best sellers: show only first 4 products on mobile */
    .tp-bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tp-bestseller-card:nth-child(n+5) {
        display: none;
    }

    /* Stats grid: 2×2 instead of 4×1 to prevent overflow */
    .tp-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--tp-space-lg);
    }
}

/* ==========================================================================
   SECTION SEO CONTENT (Bottom of page)
   ========================================================================== */

.tp-seo-content {
    padding: var(--tp-space-2xl) 0;
    background: var(--tp-gray-50);
    border-top: 1px solid var(--tp-gray-200);
}

.tp-seo-content-inner {
    max-width: var(--tp-container-width);
    margin: 0 auto;
    padding: 0 var(--tp-space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--tp-space-2xl);
}

.tp-seo-block {
    padding: var(--tp-space-xl);
    background: var(--tp-white);
    border-radius: var(--tp-radius-lg);
    border: 1px solid var(--tp-gray-200);
}

.tp-seo-block h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--tp-gray-900);
    margin: 0 0 var(--tp-space-md);
    line-height: 1.3;
}

.tp-seo-block p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--tp-gray-600);
    margin: 0 0 var(--tp-space-lg);
}

/* Internal links (season categories) */
.tp-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tp-space-sm);
    margin-bottom: var(--tp-space-lg);
}

.tp-seo-links a {
    display: inline-block;
    padding: var(--tp-space-xs) var(--tp-space-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--tp-gray-700);
    background: var(--tp-gray-100);
    border-radius: var(--tp-radius-md);
    text-decoration: none;
    transition: all var(--tp-transition-normal, 0.2s ease);
}

.tp-seo-links a:hover {
    color: var(--tp-red);
    background: var(--tp-gray-200);
}

/* CTA link */
.tp-seo-cta {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--tp-red);
    text-decoration: none;
    transition: opacity var(--tp-transition-normal, 0.2s ease);
}

.tp-seo-cta:hover {
    text-decoration: underline;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .tp-seo-content-inner {
        grid-template-columns: 1fr;
        gap: var(--tp-space-lg);
    }
}

/* =========================================================================
   Recently Viewed Products
   ========================================================================= */
.tp-recently-viewed-container {
    margin: 48px 0;
    padding: 0 var(--tp-container-pad, 16px);
}
.tp-recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.tp-rv-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--tp-gray-200, #e2e8f0);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow var(--tp-transition-normal, 0.2s ease);
}
.tp-rv-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.tp-rv-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--tp-gray-50, #f7fafc);
}
.tp-rv-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tp-rv-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-rv-name {
    font-size: var(--tp-text-xs, 0.75rem);
    font-weight: 500;
    color: var(--tp-gray-700, #4a5568);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tp-rv-price {
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 700;
    color: var(--tp-gray-900, #1a202c);
}
@media (max-width: 1024px) {
    .tp-recently-viewed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 689px) {
    .tp-recently-viewed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================================
   Popular Products
   ========================================================================= */
.tp-popular-products {
    margin: 48px 0;
    padding: 0 var(--tp-container-pad, 16px);
}
.tp-product-grid {
    display: grid;
    gap: 20px;
}
.tp-product-grid.tp-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.tp-product-grid.tp-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.tp-product-card-pop {
    border: 1px solid var(--tp-gray-200, #e2e8f0);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--tp-transition-normal, 0.2s ease);
}
.tp-product-card-pop:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.tp-product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.tp-product-image {
    aspect-ratio: 1;
    background: var(--tp-gray-50, #f7fafc);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.tp-product-thumb {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.tp-product-details {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-product-brand {
    font-size: var(--tp-text-xs, 0.75rem);
    font-weight: 600;
    color: var(--tp-gray-500, #a0aec0);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tp-product-name {
    font-size: var(--tp-text-sm, 0.875rem);
    font-weight: 500;
    color: var(--tp-gray-800, #2d3748);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tp-product-price {
    font-size: var(--tp-text-base, 1rem);
    font-weight: 700;
    color: var(--tp-gray-900, #1a202c);
}
@media (max-width: 1024px) {
    .tp-product-grid.tp-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 689px) {
    .tp-product-grid.tp-cols-4,
    .tp-product-grid.tp-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
