﻿:root {
    --grocery-green: #16a34a;
    --grocery-green-dark: #15803d;
    --grocery-orange: #f97316;
    --grocery-bg: #f8fafc;
}

body {
    background-color: var(--grocery-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.grocery-header {
    background-color: #ffffff;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

    .category-pill:hover, .category-pill.active {
        background: var(--grocery-green);
        color: #ffffff;
        border-color: var(--grocery-green);
    }

.product-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px -6px rgba(22, 163, 74, 0.12);
    }

.btn-add-cart {
    background-color: var(--grocery-orange);
    color: #ffffff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
}

    .btn-add-cart:hover {
        background-color: #ea580c;
        color: #ffffff;
    }

/* Tối ưu thanh cuộn ngang danh mục trên Mobile */
.category-scroll-bar {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

    .category-scroll-bar::-webkit-scrollbar {
        display: none;
    }
