/**
Theme Name: Astra Child
Author: AF Project di Benzi Filippo
Author URI: https://www.afproject.eu/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

 :root {
            --primary: #8BC6A3; /* Verde pastello */
            --primary-dark: #6AAE84;
            --secondary: #FFB8B1; /* Rosa pastello */
            --accent: #A3D9FF; /* Azzurro pastello */
            --light: #FFF9F5;
            --dark: #3A506B;
            --text: #4A5568;
            --white: #FFFFFF;
            --shadow: 0 10px 30px rgba(138, 149, 158, 0.1);
            --radius: 16px;
            --transition: all 0.3s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            color: var(--text);
            background: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
        }
        
        /* HEADER */
        .header {
            padding: 20px 0;
            background: var(--white);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
        }
        
        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-family: 'Literata', serif;
            font-weight: 600;
            color: var(--dark);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .logo-icon {
            color: var(--primary);
            font-size: 32px;
            flex-shrink: 0;
        }
        
        .logo-text {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }
        
        .logo-main {
            font-size: 24px;
            font-weight: 700;
        }
        
        .logo-subtitle {
            font-size: 14px;
            font-weight: 400;
            color: var(--primary);
            font-family: 'Inter', sans-serif;
            margin-top: 2px;
        }
        
        /* MENU OTTIMIZZATO - RIGA UNICA */
        .nav-links {
            display: flex;
            gap: 32px;
            align-items: center;
            flex-wrap: nowrap;
            white-space: nowrap;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            font-size: 15px;
            padding: 8px 0;
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .nav-links a:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }
        
        .nav-links a:hover:after {
            width: 100%;
        }
        
        .cta-button {
            background: var(--primary);
            color: white !important;
            padding: 12px 28px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 15px;
            white-space: nowrap;
        }
        
        .cta-button:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow);
            text-decoration: none !important
        }
        
        /* HERO */
        .hero {
            padding: 100px 0;
            background: linear-gradient(135deg, #F8F9FF 0%, var(--light) 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero:before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 500px;
            height: 500px;
            background: var(--accent);
            opacity: 0.1;
            border-radius: 50%;
        }
        
        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }
        
        .hero-content h1 {
            font-family: 'Literata', serif;
            font-size: 48px;
            line-height: 1.2;
            color: var(--dark);
            margin-bottom: 16px;
        }
        
        .hero-subtitle {
            font-size: 24px;
            color: var(--primary-dark);
            font-weight: 600;
            margin-bottom: 24px;
            font-family: 'Literata', serif;
        }
        
        .hero-content p {
            font-size: 20px;
            color: var(--text);
            margin-bottom: 40px;
            max-width: 90%;
        }
        
        .hero-image {
            position: relative;
        }
        
        .hero-image img {
            width: 100%;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }
        
        .feature-badge {
            display: inline-flex;
            align-items: center;
            background: var(--white);
            padding: 16px 24px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            gap: 12px;
            margin-top: 20px;
        }
        
        .feature-badge i {
            color: var(--primary);
            font-size: 24px;
        }
        
        /* HAMBURGER MENU PER MOBILE */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 4px;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }
        
        .hamburger span {
            width: 25px;
            height: 3px;
            background: var(--dark);
            border-radius: 2px;
            transition: var(--transition);
        }
        
        .mobile-menu {
            display: none;
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            background: var(--white);
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            z-index: 99;
            flex-direction: column;
            gap: 20px;
        }
        
        .mobile-menu.active {
            display: flex;
        }
        
        .mobile-menu a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 500;
            padding: 12px 0;
            border-bottom: 1px solid #eee;
            font-size: 18px;
        }
        
        .mobile-menu a:last-child {
            border-bottom: none;
        }
        
        /* REST OF THE CSS REMAINS THE SAME AS BEFORE */
        /* ... (tutto il resto del CSS rimane identico) ... */
        
        /* ABOUT BRAND SECTION */
        .about-brand {
            padding: 100px 0;
            background: var(--white);
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }
        
        .section-header h2 {
            font-family: 'Literata', serif;
            font-size: 42px;
            color: var(--dark);
            margin-bottom: 16px;
        }
        
        .section-header p {
            font-size: 18px;
            color: var(--text);
            max-width: 600px;
            margin: 0 auto;
        }
        
        .about-brand-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }
        
        .about-brand-content h2 {
            font-family: 'Literata', serif;
            font-size: 42px;
            color: var(--dark);
            margin-bottom: 24px;
        }
        
        .certification-badge {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            background: var(--light);
            padding: 20px;
            border-radius: var(--radius);
            margin-top: 30px;
        }
        
        /* PROBLEM FILTERS */
        .problem-filters {
            padding: 100px 0;
            background: linear-gradient(135deg, var(--light) 0%, #F8F9FF 100%);
        }
        
        .filters-container {
            text-align: center;
        }
        
        .filters-subtitle {
            font-size: 18px;
            color: var(--text);
            margin-bottom: 40px;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .filters-grid {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 60px;
        }
        
        .filter-btn {
            background: var(--white);
            border: 2px solid var(--primary);
            color: var(--primary);
            padding: 18px 32px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 18px;
        }
        
        .filter-btn:hover {
            background: var(--primary);
            color: var(--white);
            transform: translateY(-3px);
            box-shadow: var(--shadow);
        }
        
        .filter-btn.active {
            background: var(--primary);
            color: var(--white);
        }
        
        .filter-btn.all-btn {
            border-color: var(--accent);
            color: var(--dark);
        }
        
        .filter-btn.all-btn.active {
            background: var(--accent);
            color: var(--dark);
        }
        
        /* PRODUCTS GRID WITH FILTERING */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }
        
        .product-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            opacity: 1;
            transform: scale(1);
        }
        
        .product-card.hidden {
            display: none;
        }
        
        .product-card.fading {
            opacity: 0.3;
            transform: scale(0.95);
        }
        
        .product-card:hover {
            transform: translateY(-10px);
        }
        
        .product-image {
            height: 300px;
            overflow: hidden;
            position: relative;
        }
        
        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .product-card:hover .product-image img {
            transform: scale(1.05);
        }
        
        .product-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--primary);
            color: var(--white);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
        }
        
        .product-content {
            padding: 32px;
        }
        
        .product-content h3 {
            font-size: 24px;
            color: var(--dark);
            margin-bottom: 12px;
        }
        
        .product-description {
            color: var(--text);
            margin-bottom: 20px;
            min-height: 72px;
        }
        
        .product-specs {
            list-style: none;
            margin: 20px 0;
        }
        
        .product-specs li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }
        
        .product-specs i {
            color: var(--primary);
            font-size: 12px;
        }
        
        .shipping-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #FFB600;
            color: #000;
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 14px;
            margin-top: 15px;
        }
        
        /* MEASURING SECTION */
        .measuring {
            padding: 100px 0;
            background: var(--white);
        }
        
        .measuring-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
        }
        
        .video-container {
            position: relative;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
        }
        
        .video-container video {
            width: 100%;
            display: block;
            border-radius: var(--radius);
        }
        
        .play-button {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .play-button:hover {
            background: var(--white);
            transform: translate(-50%, -50%) scale(1.1);
        }
        
        .play-button i {
            color: var(--primary);
            font-size: 32px;
            margin-left: 5px;
        }
        
        .measuring-steps {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
        
        .measuring-step {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }
        
        .step-number {
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 20px;
            flex-shrink: 0;
        }
        
        .step-content h3 {
            font-size: 20px;
            color: var(--dark);
            margin-bottom: 8px;
        }
        
        /* SIZE CALCULATOR */
        .size-calculator {
            background: var(--light);
            padding: 80px 0;
            margin-top: 60px;
            border-radius: var(--radius);
        }
        
        .calculator-container {
            max-width: 800px;
            margin: 0 auto;
            background: var(--white);
            padding: 50px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }
        
        .calculator-title {
            text-align: center;
            color: var(--dark);
            margin-bottom: 20px;
            font-size: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }
        
        .calculator-title i {
            color: var(--primary);
        }
        
        .calculator-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 40px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
        }
        
        .form-group input {
            width: 100%;
            padding: 16px;
            border: 2px solid #E2E8F0;
            border-radius: 8px;
            font-size: 16px;
            transition: var(--transition);
            font-family: inherit;
        }
        
        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(139, 198, 163, 0.2);
        }
        
        .help-text {
            font-size: 13px;
            color: #718096;
            margin-top: 6px;
            font-style: italic;
        }
        
        .calculate-btn {
            grid-column: span 2;
            background: var(--primary);
            color: var(--white);
            border: none;
            padding: 18px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-family: inherit;
        }
        
        .calculate-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(139, 198, 163, 0.3);
        }
        
        .result {
            display: none;
            text-align: center;
            padding: 30px;
            background: #F0FFF4;
            border-radius: var(--radius);
            border-left: 5px solid var(--primary);
            margin-bottom: 40px;
            animation: fadeIn 0.5s ease;
        }
        
        .result.active {
            display: block;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .result h3 {
            font-size: 24px;
            color: var(--dark);
            margin-bottom: 15px;
        }
        
        .result-size {
            font-size: 48px;
            font-weight: bold;
            color: var(--primary);
            margin: 20px 0;
        }
        
        #sizeDescription {
            font-size: 16px;
            color: var(--text);
            margin-bottom: 25px;
            line-height: 1.6;
        }
        
        .result-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }
        
        .reset-btn {
            background: #E2E8F0;
            color: var(--dark);
            padding: 12px 28px;
            border-radius: 50px;
            font-weight: 600;
            border: none;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }
        
        .reset-btn:hover {
            background: #CBD5E0;
            transform: translateY(-2px);
        }
        
        .delivery-badge {
            background: linear-gradient(135deg, #FFB800 0%, #FFA000 100%);
            color: #000;
            padding: 12px 24px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-top: 15px;
        }
        
        /* TABELLA TAGLIE RESPONSIVE */
        .table-title {
            text-align: center;
            margin-bottom: 30px;
            color: var(--dark);
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        
        .table-title i {
            color: var(--primary);
        }
        
        .size-table-container {
            width: 100%;
            overflow-x: auto;
            margin-top: 30px;
            -webkit-overflow-scrolling: touch;
            border-radius: var(--radius);
            border: 1px solid #E2E8F0;
        }
        
        .size-table {
            width: 100%;
            min-width: 600px;
            border-collapse: collapse;
            background: var(--white);
        }
        
        .size-table th {
            background: var(--primary);
            color: var(--white);
            padding: 16px;
            text-align: center;
            white-space: nowrap;
        }
        
        .size-table td {
            padding: 16px;
            border-bottom: 1px solid #E2E8F0;
            text-align: center;
            white-space: nowrap;
        }
        
        .size-table tr:hover {
            background: #F7FAFC;
        }
        
        .size-table .highlight {
            background: #F0FFF4;
            font-weight: bold;
        }
        
        .size-info-box {
            margin-top: 30px;
            padding: 20px;
            background: #FFF5F5;
            border-radius: var(--radius);
            border-left: 4px solid #FF6B6B;
        }
        
        .info-title {
            color: #C53030;
            margin-bottom: 10px;
            font-size: 18px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .info-text {
            color: var(--text);
            margin-bottom: 10px;
            line-height: 1.6;
        }
        
        /* CTA */
        .cta-section {
            padding: 120px 0;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--white);
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .cta-section:before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 400px;
            height: 400px;
            background: rgba(255,255,255,0.1);
            border-radius: 50%;
        }
        
        .cta-content {
            position: relative;
            z-index: 2;
        }
        
        .cta-content h2 {
            font-family: 'Literata', serif;
            font-size: 48px;
            margin-bottom: 24px;
        }
        
        .cta-content p {
            font-size: 20px;
            margin-bottom: 40px;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .cta-button-white {
            background: var(--white);
            color: var(--primary-dark);
            padding: 18px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 18px;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            gap: 12px;
        }
        
        .cta-button-white:hover {
            transform: translateY(-2px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        /* FOOTER - SOLO QUI INSERIAMO IL BRANDING 4ANIMALSHOP */
        .footer {
            background: var(--dark);
            color: var(--white);
            padding: 80px 0 40px;
        }
        
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 60px;
            margin-bottom: 60px;
        }
        
        .footer-column h4 {
            font-family: 'Literata', serif;
            font-size: 20px;
            margin-bottom: 24px;
            color:white
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: rgba(255,255,255,0.7);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .footer-links a:hover {
            color: var(--white);
            padding-left: 8px;
        }
        
        .return-policy {
            color: rgba(255,255,255,0.7);
            font-size: 14px;
            margin-top: 20px;
        }
        
        .shop-branding {
            background: rgba(255,255,255,0.1);
            border-radius: var(--radius);
            padding: 20px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .shop-logo {
            display: inline-flex;
            align-items: center;
        }
        
        .shop-logo img {
            display: block;
            height: 34px;
            width: auto;
            filter: brightness(0) invert(1);
        }
        
        .shop-badge {
            background: var(--primary);
            color: var(--white);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .shop-badge i {
            font-size: 14px;
        }
        
        .copyright {
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.5);
            font-size: 14px;
        }
        
        .copyright a {
            color: rgba(255,255,255,0.5);
            text-decoration: none;
            transition: var(--transition);
        }
        
        .copyright a:hover {
            color: var(--white);
        }
        
        /* RESPONSIVE */
        @media (max-width: 1100px) {
            .nav-links {
                gap: 20px;
            }
            
            .nav-links a {
                font-size: 14px;
            }
            
            .cta-button {
                padding: 10px 20px;
                font-size: 14px;
            }
        }
        
        @media (max-width: 992px) {
            .hero-grid, .about-brand-grid, .measuring-grid {
                grid-template-columns: 1fr;
                gap: 50px;
            }
            
            .hero-content h1 {
                font-size: 36px;
            }
            
            .hero-subtitle {
                font-size: 20px;
            }
            
            .nav-links {
                display: none;
            }
            
            .hamburger {
                display: flex;
            }
            
            .calculator-form {
                grid-template-columns: 1fr;
            }
            
            .calculate-btn {
                grid-column: span 1;
            }
            
            .filters-grid {
                flex-direction: column;
                align-items: center;
            }
            
            .filter-btn {
                width: 100%;
                max-width: 300px;
                justify-content: center;
            }
        }
        
        @media (max-width: 768px) {
            .hero, .about-brand, .problem-filters, .measuring, .cta-section {
                padding: 60px 0;
            }
            
            .section-header h2 {
                font-size: 32px;
            }
            
            .calculator-container {
                padding: 30px 20px;
            }
            
            .product-card {
                margin-bottom: 30px;
            }
            
            .hero-content h1 {
                font-size: 32px;
            }
            
            .hero-subtitle {
                font-size: 18px;
            }
            
            .size-table {
                font-size: 14px;
            }
            
            .size-table th,
            .size-table td {
                padding: 12px 8px;
            }
        }
        
        @media (max-width: 480px) {
            .hero-content h1 {
                font-size: 28px;
            }
            
            .hero-subtitle {
                font-size: 16px;
            }
            
            .cta-content h2 {
                font-size: 32px;
            }
            
            .logo-main {
                font-size: 20px;
            }
            
            .logo-subtitle {
                font-size: 12px;
            }
            
            .calculator-title {
                font-size: 24px;
                flex-direction: column;
            }
            
            .result-size {
                font-size: 40px;
            }
            
            .shop-branding {
                flex-direction: column;
                text-align: center;
            }
        }
        
        
        /* ==================================================
   MINI CARRELLO LATERALE (OFF-CANVAS CART)
   ================================================== */

/* Overlay */
.cart-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

.cart-sidebar.active {
    right: 0;
}

/* Header */
.cart-sidebar-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-sidebar-title i {
    font-size: 20px;
}

.cart-sidebar-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 14px;
    margin-left: 5px;
}

.cart-sidebar-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.cart-sidebar-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Items container */
.cart-sidebar-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F8FAFC;
}

/* Item singolo */
.cart-sidebar-item {
    display: grid;
    grid-template-columns: 70px 1fr 30px;
    gap: 12px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    transition: 0.3s;
    border: 1px solid var(--light-gray);
}

.cart-sidebar-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

.cart-item-image img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

.cart-item-name a {
    color: var(--dark);
    text-decoration: none;
    transition: 0.3s;
}

.cart-item-name a:hover {
    color: var(--primary);
}

.cart-item-price {
    font-size: 13px;
    color: var(--gray);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray);
}

.quantity-label {
    font-weight: 500;
}

.quantity-value {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.cart-item-subtotal {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 14px;
    margin-top: 2px;
}

.cart-item-remove {
    color: #E74C3C;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FEF5F5;
}

.cart-item-remove:hover {
    background: #E74C3C;
    color: var(--white);
    transform: scale(1.1);
}

/* Carrello vuoto */
.cart-sidebar-empty {
    text-align: center;
    padding: 40px 20px;
}

.cart-sidebar-empty i {
    font-size: 60px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.cart-sidebar-empty p {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 25px;
}

.cart-sidebar-shop-btn {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.cart-sidebar-shop-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Footer */
.cart-sidebar-footer {
    padding: 20px 25px;
    background: var(--white);
    border-top: 2px solid var(--light-gray);
}

.cart-sidebar-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
}

.subtotal-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

.cart-sidebar-actions {
    display: flex;
    gap: 10px;
}

.cart-sidebar-btn {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.cart-sidebar-btn-cart {
    background: var(--light-gray);
    color: var(--dark);
}

.cart-sidebar-btn-cart:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

.cart-sidebar-btn-checkout {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(139,198,163,0.3);
}

.cart-sidebar-btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139,198,163,0.4);
}

/* Pulsante fluttuante */
.cart-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(139,198,163,0.4);
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 0.3s;
    animation: pulse 2s infinite;
}

.cart-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(139,198,163,0.6);
}

.cart-floating-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E74C3C;
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139,198,163,0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(139,198,163,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139,198,163,0);
    }
}

/* Notifica prodotto aggiunto */
.cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--success);
}

.cart-notification i {
    font-size: 24px;
    color: var(--success);
}

.cart-notification span {
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.cart-notification .notification-close {
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.cart-notification .notification-close:hover {
    color: var(--dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.cta-button {
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: var(--white) !important;
     transition: var(--transition) !important;
}