/* Restaurant Menu Styles - Extracted from menu.blade.php */

/* Image Loading Optimization */
.menu-img.img {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.menu-img.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
}

.menu-img.img.loading img {
    opacity: 0;
}

.menu-img.img img.loaded {
    opacity: 1;
}

/* Professional Hero Section */
.hero-wrap,
.hero-wrap-2 {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-wrap::before,
.hero-wrap-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

.hero-wrap .container,
.hero-wrap-2 .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin-bottom: 2rem;
    color: white;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 18px 35px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Professional Menu Section - Compact & Eye-catching */
.menu-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-description {
    font-size: 1rem;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 400;
}

/* Professional Category Navigation - Compact */
.category-navigation {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-tab {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-tab:hover {
    border-color: #ff6b35;
    color: #ff6b35;
}

.category-tab.active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    color: white;
}

.category-count {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.category-count.loading::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
}

.category-tab.active .category-count {
    opacity: 1;
    color: white;
}

.tab-icon {
    font-size: 1.2rem;
}

/* Enhanced Professional Search Box - Compact & Eye-catching */
.search-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.search-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42, #ff6b35);
    background-size: 200% 100%;
}

/* Search Header Styles - Compact */
.search-header {
    margin-bottom: 0.75rem;
}

.search-title {
    color: #333;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-title i {
    color: #ff6b35;
    font-size: 1.2rem;
}

.search-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0;
    opacity: 0.8;
}

.search-box {
    position: relative;
}

.search-box .input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid #e9ecef;
}

.search-box .input-group:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    border-color: #ff6b35;
}

.search-box .input-group:focus-within {
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

.search-box .input-group-text {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border: none;
    color: white;
    font-size: 1rem;
    padding: 15px 18px;
    font-weight: 600;
}

.search-box .form-control {
    border: none;
    padding: 15px 18px;
    font-size: 1rem;
    background: white;
    font-weight: 500;
    color: #333;
}

.search-box .form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
    opacity: 0.8;
}

.search-box .form-control:focus {
    outline: none;
    box-shadow: none;
    background: white;
    color: #333;
}

