/* ============================================
   Responsive Styles
   ============================================ */

/* Tablet Styles */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* About Page - Story with Image */
    .story-with-image {
        grid-template-columns: 1fr 1.2fr;
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    /* Header */
    .header-top-bar {
        display: none;
    }

    .nav {
        display: none;
    }

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

    .header-content {
        padding: 1rem 0;
    }

    /* Hero */
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-pizza-container {
        height: 250px;
    }

    .pizza-animation {
        width: 200px;
        height: 200px;
    }

    /* Sections */
    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Pizza Grid */
    .pizza-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow: visible;
        padding: 0;
    }
    
    .pizza-card {
        min-height: auto;
        overflow: visible;
        padding: 1.25rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .pizza-title {
        font-size: 1.2rem;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        word-wrap: break-word;
    }
    
    .pizza-description {
        font-size: 0.9rem;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        -webkit-line-clamp: none;
        display: block;
        word-wrap: break-word;
    }
    
    .menu-filters {
        position: static;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
    }

    /* Menu Page */
    .menu-page {
        padding: 40px 0 60px;
    }

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

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

    .menu-info-section {
        grid-template-columns: 1fr;
        margin-top: 3rem;
        padding-top: 3rem;
    }

    /* About */
    .about-text p {
        font-size: 1rem;
    }

    .features-list li {
        font-size: 1rem;
    }

    .about-image-placeholder {
        height: 250px;
    }

    /* About Page - Story with Image */
    .story-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .story-image {
        order: 1;
    }

    .story-text {
        order: 2;
    }

    /* Contact */
    .map-container iframe {
        height: 300px;
    }

    /* Cart */
    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .cart-summary {
        position: static;
    }

    /* Menu Filters */
    .menu-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        position: static;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        -webkit-overflow-scrolling: touch;
    }

    .menu-filters::-webkit-scrollbar {
        height: 4px;
    }

    .menu-filters::-webkit-scrollbar-track {
        background: transparent;
    }

    .menu-filters::-webkit-scrollbar-thumb {
        background: var(--btn-primary);
        border-radius: 2px;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Checkout */
    .checkout-summary {
        position: static;
        margin-top: 2rem;
    }

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

    .footer {
        padding: 3rem 0 1.5rem;
    }

    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-buttons .btn {
        flex: 1;
    }

    /* Page Content */
    .content-wrapper {
        padding: 2rem 1.5rem;
    }

    .content-wrapper h2 {
        font-size: 1.3rem;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    /* Menu Info */
    .menu-info-section {
        grid-template-columns: 1fr;
    }

    /* Thank You */
    .order-steps {
        gap: 1rem;
    }

    .thank-you-actions {
        flex-direction: column;
    }

    .thank-you-actions .btn {
        width: 100%;
    }

    /* Cookie Table */
    .cookie-table {
        font-size: 0.85rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }

    .cookie-table th {
        font-size: 0.85rem;
    }
}

/* Very Small Mobile */
@media (max-width: 480px) {
    .cookie-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cookie-table thead,
    .cookie-table tbody,
    .cookie-table tr,
    .cookie-table th,
    .cookie-table td {
        display: block;
    }

    .cookie-table thead {
        display: none;
    }

    .cookie-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        padding: 0.5rem;
        background: white;
    }

    .cookie-table td {
        border: none;
        padding: 0.5rem 0;
        text-align: left;
    }

    .cookie-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--btn-primary);
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Contact Page */
    .contact-page-content {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-map-section .map-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .contact-info-section {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        padding: 1.5rem;
    }

    .contact-map-section .map-container iframe {
        height: 300px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pizza-card {
        padding: 1rem;
        min-height: auto;
        overflow: visible;
    }

    .pizza-image {
        height: 150px;
    }
    
    .pizza-title {
        font-size: 1.1rem;
        overflow: visible;
        white-space: normal;
    }
    
    .pizza-description {
        font-size: 0.85rem;
        overflow: visible;
        white-space: normal;
        display: block;
        -webkit-line-clamp: none;
    }

    .cart-item-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-control {
        justify-content: center;
    }

    .remove-item-btn {
        width: 100%;
    }
}

