/* Terrain Tactics 4x4 - Frontend CSS */
/* This file contains additional styles that complement the global.css */
/* Uses the new Terrain Tactics 4x4 color palette from palette.css */

/* About Page Specific Styles */
.about-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-stats .stat-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(196, 31, 37, 0.1);
}

.feature-card, .value-card, .team-card {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover, .value-card:hover, .team-card:hover {
    zoom:1.03;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-icon, .value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 31, 37, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon, .value-card:hover .value-icon {
    background: var(--accent-color);
    color: white !important;
}

.team-image img {
    border: 4px solid rgba(196, 31, 37, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover .team-image img {
    border-color: var(--accent-color);
}

.video-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 0px!important;
}

.video-card .card-img-top {
    height: 230px;
    object-fit: cover;
    width: 100%;
}

.video-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.play-button .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(196, 31, 37, 0.3);
    transition: all 0.3s ease;
}

.play-button .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 31, 37, 0.4);
}

.social-feed {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Footer Styles - Footer logo specific */
.footer-logo-img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    transition: all 0.3s ease;
    /* Force perfect circle */
    border: none;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.footer-logo-img:hover {
    transform: scale(1.1);
}

/* Footer logo container */
.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .feature-card, .value-card, .team-card {
        padding: 1.5rem 1rem;
    }
    
    .play-button .btn {
        width: 50px;
        height: 50px;
    }
}

/* Override any conflicting styles from the old design */
body {
    background-color: var(--bg-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
}

/* Ensure proper spacing and layout */
.container {
    max-width: 1200px;
}

/* Additional utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Form styling */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* Button enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--text-white);
}

.btn-outline-primary {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-white);
}

/* Card enhancements */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Product specific styles */
.product-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.product-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-card .card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.product-price .sale-price {
    color: var(--accent-color);
}

.product-price .original-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Category cards */
.category-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.category-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.category-card .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Featured section */
.featured-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

