/*
 * E-Commerce Ricambi Auto - Stili Frontend
 * Bootstrap 5 + Personalizzazioni
 */

/* Import Bootstrap 5 */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Variabili CSS personalizzate */
:root {
    --primary-color: #FFC107;
    --primary-dark: #FFA000;
    --secondary-color: #333333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #FFC107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #000000;
    --yellow-color: #FFC107;
    --yellow-hover: #FFA000;
    --black-color: #000000;
    --gray-dark: #1a1a1a;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset e base */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Override Bootstrap container max-widths */
.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: 100% !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 1400px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1600px !important;
    }
}

@media (min-width: 1600px) {
    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1800px !important;
    }
}

/* Header e Navigazione */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
    background: var(--yellow-color);
    border-bottom: 3px solid var(--black-color);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--black-color) !important;
    display: flex;
    align-items: center;
}

/* Desktop Navigation Alignment */
@media (min-width: 992px) {
    .navbar > .container {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .navbar-collapse {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-grow: 1;
    }
    
    .navbar-nav {
        align-items: center;
        height: 100%;
        flex-shrink: 0;
    }
    
    .navbar-nav .nav-item {
        display: flex;
        align-items: center;
        height: 40px;
    }
    
    /* Ensure dropdown menus are properly positioned */
    .navbar-nav .dropdown-menu {
        margin-top: 0.5rem;
    }
    
    /* Desktop specific button styling */
    .navbar-nav.ms-auto .nav-link {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 25px;
        padding: 0.5rem 1.2rem !important;
        margin: 0 0.25rem;
        white-space: nowrap;
        border: 2px solid transparent;
        font-size: 0.95rem;
        min-width: 100px;
        text-align: center;
        justify-content: center;
    }
    
    .navbar-nav.ms-auto .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
        border-color: var(--black-color);
    }
    
    /* Fix dropdown toggle alignment */
    .navbar-nav.ms-auto .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    
    /* Ensure consistent height for all nav items */
    .navbar-nav.ms-auto {
        display: flex;
        align-items: stretch;
    }
    
    .navbar-nav.ms-auto .nav-item {
        display: flex;
        align-items: center;
    }
}

.navbar-nav .nav-link {
    color: var(--black-color) !important;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0.5rem 1rem !important;
}

/* Central menu styling for desktop */
@media (min-width: 992px) {
    .navbar-nav.mx-auto .nav-link {
        font-size: 1rem;
        font-weight: 600;
        padding: 0.5rem 1.5rem !important;
        background: transparent;
        border: none;
        margin: 0 0.75rem;
    }
    
    .navbar-nav.mx-auto .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        border-radius: 8px;
    }
    
    /* Right-aligned menu styling */
    .navbar-nav.ms-auto .nav-link {
        background-color: rgba(0, 0, 0, 0.1);
        border-radius: 25px;
        padding: 0.5rem 1.2rem !important;
        margin: 0 0.25rem;
        border: 2px solid transparent;
        font-size: 0.95rem;
        min-width: 100px;
        text-align: center;
        justify-content: center;
    }
    
    .navbar-nav.ms-auto .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
        border-color: var(--black-color);
    }
}

