/* Stili generali */
:root {
    --primary-color: #5CFF5C;
    --secondary-color: #2E7D32;
    --dark-bg: #121212;
    --card-bg: #1E1E1E;
    --text-light: #FFFFFF;
    --text-gray: #AAAAAA;
    --badge-hot: #FF5722;
    --badge-exclusive: #9C27B0;
    --badge-new: #2196F3;
    --badge-trending: #FFC107;
    --badge-top-seller: #00BCD4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Per effetto parallasse */
}

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

/* Stili sezione Marketplace Esclusivo */
.marketplace-exclusive {
    padding: 60px 0;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
    perspective: 1000px; /* Per effetto parallasse */
}

.marketplace-exclusive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(76, 175, 80, 0.1) 0%, rgba(18, 18, 18, 0) 70%);
    z-index: 0;
    transform: translateZ(-10px); /* Effetto parallasse */
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.8;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    transform: translateZ(20px); /* Effetto parallasse */
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 0 10px rgba(92, 255, 92, 0.5);
}

.section-header .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-header .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    animation: highlightAnim 3s infinite alternate;
    box-shadow: 0 0 10px rgba(92, 255, 92, 0.7);
}

@keyframes highlightAnim {
    0% {
        transform: scaleX(0.3);
        opacity: 0.5;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 25px auto;
}

/* Badge container under title */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    transform: translateZ(10px); /* Effetto parallasse */
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

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

.badge-icon {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.badge-item:hover .badge-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.badge-item span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hot {
    background-color: var(--badge-hot);
}

.exclusive {
    background-color: var(--badge-exclusive);
}

.new {
    background-color: var(--badge-new);
}

/* Stili carosello */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    z-index: 1;
    transform-style: preserve-3d; /* Per effetto parallasse */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    transform-style: preserve-3d; /* Per effetto parallasse */
}

.product-card {
    flex: 0 0 calc(25% - 20px);
    margin: 0 10px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(92, 255, 92, 0.1),
                0 0 20px rgba(92, 255, 92, 0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-15px) translateZ(30px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(92, 255, 92, 0.2),
                0 0 30px rgba(92, 255, 92, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

.approval-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.product-card:hover .approval-badge {
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
    transform: scale(1.05);
}

.product-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover .product-type-badge {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.badge-hot {
    background-color: var(--badge-hot);
    color: white;
}

.badge-exclusive {
    background-color: var(--badge-exclusive);
    color: white;
}

.badge-new {
    background-color: var(--badge-new);
    color: white;
}

.badge-trending {
    background-color: var(--badge-trending);
    color: black;
}

.badge-top-seller {
    background-color: var(--badge-top-seller);
    color: white;
}

.product-info {
    padding: 15px;
    position: relative;
    z-index: 2;
}

.product-title-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.product-title-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    animation: iconPulse 2s infinite alternate;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    flex: 1;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.popularity-indicator {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.trending {
    background-color: var(--badge-trending);
    color: black;
}

.top-seller {
    background-color: var(--badge-top-seller);
    color: white;
}

.available-countries {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.country-flag-small {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.country-flag-small:hover {
    transform: scale(1.2);
}

.available-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-bottom: 5px;
}

/* Controlli carosello */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.carousel-button {
    background-color: rgba(92, 255, 92, 0.2);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(92, 255, 92, 0.2);
    margin: 0 5px;
}

.carousel-button:hover {
    background-color: rgba(92, 255, 92, 0.4);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(92, 255, 92, 0.4);
    transform: translateY(-2px);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0 20px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.carousel-indicator:hover {
    transform: scale(1.2);
}

.carousel-play-pause {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin: 0 5px;
}

.carousel-play-pause:hover {
    background-color: rgba(76, 175, 80, 0.4);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .badge-container {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .product-card {
        flex: 0 0 calc(100% - 20px);
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .badge-container {
        gap: 10px;
    }
}
