/*
====================================================
SCOOTER PRODUCTS SECTION - ELEGANT STYLES
====================================================
Design elegante per la sezione prodotti homepage e shop
Colori: #eeb332 (Ocra), #333 (Scuro), #f8f9fa (Background)
====================================================
*/

/* ===== SEZIONE PRODOTTI HOMEPAGE ===== */
.mkdf-scooter-products-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.mkdf-scooter-products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #eeb332 50%, transparent 100%);
}

.mkdf-scooter-products-section .mkdf-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mkdf-scooter-products-section .mkdf-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #eeb332 0%, #d4a429 100%);
    border-radius: 2px;
}

/* ===== GRID PRODOTTI ELEGANTE ===== */
.mkdf-products-grid {
    position: relative;
}

/* Migliora il layout della griglia WooCommerce */
.mkdf-products-grid .woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
}

.mkdf-products-grid .woocommerce ul.products li.product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    width: auto;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(238, 179, 50, 0.1);
}

.mkdf-products-grid .woocommerce ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(238, 179, 50, 0.3);
    border-color: rgba(238, 179, 50, 0.3);
}

/* ===== IMMAGINI PRODOTTO ===== */
.mkdf-products-grid .mkdf-pl-inner .mkdf-pl-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 250px;
}

.mkdf-products-grid .mkdf-pl-inner .mkdf-pl-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border: none !important;
}

.mkdf-products-grid .product:hover .mkdf-pl-image img {
    transform: scale(1.05);
}

/* ===== BADGE SALE PERSONALIZZATO ===== */
.mkdf-products-grid .mkdf-onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #eeb332 0%, #d4a429 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(238, 179, 50, 0.4);
}

/* ===== CONTENUTO PRODOTTO ===== */
.mkdf-products-grid .mkdf-pl-text-wrapper {
    padding: 25px;
    margin: 0;
}

/* Categoria prodotto */
.mkdf-products-grid .mkdf-pl-category {
    margin-bottom: 10px;
}

.mkdf-products-grid .mkdf-pl-category a {
    background: rgba(238, 179, 50, 0.1);
    color: #eeb332;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mkdf-products-grid .mkdf-pl-category a:hover {
    background: #eeb332;
    color: white;
}

/* Titolo prodotto */
.mkdf-products-grid .mkdf-product-list-title {
    margin: 15px 0;
    width: 100% !important;
}

.mkdf-products-grid .mkdf-product-list-title a {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: block;
}

.mkdf-products-grid .mkdf-product-list-title a:hover {
    color: #eeb332;
}

/* ===== PREZZI ELEGANTI ===== */
.mkdf-products-grid .price {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 15px 0;
    width: 100% !important;
    text-align: left;
}

.mkdf-products-grid .price del {
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}

.mkdf-products-grid .price ins {
    color: #eeb332;
    text-decoration: none;
    font-size: 1.3rem;
}

/* ===== OVERLAY HOVER ===== */
.mkdf-products-grid .mkdf-pl-inner .mkdf-pl-text {
    background: linear-gradient(135deg, rgba(238, 179, 50, 0.95) 0%, rgba(212, 164, 41, 0.95) 100%);
    border-radius: 20px;
    margin: 10px;
    height: calc(100% - 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.mkdf-products-grid .product:hover .mkdf-pl-inner .mkdf-pl-text {
    opacity: 1;
}

/* ===== PULSANTI AZIONE ===== */
.mkdf-products-grid .button {
    background: white;
    color: #eeb332;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mkdf-products-grid .button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.mkdf-products-grid .button .mkdf-btn-text {
    color: inherit;
}

/* ===== LINK PRODOTTO ===== */
.mkdf-products-grid .woocommerce-LoopProduct-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .mkdf-products-grid .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .mkdf-scooter-products-section {
        padding: 60px 0;
    }
    
    .mkdf-scooter-products-section .mkdf-section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .mkdf-products-grid .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mkdf-products-grid .mkdf-pl-inner .mkdf-pl-image {
        height: 200px;
    }
    
    .mkdf-scooter-products-section {
        padding: 40px 0;
    }
    
    .mkdf-scooter-products-section .mkdf-section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
}

/* ===== PAGINA SHOP WOOCOMMERCE ===== */
.woocommerce-page .mkdf-content ul.products,
.woocommerce-shop .mkdf-content ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.woocommerce-page .mkdf-content ul.products li.product,
.woocommerce-shop .mkdf-content ul.products li.product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(238, 179, 50, 0.1);
    width: auto;
    margin: 0;
}

.woocommerce-page .mkdf-content ul.products li.product:hover,
.woocommerce-shop .mkdf-content ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(238, 179, 50, 0.3);
}

/* ===== INTESTAZIONE SHOP ===== */
.woocommerce-page .woocommerce-result-count,
.woocommerce-page .woocommerce-ordering {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.woocommerce-page .woocommerce-ordering select {
    border: 2px solid #eeb332;
    border-radius: 8px;
    padding: 8px 15px;
    background: white;
    color: #333;
}

/* ===== PAGINAZIONE SHOP ===== */
.woocommerce-pagination {
    text-align: center;
    margin-top: 50px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    background: white;
    color: #333;
    border: 2px solid #eeb332;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: #eeb332;
    color: white;
}

/* ===== EFFETTI SPECIALI ===== */
.mkdf-products-grid::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(238, 179, 50, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.mkdf-products-grid::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(238, 179, 50, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== BADGE MODERNI ===== */
.mkdf-products-grid .product {
    position: relative;
}

.mkdf-products-grid .product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #eeb332 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mkdf-products-grid .product:hover::before {
    opacity: 1;
} 