/* Products Page Styles */

/* Hero Section */
.products-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    padding: 30px 0 35px;
    margin-bottom: 20px;
}

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

.hero-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Hero Animation */
.hero-animated {
    animation: fadeInUp 1.5s ease-out;
}

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

.hero-content > p {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* Vehicle Search */
.vehicle-search {
    margin-top: 30px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 15px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #666;
    z-index: 1;
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-search {
    padding: 15px 40px;
    background-color: #fff;
    color: #dc3545;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-search:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.search-hint {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 10px;
}

/* Container override for products page */
.products-hero .container,
.products-main .container {
    max-width: 1600px;
    padding: 0 12px;
}

/* Main Layout */
.products-layout {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

/* Filters Sidebar */
.filters-sidebar {
    width: 280px;
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.filters-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.filter-item {
    margin-bottom: 15px;
}

.filter-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.checkbox-label:hover {
    background-color: #e9ecef;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.price-range-horizontal {
    margin-top: 10px;
}

.price-input-boxes {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.price-input-wrapper {
    flex: 1;
}

.price-input-wrapper label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 500;
}

.price-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.price-slider-wrapper {
    position: relative;
    padding: 10px 0;
}

.horizontal-price-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.horizontal-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
}

.horizontal-price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc3545;
    cursor: pointer;
    border: none;
}

.horizontal-price-slider::-moz-range-track {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.75rem;
    color: #666;
}

.filter-actions {
    margin-top: 20px;
}

.btn-clear-filters {
    width: 100%;
    padding: 12px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-clear-filters:hover {
    background-color: #5a6268;
}

/* Products Content */
.products-content {
    flex: 1;
    min-width: 0;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    font-weight: 500;
    color: #333;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-weight: 500;
    color: #555;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
}

.btn-toggle-filters {
    display: none;
    padding: 10px 20px;
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Tyre Card */
.tyre-card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 1.5s ease, transform 1.5s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: auto;
    box-sizing: border-box;
    height: 100%;
}

.tyre-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Show rating, features, pricing, and stock by default */
.tyre-card .tyre-rating,
.tyre-card .tyre-features,
.tyre-card .tyre-pricing,
.tyre-card .tyre-stock {
    display: block;
}

/* Hide elements by default */
.tyre-card .tyre-fitting,
.tyre-card .btn-select,
.tyre-card .bulk-pricing-section,
.tyre-card .quantity-selection-section,
.tyre-card .product-actions-row {
    display: none;
}

/* Hide image on hover */
.tyre-card:hover .tyre-image-link {
    display: none;
}

/* Show elements on hover */
.tyre-card:hover .quantity-selection-section,
.tyre-card:hover .product-actions-row {
    display: flex;
}

/* Keep elements visible when an option is selected (even without hover) */
.tyre-card.has-selection .quantity-selection-section,
.tyre-card.has-selection .product-actions-row {
    display: flex;
}

.tyre-card.has-selection .tyre-image-link {
    display: none;
}

.tyre-card.has-selection .tyre-rating,
.tyre-card.has-selection .tyre-features {
    display: none;
}

/* Fallback for browsers that support :has() */
.tyre-card:has(.quantity-option input[type="radio"]:checked) .quantity-selection-section,
.tyre-card:has(.quantity-option input[type="radio"]:checked) .product-actions-row {
    display: flex;
}

.tyre-card:has(.quantity-option input[type="radio"]:checked) .tyre-image-link {
    display: none;
}

.tyre-card:has(.quantity-option input[type="radio"]:checked) .tyre-rating,
.tyre-card:has(.quantity-option input[type="radio"]:checked) .tyre-features {
    display: none;
}

/* Hide default elements on hover to make room for interactive elements */
.tyre-card:hover .tyre-rating,
.tyre-card:hover .tyre-features {
    display: none;
}

.badge-sale,
.badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

.badge-sale {
    background-color: #dc3545;
    color: #fff;
}

.badge-featured {
    background-color: #ffc107;
    color: #000;
    top: 45px;
}

.tyre-image-link {
    display: block;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 0;
    min-height: 280px;
    height: 280px;
    overflow: hidden;
    transition: transform 1.5s ease;
}

.tyre-card:hover .tyre-image-link {
    transform: scale(0.95);
}

.tyre-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tyre-brand {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.tyre-name {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
    min-height: 2.6em;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.tyre-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 1.5s ease;
    display: inline-block;
    padding: 8px 0;
    position: relative;
}

.tyre-name a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #dc3545;
    transition: width 1.5s ease;
}

.tyre-name a:hover {
    color: #dc3545;
}

.tyre-name a:hover::after {
    width: 80%;
}

.tyre-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-text {
    font-size: 0.85rem;
    color: #666;
}

.tyre-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    justify-content: center;
}

.feature-icon {
    font-size: 0.75rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.feature-icon i {
    color: #dc3545;
    font-size: 0.7rem;
}

.tyre-size {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 700;
    padding: 12px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 1.5s ease;
}

.tyre-size:hover {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.15);
    transform: translateY(-2px);
}

.tyre-size strong {
    color: #dc3545;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
}


.tyre-pricing {
    margin-bottom: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 5px;
    text-align: center;
}

.price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 3px;
}

.price-current {
    font-size: 1.6rem;
    font-weight: bold;
    color: #dc3545;
    line-height: 1.2;
    margin: 5px 0;
}

.price-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

/* Quantity Selection Styles */
.quantity-selection-section {
    margin-top: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.quantity-option:hover {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.quantity-option input[type="radio"] {
    margin: 0;
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #dc3545;
}

.quantity-option input[type="radio"]:checked + .quantity-label {
    color: #dc3545;
    font-weight: 600;
}

.quantity-option input[type="radio"]:checked ~ .quantity-price {
    color: #dc3545;
}

/* Selected state - using class for better browser support */
.quantity-option.selected,
.quantity-option:has(input[type="radio"]:checked) {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.quantity-label {
    flex: 1;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quantity-price {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Bulk Pricing Styles (kept for backwards compatibility) */
.bulk-pricing-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.bulk-pricing-tiers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bulk-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.bulk-tier:last-child {
    border-bottom: none;
}

.bulk-quantity {
    color: #333;
    font-weight: 500;
}

.bulk-price {
    color: #dc3545;
    font-weight: bold;
}

/* Product Actions Row */
.product-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: stretch;
}

/* Product Details Link */
.product-details-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #dc3545;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px;
    border: 1px solid #dc3545;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.product-details-link:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Add to Cart Button */
.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background-color: #dc3545;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-add-to-cart:hover {
    background-color: #c82333;
}

.btn-add-to-cart i {
    margin-right: 6px;
}

.tyre-fitting {
    margin-bottom: 15px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.fitting-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.fitting-option:last-child {
    margin-bottom: 0;
}

.fitting-option input[type="radio"] {
    cursor: pointer;
}

.fitting-price {
    margin-left: auto;
    font-weight: bold;
    color: #dc3545;
}

.tyre-stock {
    font-size: 0.85rem;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 5px;
    display: inline-block;
    font-weight: 500;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.tyre-stock.in-stock {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tyre-stock.low-stock {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.tyre-stock.out-of-stock {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Improve default state spacing */
.tyre-card .tyre-name {
    margin-bottom: 12px;
}

/* Make pricing section push to bottom and add spacing */
.tyre-card .tyre-pricing {
    margin-top: auto;
    margin-bottom: 10px;
}

/* Add spacing after stock status */
.tyre-card .tyre-stock {
    margin-top: 8px;
}

.btn-select {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #dc3545;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: auto;
    cursor: pointer;
    font-size: 1rem;
}

.btn-select:hover {
    background-color: #c82333;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-link {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-link:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-number {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: #f8f9fa;
}

.page-number.active {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Trust Section */
.trust-section {
    background-color: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

.trust-content {
    text-align: center;
}

.trust-content h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.guide-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.guide-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.guide-link:hover {
    border-color: #dc3545;
    color: #dc3545;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.guide-link i {
    color: #dc3545;
    font-size: 1.2rem;
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-item i {
    font-size: 2.5rem;
    color: #dc3545;
}

.badge-item span {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-layout {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        display: none;
    }
    
    .filters-sidebar.active {
        display: block;
    }
    
    .close-filters {
        display: block;
    }
    
    .btn-toggle-filters {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .guide-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .trust-badges {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .tyre-card {
        padding: 15px;
    }
}

/* Tyre Selection Modal Styles */
.tyre-selection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.tyre-selection-modal.active {
    display: block;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    box-sizing: border-box;
    opacity: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: rgb(31, 31, 31);
    color: rgb(255, 255, 255);
    padding: 15px;
    border-radius: 8px;
    overflow-y: auto;
    transition: 0.3s;
}

.modal-close {
    box-sizing: border-box;
    position: absolute;
    top: 8px;
    right: 0px;
    width: 50px;
    height: 50px;
    font-size: 33px;
    font-weight: 400;
    line-height: 39.6px;
    color: rgb(255, 255, 255);
    text-align: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
}

.modal-close:hover {
    opacity: 0.7;
}

.modal-product-image {
    box-sizing: border-box;
    padding: 2px;
    margin-bottom: 10px;
    border: 0.8px solid rgb(54, 54, 54);
    border-radius: 4px;
    display: inline-block;
    overflow: hidden;
    text-align: center;
}

.modal-product-image img {
    border: 0px none rgb(255, 255, 255);
    border-radius: 0px;
    box-shadow: none;
    height: auto;
    max-width: 100%;
    box-sizing: border-box;
    filter: brightness(0) invert(1);
    width: auto;
    vertical-align: middle;
    border-style: none;
    max-height: 150px;
}

.modal-product-name {
    box-sizing: border-box;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 16px;
    margin-bottom: 5px;
}

.modal-product-size {
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
}

.quantity-options {
    box-sizing: border-box;
    margin-bottom: 15px;
}

.quantity-option-label {
    box-sizing: border-box;
    display: block;
    margin: 0px;
    margin-bottom: 5px;
    position: relative;
}

.quantity-option-input {
    box-sizing: border-box;
    opacity: 0;
    position: absolute;
    padding: 0px;
    overflow: visible;
    margin: 0px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    line-height: 21px;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.quantity-option-display {
    box-sizing: border-box;
    background: rgb(57, 57, 57);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    display: flex;
    margin-bottom: 5px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}

.quantity-option-label input:checked + .quantity-option-display {
    background: rgb(236, 32, 40);
    color: rgb(255, 255, 255);
}

.quantity-option-content {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex: 1;
}

.quantity-option-radio {
    box-sizing: border-box;
    display: block;
    width: 20px;
    height: 20px;
    border: 0.8px solid rgb(255, 255, 255);
    border-radius: 50%;
    background: rgb(97, 97, 97);
    margin-right: 20px;
    flex-shrink: 0;
}

.quantity-option-label input:checked + .quantity-option-display .quantity-option-radio {
    background: rgba(255, 255, 255, 0.2);
}

.quantity-option-text {
    box-sizing: border-box;
    flex: 1;
}

.quantity-option-price {
    box-sizing: border-box;
    font-weight: 700;
    margin-left: auto;
    width: 35%;
    text-align: left;
}

.modal-actions {
    box-sizing: border-box;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-product-details {
    box-shadow: none;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 600;
    color: rgb(255, 255, 255);
    min-width: 98px;
    flex: 1 1 0%;
    transition: color 0.3s;
    background-color: rgba(0, 0, 0, 0);
    text-align: center;
    padding: 8px;
}

.btn-product-details:hover {
    color: rgb(236, 32, 40);
}

.btn-add-to-cart {
    box-sizing: border-box;
    background: rgb(197, 197, 197);
    color: rgb(99, 99, 99);
    font-size: 14px;
    font-weight: 800;
    padding: 13px 3px;
    text-align: center;
    white-space: nowrap;
    flex: 1 1 0%;
    pointer-events: none;
    cursor: default;
    opacity: 0.65;
    display: block;
    user-select: none;
    border: 0.8px solid rgba(0, 0, 0, 0);
    line-height: 21px;
    border-radius: 3.5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: button;
    text-transform: none;
    overflow: visible;
    margin: 0px;
    font-family: Montserrat, sans-serif;
}

.btn-add-to-cart:enabled {
    background: rgb(236, 32, 40);
    color: rgb(255, 255, 255);
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
}

.btn-add-to-cart:enabled:hover {
    background: rgb(200, 20, 28);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}
