/*
Theme Name: Scooterinofinish
Description: Professional WordPress theme for motorcycle dealership - Enhanced with full Elementor Pro compatibility
Version: 1.0
Author: Scooterinomotorino Team
Text Domain: scooterinofinish
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #e31e24;
}

.contact-info {
    text-align: right;
}

.contact-info h3 {
    color: #CC0000;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-info p {
    margin: 2px 0;
    font-size: 14px;
}

/* Main Content */
.site-content {
    min-height: 60vh;
    padding: 20px 0;
}

/* Menu Section */
.menu-section {
    margin: 40px 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
}

.menu-item a {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.menu-item:hover a {
    transform: translateY(-5px);
}

.menu-button {
    background: #CC0000;
    color: white;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.menu-button:hover {
    background: #990000;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.menu-button.cfmoto-btn {
    background: #007BFF !important;
}

.menu-button.cfmoto-btn:hover {
    background: #0056b3 !important;
}

.menu-button.kymco-btn {
    background: #CC0000 !important;
}

.menu-button.kymco-btn:hover {
    background: #990000 !important;
}

.menu-button.used-bikes-btn {
    background: #8B4513 !important;
}

.menu-button.used-bikes-btn:hover {
    background: #654321 !important;
}

.menu-button h2 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Featured Products */
.featured-products {
    margin: 60px 0;
}

.featured-products h2 {
    text-align: center;
    color: #CC0000;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.finance-banner-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

.finance-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.finance-banner-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card,
.motorcycle-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover,
.motorcycle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.product-card img,
.motorcycle-card img {
    width: 100%;
    height: auto;
    display: block;
}

.motorcycle-card .motorcycle-image {
    position: relative;
    overflow: hidden;
}

.motorcycle-card .motorcycle-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.motorcycle-card:hover .motorcycle-image img {
    transform: scale(1.05);
}

.motorcycle-card .motorcycle-details {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.motorcycle-card .motorcycle-model {
    font-size: 1.4rem;
    font-weight: bold;
    color: #CC0000;
    margin: 0 0 10px 0;
    text-align: center;
}

.motorcycle-card .motorcycle-weekly-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
    margin: 0;
    text-align: center;
}

.motorcycle-card[data-in-stock="yes"]::before {
    content: "IN STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

.motorcycle-card[data-in-stock="no"]::before {
    content: "OUT OF STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}

/* Stock Counter */
.stock-counter {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #CC0000;
}

.stock-counter h3 {
    color: #CC0000;
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.stock-counter p {
    margin: 0;
    font-size: 1rem;
    color: #666;
}

/* Page Navigation */
.back-to-home-section {
    margin: 20px 0;
}

.back-to-home-button {
    display: inline-block;
    background: #CC0000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-to-home-button:hover {
    background: #990000;
}

/* Page Title */
.page-title {
    text-align: center;
    color: #CC0000;
    font-size: 2.5rem;
    margin: 30px 0;
}

/* Footer */
.site-footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #555;
    text-align: center;
}

/* SSL Indicator */
.ssl-indicator {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Responsive Design - Enhanced Mobile Optimization */
@media (max-width: 768px) {
    /* Compact Mobile Header */
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 15px; /* Reduced padding */
    }
    
    .site-title {
        font-size: 1.5rem; /* Smaller title */
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info h3 {
        font-size: 16px; /* Smaller contact heading */
        margin-bottom: 3px;
    }
    
    .contact-info p {
        font-size: 12px; /* Smaller contact text */
        margin: 1px 0;
    }
    
    /* Menu Section */
    .menu-section {
        margin: 20px 0; /* Reduced margin */
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns on mobile */
        gap: 10px;
    }
    
    .menu-button {
        height: 120px; /* Much smaller height */
    }
    
    .menu-button h2 {
        font-size: 1.4rem; /* Smaller text */
    }
    
    /* Featured Products */
    .featured-products {
        margin: 30px 0; /* Reduced margin */
    }
    
    .featured-products h2,
    .page-title {
        font-size: 1.8rem; /* Smaller heading */
        margin-bottom: 20px;
    }
    
    /* Finance Banner */
    .finance-banner-section {
        margin: 15px 0;
        padding: 10px;
    }
    
    /* Products Grid - Optimized for Mobile */
    .products-grid {
        grid-template-columns: 1fr; /* ONE column on mobile for large images */
        gap: 15px;
    }
    
    .category-products {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    /* Product Cards */
    .product-card,
    .motorcycle-card {
        border-radius: 10px;
    }
    
    .category-product-card .product-details {
        padding: 10px;
    }
    
    .category-product-card .product-model {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .category-product-card .product-price {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .category-product-card .product-weekly-price {
        font-size: 0.85rem;
    }
    
    /* Stock Counter */
    .stock-counter {
        margin: 15px 0;
        padding: 10px;
    }
    
    .stock-counter h3 {
        font-size: 1.1rem;
    }
    
    .stock-counter p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Ultra-compact header for small screens */
    .header-content {
        padding: 8px 10px;
        gap: 8px;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .contact-info h3 {
        font-size: 14px;
    }
    
    .contact-info p {
        font-size: 11px;
    }
    
    /* Menu buttons even smaller */
    .menu-grid {
        grid-template-columns: 1fr; /* Stack vertically on very small screens */
        gap: 8px;
    }
    
    .menu-button {
        height: 100px;
    }
    
    .menu-button h2 {
        font-size: 1.2rem;
    }
    
    /* Products optimized for very small screens */
    .featured-products h2,
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .products-grid {
        grid-template-columns: 1fr; /* ONE column for large images */
        gap: 10px;
    }
    
    .category-products {
        grid-template-columns: 1fr;
    }
    
    /* Finance banner smaller */
    .finance-banner-section {
        margin: 10px 0;
        padding: 5px;
    }
    
    /* Back button smaller */
    .back-to-home-section {
        margin: 10px 0;
    }
    
    .back-to-home-button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Additional Product Card Styles for Category Pages */
.category-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.category-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.category-product-card .product-image {
    position: relative;
    overflow: hidden;
}

.category-product-card .product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-product-card:hover .product-image img {
    transform: scale(1.05);
}

.category-product-card .product-details {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.category-product-card .product-model {
    font-size: 1.1rem;
    font-weight: bold;
    color: #CC0000;
    margin: 0 0 8px 0;
}

.category-product-card .product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.category-product-card .product-weekly-price {
    font-size: 0.95rem;
    font-weight: 600;
    color: #28a745;
    margin: 0;
}

.category-product-card[data-in-stock="yes"]::before {
    content: "IN STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

.category-product-card[data-in-stock="no"]::before {
    content: "OUT OF STOCK";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    z-index: 2;
}

/* No products message styling */
.no-products-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-products-message h3 {
    color: #CC0000;
    margin-bottom: 15px;
}

.no-products-message p {
    color: #666;
    margin: 10px 0;
    line-height: 1.6;
}

/* Trade-in section styling */
.trade-in-section {
    background: #f5f5f5;
    padding: 30px;
    margin: 40px 0;
    border-radius: 8px;
    text-align: center;
}

.trade-in-section h2 {
    color: #CC0000;
    margin-bottom: 15px;
}

.trade-in-section p {
    margin: 10px 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .trade-in-section {
        padding: 20px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .trade-in-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .trade-in-section h2 {
        font-size: 1.3rem;
    }
}

