/* ========================================
   KAVO PY - MAIN STYLESHEET
   Site principal - Home Page & Componentes Globais
   Design: Webmotors/Kavak inspired
   ======================================== */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --color-primary: #0F766E;
    --color-primary-dark: #0d665f;
    --color-primary-light: #e6f4f3;
    --color-secondary: #1e3a5f;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-bg-light: #f8f9fa;
    --color-bg-dark: #1a1a1a;
    --color-white: #ffffff;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   BOOTSTRAP OVERRIDES - Kavo Green
   ======================================== */
.btn-primary {
    background-color: #0F766E;
    border-color: #0F766E;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus,
.btn-primary.active {
    background-color: #0D6560;
    border-color: #0D6560;
}
.btn-primary:focus,
.btn-primary:active:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #0F766E;
    border-color: #0F766E;
    opacity: 0.65;
}
.btn-outline-primary {
    color: #0F766E;
    border-color: #0F766E;
}
.btn-outline-primary:hover,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: #0F766E;
    border-color: #0F766E;
    color: #fff;
}
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 118, 110, 0.25);
}

/* ========================================
   HERO SECTION - NEW DESIGN
   Banner principal full-width 1920x900 com border-radius inferior
   ======================================== */
.hero-webmotors {
    position: relative;
    width: 100%;
    /* dvh: considera barra do browser em mobile — sem overflow indesejado */
    height: min(500px, 65dvh);
    margin-bottom: 0;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-desktop);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Navigation Arrows */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 1.25rem;
    color: #1e3a5f;
}

.hero-nav-btn:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}

.hero-nav-prev {
    left: 20px;
}

.hero-nav-next {
    right: 20px;
}

/* Hero Pagination Dots */
.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hero-dot.active {
    background: #ffffff;
    width: 24px;
    border-radius: 5px;
}

/* Overlay sutil para legibilidade */
.hero-webmotors::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #ffffff;
    padding: 0 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ffffff;
    color: #1e3a5f;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-cta-btn:hover {
    background: #f8f9fa;
    color: #1e3a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Tablet */
@media (max-width: 991.98px) {
    .hero-webmotors {
        height: min(400px, 60dvh);
        border-bottom-left-radius: 40px;
        border-bottom-right-radius: 40px;
    }
    
    .hero-slide {
        background-image: var(--hero-bg-tablet, var(--hero-bg-desktop));
    }
    
    .hero-content {
        text-align: left;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .hero-webmotors {
        height: min(350px, 55dvh);
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    
    .hero-slide {
        background-image: var(--hero-bg-mobile, var(--hero-bg-tablet, var(--hero-bg-desktop)));
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-content h1 {
        text-align: center;
    }
    
    .hero-cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .hero-nav-prev {
        left: 10px;
    }
    
    .hero-nav-next {
        right: 10px;
    }
    
    .hero-pagination {
        bottom: 20px;
    }
    
    .hero-dot {
        width: 8px;
        height: 8px;
    }
    
    .hero-dot.active {
        width: 20px;
    }
}

/* ========================================
   SEARCH CARD - FLUTUANTE SOBRE O HERO
   Card de busca sobreposto ao banner
   ======================================== */
.search-card-wrapper {
    position: relative;
    z-index: 100;
    max-width: 820px;
    margin: -80px auto 0;
    padding: 0 16px;
}

.search-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 28px 32px 32px;
}

.search-card__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-card__form .search-input-group {
    position: relative;
}

.search-card__form .search-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.search-card__form .search-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-light);
    transition: all var(--transition-fast);
}

.search-card__form .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.search-card__form .search-input::placeholder {
    color: var(--color-text-muted);
}

.search-cta-btn {
    width: 100%;
    padding: 14px 24px;
    background: #181818;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.15);
}

.search-cta-btn:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 24, 24, 0.25);
}

.search-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(24, 24, 24, 0.15);
}

/* Search Suggestions Dropdown */
.search-card__form .search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    display: none;
    padding: 8px;
    /* Animação de entrada/saída com @starting-style — sem JS para o fade */
    opacity: 1;
    transform: translateY(0) scale(1);
    transition:
        opacity 150ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 150ms cubic-bezier(0.22, 1, 0.36, 1),
        display 150ms allow-discrete;
}

