/**
 * Enhanced Responsive Styles for African Food San Diego
 * This file contains improved responsive styles for better mobile experience
 */

/* ===== RESPONSIVE PRODUCT CARDS ===== */
.product-card-african,
.product-card-nigerian {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Improved mobile product card layout */
@media (max-width: 767px) {
    .product-card-african,
    .product-card-nigerian {
        margin-bottom: 1.5rem;
        height: auto;
        max-height: 350px;
    }

    .product-img-container {
        height: 180px;
    }

    .product-img {
        height: 100%;
        object-fit: cover;
    }

    .product-title {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        height: auto;
        max-height: 40px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .cultural-significance-short {
        display: none; /* Hide on mobile to save space */
    }

    .product-price {
        margin-bottom: 0.3rem;
    }

    .price-current {
        font-size: 0.95rem;
        font-weight: 600;
    }

    /* Hide basket and love buttons on mobile */
    .product-actions {
        display: none;
    }

    /* Make add to cart button more prominent */
    .btn-add-to-cart {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .btn-add-to-cart i {
        margin-right: 5px;
    }

    /* Improve category badge */
    .category-badge-nigerian {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* Improve product info section */
    .product-info {
        padding: 0.5rem;
    }
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 991px) {
    .navbar-brand img {
        max-height: 40px;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }

    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .dropdown-menu {
        border: none;
        padding: 0 0 0 1rem;
        margin: 0;
        background-color: transparent;
        box-shadow: none;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        color: inherit;
    }
}

/* ===== RESPONSIVE HERO SECTION ===== */
@media (max-width: 767px) {
    .hero-slide {
        padding: 2rem 0;
    }

    .min-vh-70 {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-slide .display-3 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-slide .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image {
        margin-top: 2rem;
        max-height: 250px;
        object-fit: cover;
    }

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

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 767px) {
    .footer {
        padding: 2rem 0;
    }

    .footer-title {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-links {
        margin-bottom: 1.5rem;
    }

    .footer-social {
        margin-top: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom .footer-links {
        margin-top: 1rem;
    }
}

/* ===== RESPONSIVE CART ===== */
@media (max-width: 767px) {
    .cart-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-title {
        font-size: 0.9rem;
    }

    .cart-item-price {
        font-size: 0.9rem;
    }

    .cart-quantity-input {
        width: 60px;
    }

    .cart-summary {
        padding: 1rem;
    }
}

/* ===== IMPROVED TOUCH TARGETS ===== */
@media (max-width: 767px) {
    /* Larger touch targets for mobile */
    .btn,
    .nav-link,
    .dropdown-item,
    .form-control,
    .action-btn,
    .product-link-overlay {
        min-height: 44px; /* Apple's recommended minimum touch target size */
    }

    /* Add more space between clickable elements */
    .btn + .btn {
        margin-left: 0.5rem;
    }

    /* Ensure form elements are easily tappable */
    input[type="checkbox"],
    input[type="radio"] {
        transform: scale(1.2);
        margin-right: 0.5rem;
    }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 767px) {
    .mobile-text-center {
        text-align: center !important;
    }

    .mobile-mt-3 {
        margin-top: 1rem !important;
    }

    .mobile-mb-3 {
        margin-bottom: 1rem !important;
    }

    .mobile-p-2 {
        padding: 0.5rem !important;
    }

    .mobile-order-1 {
        order: 1 !important;
    }

    .mobile-order-2 {
        order: 2 !important;
    }

    .mobile-d-none {
        display: none !important;
    }

    .mobile-d-block {
        display: block !important;
    }
}