.navbar-nav .nav-link:hover {
    color: var(--black-color) !important;
    transform: translateY(-2px);
    opacity: 0.8;
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--black-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover:after {
    transform: scaleX(1);
}

/* Mobile Navigation - Due righe separate */
@media (max-width: 991.98px) {
    .mobile-nav-section {
        width: 100%;
        margin-top: 1rem;
    }
    
    .mobile-menu-row,
    .mobile-actions-row {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0.5rem 0;
        border-radius: var(--border-radius);
        background-color: rgba(0, 0, 0, 0.05);
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-row {
        background-color: rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }
    
    .mobile-actions-row {
        background-color: rgba(255, 193, 7, 0.2);
        border: 1px solid rgba(255, 193, 7, 0.3);
    }
    
    .mobile-menu-row .nav-item,
    .mobile-actions-row .nav-item {
        flex: 1;
        text-align: center;
    }
    
    .mobile-menu-row .nav-link,
    .mobile-actions-row .nav-link {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 6px;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-row .nav-link:hover,
    .mobile-actions-row .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.1);
        transform: none;
    }
    
    .mobile-menu-row .nav-link:after,
    .mobile-actions-row .nav-link:after {
        display: none;
    }
    
    /* Dropdown adjustments for mobile */
    .mobile-nav-section .dropdown-menu {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        min-width: 200px;
        margin-top: 0.5rem;
    }
    
    /* Search form adjustments */
    .mobile-nav-section + .col-lg-4 {
        order: -1;
        margin-bottom: 1rem;
    }
}

/* Mobile menu toggle */
.navbar-toggler {
    border-color: var(--black-color);
    background-color: transparent;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar Search Form Styles */
.navbar-nav .form-control {
    border-radius: 20px;
    border: 1px solid #dee2e6;
    padding: 0.375rem 1rem;
}

.navbar-nav .form-control:focus {
    border-color: var(--yellow-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.navbar-nav .btn-warning {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animazione pulse per campo ricerca */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.pulse-animation {
    animation: pulse 1s;
    border: 2px solid var(--yellow-color) !important;
}

/* Carrello */
.cart-icon {
    position: relative;
    color: var(--black-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--black-color);
    transform: scale(1.1);
    opacity: 0.8;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Fix cart badge position in navbar */
.navbar-nav .position-relative .cart-badge {
    top: -5px;
    right: 5px;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .search-wrapper {
        flex: 0 1 400px;
        margin: 0 1rem;
    }
    
    .navbar-nav.ms-auto .nav-link {
        min-width: auto;
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        margin: 0;
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-bottom: 5px solid var(--yellow-color);
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 4rem 0;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    z-index: 3;
    width: 5%;
    opacity: 0.5;
    transition: opacity 0.15s ease;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
    opacity: 0.9;
}

.hero-carousel .carousel-indicators {
    z-index: 3;
    bottom: 20px;
}

.hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Vehicle Search Vertical Layout */
.vehicle-search-vertical {
    max-width: 500px;
    margin: 0 auto;
}

.vehicle-search-vertical .form-select {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--yellow-color);
    color: var(--black-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.vehicle-search-vertical .form-select:focus {
    border-color: var(--black-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.vehicle-search-vertical .form-select:disabled {
    opacity: 0.6;
    background-color: rgba(255, 255, 255, 0.7);
}

.vehicle-search-vertical .btn-warning {
    background: var(--yellow-color);
    border: 2px solid var(--black-color);
    color: var(--black-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.vehicle-search-vertical .btn-warning:hover:not(:disabled) {
    background: var(--black-color);
    color: var(--yellow-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vehicle-search-vertical .btn-warning:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Categorie - 4 per riga centrate */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    justify-content: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: var(--yellow-color);
}

.category-icon {
    font-size: 3rem;
    color: var(--black-color);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    width: 120px;
    margin: 1.5rem auto;
    transition: var(--transition);
    border: 3px solid var(--yellow-color);
    position: relative;
    overflow: hidden;
}

.category-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.2));
}

.category-card:hover .category-icon {
    background: var(--yellow-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border-color: var(--black-color);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Prodotti */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--yellow-color);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--light-color);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    text-decoration: none;
}

.product-title:hover {
    color: var(--yellow-color);
    text-decoration: none;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--black-color);
    background: var(--yellow-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    display: inline-block;
    margin-bottom: 1rem;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stars {
    color: var(--warning-color);
    margin-right: 0.5rem;
}

.rating-count {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Pulsanti */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--yellow-color);
    color: var(--black-color);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--yellow-hover);
    color: var(--black-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--yellow-color);
    color: var(--yellow-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--yellow-color);
    color: var(--black-color);
    transform: translateY(-2px);
}

.btn-add-to-cart {
    width: 100%;
    background: var(--yellow-color);
    color: var(--black-color);
    border: none;
    margin-top: 1rem;
    font-weight: 600;
}

.btn-add-to-cart:hover {
    background: var(--yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Filtri prodotti */
.filters-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-option input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Paginazione */
.pagination {
    justify-content: center;
    margin: 3rem 0;
}

.page-link {
    color: var(--black-color);
    border: 1px solid var(--yellow-color);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.page-link:hover {
    background: var(--yellow-color);
    color: var(--black-color);
    border-color: var(--yellow-color);
}

.page-item.active .page-link {
    background: var(--yellow-color);
    color: var(--black-color);
    border-color: var(--yellow-color);
}

/* Footer */
.footer {
    background: var(--black-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 5px solid var(--yellow-color);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--yellow-color);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Forms */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Alert personalizzati */
.alert {
    border-radius: var(--border-radius);
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
}

/* Carrello */
.cart-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.quantity-input {
    width: 80px;
    text-align: center;
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 2rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    /* Footer mobile styles */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer h6 {
        font-size: 1rem;
        margin-bottom: 0.75rem !important;
    }
    
    footer ul {
        margin-bottom: 1rem !important;
    }
    
    footer ul li {
        margin-bottom: 0.25rem !important;
        font-size: 0.875rem;
    }
    
    footer .small {
        font-size: 0.8rem !important;
    }
    
    /* Footer 2-column layout on mobile */
    footer .col-6 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Newsletter section on mobile */
    footer form.d-flex input {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    footer form.d-flex button {
        padding: 0.5rem 1rem;
    }
    
    /* Bottom bar mobile */
    .bg-black {
        padding: 1rem 0 !important;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .search-container {
        margin-bottom: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    /* Smaller footer text on very small screens */
    footer h5 {
        font-size: 1.25rem !important;
    }
    
    footer h6 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    footer p {
        font-size: 0.85rem !important;
    }
    
    footer ul li a {
        font-size: 0.8rem !important;
    }
    
    /* Social icons spacing */
    footer .d-flex.gap-3 {
        gap: 0.75rem !important;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Breadcrumb personalizzato */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* Badge personalizzati */
.badge {
    border-radius: var(--border-radius);
    font-weight: 500;
}

.badge-featured {
    background: linear-gradient(135deg, var(--warning-color), #e0a800);
    color: var(--dark-color);
}

.badge-out-of-stock {
    background: var(--danger-color);
    color: white;
}

/* Product detail page */
.product-gallery {
    position: sticky;
    top: 2rem;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

/* Tabs personalizzati */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    background: transparent;
}

/* Reviews */
.review-item {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Compatibilità veicoli */
.compatibility-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Price Badge - Sfondo giallo con testo nero */
.price-badge {
    display: inline-block;
    background: var(--yellow-color);
    color: var(--black-color) !important;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1.75rem;
    font-weight: 700;
    border: 2px solid var(--black-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.price-badge:hover {
    background: #f0b90b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.compatibility-table th {
    background: var(--light-color);
    font-weight: 600;
    border: none;
}

.compatibility-table td {
    border: none;
    border-bottom: 1px solid #dee2e6;
}

/* Toast notifications */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.toast-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

/* Utilities */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }

.shadow-sm { box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); }
.shadow { box-shadow: var(--box-shadow); }
.shadow-lg { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: calc(var(--border-radius) * 2); }
