/**
 * Responsive CSS - Media Queries per tutti i breakpoint
 * Gioielleria Egidio
 */

/* ========================================
   TABLET (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .product-layout {
        gap: 2.5rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* ========================================
   MOBILE LARGE (max-width: 968px)
   ======================================== */

@media (max-width: 968px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
    }

    .product-gallery {
        position: relative;
        top: 0;
        min-height: auto;
    }

    .main-image {
        min-height: auto;
        aspect-ratio: 1;
        max-width: 100%;
        margin: 0 auto;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .guarantees {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   MOBILE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-links,
    .nav-icons,
    .nav-search,
    .mega-menu-container {
        display: none;
    }

    .mobile-icons {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-icon-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 40px;
    }

    /* Main Content */
    .main-content {
        padding-top: 80px;
    }

    .container {
        padding: 1rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
        margin-bottom: 1rem;
        gap: 0.3rem;
    }

    /* Product Page */
    .product-layout {
        gap: 1rem;
    }

    .main-image {
        border-radius: 12px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    }

    .product-info {
        padding: 0;
    }

    .product-category {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: 0.5rem;
    }

    .product-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .product-sku {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .product-price {
        font-size: 1.8rem;
    }

    .product-price del {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .product-price-box {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .price-note {
        font-size: 0.8rem;
    }

    .availability-status {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .add-to-cart-form {
        flex-direction: column;
        width: 100%;
    }

    .quantity-selector {
        width: 100%;
        justify-content: center;
    }

    .quantity-selector input {
        flex: 1;
        max-width: 80px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-cart {
        order: -1;
    }

    .product-description {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .specs-section {
        padding: 1.2rem;
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }

    .specs-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .spec-item {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }

    .guarantees {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1.5rem;
    }

    .guarantee-item {
        padding: 0.6rem 0.3rem;
        border-radius: 8px;
    }

    .guarantee-item i {
        font-size: 1.1rem;
    }

    .guarantee-item span {
        font-size: 0.7rem;
    }

    /* Related Products */
    .related-section {
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .related-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .related-card .image {
        height: 140px;
    }

    .related-card .content {
        padding: 0.75rem;
    }

    .related-card h4 {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .related-card .price {
        font-size: 0.95rem;
    }

    /* Products List Page */
    .page-header {
        margin-bottom: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    .filters {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image {
        height: 180px;
    }

    .product-content {
        padding: 1rem;
    }

    .product-card .product-category {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .product-card .product-name {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .product-card .product-description {
        display: none;
    }

    .product-specs {
        display: none;
    }

    .product-card .product-price {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .product-card .product-price del {
        font-size: 0.85rem;
        display: block;
    }

    .product-actions {
        padding: 0 0.75rem 0.75rem 0.75rem;
        gap: 0.4rem;
    }

    .btn-add-cart {
        padding: 10px;
        font-size: 0.85rem;
    }

    .product-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        top: 8px;
        right: 8px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    .container {
        padding: 0.75rem;
    }

    .breadcrumb {
        font-size: 0.7rem;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-category {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .product-price {
        font-size: 1.6rem;
    }

    .product-price del {
        font-size: 0.9rem;
    }

    .main-image {
        border-radius: 10px;
    }

    .availability-status {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .btn {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .guarantees {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .guarantee-item {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .guarantee-item i {
        margin-bottom: 0;
        font-size: 1rem;
    }

    .guarantee-item span {
        font-size: 0.75rem;
    }

    .specs-section {
        padding: 1rem;
    }

    .spec-item {
        font-size: 0.8rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .related-card .image {
        height: 200px;
    }

    .related-card h4 {
        font-size: 0.9rem;
    }

    /* Products List */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 220px;
    }

    .product-card .product-name {
        font-size: 1.1rem;
    }

    .product-card .product-price {
        font-size: 1.3rem;
    }
}