.search-box .btn {
    border: none;
    padding: 15px 18px;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.search-box .btn:hover {
    background: linear-gradient(135deg, #e55a2b, #e57a3b);
    color: white;
}

/* Professional Products Grid - Ultra Compact */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    padding: 0.5rem 0;
    scroll-margin-top: 100px;
    position: relative;
}

/* Scroll indicator arrow */
.scroll-indicator {
    position: absolute;
    top: -30px;
    left: 50%;
    color: #ff6b35;
    font-size: 2rem;
    opacity: 0;
}

.scroll-indicator.show {
    opacity: 1;
}

/* Highlight effect for products section */
.highlight-section {
    animation: highlightPulse 1s ease-in-out;
}

@keyframes highlightPulse {
    0% {
        background-color: rgba(255, 107, 53, 0.1);
    }
    50% {
        background-color: rgba(255, 107, 53, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Smooth scrolling for the entire page */

/* Enhanced Product Cards - Ultra Compact & Eye-catching */
.menu-wrap-- {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    height: 100%;
    border: 1px solid rgba(255, 107, 53, 0.05);
    margin-bottom: 0;
}

.menu-img.img {
    height: 180px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

.menu-img.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimize-contrast;
    -ms-interpolation-mode: nearest-neighbor;
    filter: contrast(1.1) saturate(1.1);
    transition: all 0.3s ease;
    opacity: 1;
    display: block;
    min-height: 200px;
}

/* Fallback when image fails to load */
.menu-img.img:not(:has(img[src]))::before {
    content: "📷 NO IMAGE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 1;
}

.menu-img.img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

/* Image loading state */
.menu-img.img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.menu-img.img.loading img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Fallback: show image after 2 seconds even if onload doesn't fire */
.menu-img.img.loading img {
    animation: fadeInFallback 0.3s ease 2s forwards;
}

@keyframes fadeInFallback {
    to {
        opacity: 1;
    }
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* High DPI display support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .menu-img.img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Image quality improvements for different screen sizes */
@media (max-width: 768px) {
    .menu-img.img {
        height: 150px;
    }

    .menu-img.img img {
        filter: contrast(1.05) saturate(1.05);
    }
}

@media (max-width: 480px) {
    .menu-img.img {
        height: 130px;
    }
}

.text {
    padding: 1rem;
}

.text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.text p {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}


.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 0.75rem;
    display: block;
}

.product-description {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 4px 0 8px 0;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Professional Add to Cart Button - Ultra Compact */
.add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    min-height: 35px;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.add-to-cart .cart-icon {
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.add-to-cart .price-text {
    font-size: 1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.add-to-cart .action-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Additional Professional Elements */
.allergies-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #856404;
    font-weight: 500;
}

.notice-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* New Inline Allergies Notice */
.allergies-notice-inline {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 6px 12px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #856404;
    font-size: 0.8rem;
    line-height: 1.2;
}

.notice-icon-small {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.notice-text-small {
    font-weight: 400;
}

.notice-text-small strong {
    font-weight: 600;
}

.unit-info {
    font-weight: 400;
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-icon {
    font-size: 1.2rem;
}

.price-text {
    font-weight: 700;
}

.action-text {
    font-weight: 600;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-products-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.no-products-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-products h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-products p {
    color: #7f8c8d;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    min-width: 60px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.scroll-to-top-btn .scroll-text {
    font-weight: 600;
    font-size: 0.9rem;
}

.scroll-to-top-btn i {
    font-size: 1.1rem;
}

/* Loading Skeleton Animation */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.skeleton-image {
    height: 250px;
    background: #f0f0f0;
}

.skeleton-content {
    padding: 2rem;
}

.skeleton-title {
    height: 24px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-description {
    height: 16px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-description:last-child {
    width: 60%;
}

.skeleton-price {
    height: 32px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 40%;
}

.skeleton-button {
    height: 50px;
    background: #f0f0f0;
    border-radius: 15px;
}

/* Loading and Error States */
.loading-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
    margin-bottom: 1.5rem;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #ff6b35;
}

.loading-text {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
}

.error-container {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid #dc3545;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-text {
    color: #dc3545;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
}

.retry-btn:hover {
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Pagination Controls */
.pagination-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem 0;
}

.pagination-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.3);
    min-width: 120px;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.pagination-icon {
    font-size: 1rem;
    font-weight: bold;
}

.pagination-text {
    font-weight: 600;
}

/* Page Info */
.page-info {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.current-page {
    font-weight: 600;
    color: #ff6b35;
    margin-right: 0.3rem;
}

.total-items {
    opacity: 0.8;
}

/* Quantity Buttons in Modal - Remove Shadows */
#decreaseQuantity,
#increaseQuantity {
    box-shadow: none !important;
    border: 1px solid #ced4da !important;
    background-color: #ffffff !important;
}

#decreaseQuantity:hover,
#increaseQuantity:hover {
    box-shadow: none !important;
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
}

#decreaseQuantity:focus,
#increaseQuantity:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Products Container - Prevent Footer Jump */
#products-container {
    position: relative;
    scroll-margin-top: 100px;
}

/* Related Products Section */
.related-products-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.related-product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.related-product-card:hover {
    background: #f8f9fa;
    border-color: #ff6b35;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.15);
}

.related-product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-product-card .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1rem;
    line-height: 1;
}

.related-product-card .quick-add-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.related-product-card .quick-add-btn:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.related-product-card .quick-add-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-wrap,
    .hero-wrap-2 {
        padding: 80px 0;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        min-width: 200px;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .category-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .category-tab {
        width: 100%;
        max-width: 200px;
        padding: 10px 15px;
        font-size: 0.9rem;
        min-width: auto;
        justify-content: center;
    }

    .category-tab .tab-text {
        font-size: 0.85rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    .category-tab .tab-icon {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .category-tab .category-count {
        font-size: 0.7rem;
        margin-left: 4px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .search-container {
        padding: 0.75rem;
        margin: 0.75rem 0;
        border-radius: 10px;
    }

    .search-container::before {
        height: 2px;
    }

    .search-header {
        margin-bottom: 0.5rem;
    }

    .search-title {
        font-size: 1rem;
    }

    .search-subtitle {
        font-size: 0.8rem;
    }

    .search-box .input-group {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-box .input-group-prepend,
    .search-box .input-group-append {
        width: 100%;
        margin: 0;
    }

    .search-box .input-group-prepend {
        margin-bottom: 0.5rem;
    }

    .search-box .input-group-append {
        margin-top: 0.5rem;
    }

    .search-box .input-group-text,
    .search-box .form-control,
    .search-box .btn {
        border-radius: 8px;
        width: 100%;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .search-box .input-group-text {
        background: linear-gradient(135deg, #ff6b35, #ff8c42);
        color: white;
        font-weight: 600;
    }

    .search-box .btn {
        background: linear-gradient(135deg, #ff6b35, #ff8c42);
        color: white;
        font-weight: 600;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 0.5rem;
        margin: 0.75rem 0 0.5rem 0;
    }

    .pagination-btn {
        min-width: 140px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .page-info {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        margin-top: 0.25rem;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .related-product-card {
        padding: 1rem;
        min-height: 100px;
    }

    .related-product-card .product-name {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .related-product-card .product-price {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .related-product-card .quick-add-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .allergies-notice-inline {
        padding: 10px 12px;
        font-size: 0.8rem;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .notice-icon-small {
        font-size: 0.9rem;
    }

    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        min-width: 55px;
        height: 45px;
        font-size: 0.9rem;
        padding: 0 12px;
    }

    .scroll-to-top-btn .scroll-text {
        font-size: 0.8rem;
    }

    .scroll-to-top-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 600px) and (min-width: 481px) {
    /* Medium mobile devices */
    .category-tabs {
        gap: 0.4rem;
        padding: 0 15px;
    }

    .category-tab {
        max-width: 180px;
        padding: 9px 14px;
        font-size: 0.85rem;
    }

    .category-tab .tab-text {
        font-size: 0.8rem;
        max-width: 100px;
    }

    .category-tab .tab-icon {
        font-size: 0.95rem;
    }

    .category-tab .category-count {
        font-size: 0.68rem;
        margin-left: 3px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 15px 25px;
        font-size: 0.9rem;
    }

    /* Extra small mobile - category tabs */
    .category-tabs {
        gap: 0.3rem;
        padding: 0 10px;
    }

    .category-tab {
        max-width: 150px;
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: auto;
    }

    .category-tab .tab-text {
        font-size: 0.75rem;
        max-width: 80px;
        font-weight: 600;
    }

    .category-tab .tab-icon {
        font-size: 0.9rem;
    }

    .category-tab .category-count {
        font-size: 0.65rem;
        margin-left: 2px;
    }

    .category-navigation {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
}
