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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: url('caca.png') center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background */
/*@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}*/

/* Floating particles effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="30" r="1.8" fill="rgba(255,255,255,0.06)"/><circle cx="10" cy="90" r="1.2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatParticles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.app-container {
    max-width: 400px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Loading Screen */
/* Splash screen removed */

/* Loading screen originale per dopo il splash */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('caca.png') center center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.loading-screen.show {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-in-out;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.loading-logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.loading-text {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Shop Title Section */
.shop-title-section {
    text-align: center;
    padding: 15px 20px;
    margin-top: 10px;
}

.shop-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: all 0.3s ease;
}

.shop-logo:hover {
    transform: scale(1.05);
}

/* Farm Selector Styles */
.farm-selector-container {
    padding: 20px;
    margin: 0 20px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.farm-selector-label {
    display: block;
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.farm-selector {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.farm-selector:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.farm-selector:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.farm-selector option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
}

/* Header Styles - Enhanced */
.header {
    padding: 40px 30px 90px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    margin-bottom: 20px;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 3;
}

.menu-icon, .close-icon {
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover, .close-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-dots {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-dots span {
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-icon:hover .menu-dots span {
    background: #e65c00;
    box-shadow: 0 0 10px rgba(255, 160, 122, 0.5);
}

.logo-section {
    text-align: center;
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    z-index: 3;
}

.main-logo {
    width: 350px;
    height: 120px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
}

.main-logo:hover {
    transform: translateY(-3px) scale(1.02);
}

/* Products Grid - Enhanced */
.products-grid {
    padding: 0 20px 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.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.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

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

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(230, 97, 0, 0.4);
}

.product-card:active {
    transform: translateY(-6px) scale(1.01);
}

.product-image {
    width: 100%;
    height: 130px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.product-card:hover .product-image {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: tagGlow 2s ease-in-out infinite alternate;
}

@keyframes tagGlow {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
    100% { box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3); }
}

.product-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.product-rating {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
    font-weight: 500;
    color: #e0e7ff;
}

.product-brand {
    font-size: 12px;
    opacity: 0.8;
    color: #c7d2fe;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
    margin-top: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Bottom Navigation - Enhanced */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 15px 0 max(15px, env(safe-area-inset-bottom));
    border-top: 1px solid #ffffff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    z-index: -1;
}

.nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    min-width: 70px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.nav-btn .icon svg {
    transition: all 0.3s ease;
    stroke: currentColor;
}

.nav-btn:hover .icon svg {
    transform: scale(1.1);
}

.nav-btn .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    transition: all 0.3s ease;
    font-weight: 600;
}

.nav-btn:hover .label {
    opacity: 1;
}

/* Modal Styles - Enhanced */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(230, 97, 0, 0.95) 0%, rgba(204, 85, 0, 0.95) 100%);
    margin: 8% auto;
    padding: 0;
    border-radius: 25px;
    width: 92%;
    max-width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal-content::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.05) 100%);
    border-radius: 25px;
    pointer-events: none;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.modal-header h2 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.close-modal {
    cursor: pointer;
    font-size: 28px;
    color: white;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 25px;
    color: white;
    position: relative;
    z-index: 2;
}

.modal-body img {
    width: 100%;
    height: 160px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.modal-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.product-info {
    margin-bottom: 25px;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: tagPulse 3s ease-in-out infinite;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-description {
    margin-top: 15px;
    opacity: 0.95;
    line-height: 1.6;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.price-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.price-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 20px;
}

.price-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #c7d2fe;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.prices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.price-item:last-child {
    border-bottom: none;
}

.price-quantity {
    opacity: 0.9;
    font-weight: 600;
    font-size: 14px;
}

.price-value {
    font-weight: bold;
    color: #ffffff;
    font-size: 16px;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

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

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
        padding: 0 15px 120px;
    }
    
    .header {
        padding: 35px 15px 45px;
    }
    
    .main-logo {
        width: 280px;
        height: 100px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(230, 97, 0, 0.6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 97, 0, 0.8);
}

/* Product Detail View Styles */
#product-detail-view {
    min-height: 100vh;
    background-image: url('assets/caca.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.detail-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(0, 0, 0, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    z-index: 10;
}

.back-button {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.detail-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.detail-content {
    padding: 20px;
    position: relative;
    z-index: 10;
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.detail-media {
    text-align: center;
    margin-bottom: 20px;
}

.detail-media img,
.detail-media video {
    width: 100%;
    max-width: none;
    max-height: 70vh;
    border-radius: 15px;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.8);
}

.detail-product-name {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    text-align: center;
}

.product-name-text {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
}

.detail-description-section {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

.detail-description {
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    text-align: center;
}

.detail-prices-section {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

.detail-prices {
    display: grid;
    gap: 12px;
}

.detail-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-price-quantity {
    font-weight: bold;
    font-size: 16px;
}

.detail-price-value {
    font-weight: bold;
    font-size: 18px;
    color: #ffffff;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    color: white;
    min-height: 55px;
}

.shipping-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-color: rgba(255, 255, 255, 0.4);
    color: #000;
}

.shipping-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
}

.delivery-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.delivery-btn:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-btn svg {
    transition: transform 0.3s ease;
}

.contact-btn:hover svg {
    transform: scale(1.1);
}

.contact-btn span {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.shipping-btn svg {
    color: #000;
}

.delivery-btn svg {
    color: #ffffff;
}

/* Responsive adjustments for detail view */
@media (max-width: 480px) {
    .detail-header {
        padding: 15px;
    }
    
    .detail-title {
        font-size: 20px;
    }
    
    .detail-content {
        padding: 15px;
        padding-bottom: 80px;
    }
    
    .detail-media img,
    .detail-media video {
        max-height: 40vh;
    }
    
    .product-name-text {
        font-size: 24px;
    }
    
    .detail-product-name,
    .detail-description-section,
    .detail-prices-section {
        padding: 15px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-btn {
        font-size: 13px;
        padding: 14px 16px;
        min-height: 50px;
    }

    .loading-logo {
        max-width: 200px;
    }

    .loading-text {
        font-size: 16px;
    }

    .info-section {
        padding: 15px;
        margin-bottom: 15px;
    }

    .info-section-title {
        font-size: 18px;
    }

    .info-content p {
        font-size: 13px;
    }
}

/* Info View Styles */
#info-view {
    min-height: 100vh;
    background-image: url('caca.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.info-section {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

.info-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.info-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-content strong {
    color: #ffffff;
    font-weight: 600;
}

.info-content small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: italic;
}

.info-content p strong {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Video Carousel Styles */
.video-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
}

/* Rimuovo il testo swipe per un design più pulito */

.video-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    touch-action: pan-y; /* Permette scroll verticale ma gestisce touch orizzontale */
    user-select: none; /* Previene la selezione del testo durante lo swipe */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.carousel-video {
    width: 100%;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0) scale(1);
    opacity: 1;
}

.carousel-video.swiping {
    transition: none; /* Rimuove la transizione durante lo swipe per un movimento fluido */
}

.carousel-video:not(.active) {
    opacity: 0;
    transform: translateX(0) scale(0.95);
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding: 0 20px;
}

.carousel-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.9));
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.carousel-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
    color: #06b6d4;
}

.carousel-btn:hover::before {
    opacity: 1;
}

.carousel-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
}

.carousel-indicators {
    display: flex;
    gap: 12px;
    align-items: center;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
}

.indicator.active {
    background: rgba(6, 182, 212, 0.2);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.indicator.active::before {
    width: 100%;
    height: 100%;
}

.indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.video-counter {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video Count Badge for Product Cards */
.video-count-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-count-badge::before {
    content: '🎬';
    font-size: 14px;
}

.product-card {
    position: relative;
}

/* Responsive adjustments for carousel */
@media (max-width: 480px) {
    .carousel-controls {
        gap: 20px;
        padding: 0 15px;
        margin-top: 15px;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .carousel-indicators {
        gap: 10px;
    }
    
    .indicator {
        width: 7px;
        height: 7px;
    }
    
    .video-counter {
        font-size: 12px;
        padding: 6px 12px;
        margin-top: 12px;
    }
    
    .video-count-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Stili per carosello immagini */
.image-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-carousel-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
}

.carousel-image {
    width: 100%;
    height: auto;
    max-height: 50vh;
    object-fit: contain;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-image.swiping {
    transition: all 0.1s ease;
}

.carousel-image:not(.active) {
    display: none;
}

/* Riutilizzo gli stessi stili dei controlli video per le immagini */
.image-carousel .carousel-controls {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Media queries per carosello immagini */
@media (max-width: 480px) {
    .image-carousel .carousel-controls {
        bottom: 10px;
        gap: 10px;
        padding: 6px 12px;
    }
    
    .image-counter {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 4px 8px;
    }
}