/* Hero section enhancements */
.hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(220,38,38,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-section .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.hero-section .btn-light {
    background-color: var(--text-white);
    color: var(--bg-dark);
    border: 2px solid var(--text-white);
}

.hero-section .btn-light:hover {
    background-color: transparent;
    color: var(--text-white);
}

.hero-section .btn-outline-light {
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.hero-section .btn-outline-light:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

/* Tabs styling */
.nav-pills {
    /* border-bottom: 2px solid var(--border-color); */
    /* padding-bottom: 1rem; */
}

.nav-pills .nav-link {
    color: var(--text-dark);
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    margin-right: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-pills .nav-link:hover {
    color: var(--accent-color);
    background-color: transparent;
}

.nav-pills .nav-link.active {
    color: var(--accent-color);
    background-color: transparent;
    border-bottom: 2px solid var(--accent-color);
}

.nav-pills .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-color);
}

/* Footer social links specific styling */
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.badge.bg-danger {
    background-color: var(--accent-color) !important;
}

.badge.bg-primary {
    background-color: var(--accent-color) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .search-form {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 1rem;
        margin-right: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .nav-pills {
        flex-wrap: wrap;
    }
    
    .nav-pills .nav-link {
        margin-bottom: 0.5rem;
    }
}

/* Utility classes */
.text-primary { color: var(--accent-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.bg-primary { background-color: var(--accent-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-accent { background-color: var(--accent-color) !important; }

.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-lg { border-radius: 12px !important; }

/* Main Header Styling */
.main-header {
    border-bottom: none;
    background: linear-gradient(90deg,#666,#222,#422);
}

/* Navbar logo: horizontal lockup */
.main-header .navbar-brand {
    width: auto;
    height: 80px;
    min-width: 0;
}
.main-header .logo-img {
    height: 80px;
    width: auto;
    max-height: 80px;
    object-fit: contain;
    aspect-ratio: auto;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.main-header .logo-img:hover {
    transform: scale(1.05);
}

/* Main Navigation Styling */
.main-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    border: none;
    background: transparent;
}

.main-nav .nav-link:hover {
    color: #ffffff !important;
    background: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 31, 37, 0.3);
    border-radius: 25px;
}

.main-nav .nav-link i {
    transition: transform 0.3s ease;
}

.main-nav .nav-link:hover i {
    transform: scale(1.1);
}

/* Enhanced Dropdown Styling */
.main-nav .dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: -2px;
    padding: 1rem;
    width: max-content;
    max-width: min(100vw - 2rem, 40rem);
    min-width: 13.75rem;
    animation: dropdownSlideIn 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: absolute;
    z-index: 1050;
    left: auto;
    right: 0;
    top: 100% !important;
}

.main-nav .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.25rem;
    position: relative;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Multi-part links fill the padded row edge-to-edge */
.main-nav .dropdown-item.d-flex.gap-2 {
    width: 100%;
}

.main-nav .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(135deg, var(--accent-color), #bb1f24);
    transition: width 0.3s ease;
    z-index: -1;
}

.main-nav .dropdown-item:hover::before {
    width: 100%;
}

.main-nav .dropdown-item:hover {
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(196, 31, 37, 0.3);
}

.main-nav .dropdown-item i {
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.main-nav .dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.main-nav .dropdown-divider {
    margin: 0.75rem 0;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Products menu: modest width + wrapping labels (override global nav !important min-width) */
.main-nav .dropdown-menu.tt-products-nav-dropdown {
    min-width: 15.5rem !important;
    max-width: min(16.5rem, calc(100vw - 28px)) !important;
}

.main-nav .dropdown-menu.tt-products-nav-dropdown .dropdown-item {
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
}

/* Dropdown arrow animation */
.main-nav .dropdown-toggle::after {
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

.main-nav .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Hover effect on dropdown trigger */
.main-nav .nav-item.dropdown:hover .nav-link {
    color: #ffffff !important;
    background: rgba(196, 31, 37, 0.8);
    transform: translateY(-2px);
}

/* Dropdown positioning for different items */
.main-nav .nav-item.dropdown:nth-last-child(1) .dropdown-menu,
.main-nav .nav-item.dropdown:nth-last-child(2) .dropdown-menu {
    right: 0;
    left: auto;
}

.main-nav .nav-item.dropdown:nth-last-child(3) .dropdown-menu,
.main-nav .nav-item.dropdown:nth-last-child(4) .dropdown-menu {
    right: auto;
    left: 0;
}

/* Ensure dropdowns don't get clipped */
.main-header .container {
    position: relative;
    overflow: visible;
}

.main-nav {
    position: relative;
    overflow: visible;
}

/* Floating "New" badge on nav links (absolute; does not affect layout) */
.main-nav a.nav-products-with-badge,
.main-nav a.nav-forum-with-badge {
    overflow: visible;
}

.tt-floating-new-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(32%, -36%);
  font-size: 0.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tt4x4-red, #c41f25);
  padding: 0.2em 0.45em 0.3em;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

/* “New” at end of a dropdown row (e.g. Meet-up safety); keep same look as floating badge */
.tt-floating-new-badge--dropdown-end {
  position: static;
  transform: none;
}

/* Search Form Enhancement */
.main-header .search-form .form-control {
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.main-header .search-form .form-control:focus {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 0 0 0.2rem rgba(196, 31, 37, 0.25);
}

.main-header .search-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.main-header .search-form .form-control:focus::placeholder {
    color: #adb5bd;
}

.main-header .search-form .btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: all 0.3s ease;
}

.main-header .search-form .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196, 31, 37, 0.4);
}

/* Compact header search (signed-in admin): icon toggles full-width bar below */
.header-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.55rem;
    border: none;
    border-radius: 15px;
    background: transparent;
    color: #fff !important;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.header-search-toggle:hover,
.header-search-toggle:focus-visible,
.header-search-toggle[aria-expanded="true"] {
    color: #fff !important;
    background: var(--accent-color) !important;
    box-shadow: 0 4px 15px rgba(196, 31, 37, 0.35);
    outline: none;
}
.main-header .header-search-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.65rem 0 0.9rem;
}
.main-header .header-search-panel__form {
    max-width: 100%;
    margin: 0;
}
.main-header .header-search-panel__form .input-group {
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes dropdownSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(-15px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Override AOS default CSS that sets opacity: 0 */
[data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

[data-aos].aos-animate {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure elements are visible when AOS is not loaded */
.no-js [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Force override AOS CSS - this needs to be more specific than AOS CSS */
body [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
}

body [data-aos].aos-animate {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Login hero: real Jeep / off-road photo slideshow + brand charcoal + TT red glaze */
.login-hero {
  position: relative;
  isolation: isolate;
  background-color: #16181c;
  padding: 60px 0;
  min-height: 100vh;
  box-sizing: border-box;
}

.login-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.login-hero-slide {
  position: absolute;
  inset: 0%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1.15s ease,
    visibility 0s linear 1.15s;
  will-change: opacity, transform;
}

.login-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
  animation: login-hero-kenburns 15s ease-out both;
}

@keyframes login-hero-kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.065);
  }
}

.login-hero-brand-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      165deg,
      rgba(22, 27, 34, 0.78) 0%,
      rgba(22, 27, 34, 0.5) 42%,
      rgba(196, 31, 37, 0.12) 58%,
      rgba(18, 21, 26, 0.88) 100%
    ),
    radial-gradient(
      ellipse 115% 95% at 50% 115%,
      rgba(8, 10, 14, 0.55),
      transparent 55%
    );
}

.login-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 108% 105% at 50% 42%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0.25) 76%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.login-hero-inner {
  position: relative;
  z-index: 3;
}

.login-card.shadow-lg {
  /* Kill hairline halo: outer ring keyed to hero; keeps Bootstrap shadow readable */
  box-shadow:
    0 1rem 3rem rgba(0, 0, 0, 0.38),
    0 0 0 10px rgba(22, 24, 28, 0.94);
}

/* Dark card shell so rounded corners never reveal white behind the brand panel */
.login-card {
  position: relative;
  background-color: #1f2329;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
}

.login-card__brand.brand-side {
  position: relative;
  background: linear-gradient(165deg, #1b1e24 0%, #252a32 100%);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.login-card__form {
  background-color: #fff;
}

@media (min-width: 768px) {
  .login-card__brand {
    border-radius: 12px 0 0 12px;
    overflow: hidden;
  }

  .login-card__form {
    border-radius: 0 12px 12px 0;
    overflow: hidden;
  }
}

@media (max-width: 767.98px) {
  .login-card__form {
    border-radius: 12px;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-hero-slide.is-active {
    animation: none;
    transform: none;
  }
}
.brand-logo-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  margin: 0 auto;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.22));
  transition: filter 0.25s ease;
}

.brand-logo-image:hover {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
}

/* Login Form Styling */
.small-title span { cursor: pointer; font-weight: 600; }
.small-title .selected { color: var(--tt4x4-red); }

/* Improved Input Styling */
.input-container {
  position: relative;
}

.input-with-icon { 
  position: relative; 
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.input-with-icon:focus-within {
  border-color: var(--tt4x4-red);
  box-shadow: 0 0 0 3px rgba(196, 31, 37, 0.1);
  background: #fff;
}

.input-with-icon i { 
  position: absolute; 
  left: 15px; 
  top: 50%; 
  transform: translateY(-50%); 
  color: #6c757d; 
  font-size: 16px;
  transition: color 0.3s ease;
}

.input-with-icon:focus-within i {
  color: var(--tt4x4-red);
}

.input-with-icon input { 
  padding: 15px 15px 15px 50px; 
  border: none;
  background: transparent;
  font-size: 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  outline: none;
  box-shadow: none;
}

.input-with-icon input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

/* Buttons branding reuse (login uses .btn-tt-primary-red - do not use .btn-add-to-cart outside product/cart UI) */
.btn-add-to-cart,
.btn-tt-primary-red {
  background: var(--tt4x4-red);
  color: #fff;
  border-color: var(--tt4x4-red);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-add-to-cart:hover,
.btn-tt-primary-red:hover {
  background: #bb1f24;
  color: #fff;
  border-color: #bb1f24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 31, 37, 0.3);
}

/* Toast notifications (storefront - prefer over window.alert) */
#tt-toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10800;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 2rem));
}
.tt-toast {
  pointer-events: auto;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.tt-toast.tt-toast--show {
  opacity: 1;
  transform: translateY(0);
}
.tt-toast--success {
  background: #198754;
  color: #fff;
}
.tt-toast--error {
  background: #c41f25;
  color: #fff;
}
.tt-toast--info {
  background: #212529;
  color: #fff;
}

/* Login Form Responsive */
@media (max-width: 768px) {
  .login-hero {
    padding: 40px 0;
  }
  
  .brand-logo-image {
    width: 140px;
    height: 140px;
  }
  
  .input-with-icon input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .brand-side {
    display: none !important;
  }
  
  .login-card .col-md-6:first-child {
    display: none;
  }
  
  .login-card .col-md-6:last-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Hero & Swiper */
.hero-section { position: relative; }
.hero-slide { position: relative; min-height: 75vh; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-section .swiper { position: relative; z-index: 1; }
.swiper-pagination { z-index: 2; }
.swiper-button-next, .swiper-button-prev { color: #fff; z-index: 2; }
/* Ensure next sections don't overlay hero */
.hero-section + section { position: relative; z-index: 1; }

/* Font Awesome v5 class shim mapping to local FA4 - REMOVED TO PREVENT CONFLICTS WITH CDN */

/* Hero & Swiper full-height fix */
.hero-section { position: relative; }
.hero-section .swiper, 
.hero-section .swiper-wrapper, 
.hero-section .swiper-slide, 
/* .hero-section .hero-slide { height: 75vh; } */
.hero-section .hero-slide { min-height: 75vh; background-size: cover; background-position: center; }
.hero-section .container, .hero-section .row { height: 100%; }
.hero-section .hero-buttons { margin-top: 16px; }

/* Additional overflow prevention for specific elements */
.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* Prevent any element from extending beyond viewport */
* {
  max-width: 100%;
}

/* Ensure images don't cause overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Fix for sections that might extend beyond viewport */
section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent transform animations from causing overflow */
.slide-in {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===========================================
   HOMEPAGE COMPONENTS STYLING
   =========================================== */

/* Homepage Hero Section */
.homepage-hero-section {
  /* scroll: avoids inset/cropped backgrounds from fixed attachment on many viewports */
  background-attachment: scroll;
  background-color: var(--bg-dark);
  overflow: visible;
  height: auto;
  min-height: 400px;
  width: 100%;
  max-width: none;
}

.min-vh-400 {
  min-height: 400px;
  height: auto;
  overflow: visible;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  overflow: visible !important;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  height: auto;
  min-height: auto;
}

/* Override AOS overflow rule specifically for hero title */
.hero-title[data-aos] {
  overflow: visible !important;
  overflow-x: visible !important;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Hero Content Container */
.homepage-hero-section .container,
.homepage-hero-section .row,
.homepage-hero-section .col-lg-8 {
  overflow: visible;
  height: auto;
  min-height: auto;
}

.hero-search-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
}

.search-input {
  width: 100%;
  padding: 15px 15px 15px 55px;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  border-radius: 50px;
  outline: none;
}

.search-input::placeholder {
  color: #adb5bd;
  font-weight: 400;
}

.search-button {
  background: var(--tt4x4-red);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.search-button:hover {
  background: #bb1f24;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(196, 31, 37, 0.4);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.homepage-hero-section .hero-quick-links .btn {
  max-width: none;
}

.hero-quick-links .btn {
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Single row on tablet/desktop; subtle horizontal scroll only if viewport is tight */
@media (min-width: 769px) {
  .homepage-hero-section .hero-quick-links {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.45rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .homepage-hero-section .hero-quick-links .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-inline: clamp(10px, 1.35vw, 18px);
  }
}

/* Section Headers */
.section-header {
  margin-bottom: 2rem;
}

.section-title {
  color: var(--tt4x4-black);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
}

/* Featured Vehicles Section */
.featured-vehicles-section {
  background-color: var(--bg-light);
}

/* Banner-style Featured Vehicles */
.featured-vehicles-section .section-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.featured-vehicles-section .section-subtitle {
  font-size: 0.9rem;
}

.featured-vehicles-section .vehicle-card {
  height: auto;
  min-height: 280px;
}

.featured-vehicles-section .vehicle-card .card-title {
  font-size: 0.95rem;
  line-height: 1.3;
}

.featured-vehicles-section .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

/* Vehicle detail badges – colour-coded (year, mileage, fuel, transmission, location) */
.vehicle-badge-year {
  background-color: var(--tt4x4-red, #c41f25) !important;
  color: #fff !important;
}
.vehicle-badge-mileage {
  background-color: #1e3a5f !important;
  color: #fff !important;
}
.vehicle-badge-fuel {
  background-color: #0d9488 !important;
  color: #fff !important;
}
.vehicle-badge-transmission {
  background-color: #b45309 !important;
  color: #fff !important;
}
.vehicle-badge-location {
  background-color: #fff !important;
  color: #374151 !important;
  border: 1px solid #d1d5db !important;
}

.featured-vehicles-section .price h5 {
  font-size: 1.1rem;
}

/* Adventure Showroom: full-width horizontal banner (no grid; overflow-y locked on rail) */
.adventure-showroom-banner {
  --asb-bg0: #161a1f;
  --asb-bg1: #252b33;
  background: linear-gradient(145deg, var(--asb-bg0) 0%, var(--asb-bg1) 55%, #1e2329 100%);
  border-radius: 14px;
  padding: 1.1rem 1rem 1rem;
  color: #f3f4f6;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.adventure-showroom-banner--bordered-top {
  border-top: 0;
  margin-top: 1.25rem !important;
  padding-top: 1.25rem !important;
}

.adventure-showroom-banner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.adventure-showroom-banner__title {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}

.adventure-showroom-banner__title-icon {
  color: var(--tt4x4-red);
  margin-right: 0.45rem;
  font-size: 0.95em;
}

.adventure-showroom-banner__subtitle {
  font-size: 0.8rem;
  color: rgba(243, 244, 246, 0.65);
  margin-top: 0.25rem;
}

.adventure-showroom-banner__cta {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--tt4x4-red);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.15s ease;
}

.adventure-showroom-banner__cta:hover {
  background: #a61a20;
  color: #fff !important;
  transform: translateY(-1px);
}

.adventure-showroom-banner__rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 4px 2px 6px;
  margin: 0 -2px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.adventure-showroom-banner__rail::-webkit-scrollbar {
  height: 6px;
}

.adventure-showroom-banner__rail::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 6px;
}

.adventure-showroom-tile {
  flex: 0 0 auto;
  width: clamp(152px, 42vw, 196px);
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.adventure-showroom-tile:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(196, 31, 37, 0.45);
  transform: translateY(-2px);
}

.adventure-showroom-tile:focus-visible {
  outline: 2px solid rgba(253, 186, 186, 0.95);
  outline-offset: 2px;
}

.adventure-showroom-tile__media {
  position: relative;
  height: 100px;
  background: #0f1216;
}

.adventure-showroom-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.adventure-showroom-tile__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

.adventure-showroom-tile__media--empty .fa-car {
  font-size: 1.5rem;
}

.adventure-showroom-tile__body {
  padding: 0.55rem 0.65rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 4.75rem;
  text-align: left;
}

.adventure-showroom-tile__title {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(249, 250, 251, 0.95) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.adventure-showroom-tile__price {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fecaca !important;
  letter-spacing: 0.01em;
  margin-top: auto;
}

@media (min-width: 992px) {
  .adventure-showroom-tile {
    width: clamp(168px, 18vw, 200px);
  }

  .adventure-showroom-tile__media {
    height: 108px;
  }
}

/* Featured Vehicles Smooth Slider */
.featured-vehicles-slider {
  position: relative;
  overflow: hidden;
  touch-action: pan-y pinch-zoom; /* Allow vertical scrolling and zooming */
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.slider-track:active {
  cursor: grabbing;
}

.slider-track.paused {
  animation-play-state: paused;
}

.slider-track.dragging {
  animation-play-state: paused;
  cursor: grabbing;
}

.slider-item {
  flex: 0 0 280px;
  min-width: 280px;
  height: auto;
}

/* Smooth infinite scroll animation */
@keyframes smoothScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Remove hover pause to allow smooth dragging */

/* Responsive adjustments */
@media (max-width: 768px) {
  .slider-item {
    flex: 0 0 250px;
    min-width: 250px;
  }
}

@media (max-width: 576px) {
  .slider-item {
    flex: 0 0 220px;
    min-width: 220px;
  }
}



/* Vehicle Card Enhancements */
.vehicle-card {
  transition: all 0.3s ease-in-out;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-color: var(--tt4x4-red);
}

.vehicle-image {
  overflow: hidden;
  position: relative;
}

.vehicle-image img {
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.05);
}

.vehicle-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vehicle-card:hover .vehicle-overlay {
  opacity: 1;
}

.vehicle-overlay-content {
  text-align: center;
  color: white;
}

.image-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Vehicle Thumbnails */
.vehicle-thumbnails {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 5px;
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
}

.vehicle-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.vehicle-thumbnail:hover {
  border-color: var(--tt4x4-red);
  transform: scale(1.1);
}

.vehicle-thumbnail.active {
  border-color: var(--tt4x4-red);
  transform: scale(1.1);
}

/* Vehicle Card Content */
.vehicle-card .card-title {
  color: var(--tt4x4-black) !important;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.vehicle-card .badge {
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.vehicle-card .badge.bg-primary {
  background-color: var(--tt4x4-red) !important;
  color: white !important;
}

.vehicle-card .badge.bg-secondary {
  background-color: var(--tt4x4-black) !important;
  color: white !important;
}

.vehicle-card .badge.bg-success {
  background-color: #10b981 !important;
  color: white !important;
}

.vehicle-card .badge.bg-info {
  background-color: #3b82f6 !important;
  color: white !important;
}

.vehicle-card .text-primary {
  color: var(--tt4x4-red) !important;
}

.vehicle-card .btn-primary {
  background-color: var(--tt4x4-red);
  border-color: var(--tt4x4-red);
  color: white;
}

.vehicle-card .btn-primary:hover {
  background-color: #bb1f24;
  border-color: #bb1f24;
  color: white;
}

.vehicle-card .btn-outline-primary {
  border-color: var(--tt4x4-red);
  color: var(--tt4x4-red);
}

.vehicle-card .btn-outline-primary:hover {
  background-color: var(--tt4x4-red);
  border-color: var(--tt4x4-red);
  color: white;
}

/* Horizontal Vehicle Card Layout */
.vehicle-card-horizontal {
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  height: 300px;
}

.vehicle-card-horizontal .row {
  height: 100%;
}

.vehicle-card-horizontal .col-md-5 {
  padding: 0;
}

.vehicle-card-horizontal .col-md-7 {
  padding: 0;
}

.vehicle-image-horizontal {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vehicle-image-horizontal img {
  height: 100% !important;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.vehicle-card-horizontal:hover .vehicle-image-horizontal img {
  transform: scale(1.05);
}

.vehicle-card-horizontal:hover .vehicle-thumbnails-horizontal {
  opacity: 1;
  transform: translateY(0);
}

.vehicle-card-horizontal .card-body {
  padding: 1.5rem !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vehicle-card-horizontal .vehicle-thumbnails-horizontal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(0,0,0,0.9);
  border-radius: 0 0 8px 8px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 10;
  opacity: 0.6;
  transform: translateY(10px);
  transition: all 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--tt4x4-red) rgba(255,255,255,0.2);
}

.vehicle-card-horizontal .vehicle-thumbnails-horizontal::-webkit-scrollbar {
  height: 6px;
}

.vehicle-card-horizontal .vehicle-thumbnails-horizontal::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}

.vehicle-card-horizontal .vehicle-thumbnails-horizontal::-webkit-scrollbar-thumb {
  background: var(--tt4x4-red);
  border-radius: 3px;
}

.vehicle-card-horizontal .vehicle-thumbnail-horizontal {
  height: 50px;
  width: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.vehicle-card-horizontal .vehicle-thumbnail-horizontal:hover,
.vehicle-card-horizontal .vehicle-thumbnail-horizontal.active {
  border-color: var(--tt4x4-red);
  transform: scale(1.05);
}

.vehicle-card-horizontal .image-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.vehicle-card-horizontal .card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.vehicle-card-horizontal .vehicle-badges {
  margin-bottom: 1rem;
}

.vehicle-card-horizontal .vehicle-specs {
  margin-bottom: 1rem;
}

.vehicle-card-horizontal .price h4 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.vehicle-card-horizontal .vehicle-actions {
  margin-top: auto;
}

/* Sort Dropdown Styling */
.sort-container .dropdown-toggle {
  border-color: #dee2e6;
  color: var(--tt4x4-black);
  font-weight: 500;
  padding: 0.5rem 1rem;
}

.sort-container .dropdown-toggle:hover {
  background-color: var(--tt4x4-red);
  border-color: var(--tt4x4-red);
  color: white;
}

.sort-container .dropdown-menu {
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border-radius: 8px;
}

.sort-container .dropdown-item {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.sort-container .dropdown-item:hover {
  background-color: var(--tt4x4-red);
  color: white;
}

.sort-container .dropdown-item.active {
  background-color: var(--tt4x4-red);
  color: white;
}

/* Finance Calculator Widget */
.finance-calculator-widget-section {
  background-color: var(--bg-white);
}

.finance-content {
  padding-right: 2rem;
}

.finance-title {
  color: var(--tt4x4-black);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.2;
}

.finance-description {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
}

.finance-vehicle-image img {
  /* max-width: 400px; */
  width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.finance-calculator-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.buying-power-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  border: 2px solid var(--tt4x4-red);
  margin-bottom: 1rem;
}

.buying-power-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.buying-power-label {
  color: var(--tt4x4-black);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}

.new-badge {
  background: #fbbf24;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.buying-power-amount {
  color: var(--tt4x4-red);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.buying-power-info {
  color: #6b7280;
  font-size: 0.9rem;
}

.finance-form .form-label {
  color: var(--tt4x4-black);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.finance-form .form-control,
.finance-form .form-select {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.finance-form .form-control:focus,
.finance-form .form-select:focus {
  border-color: var(--tt4x4-red);
  box-shadow: 0 0 0 3px rgba(196, 31, 37, 0.1);
}

.finance-form .input-group-text {
  background: #f8f9fa;
  border: 2px solid #e5e7eb;
  border-right: none;
  color: var(--tt4x4-black);
  font-weight: 600;
}

.finance-form .input-group .form-control {
  border-left: none;
}

.credit-badge {
  background: #10b981 !important;
  color: white !important;
  border-color: #10b981 !important;
  font-size: 0.8rem;
  font-weight: 600;
}

.results-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.results-title {
  color: var(--tt4x4-black);
  font-weight: 600;
  margin-bottom: 1rem;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: #6b7280;
  font-size: 0.9rem;
}

.result-value {
  color: var(--tt4x4-red);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Sell Vehicle CTA */
.sell-vehicle-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.cta-content {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-title {
  color: var(--tt4x4-black);
  font-weight: 700;
  font-size: 2.2rem;
}

.cta-description {
  color: #6b7280;
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-features .feature-item {
  color: #374151;
  font-weight: 500;
}

.cta-image {
  position: relative;
  overflow: hidden;
}

.cta-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(196, 31, 37, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-image:hover .cta-image-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

/* Classifieds Showcase */
.classifieds-showcase-section {
  background-color: var(--bg-white);
}

.classifieds-showcase-section__count {
  background-color: var(--tt4x4-red);
  color: #fff;
}

/* Premium boosted listings banner (one slide, crossfade) */
.classifieds-spotlight {
  position: relative;
}

.classifieds-spotlight__stage {
  position: relative;
  min-height: clamp(300px, 52vw, 420px);
  border-radius: 6px;
  overflow: hidden;
  background: #161a1f;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
}

.classifieds-spotlight__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 0s linear 1s;
  pointer-events: none;
}

.classifieds-spotlight__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s, 0s;
  pointer-events: auto;
  z-index: 1;
}

.classifieds-spotlight__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
}

.classifieds-spotlight__slide.is-active .classifieds-spotlight__bg {
  animation: classifieds-spotlight-kenburns 14s ease-out both;
}

@keyframes classifieds-spotlight-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.classifieds-spotlight__bg--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1f26 0%, #252b33 100%);
  color: rgba(255, 255, 255, 0.22);
  font-size: 3rem;
}

.classifieds-spotlight__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 14, 18, 0.94) 0%, rgba(12, 14, 18, 0.72) 42%, rgba(12, 14, 18, 0.35) 68%, rgba(12, 14, 18, 0.55) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.classifieds-spotlight__content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.1rem 1.35rem;
  color: #f9fafb;
}

.classifieds-spotlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--tt4x4-red);
  padding: 0.28rem 0.55rem;
  border-radius: 3px;
  margin-bottom: 0.55rem;
}

.classifieds-spotlight__category {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.35rem;
}

.classifieds-spotlight__title {
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.classifieds-spotlight__title a {
  color: #fff;
  text-decoration: none;
}

.classifieds-spotlight__title a:hover {
  color: #fecaca;
}

.classifieds-spotlight__desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(243, 244, 246, 0.82);
  margin: 0 0 0.55rem;
  max-width: 52ch;
}

.classifieds-spotlight__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8rem;
  color: rgba(243, 244, 246, 0.7);
}

.classifieds-spotlight__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.classifieds-spotlight__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.classifieds-spotlight__price {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  font-weight: 800;
  color: #fecaca;
  letter-spacing: -0.02em;
  line-height: 1;
}

.classifieds-spotlight__cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  background: var(--tt4x4-red);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem 1rem;
  border-radius: 4px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.classifieds-spotlight__cta:hover {
  background: #a61a20;
  color: #fff !important;
  transform: translateY(-1px);
}

.classifieds-spotlight__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
}

.classifieds-spotlight__arrow {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 31, 31, 0.14);
  background: #fff;
  color: #1f1f1f;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.classifieds-spotlight__arrow:hover {
  border-color: var(--tt4x4-red);
  color: var(--tt4x4-red);
}

.classifieds-spotlight__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  justify-content: center;
}

.classifieds-spotlight__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(31, 31, 31, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.classifieds-spotlight__dot.is-active {
  background: var(--tt4x4-red);
  transform: scale(1.15);
}

.classifieds-spotlight__counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(31, 31, 31, 0.55);
  margin-left: auto;
}

@media (min-width: 768px) {
  .classifieds-spotlight__content {
    padding: 1.75rem 2rem 2rem;
    max-width: 72%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .classifieds-spotlight__slide {
    transition: none;
  }

  .classifieds-spotlight__slide.is-active .classifieds-spotlight__bg {
    animation: none;
  }
}

/* Sidebar rail: compact boosted classifieds (vehicles.php filters) */
.classifieds-boost-rail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.classifieds-boost-rail__label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.classifieds-boost-rail__label i {
  color: var(--tt4x4-red);
  font-size: 0.65rem;
}

.classifieds-boost-rail__more {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tt4x4-red);
  text-decoration: none;
  text-align: center;
}

.classifieds-boost-rail__more:hover {
  color: #a61a20;
  text-decoration: underline;
}

.classifieds-spotlight--rail .classifieds-spotlight__stage {
  min-height: 188px;
  border-radius: 4px;
  box-shadow: none;
  border: 1px solid #e5e7eb;
}

.classifieds-spotlight--rail .classifieds-spotlight__shade {
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.15) 0%, rgba(12, 14, 18, 0.82) 55%, rgba(12, 14, 18, 0.94) 100%);
}

.classifieds-spotlight--rail .classifieds-spotlight__content {
  padding: 0.65rem 0.7rem 0.75rem;
  max-width: 100%;
  gap: 0.45rem;
}

.classifieds-spotlight--rail .classifieds-spotlight__eyebrow {
  font-size: 0.62rem;
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.35rem;
}

.classifieds-spotlight--rail .classifieds-spotlight__category {
  font-size: 0.68rem;
  margin-bottom: 0.2rem;
}

.classifieds-spotlight--rail .classifieds-spotlight__title {
  font-size: 0.82rem;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.classifieds-spotlight--rail .classifieds-spotlight__desc,
.classifieds-spotlight--rail .classifieds-spotlight__meta {
  display: none;
}

.classifieds-spotlight--rail .classifieds-spotlight__action {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  gap: 0.5rem;
}

.classifieds-spotlight--rail .classifieds-spotlight__price {
  font-size: 1rem;
}

.classifieds-spotlight--rail .classifieds-spotlight__cta {
  font-size: 0.7rem;
  padding: 0.35rem 0.55rem;
  margin-left: auto;
}

.classifieds-spotlight--rail .classifieds-spotlight__controls {
  margin-top: 0.4rem;
  gap: 0.35rem;
}

.classifieds-spotlight--rail .classifieds-spotlight__arrow {
  display: none;
}

.classifieds-spotlight--rail .classifieds-spotlight__dots {
  flex: 1;
  justify-content: flex-start;
}

.classifieds-spotlight--rail .classifieds-spotlight__counter {
  font-size: 0.68rem;
  margin-left: 0;
}

/* global.css sets [data-aos]{overflow-x:hidden} which forces overflow-y:auto and shows bogus scrollbars */
.classifieds-showcase-section .row > [class*="col-"][data-aos] {
  overflow: visible;
}

/* Community & safety spotlight: AOS must not clip card content or add scroll */
.community-spotlight-section .row > [class*="col-"][data-aos] {
  overflow: visible;
  overflow-x: visible;
  overflow-y: visible;
}

.community-spotlight-section .community-spotlight-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(31, 31, 31, 0.08) !important;
  box-shadow:
    0 4px 8px rgba(31, 31, 31, 0.04),
    0 16px 40px rgba(31, 31, 31, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}

.community-spotlight-section .community-spotlight-card:hover {
  transform: translateY(-5px);
  border-color: rgba(31, 31, 31, 0.12) !important;
  box-shadow:
    0 10px 20px rgba(31, 31, 31, 0.07),
    0 24px 52px rgba(31, 31, 31, 0.15);
}

.community-spotlight-section .community-spotlight-card .card-body {
  overflow: visible;
}

/* Events Widget */
.events-widget-section {
  background-color: var(--bg-light);
}

.events-widget-section .event-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.events-widget-section .event-date-badge .badge {
  min-width: 4.75rem;
  text-align: center;
}

.events-widget-section .tt-mini-cal-nav {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.events-widget-section #tt-mini-cal-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.calendar-widget-card,
.events-list-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
}

.calendar-widget-card .card-header,
.events-list-card .card-header {
  background: var(--tt4x4-red) !important;
  color: white;
  padding: 1rem 1.5rem;
  border: none;
}

.mini-calendar-wrapper {
  max-height: 300px;
  overflow: hidden;
}

.events-empty-state {
  text-align: center;
  padding: 2rem;
}

.event-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.3s ease;
}

.event-item:hover {
  background-color: #f8f9fa;
}

.event-item:last-child {
  border-bottom: none;
}

.event-thumbnail {
  transition: transform 0.3s ease;
}

.event-item:hover .event-thumbnail {
  transform: scale(1.05);
}

.event-poster-thumbnail {
  transition: all 0.3s ease;
}

.event-item:hover .event-poster-thumbnail {
  border-color: var(--tt4x4-red) !important;
  box-shadow: 0 4px 12px rgba(196, 31, 37, 0.2);
}

.event-poster-placeholder {
  transition: all 0.3s ease;
}

.event-item:hover .event-poster-placeholder {
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
  box-shadow: inset 0 0 0 2px rgba(196, 31, 37, 0.2);
}

.event-date {
  background: var(--tt4x4-red);
  color: white;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  min-width: 60px;
  margin-right: 1rem;
}

.event-day {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  opacity: 0.9;
}

.event-content {
  flex: 1;
}

.event-title {
  margin-bottom: 0.25rem;
}

.event-title a {
  color: var(--tt4x4-black);
  font-weight: 600;
  text-decoration: none;
}

.event-title a:hover {
  color: var(--tt4x4-red);
}

.event-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.event-description {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Family Business Ads */
.family-ads-section {
  background-color: var(--bg-white);
}

.ad-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  overflow: hidden;
}

.ad-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-color: var(--tt4x4-red);
}

.ad-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.ad-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ad-card:hover .ad-image img {
  transform: scale(1.05);
}

.ad-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(196, 31, 37, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ad-card:hover .ad-overlay {
  opacity: 1;
}

.ad-overlay-content {
  text-align: center;
  color: white;
}

.sponsored-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--tt4x4-red);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  z-index: 10;
}

.ad-content {
  padding: 1.5rem;
}

.ad-badge {
  margin-bottom: 0.75rem;
}

.ad-title {
  color: var(--tt4x4-black);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.ad-description {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.ad-features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.ad-action {
  margin-top: 1rem;
}

.vehicle-ad-card {
  border: 2px solid var(--tt4x4-red);
}

.vehicle-ad-card:hover {
  border-color: var(--tt4x4-red);
  box-shadow: 0 10px 25px rgba(196, 31, 37, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
    white-space: normal;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  /* .search-input-group {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  } */
  
  .search-input-wrapper .search-icon {
    left: 15px;
    font-size: 1rem;
  }
  
  .search-input {
    padding: 15px 15px 15px 45px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .search-button {
    border-radius: 25px;
    padding: 12px 25px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .vehicle-thumbnails {
    display: none; /* Hide thumbnails on mobile for cleaner look */
  }
  
  .event-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .event-date {
    margin-right: 0;
  }
  
  .event-meta {
    justify-content: center;
  }
  
  /* Finance Calculator Mobile */
  .finance-content {
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
  
  .finance-title {
    font-size: 2rem;
  }
  
  .finance-vehicle-image {
    text-align: center;
    margin-top: 1rem;
  }
  
  .finance-vehicle-image img {
    max-width: 300px;
  }
  
  .buying-power-amount {
    font-size: 1.8rem;
  }
  
  .buying-power-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  /* Mobile form layout - stack inputs */
  .finance-form .row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* Mobile vehicle card adjustments */
  .vehicle-card-horizontal .vehicle-thumbnails-horizontal {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: 10px;
    border-radius: 8px;
    opacity: 1;
    transform: none;
    height: 60px;
  }
  
  .vehicle-card-horizontal .vehicle-thumbnail-horizontal {
    height: 40px;
    width: 60px;
  }
  
  /* Mobile thumbnail gallery */
  .vehicle-thumbnails-horizontal-mobile {
    background: rgba(0,0,0,0.9);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--tt4x4-red) rgba(255,255,255,0.2);
  }
  
  .vehicle-thumbnails-horizontal-mobile::-webkit-scrollbar {
    height: 6px;
  }
  
  .vehicle-thumbnails-horizontal-mobile::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
  }
  
  .vehicle-thumbnails-horizontal-mobile::-webkit-scrollbar-thumb {
    background: var(--tt4x4-red);
    border-radius: 3px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem;
    white-space: normal;
    line-height: 1.2;
  }
  
  .search-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .ad-card {
    margin-bottom: 1rem;
  }
}

/* Admin Vehicle Editing Styles */
.editable-field {
  position: relative;
  display: inline-block;
  min-width: 200px;
}

.editable-field:hover .edit-field-btn {
  opacity: 1;
}

.field-display {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.field-value {
  font-weight: 500;
  color: #333;
}

.edit-field-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.edit-field-btn:hover {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
}

.unlock-field-btn {
  opacity: 0.7;
  transition: opacity 0.2s ease;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.unlock-field-btn:hover {
  opacity: 1;
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.edit-field-container {
  background: #f8f9fa;
  border: 2px solid #007bff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.edit-field-container .form-control {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.edit-field-container .form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.edit-field-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.edit-field-actions .btn {
  font-size: 0.8rem;
  padding: 0.375rem 0.75rem;
}

/* Lock icon styling */
.fa-lock {
  color: #ffc107;
  font-size: 0.9em;
}

.fa-unlock {
  color: #6c757d;
  font-size: 0.9em;
}

/* Admin editing indicators */
.admin-edit-mode .editable-field {
  border: 1px dashed #dee2e6;
  border-radius: 4px;
  padding: 0.5rem;
  margin: 0.25rem 0;
}

.admin-edit-mode .editable-field:hover {
  border-color: #007bff;
  background-color: rgba(0, 123, 255, 0.05);
}

/* Vehicle detail page specific styles */
.vehicle-detail .editable-field {
  margin: 0.5rem 0;
}

.vehicle-detail .field-value {
  font-size: 1.1rem;
  color: #495057;
}

.vehicle-detail .edit-field-btn {
  margin-left: 0.5rem;
}

/* Admin vehicles page specific styles */
.admin-vehicles .editable-field {
  margin: 0.25rem 0;
}

.admin-vehicles .field-value {
  font-size: 0.95rem;
}

/* Partner vehicles page specific styles */
.partner-vehicles .editable-field {
  margin: 0.25rem 0;
}

.partner-vehicles .field-value {
  font-size: 0.9rem;
}

/* Notification styles */
.alert.position-fixed {
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fa-spinner.fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tours: category type page (compact hero + operators) */
/* global.css sets .container { max-width: 100% }; use a wide reading width aligned with Bootstrap xxl (~1320px). */
.tour-type-hero .container,
.tour-operators-section .container {
  max-width: min(1320px, calc(100% - 2rem));
}

.tour-type-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.tour-type-hero__inner {
  background-color: #1f1f23;
  background-image:
    linear-gradient(105deg, rgba(24, 24, 28, 0.78) 0%, rgba(24, 24, 28, 0.58) 45%, rgba(24, 24, 28, 0.42) 100%),
    var(--tour-type-hero-bg-image, none);
  background-size: cover;
  background-position: center;
}

.tour-type-hero:not(.tour-type-hero--plain) .tour-type-hero__inner {
  min-height: 13.5rem;
}

@media (min-width: 768px) {
  .tour-type-hero:not(.tour-type-hero--plain) .tour-type-hero__inner {
    min-height: 17rem;
  }
}

.tour-type-hero__container {
  padding-top: 2.25rem;
  padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
  .tour-type-hero__container {
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
  }
}

.tour-type-hero--plain .tour-type-hero__inner {
  min-height: 0;
  background-image: linear-gradient(135deg, #1a1a1e 0%, #2a2a30 55%, #1f1f23 100%);
}

.tour-type-hero__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.tour-type-hero__title-icon {
  color: var(--tt4x4-red, #c41f25);
  margin-right: 0.4rem;
}

.tour-type-hero__lead {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40rem;
}

.tour-operators-section {
  background: linear-gradient(180deg, #f3f4f6 0%, #eef0f3 100%);
}

.tour-operator-card {
  height: 100%;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
  padding: 1.25rem 1.35rem 1.35rem;
  border-top: 3px solid var(--tt4x4-red, #c41f25);
  display: flex;
  flex-direction: column;
}

.tour-operator-card__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tour-operator-card__logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-operator-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tour-operator-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #111827;
}

.tour-operator-card__tagline {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
}

.tour-operator-card__about {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
  margin-bottom: 1.1rem;
}

.tour-operator-card__offers-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 0.65rem 0;
}

.tour-offer-grid {
  margin-bottom: 0;
}

.tour-offer-tile {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--tt4x4-red, #c41f25);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.tour-offer-tile__media {
  margin: -0.85rem -1rem 0.75rem -1rem;
  aspect-ratio: 16 / 10;
  background: rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.tour-offer-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tour-offer-tile__main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
  flex: 1 1 auto;
}

.tour-offer-tile__titles {
  flex: 1 1 12rem;
  min-width: 0;
}

.tour-offer-tile__title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.3;
}

.tour-offer-tile__summary {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.45;
  margin-top: 0.35rem;
}

.tour-offer-tile__price {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--tt4x4-red, #c41f25);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: flex-start;
}

.tour-offer-tile__enquire {
  width: 100%;
  font-weight: 600;
  border-radius: 8px;
  background: var(--tt4x4-red, #c41f25);
  border-color: var(--tt4x4-red, #c41f25);
  color: #fff;
  margin-top: auto;
}

.tour-offer-tile__enquire:hover,
.tour-offer-tile__enquire:focus {
  background: #a0181f;
  border-color: #a0181f;
  color: #fff;
}

.tour-back-all-categories {
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 10px;
  border: 2px solid var(--tt4x4-red, #c41f25);
  color: var(--tt4x4-red, #c41f25);
  background: #fff;
  box-shadow: 0 2px 10px rgba(196, 31, 37, 0.18);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tour-back-all-categories:hover {
  background: var(--tt4x4-red, #c41f25);
  border-color: var(--tt4x4-red, #c41f25);
  color: #fff;
  box-shadow: 0 4px 14px rgba(196, 31, 37, 0.35);
}

/* Tours enquiry modal: same visual language as vehicles.php listing flyout */
.tt-tour-enquiry-modal .modal-dialog {
  max-width: 380px;
}

.tt-tour-enquiry-modal .modal-content {
  background: transparent;
}

.tt-tour-enquiry-modal__sheet {
  background: #fff;
  border: 1px solid rgba(196, 31, 37, 0.28) !important;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(25, 30, 39, 0.22);
}

.tt-tour-enquiry-modal__body {
  background: linear-gradient(180deg, #f5f6fa 0%, #e8ebf2 100%);
  border-radius: 12px;
}

/* Info + form sit on modal body gradient; no nested cards */
.tt-tour-enquiry-modal__form-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 1.1rem;
}

.tt-tour-enquiry-modal__body .form-control {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.14);
}

.tt-tour-enquiry-modal__body .form-control:focus {
  border-color: rgba(196, 31, 37, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(196, 31, 37, 0.12);
}

.tt-tour-enquiry-modal__context {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.tt-tour-enquiry-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
}

.tt-tour-enquiry-modal__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2430;
  margin: 0 2rem 0.5rem 0;
  line-height: 1.2;
}

.tt-tour-enquiry-modal__thumb-img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.tt-tour-enquiry-modal__thumb-ph {
  width: 96px;
  height: 72px;
  border-radius: 8px;
}

/* Shop checkout: order summary + payment + CTA stacked */
.tt-checkout-stack {
	border-radius: 14px;
	border: 1px solid #e8eaed;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	background: #fff;
}
.tt-checkout-stack .tt-checkout-summary-card.card,
.tt-checkout-stack .card.tt-checkout-payment-card {
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin-bottom: 0 !important;
	margin-top: 0 !important;
}
.tt-checkout-stack .card.tt-checkout-payment-card .card-header {
	border-top: 1px solid #eef0f2;
}
.tt-checkout-stack .tt-checkout-submit-wrap {
	padding: 0 1rem 1rem 1rem;
	background: #fff;
}
.tt-shop-checkout-ajax-root .tt-checkout-stack {
	margin-bottom: 0.25rem;
}

/* Minimal shop cart lines */
.tt-cart-sheet {
	border-radius: 14px !important;
	border: 1px solid #e8eaed !important;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06) !important;
}
.tt-cart-sheet__heading {
	border-bottom: 1px solid #eef0f2;
	padding-bottom: 0.75rem;
	margin-bottom: 0.25rem;
}
.tt-cart-line {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid #f0f2f5;
}
.tt-cart-line:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.tt-cart-line__thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f1f3f5;
}
.tt-cart-line__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.tt-cart-line__mid {
	flex: 1;
	min-width: 0;
}
.tt-cart-line__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.75rem;
}
.tt-cart-line__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #1a1d21;
	margin: 0;
	line-height: 1.35;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	word-break: break-word;
}
.tt-cart-line__price {
	font-size: 0.9375rem;
	font-weight: 700;
	flex-shrink: 0;
	color: var(--accent-color, #c41f25);
	font-variant-numeric: tabular-nums;
}
.tt-cart-line__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-top: 0.5rem;
}
.tt-cart-line__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #dfe3e8;
	border-radius: 999px;
	background: #fafbfc;
	padding: 0.1rem 0.35rem;
}
.tt-cart-line__qty button {
	line-height: 1;
	min-width: 2rem;
}
.tt-cart-line__qty-num {
	min-width: 1.75rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	font-size: 0.875rem;
}

.tt-cart-shipping-block {
	font-variant-numeric: tabular-nums;
}
.tt-cart-shipping-heading {
	letter-spacing: 0.02em;
	font-size: 0.7rem;
}
.tt-cart-shipping-supplier {
	min-width: 0;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.tt-cart-shipping-total {
	border-color: #eef0f2 !important;
	font-size: 0.9375rem;
}

/* Checkout: City + province share one row; outer edges align with full-width inputs (no Bootstrap row bleed) */
.tt-checkout-city-prov-grid {
	display: grid;
	gap: 0.5rem 0.75rem;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
	margin-bottom: 0.65rem;
	box-sizing: border-box;
	align-items: start;
}
@media (min-width: 768px) {
	.tt-checkout-city-prov-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.tt-checkout-city-prov-grid > .form-group {
	min-width: 0;
}

.tt-checkout-city-prov-grid > .tt-checkout-loc-other-row {
	grid-column: 1 / -1;
}

/* Nested grid (e.g. name + phone): avoid double bottom margin from .tt-checkout-city-prov-grid */
.tt-checkout-billing-name-phone.tt-checkout-city-prov-grid {
	margin-bottom: 0;
}

/* Google Places suggestions above offcanvas / modals */
.pac-container {
	z-index: 20050 !important;
}

.tt-checkout-form-compact .tt-checkout-field-card > .card-header.tt-checkout-card-head,
.tt-checkout-form-compact .tt-checkout-payment-card > .card-header {
	padding: 0.55rem 1rem !important;
}
.tt-checkout-form-compact .tt-checkout-field-card > .card-header.tt-checkout-card-head h5 {
	font-size: 1rem;
}
.tt-checkout-form-compact .tt-checkout-field-card > .card-body {
	padding: 0.58rem 1rem 0.8rem !important;
}
.tt-checkout-form-compact .tt-checkout-summary-card > .card-header {
	padding: 0.52rem 1rem !important;
}
.tt-checkout-form-compact .tt-checkout-summary-card > .card-body {
	padding: 0.6rem 1rem 0.75rem !important;
}
.tt-checkout-form-compact .tt-checkout-payment-card > .card-body {
	padding-top: 0.5rem !important;
	padding-bottom: 0.62rem !important;
	padding-left: 1rem !important;
	padding-right: 1rem !important;
}
.tt-checkout-form-compact .tt-checkout-field-card .form-label {
	margin-bottom: 0.28rem !important;
	font-size: 0.8125rem !important;
	font-weight: 500;
	line-height: 1.25;
}
.tt-checkout-form-compact .tt-checkout-field-card .form-control:not(textarea),
.tt-checkout-form-compact .tt-checkout-field-card .form-select {
	padding: 0.4rem 0.65rem !important;
	font-size: 0.9375rem !important;
}
.tt-checkout-form-compact .tt-checkout-field-card textarea.form-control.tt-checkout-input {
	padding: 0.45rem 0.65rem !important;
	min-height: 3.5rem;
	line-height: 1.35;
}
.tt-checkout-form-compact .tt-checkout-field-card .mb-3 {
	margin-bottom: 0.52rem !important;
}
.tt-checkout-form-compact .tt-checkout-save-profile {
	padding: 0.48rem 0.72rem !important;
	margin-top: 0.55rem !important;
}
.tt-checkout-form-compact .tt-checkout-submit.btn-lg {
	padding: 0.58rem 0.95rem !important;
	font-size: 1rem !important;
	border-radius: 10px;
}
@media (max-width: 767.98px) {
	.tt-checkout-city-prov-grid {
		margin-bottom: 0.55rem;
	}
}

.tt-checkout-free-ship-hint {
	color: var(--tt4x4-red, #c41f25);
	background: rgba(196, 31, 37, 0.08);
	border-left: 3px solid var(--tt4x4-red, #c41f25);
}

.tt-shop-checkout-ajax-root .tt-checkout-free-ship-hint,
.tt-checkout-page .tt-checkout-free-ship-hint,
.tt-checkout-form .tt-checkout-free-ship-hint {
	border-radius: 8px !important;
}

.tt-checkout-summary-item__thumb {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f3f5;
}

.tt-checkout-summary-item__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* === Product categories (product-categories.php) === */
.tt-shop-categories-page {
	background: linear-gradient(180deg, var(--bg-light, #f9fafb) 0%, var(--bg-white, #fff) 14rem);
}

.tt-categories-hero {
	position: relative;
	background: linear-gradient(
		125deg,
		var(--tt4x4-dark, #1f1f1f) 0%,
		#2c2c2c 45%,
		var(--tt4x4-dark, #1f1f1f) 100%
	);
	color: var(--tt4x4-white, #fff);
	padding: 2.25rem 0 2.5rem;
	border-bottom: 3px solid var(--tt4x4-red, #c41f25);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.tt-categories-hero::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: min(42%, 320px);
	background: radial-gradient(ellipse at 20% 40%, rgba(196, 31, 37, 0.22) 0%, transparent 70%);
	pointer-events: none;
}

.tt-categories-hero .tt-categories-hero-container {
	position: relative;
	z-index: 1;
	padding-left: calc(var(--bs-gutter-x, 0.75rem) + 1.15rem);
}

@media (min-width: 768px) {
	.tt-categories-hero .tt-categories-hero-container {
		padding-left: calc(var(--bs-gutter-x, 0.75rem) + 1.65rem);
	}
}

@media (min-width: 1200px) {
	.tt-categories-hero .tt-categories-hero-container {
		padding-left: calc(var(--bs-gutter-x, 0.75rem) + 2.25rem);
	}
}

.tt-categories-hero__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1.5rem;
}

.tt-categories-hero__copy {
	max-width: 40rem;
}

.tt-categories-hero__title {
	font-size: clamp(1.65rem, 4vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.tt-categories-hero__lead {
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
	margin: 0 0 1.25rem;
}

.tt-categories-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.25rem;
}

.tt-categories-hero__btn.btn-primary {
	font-weight: 600;
	border-radius: 10px;
	padding: 0.6rem 1.35rem;
	background: var(--tt4x4-red, #c41f25);
	border-color: var(--tt4x4-red, #c41f25);
	color: #fff;
	box-shadow: 0 4px 18px rgba(196, 31, 37, 0.45);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.tt-categories-hero__btn.btn-primary:hover {
	transform: translateY(-1px);
	background: var(--accent-hover, #bb1f24);
	border-color: var(--accent-hover, #bb1f24);
	color: #fff;
	box-shadow: 0 8px 24px rgba(196, 31, 37, 0.5);
}

.tt-categories-main {
	max-width: 1200px;
}

.tt-categories-empty {
	text-align: center;
	padding: 2.5rem 1.5rem;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	background: var(--bg-white, #fff);
	box-shadow: var(--shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
	max-width: 32rem;
	margin: 0 auto;
}

.tt-categories-empty__icon {
	width: 4rem;
	height: 4rem;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(196, 31, 37, 0.1);
	color: var(--tt4x4-red, #c41f25);
	font-size: 1.5rem;
}

.tt-categories-empty__title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--text-dark, #1f2937);
}

.tt-categories-empty__text {
	color: var(--text-light, #6b7280);
	margin: 0;
	font-size: 0.95rem;
}

.tt-shop-categories-page .category-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
	border-radius: 14px;
}

.tt-shop-categories-page .category-card-link:focus-visible {
	outline: 2px solid var(--tt4x4-red, #c41f25);
	outline-offset: 3px;
}

.tt-shop-categories-page .category-card-compact {
	background: var(--bg-white, #fff);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	padding: 0;
	height: 100%;
	transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.22s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tt-shop-categories-page .category-card-link:hover .category-card-compact,
.tt-shop-categories-page .category-card-link:focus-visible .category-card-compact {
	border-color: rgba(196, 31, 37, 0.35);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
	transform: translateY(-4px);
}

.tt-shop-categories-page .category-image-wrapper {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #f1f3f5;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.tt-shop-categories-page .category-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.tt-shop-categories-page .category-card-link:hover .category-image {
	transform: scale(1.06);
}

.tt-shop-categories-page .category-image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #f1f3f5 0%, #e5e7eb 100%);
	color: var(--tt4x4-red, #c41f25);
	font-size: 2rem;
}

.tt-shop-categories-page .category-card-hover-hint {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.45rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, transparent 0%, rgba(31, 31, 31, 0.88) 100%);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.tt-shop-categories-page .category-card-link:hover .category-card-hover-hint {
	opacity: 1;
	transform: translateY(0);
}

.tt-shop-categories-page .category-header {
	padding: 1rem 1rem 0.75rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.tt-shop-categories-page .category-badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.28rem 0.7rem;
	white-space: nowrap;
	border-radius: 999px;
	background: rgba(196, 31, 37, 0.1);
	color: var(--tt4x4-red, #c41f25);
	border: 1px solid rgba(196, 31, 37, 0.2);
	text-transform: none;
}

.tt-shop-categories-page .category-body {
	padding: 0 1rem 1rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.tt-shop-categories-page .category-title {
	color: var(--text-dark, #1f2937);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.35;
	margin: 0;
	text-align: center;
}

.tt-shop-categories-page .category-description {
	color: var(--text-light, #6b7280);
	font-size: 0.8125rem;
	line-height: 1.45;
	text-align: center;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 575.98px) {
	.tt-categories-hero {
		padding: 1.75rem 0 1.85rem;
	}

	.tt-shop-categories-page .category-header {
		padding: 0.875rem 0.875rem 0.6rem;
	}

	.tt-shop-categories-page .category-body {
		padding: 0 0.875rem 0.875rem;
	}

	.tt-shop-categories-page .category-title {
		font-size: 0.9375rem;
	}
}

/* === Order confirmation (order-confirmation.php) === */
.tt-order-confirmation-page {
	background: linear-gradient(180deg, var(--bg-light, #f9fafb) 0%, var(--bg-white, #fff) 18rem);
}

.tt-order-conf-hero {
	background: linear-gradient(125deg, var(--tt4x4-dark, #1f1f1f) 0%, #2c2c2c 48%, var(--tt4x4-dark, #1f1f1f) 100%);
	color: #fff;
	border-bottom: 3px solid var(--tt4x4-red, #c41f25);
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.12);
}

.tt-order-conf-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
}

.tt-order-conf-eyebrow .fa-check-circle {
	color: var(--tt4x4-red, #c41f25);
}

.tt-order-conf-title {
	font-size: clamp(1.5rem, 3.2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.tt-order-conf-lead {
	color: rgba(255, 255, 255, 0.82);
	font-size: 1rem;
	line-height: 1.5;
	max-width: 36rem;
}

.tt-order-conf-meta-block {
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 1rem 1.15rem;
}

.tt-order-conf-order-num {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tt-order-conf-date {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.72);
	margin-top: 0.25rem;
}

.tt-order-conf-sheet {
	background: var(--bg-white, #fff);
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
	padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 768px) {
	.tt-order-conf-sheet {
		padding: 2rem 2rem 2.25rem;
	}
}

.tt-order-conf-section {
	margin-bottom: 1.75rem;
}

.tt-order-conf-section--border {
	padding-top: 1.5rem;
	border-top: 1px solid #e8eaed;
	margin-top: 0.5rem;
}

.tt-order-conf-h2 {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--tt4x4-dark, #1f1f1f);
	margin: 0 0 1rem;
	letter-spacing: -0.01em;
}

.tt-order-conf-h2--invert {
	color: #fff;
	margin-bottom: 1.1rem;
}

.tt-order-conf-h3 {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tt4x4-red, #c41f25);
	margin: 0 0 0.5rem;
}

.tt-order-conf-h3--muted {
	color: var(--text-dark, #1f2937);
	letter-spacing: 0.04em;
}

.tt-order-conf-supplier-block {
	margin-bottom: 1.25rem;
}

.tt-order-conf-supplier-block:last-of-type {
	margin-bottom: 0.5rem;
}

.tt-order-conf-lines {
	border: 1px solid #eef0f3;
	border-radius: 10px;
	overflow: hidden;
}

.tt-order-conf-line {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	padding: 0.65rem 0.85rem;
	font-size: 0.9rem;
	border-bottom: 1px solid #f1f3f5;
}

.tt-order-conf-line:last-child {
	border-bottom: none;
}

.tt-order-conf-line-name {
	color: var(--text-dark, #1f2937);
	font-weight: 500;
	min-width: 0;
}

.tt-order-conf-qty {
	color: var(--text-light, #6b7280);
	font-weight: 600;
	margin-left: 0.25rem;
	white-space: nowrap;
}

.tt-order-conf-line-price {
	font-weight: 700;
	color: var(--tt4x4-dark, #1f1f1f);
	white-space: nowrap;
}

.tt-order-conf-hint {
	font-size: 0.875rem;
	color: var(--text-light, #6b7280);
	background: rgba(196, 31, 37, 0.06);
	border-left: 3px solid var(--tt4x4-red, #c41f25);
	border-radius: 0 8px 8px 0;
	padding: 0.65rem 0.85rem;
	margin-top: 1rem !important;
}

.tt-order-conf-track-card {
	border: 1px solid #e8eaed;
	border-radius: 12px;
	padding: 1rem;
	background: #fafbfc;
	height: 100%;
}

.tt-order-conf-code {
	display: inline-block;
	font-size: 0.8rem;
	padding: 0.2rem 0.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
}

.tt-order-conf-badge {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
}

.tt-order-conf-badge--ok {
	background: rgba(22, 163, 74, 0.15);
	color: #166534;
}

.tt-order-conf-badge--info {
	background: rgba(59, 130, 246, 0.14);
	color: #1d4ed8;
}

.tt-order-conf-badge--warn {
	background: rgba(245, 158, 11, 0.18);
	color: #a16207;
}

.tt-order-conf-badge--muted {
	background: #e5e7eb;
	color: #4b5563;
}

.tt-order-conf-steps {
	margin: 0;
	padding-left: 1.15rem;
	color: var(--text-dark, #1f2937);
	font-size: 0.92rem;
	line-height: 1.55;
}

.tt-order-conf-steps li {
	margin-bottom: 0.45rem;
}

.tt-order-conf-steps li:last-child {
	margin-bottom: 0;
}

.tt-order-conf-aside {
	position: sticky;
	top: 1rem;
}

.tt-order-conf-totals {
	background: linear-gradient(160deg, var(--tt4x4-dark, #1f1f1f) 0%, #2d2d2d 100%);
	border-radius: 14px;
	padding: 1.25rem 1.35rem 1.4rem;
	margin-bottom: 1.35rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.tt-order-conf-total-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
	padding: 0.28rem 0;
}

.tt-order-conf-total-row--grand {
	margin-top: 0.65rem;
	padding-top: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 1.05rem;
	font-weight: 800;
	color: #fff;
}

.tt-order-conf-address {
	margin-bottom: 1.35rem;
}

.tt-order-conf-adr {
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--text-dark, #1f2937);
	font-style: normal;
}

.tt-order-conf-phone {
	color: var(--text-light, #6b7280);
	font-size: 0.875rem;
}

.tt-order-conf-guest-hint {
	color: var(--text-light, #6b7280);
	line-height: 1.45;
	padding: 0.65rem 0.75rem;
	background: #f8fafc;
	border-radius: 10px;
	border: 1px solid #e8eaed;
}

.tt-order-conf-guest-hint a {
	font-weight: 600;
	color: var(--tt4x4-red, #c41f25);
}

.tt-order-conf-actions .btn-primary {
	background: var(--tt4x4-red, #c41f25);
	border-color: var(--tt4x4-red, #c41f25);
	font-weight: 600;
}

.tt-order-conf-actions .btn-primary:hover {
	background: var(--accent-hover, #bb1f24);
	border-color: var(--accent-hover, #bb1f24);
	color: #fff;
}

.tt-order-conf-actions .btn-outline-secondary {
	border-color: #d1d5db;
	color: var(--text-dark, #1f2937);
	font-weight: 600;
}

.tt-order-conf-actions .btn-outline-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
	color: var(--tt4x4-dark, #1f1f1f);
}

@media (max-width: 991.98px) {
	.tt-order-conf-aside {
		position: static;
	}
}