:root {
    --primary-pink: #f8b5c4;
    --dark-pink: #e91e63;
    --light-pink: #fce4ec;
    --accent-pink: #ff6090;
    --text-dark: #2d2d2d;
    --success-green: #28a745;
    --warning-orange: #fd7e14;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    color: #111827;
    
}

/* Tailwind-like utility classes */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-pink-600 { --tw-gradient-from: #db2777; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(219, 39, 119, 0)); }
.to-pink-700 { --tw-gradient-to: #be185d; }
.text-white { color: #ffffff; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.text-center { text-align: center; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.md\:text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.mb-4 { margin-bottom: 1rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.sm\:flex-row { flex-direction: row; }
.gap-4 { gap: 1rem; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background-color: #db2777; color: white; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1.125rem; }
.bg-yellow-400 { background-color: #facc15; }
.hover\:bg-yellow-500:hover { background-color: #eab308; }
.text-black { color: #000000; }
.font-semibold { font-weight: 600; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.border-0 { border-width: 0; }
.btn-outline-light { background-color: transparent; border-color: #ffffff; color: #ffffff; }
.border-white { border-color: #ffffff; }
.hover\:bg-white:hover { background-color: #ffffff; }
.hover\:text-pink-600:hover { color: #db2777; }
.me-2 { margin-right: 0.5rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.bg-white { background-color: #ffffff; }
.border-b { border-bottom: 1px solid #e5e7eb; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.text-pink-600 { color: #db2777; }
.text-xl { font-size: 1.25rem; }
.font-semibold { font-weight: 600; }
.text-gray-900 { color: #111827; }
.text-sm { font-size: 0.875rem; }
.text-gray-600 { color: #4b5563; }
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 0.375rem; font-size: 0.75rem; font-weight: 500; }
.bg-green-100 { background-color: #dcfce7; }
.text-green-800 { color: #166534; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.text-xs { font-size: 0.75rem; }
.btn-outline-pink { background-color: transparent; border-color: rgb(219, 39, 119); color: #db2777; }
.border-pink-600 { border-color: #db2777; }
.hover\:bg-pink-50:hover { background-color: #fdf2f8; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Responsive grid classes */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cursor-pointer { cursor: pointer; }
.transition-all { transition: all 0.3s; }
.duration-300 { transition-duration: 0.3s; }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.border-2 { border-width: 2px; }
.border-gray-200 { border-color: #e5e7eb; }
.hover\:border-pink-300:hover { border-color: #f9a8d4; }
.relative { position: relative; }
.w-full { width: 100%; }
.h-32 { height: 8rem; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-pink-400 { --tw-gradient-from: #f472b6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(244, 114, 182, 0)); }
.to-pink-600 { --tw-gradient-to: #db2777; }
.from-gray-400 { --tw-gradient-from: #9ca3af; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(156, 163, 175, 0)); }
.to-gray-600 { --tw-gradient-to: #4b5563; }
.rounded-lg { border-radius: 0.5rem; }
.flex { display: flex; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-white { color: #ffffff; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.bg-black { background-color: #000000; }
.bg-opacity-20 { background-color: rgba(0, 0, 0, 0.2); }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.p-3 { padding: 0.75rem; }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/70 { --tw-gradient-from: rgba(0, 0, 0, 0.7); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0)); }
.to-transparent { --tw-gradient-to: transparent; }
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-6 { gap: 1.5rem; }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.transition-transform { transition: transform 0.3s; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.opacity-0 { opacity: 0; }
.group-hover\:opacity-100 { opacity: 1; }
.transition-opacity { transition: opacity 0.3s; }
.bg-pink-600 { background-color: #db2777; }
.hover\:bg-pink-700:hover { background-color: #be185d; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.p-4 { padding: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.group-hover\:text-pink-600 { color: #db2777; }
.transition-colors { transition: color 0.3s; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.justify-between { justify-content: space-between; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.bg-yellow-400 { background-color: #facc15; }
.hover\:bg-yellow-500:hover { background-color: #eab308; }
.rounded { border-radius: 0.25rem; }
.h-48 { height: 12rem; }
.object-cover { object-fit: cover; }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-gray-200 { --tw-gradient-from: #e5e7eb; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(229, 231, 235, 0)); }
.to-gray-300 { --tw-gradient-to: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-gray-900 { color: #111827; }

.navbar {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    box-shadow: 0 2px 20px rgba(233, 30, 99, 0.3);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--warning-orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-family: 'Playfair Display', serif;
    color: var(--dark-pink);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-pink), var(--accent-pink));
    border-radius: 2px;
}

.product-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.2);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--light-pink), var(--primary-pink));
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-pink);
    margin-bottom: 1rem;
}

.product-stock {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-pink), var(--accent-pink));
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
    color: white;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
}

.cart-sidebar.show {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    background: linear-gradient(135deg, var(--primary-pink), var(--dark-pink));
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-pink);
    background: white;
    color: var(--dark-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--primary-pink);
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.2rem;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1.5rem;
    border-top: 2px solid var(--light-pink);
}

.checkout-btn {
    background: linear-gradient(135deg, var(--success-green), #20c997);
    border: none;
    color: white;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    color: white;
}

.empty-cart {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.loading {
    display: none;
}

.loading.show {
    display: inline-block;
}

/* Category Navigation Mobile */
.category-nav-mobile {
    margin-bottom: 2rem;
}

.category-nav-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 0.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 70px;
    flex-shrink: 0;
}

.category-btn:hover,
.category-btn.active {
    background: var(--dark-pink);
    border-color: var(--dark-pink);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.category-btn i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.category-btn span {
    font-size: 0.75rem;
    text-align: center;
}

/* Responsive Grid Classes */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-7 {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 0.75rem;
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 0;
    }

    .hero-content-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-title-main {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-title-sub {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-image-section {
        height: 250px;
        margin-top: 1.5rem;
    }

    .hero-image-wrapper {
        border-radius: 12px 12px 0 0;
    }

    /* Location Section Mobile */
    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    /* Category Navigation Mobile */
    .category-nav-container {
        padding: 0.5rem 0;
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: auto;
        flex: 1;
    }

    .category-btn span {
        display: none;
    }

    .category-btn i {
        font-size: 1.2rem;
    }

    /* Menu Section Mobile */
    .menu-section {
        padding: 1.5rem 0;
    }

    .text-3xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    /* Product Grid Mobile */
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .menu-card {
        border-radius: 12px;
    }

    .product-image-container {
        height: 140px;
    }

    .product-image-modern {
        height: 140px;
    }

    .product-image-placeholder {
        height: 140px;
    }

    .product-content {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .product-description {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
        -webkit-line-clamp: 2;
    }

    .price-amount {
        font-size: 1rem;
    }

    .btn-add-to-cart {
        width: 35px;
        height: 35px;
    }

    .btn-add-to-cart i {
        font-size: 0.8rem;
    }

    /* Cart Modal Mobile */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    /* Navbar Mobile */
    .navbar-brand {
        font-size: 1.4rem;
    }

    /* Button adjustments */
    .btn {
        font-size: 0.8rem;
    }

    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }

    /* General spacing */
    .mb-4 { margin-bottom: 0.75rem; }
    .mb-8 { margin-bottom: 1.5rem; }
    .gap-4 { gap: 0.75rem; }
    .gap-6 { gap: 1rem; }
}

@media (max-width: 640px) {
    /* Extra small screens */
    .container {
        padding: 0 0.5rem;
    }

    .hero-title-main {
        font-size: 2rem;
    }

    .hero-title-sub {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .products-grid-container {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .menu-card {
        border-radius: 10px;
    }

    .product-image-container {
        height: 160px;
    }

    .product-image-modern,
    .product-image-placeholder {
        height: 160px;
    }

    .product-content {
        padding: 1rem;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .price-amount {
        font-size: 1.1rem;
    }

    .btn-add-to-cart {
        width: 40px;
        height: 40px;
    }

    /* Category cards on very small screens */
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    .category-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .category-btn span {
        display: inline;
        font-size: 0.8rem;
    }

    /* Location section adjustments */
    .flex.items-center.justify-between {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .flex.items-center.space-x-3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Hero features stack vertically */
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .feature-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-content-section {
        padding: 1.5rem 0.75rem;
    }

    .hero-title-main {
        font-size: 1.75rem;
    }

    .hero-title-sub {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .menu-section {
        padding: 1rem 0;
    }

    .text-3xl {
        font-size: 1.25rem;
    }

    .product-content {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .price-amount {
        font-size: 1rem;
    }

    /* Cart modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    /* Location modal */
    .location-modal .modal-dialog {
        margin: 1rem;
    }

    /* Product modal mobile responsiveness */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-body img {
        height: 200px;
    }

    .modal-body .text-4xl {
        font-size: 2rem;
    }

    .modal-body .text-3xl {
        font-size: 1.5rem;
    }

    .modal-body .text-2xl {
        font-size: 1.25rem;
    }

    /* Extra small screens */
    .modal-body .text-xl {
        font-size: 1.125rem;
    }

    .modal-body .text-lg {
        font-size: 1rem;
    }

    /* Force single column on very small screens */
    .products-grid-container {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
}

/* Shopee Food Style Components */

/* Sticky Category Navbar */
.sticky-category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-nav-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 20px;
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.category-tab:hover,
.category-tab.active {
    background: var(--dark-pink);
    border-color: var(--dark-pink);
    color: white;
    transform: translateY(-1px);
}

/* Products Container */
.products-container {
    padding: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}

/* Responsive grid for mobile */
@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .product-card-shopee {
        border-radius: 6px;
    }

    .product-info {
        padding: 0.5rem;
    }

    .product-name {
        font-size: 0.85rem;
    }

    .product-description {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }

    .product-price {
        font-size: 0.8rem;
    }

    .btn-add-cart {
        width: 24px;
        height: 24px;
    }

    .btn-add-cart i {
        font-size: 0.6rem;
    }

    /* Modal fixes for mobile */
    .modal {
        z-index: 1060;
    }

    .modal-backdrop {
        z-index: 1055;
    }

    .modal.show .modal-dialog {
        transform: translate(0, 0);
    }

    /* Ensure modal content is visible */
    .modal-content {
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }

    .modal-body img {
        border-radius: 8px;
    }

    /* Force modal visibility for debugging */
    .modal.show {
        display: block !important;
    }

    .modal.show .modal-dialog {
        transform: translate(0, 0) !important;
        opacity: 1 !important;
    }

    .modal-backdrop.show {
        opacity: 0.5 !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
}

@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
}

/* Shopee Food Style Product Cards */
.product-card-shopee {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.product-card-shopee:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.product-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.product-card-shopee:hover .product-image {
    transform: scale(1.05);
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 1.5rem;
}

.product-info {
    padding: 0.75rem;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-pink);
}

.btn-add-cart {
    width: 28px;
    height: 28px;
    background: var(--dark-pink);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    background: var(--primary-pink);
    transform: scale(1.1);
}

.btn-add-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.btn-add-cart i {
    font-size: 0.75rem;
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .product-card-shopee:hover {
        transform: none;
    }

    .category-tab:hover,
    .category-tab.active {
        transform: none;
    }

    .btn-add-cart:hover {
        transform: none;
    }

    /* Make buttons larger for touch */
    .btn-add-cart {
        width: 32px;
        height: 32px;
    }

    .category-tab {
        min-height: 40px;
        padding: 0.5rem 1.25rem;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }

    .hero-image-section {
        height: 180px;
    }

    .hero-title-main {
        font-size: 1.5rem;
    }

    .hero-title-sub {
        font-size: 0.9rem;
    }
}

/* Tab customization */
.custom-tabs .nav-link {
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    border-bottom: 2px solid transparent;
}

.custom-tabs .nav-link:hover,
.custom-tabs .nav-link.active {
    color: #d63384; /* pink */
    border-bottom: 2px solid #d63384;
    background-color: transparent;
}

/* Product card custom */
.product-card {
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Button custom */
.btn-pink {
    background-color: #d63384;
    color: #fff;
    border: none;
}

.btn-pink:hover {
    background-color: #c02570;
    color: #fff;
}