.search-card__form .search-suggestions.show {
    display: block;

    @starting-style {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .search-card-wrapper {
        margin-top: -70px;
        max-width: 90%;
    }
    
    .search-card {
        padding: 24px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .search-card-wrapper {
        margin-top: -60px;
        max-width: 100%;
        padding: 0 12px;
    }
    
    .search-card {
        padding: 20px 16px 24px;
        border-radius: var(--radius-lg);
    }
    
    .search-card__header {
        margin-bottom: 16px;
    }
    
    .search-card__label,
    .search-card__suggestion {
        font-size: 0.85rem;
    }
    
    .search-card__tabs {
        gap: 6px;
    }
    
    .search-tab {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

/* ========================================
   PROMO CAROUSEL - 3 CARDS
   Seção promocional abaixo do hero
   ======================================== */
.promo-carousel-section {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.promo-carousel-section .container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.promo-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.promo-slide {
    position: relative;
    height: 220px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.promo-slide:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.promo-slide__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
}

.promo-slide:hover .promo-slide__image {
    transform: scale(1.05);
}

.promo-slide__overlay {
    display: none;
}

.promo-slide__meta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.promo-slide__title {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
}

.promo-slide__arrow {
    font-size: 1.25rem;
    font-weight: 300;
    transition: transform var(--transition-normal);
}

.promo-slide:hover .promo-slide__arrow {
    transform: translateX(4px);
}

/* Headline - apenas texto alinhado à esquerda */
.promo-carousel-headline {
    text-align: left;
    padding: 30px 0;
    max-width: 100%;
}

.promo-carousel-headline p {
    margin: 0;
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 991.98px) {
    .promo-carousel-section {
        padding: 50px 0 30px;
    }
    
    .promo-carousel {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .promo-slide {
        height: 180px;
    }
    
    .promo-carousel-headline p {
        font-size: 1.6rem;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .promo-carousel-section {
        padding: 40px 0 24px;
    }
    
    .promo-carousel-section .container {
        gap: 24px;
    }
    
    .promo-slide {
        height: 160px;
        border-radius: var(--radius-lg);
    }
    
    .promo-slide__meta {
        padding: 16px;
    }
    
    .promo-slide__title {
        font-size: 1rem;
    }
    
    .promo-carousel-headline p {
        font-size: 1.4rem;
    }
}

/* ========================================
   BRAND LOGOS SECTION
   Lojas oficiais em carrossel horizontal
   ======================================== */
.brand-logos-section {
    padding: 50px 0;
    background: var(--color-white);
}

.brand-logos-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 32px;
    text-align: center;
}

.brand-logos-carousel {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.brand-logo-item {
    text-decoration: none;
}

.brand-logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-bg-light);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.brand-logo-circle:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-logo-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 767.98px) {
    .brand-logos-section {
        padding: 40px 0;
    }
    
    .brand-logos-title {
        font-size: 1.25rem;
        margin-bottom: 24px;
    }
    
    .brand-logos-carousel {
        gap: 16px;
    }
    
    .brand-logo-circle {
        width: 64px;
        height: 64px;
    }
}

/* ========================================
   LAST BANNER SECTION
   Banner final antes do rodapé
   ======================================== */
.last-banner-section {
    padding: 3rem 0;
    background: #ffffff;
}

.last-banner-section .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.last-banner-card {
    position: relative;
    display: block;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    aspect-ratio: 4 / 1;
}

.last-banner-card:hover {
    transform: translateY(-4px);
}

.last-banner-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.last-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.last-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    color: #ffffff;
}

.last-banner-title {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    max-width: 400px;
}

.last-banner-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: #ffffff;
    color: #1e3a5f;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: fit-content;
    letter-spacing: 0.5px;
}

.last-banner-card:hover .last-banner-btn {
    background: #f8f9fa;
    transform: translateX(4px);
}

@media (max-width: 767.98px) {
    .last-banner-section {
        padding: 1.5rem 0;
    }
    
    .last-banner-card {
        border-radius: 10px;
        aspect-ratio: 3 / 1;
    }
    
    .last-banner-overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 100%);
    }
    
    .last-banner-content {
        padding: 0 16px;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .last-banner-title {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
        line-height: 1.25;
        max-width: 260px;
    }
    
    .last-banner-btn {
        padding: 0.55rem 1.4rem;
        font-size: 0.75rem;
        font-weight: 600;
    }
}

/* ========================================
   QUICK SEARCH - BRAND LOGOS SECTION
   Busca rápida com logos de marcas em círculos
   ======================================== */
.quick-search-section {
    padding: 60px 0;
    background: #ffffff;
}

.quick-search-section .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.quick-search-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: left;
}

.quick-search-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 48px;
}

