:root {
    --green-dark: #004d40;  
    --green-mid: #00796b;
    --accent: #66ff99;      
    --card-bg: #e8f5e9;
    --text-dark: #012a25;
    --danger-dark: #b71c1c; 
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", system-ui, Arial, sans-serif;
    margin: 0;
    background: linear-gradient(180deg, var(--green-dark), var(--green-mid) 60%, #009688 100%);
    color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background: var(--green-mid) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
}
.nav-link {
    color: #ffffff !important;
    margin-right: 12px;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
}

/* HERO */
.hero {
    padding: 48px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.1rem;
    margin-bottom: 0.25rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.hero p, .hero-intro {
    font-size: 1.3rem;
    color: #e0f7f4;
    margin-top: 16px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    line-height: 1.6;
}

/* CARDS / PRODUCTS */
.container-main {
    padding: 28px 16px 80px;
}
.card {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.card-img-top {
    height: 300px;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.card .card-body {
    background: var(--card-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
}
.featured-card .card-body {
    display: block;
}
.featured-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
}
.featured-card .card-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-card button {
    margin-top: 12px;
}

/* Price / danger text */
p.card-text.text-danger.fw-bold {
    color: var(--danger-dark);
    font-weight: 700;
}

/* Buttons */
.btn-accent, .viewBtn, #modalAddBtn {
    background: var(--green-mid);
    color: #ffffff;
    border: none;
    transition: background 0.3s;
}
.btn-accent:hover, .viewBtn:hover, #modalAddBtn:hover {
    background: #004d40;
    color: #ffffff;
}

/* Cart badge */
.cart-badge {
    background: #ffffff;
    color: var(--green-mid);
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 700;
}

/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    padding: 24px 0;
    margin-top: 40px;
    text-align: center;
}
footer .contact-info {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
}
footer .contact-info a {
    color: var(--accent);
    text-decoration: none;
}
footer .contact-info a:hover {
    text-decoration: underline;
}

/* Modal */
.modal-content {
    border-radius: 12px;
}
#cartModal .modal-dialog {
    max-width: 600px;
    margin: 2rem auto;
}
#cartModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem;
}
#cartModal img {
    max-width: 100%;
    height: auto;
}

.product-desc {
    white-space: pre-line;
}

/* Product grid min-height */
#productGrid, #featuredGrid {
    min-height: 400px;
}

/* Responsive */
@media (max-width:576px) {
    .card-img-top {
        aspect-ratio: 1;
        min-height: 300px;
    }
    .hero h1 {
        font-size: 1.6rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    }
}
/* Tăng kích thước vùng chạm cho mobile */
button, a {
  min-height: 44px;
  min-width: 44px;
}

