/* ============================================
   TIRES PAGE SPECIFIC CSS
   ============================================ */

:root {
    --accent-green: #71B280;
    --dark-green: #237A57;
    --light-green: #E8F4E8;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
}

/* ============================================
   Hero Section - Full Height
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(35, 122, 87, 0.85) 0%, rgba(113, 178, 128, 0.75) 100%);
    z-index: -1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.badge-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #71B280;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, #71B280, #E8F4E8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* ============================================
   Tire Shop Section
   ============================================ */

.tires-section {
    background: white;
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .section-title {
    color: var(--text-dark);
}

.section-header .section-subtitle {
    color: var(--text-light);
}

/* ============================================
   Tire Controls & Search
   ============================================ */

.tire-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0 1rem;
    transition: all 0.3s ease;
    height: 50px;
}

.search-box:focus-within {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
}

.search-box i {
    color: var(--text-light);
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    background: transparent;
    color: var(--text-dark);
    min-width: 200px;
}

.search-input::placeholder {
    color: #999;
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.search-clear:hover {
    color: var(--dark-green);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--dark-green);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    height: 50px;
}

.filter-toggle:hover,
.filter-toggle.active {
    background: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Filter Panel
   ============================================ */

.filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: var(--accent-green);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(113, 178, 128, 0.1);
}

.filter-panel .btn-grad {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

/* ============================================
   Tire Grid & Cards
   ============================================ */

.tires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tire-card {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.tire-card:hover {
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

/* Tire Badge */
.tire-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.badge-new {
    background: var(--accent-green);
    color: white;
}

.badge-used {
    background: #FFB800;
    color: white;
}

/* Tire Image */
.tire-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, var(--light-green) 0%, #f0f8f2 100%);
    font-size: 4rem;
    color: var(--accent-green);
    transition: all 0.3s ease;
}

.tire-card:hover .tire-image {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--dark-green) 100%);
    color: white;
}

/* Tire Content */
.tire-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tire-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.tire-size {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.tire-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-green);
    margin: 0.5rem 0 1rem 0;
}

.tire-card .btn-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-light);
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: 4rem 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--light-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-green);
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon {
    background: var(--accent-green);
    color: white;
    transform: scale(1.1);
}

.feature-box h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-box p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--accent-green) 100%);
    color: white;
    display: block;
}

.cta-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cta-box p {
    font-size: 1.05rem;
    margin-bottom: 0;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-box .btn-cta {
    background: white;
    color: var(--dark-green);
    border: none;
}

.cta-box .btn-cta:hover {
    background: var(--accent-green);
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-lg span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.btn-lg small {
    font-size: 0.7rem;
    opacity: 0.8;
    font-weight: 400;
}

.btn-lg strong {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ============================================
   Responsive Design
   ============================================ */

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

    .filter-toggle {
        width: 100%;
        justify-content: center;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .tires-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-section .row {
        text-align: center;
    }

    .cta-section .col-lg-4 {
        margin-top: 2rem;
    }

    .cta-section .text-lg-end {
        text-align: center !important;
    }

    .btn-lg span {
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tire-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box {
        width: 100%;
    }

    .tires-grid {
        grid-template-columns: 1fr;
    }

    .tire-image {
        height: 150px;
        font-size: 3rem;
    }

    .cta-box {
        padding: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.3rem;
    }

    /* Hero Section Mobile */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .hero-buttons a {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   Animations (using global.js classes)
   ============================================ */

.animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-ready[data-animate="up"] {
    animation: slideUpIn 0.6s ease-out forwards;
}

@keyframes slideUpIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Size Variants */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ============================================
   Brand Carousel in Hero
   ============================================ */

.brands-carousel-hero {
    width: 100%;
    overflow: hidden;
    margin-top: 3rem;
}

.brands-carousel-hero .brands-track {
    display: flex;
    gap: 40px;
    animation: scroll-hero 30s linear infinite;
    padding: 20px 0;
}

.brands-carousel-hero .brand-logo {
    flex-shrink: 0;
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.brands-carousel-hero .brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
    filter: brightness(0) invert(1);
}

.brands-carousel-hero .brand-logo:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

@keyframes scroll-hero {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-140px * 6 - 40px * 6));
    }
}
/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.cta-box {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 4rem 3rem;
    border: 1px solid rgba(113, 178, 128, 0.3);
    position: relative;
    overflow: visible;
    text-align: center;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(113, 178, 128, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.cta-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #EB3349, #F45C43);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ring 2s infinite;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(235, 51, 73, 0.3);
    flex-shrink: 0;
}

.cta-icon i {
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 11;
    display: block;
    line-height: 1;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(235, 51, 73, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(235, 51, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(235, 51, 73, 0);
    }
}

.cta-phone {
    margin: 1.5rem 0;
}

.cta-phone a {
    font-size: 2.5rem;
    font-weight: 900;
    color: #71B280;
    transition: color 0.3s ease;
    text-decoration: none;
}

.cta-phone a:hover {
    color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-box {
        padding: 3rem 2rem;
    }

    .cta-icon {
        width: 80px;
        height: 80px;
    }

    .cta-icon i {
        font-size: 2rem;
    }

    .cta-phone a {
        font-size: 2rem;
    }
}
/* Pause animation on hover */
.brands-carousel-hero:hover .brands-track {
    animation-play-state: paused;
}

/* Mobile Hero Carousel */
@media (max-width: 768px) {
    .brands-carousel-hero {
        margin-top: 2rem;
    }

    .brands-carousel-hero .brands-track {
        gap: 20px;
        animation: scroll-hero-mobile 20s linear infinite;
    }

    .brands-carousel-hero .brand-logo {
        width: 100px;
        height: 60px;
    }

    @keyframes scroll-hero-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 3 - 20px * 3));
        }
    }
}

/* ============================================
   Brand Logos Carousel
   ============================================ */
.brands-carousel-section {
    background: rgba(0, 0, 0, 0.03);
    padding: 60px 0;
    overflow: hidden;
}

.brands-carousel {
    width: 100%;
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
    padding: 20px 0;
}

.brand-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(113, 178, 128, 0.2);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 6 - 40px * 6));
    }
}

/* Pause animation on hover */
.brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

/* Mobile - 3 logos per slide */
@media (max-width: 768px) {
    .brands-carousel-section {
        padding: 40px 0;
    }

    .brands-track {
        gap: 20px;
        animation: scroll-mobile 20s linear infinite;
    }

    .brand-logo {
        width: 100px;
        height: 60px;
    }

    @keyframes scroll-mobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 3 - 20px * 3));
        }
    }
}