.quick-search-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Snap nativo — mais fluido que scroll livre */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.quick-search-carousel::-webkit-scrollbar {
    display: none;
}

.quick-search-logo-card {
    flex-shrink: 0;
    text-decoration: none;
    transition: transform 200ms ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* Ponto de snap alinhado ao início do card */
    scroll-snap-align: start;
    scroll-margin-inline-start: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
    .quick-search-logo-card:hover {
        transform: translateY(-3px);
    }
}

.quick-search-logo-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    padding: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.quick-search-logo-card:hover .quick-search-logo-circle {
    border-color: #0F766E;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}

.quick-search-logo-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.quick-search-logo-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-search-logo-card:hover .quick-search-logo-name {
    color: #0F766E;
}

.quick-search-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
    font-size: 1rem;
}

.quick-search-arrow:hover {
    background: #0F766E;
    border-color: #0F766E;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.quick-search-arrow--left {
    left: 0;
}

.quick-search-arrow--right {
    right: 0;
}

@media (max-width: 767.98px) {
    .quick-search-section {
        padding: 2rem 0;
    }
    
    .quick-search-title {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .quick-search-logo-circle {
        width: 80px;
        height: 80px;
        padding: 16px;
    }
    
    .quick-search-logo-name {
        font-size: 0.75rem;
        max-width: 80px;
    }
    
    .quick-search-carousel {
        gap: 1rem;
    }
    
    .quick-search-arrow {
        display: none;
    }
}

/* ========================================
   CATEGORIES SECTION
   Cards de categoria com imagens
   ======================================== */
.categories-section {
    padding: 3rem 0;
    background: #ffffff;
}

.categories-section .container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.categories-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.categories-view-all {
    color: #0F766E;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.categories-view-all:hover {
    color: #0d665f;
    text-decoration: underline;
}

.categories-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.categories-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    /* Snap nativo — para mobile principalmente */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.categories-carousel::-webkit-scrollbar {
    display: none;
}

.categories-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.categories-nav-btn:hover {
    background: #f5f5f7;
    border-color: #b8b8b8;
}

.categories-nav-prev {
    left: 0;
}

.categories-nav-next {
    right: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card-img {
    flex: 0 0 280px;
    height: 350px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
    scroll-snap-align: start;
    scroll-margin-inline-start: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
    .category-card-img:hover {
        transform: scale(1.02);
    }
}

.category-card-img__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 18px;
}

.category-card-img__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    border-radius: 18px;
}

.category-card-img__bg--placeholder {
    background-color: var(--color-bg-light);
}

.category-card-img__name {
    position: relative;
    z-index: 10;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: center;
    padding: 16px;
    width: 100%;
}

/* 5 colunas em tablet */
@media (max-width: 1199.98px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 3 colunas em tablet pequeno */
@media (max-width: 991.98px) {
    .categories-section {
        padding: 2.5rem 0;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* 2 colunas em mobile */
@media (max-width: 767.98px) {
    .categories-section {
        padding: 2rem 0;
    }
    
    .categories-title-large {
        font-size: 1.25rem;
    }
    
    .categories-carousel-wrapper {
        padding: 0;
        width: 100%;
        position: relative;
    }
    
    .categories-carousel {
        padding: 20px 16px;
        width: 100%;
    }
    
    .categories-nav-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 20;
    }
    
    .categories-nav-prev {
        left: 8px;
    }
    
    .categories-nav-next {
        right: 8px;
    }
    
    .category-card-img {
        flex: 0 0 240px;
        height: 300px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card-img {
        min-height: 180px;
        border-radius: var(--radius-md);
    }
    
    .category-card-img__name {
        font-size: 0.9rem;
        padding: 14px;
        font-weight: 600;
    }
}

/* ========================================
   VEHICLE CARDS
   Cards de veículo na listagem
   ======================================== */

/* Container para queries por componente — sem depender de viewport */
.card-vehicle-wrapper {
    container: vehicle-card / inline-size;
}

.card-vehicle {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Hover apenas em dispositivos com ponteiro real (não touch) */
@media (hover: hover) and (pointer: fine) {
    .card-vehicle:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg) !important;
    }
}

/* Entrada suave dos cards ao rolar — @supports garante fallback */
@supports (animation-timeline: view()) {
    .card-vehicle {
        animation: kavo-card-enter linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 22%;
    }

    @keyframes kavo-card-enter {
        from {
            opacity: 0;
            transform: translateY(16px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Container query — card compacto em colunas estreitas */
@container vehicle-card (width < 260px) {
    .card-vehicle .card-body {
        padding: 0.5rem;
    }
    .card-vehicle .card-title {
        font-size: 0.85rem;
    }
}

/* Reduzir motion respeita preferência do usuário */
@media (prefers-reduced-motion: reduce) {
    .card-vehicle {
        animation: none;
        transition: none;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-primary {
    color: var(--color-primary) !important;
}

.bg-primary {
    background-color: var(--color-primary) !important;
}

.text-muted {
    color: var(--color-text-muted) !important;
}

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

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.kavo-footer {
    background: linear-gradient(135deg, #1c1d21 0%, #0f1012 100%);
    color: #f5f6f7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.kavo-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.15), transparent 45%);
    pointer-events: none;
}

.kavo-footer__content {
    position: relative;
    z-index: 1;
}

.kavo-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 32px;
}

.kavo-footer__logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.kavo-footer__desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.kavo-footer__title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1rem;
}

.kavo-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kavo-footer__links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.kavo-footer__links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.kavo-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    margin-top: 12px;
}

.kavo-footer__social {
    display: flex;
    gap: 12px;
}

.kavo-footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.kavo-footer__social a:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

.kavo-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 40px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 767.98px) {
    .kavo-footer__grid {
        grid-template-columns: 1fr;
    }

    .kavo-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ========================================
   SCROLLBAR CUSTOM
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   KAVO HEADER OVERRIDES — 2026
   Global (bypasses Razor CSS isolation)
   ======================================== */

/* Botão Vender — gradient luxuoso */
.kavo-header__sell-btn,
.kavo-header__btn-sell {
    background: linear-gradient(135deg, #0F766E 0%, #065f46 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 14px rgba(15,118,110,.45), inset 0 1px 0 rgba(255,255,255,.15) !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
}
.kavo-header__sell-btn:hover,
.kavo-header__btn-sell:hover {
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%) !important;
    box-shadow: 0 6px 24px rgba(15,118,110,.6) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* Botão Cadastrar — gradient luxuoso */
.kavo-header__btn-register {
    background: linear-gradient(135deg, #0F766E 0%, #065f46 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 14px rgba(15,118,110,.35), inset 0 1px 0 rgba(255,255,255,.15) !important;
    padding: 0.42rem 1.1rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    letter-spacing: -.01em !important;
}
.kavo-header__btn-register:hover {
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px rgba(15,118,110,.5) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

/* Botão Entrar — outline verde */
.kavo-header__btn-login {
    background: transparent !important;
    color: #0F766E !important;
    border: 1.5px solid #0F766E !important;
    padding: 0.42rem 1.1rem !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    border-radius: 999px !important;
}
.kavo-header__btn-login:hover {
    background: rgba(15,118,110,.06) !important;
    color: #0F766E !important;
}

/* !important overrides para seletores de ações */
.kavo-header__actions a.kavo-header__register,
.kavo-offcanvas-actions a.kavo-header__register {
    background: linear-gradient(135deg, #0F766E 0%, #065f46 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 14px rgba(15,118,110,.35) !important;
}
.kavo-header__actions a.kavo-header__login,
.kavo-offcanvas-actions a.kavo-header__login {
    background: transparent !important;
    color: #0F766E !important;
    border: 1.5px solid #0F766E !important;
}

/* Country switcher — mesmo tamanho dos botões */
.kavo-country-switcher__label {
    padding: 0.42rem 0.85rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    color: #374151 !important;
    background: transparent !important;
    line-height: 1 !important;
}
