﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}
:root {
    --primary: #00b09b;
    --primary-dark: #009e85;
    --bg: #f0faf8;
    --card-bg: #ffffff;
    --text: #1a2e2b;
    --muted: #6b9990;
    --border: #d4f0eb;
    --tag-bg: #fff3ee;
    --tag-active: #e8704a;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
}

.site-navbar {
    background: var(--card-bg);
    border-bottom: 2px solid var(--border);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,180,155,.1);
}

    .site-navbar .container {
        display: flex;
        align-items: center;
        height: 58px;
        gap: 1rem;
    }

.navbar-brand-custom {
    font-size: 1.25rem;
    font-weight: 800;
    color: #00b09b !important;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -.3px;
}

.navbar-admin-link {
    margin-left: auto;
    font-size: .85rem;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    padding: .3rem .9rem;
    border-radius: 20px;
    transition: all .18s;
}

    .navbar-admin-link:hover {
        color: #00b09b;
        border-color: #00b09b;
        background: #e6faf6;
    }

.navbar-cart-link {
    margin-left: auto;
    font-size: .92rem;
    font-weight: 700;
    color: #00b09b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border: 2px solid #00b09b;
    padding: .3rem .9rem;
    border-radius: 20px;
    transition: all .18s;
    position: relative;
}

    .navbar-cart-link:hover {
        background: #e6faf6;
        color: #009e85;
    }

#cartCountBadge {
    position: absolute;
    top: -7px;
    right: -8px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: .62rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.body-wrap {
    min-height: calc(100vh - 58px - 48px);
}

footer.site-footer {
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
    padding: .9rem;
    border-top: 2px solid var(--border);
    background: var(--card-bg);
}

/* ===== HERO SEARCH BAR ===== */
.hero-search {
    background: linear-gradient(135deg, #e8704a 0%, #f0a07a 100%);
    padding: 1.6rem 1rem 1.2rem;
    text-align: center;
}

    .hero-search h1 {
        font-size: clamp(1.3rem, 4vw, 2rem);
        color: #fff;
        font-weight: 700;
        margin: 0 0 .8rem;
        letter-spacing: -.5px;
    }

.search-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

    .search-form input {
        flex: 1;
        border: none;
        padding: .65rem 1.2rem;
        font-size: 1rem;
        outline: none;
    }

    .search-form button {
        background: #2d2d2d;
        color: #fff;
        border: none;
        padding: 0 1.3rem;
        font-size: 1.1rem;
        cursor: pointer;
        transition: background .2s;
    }

        .search-form button:hover {
            background: #444;
        }

/* ===== CATEGORY TABS ===== */
.cat-tabs-wrap {
    background: #fff;
    border-bottom: 2px solid #f0ece8;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .cat-tabs-wrap::-webkit-scrollbar {
        display: none;
    }

.cat-tabs {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding: 0 .5rem;
}

.cat-tab {
    display: inline-block;
    padding: .75rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}

    .cat-tab:hover {
        color: #e8704a;
    }

    .cat-tab.active {
        color: #e8704a;
        border-bottom-color: #e8704a;
    }

/* ===== TAG CLOUD ===== */
.tag-section {
    padding: .7rem 1rem;
    background: #fdf6f2;
    border-bottom: 1px solid #f0ece8;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
}

.tag-label {
    font-size: .78rem;
    color: #aaa;
    font-weight: 600;
    margin-right: .2rem;
}

.tag-pill {
    display: inline-block;
    padding: .28rem .75rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    background: #fff3ee;
    color: #c9553a;
    border: 1px solid #f5cfc2;
    text-decoration: none;
    transition: background .15s, color .15s;
}

    .tag-pill:hover, .tag-pill.active {
        background: #e8704a;
        color: #fff;
        border-color: #e8704a;
    }

/* ===== RESULTS BAR ===== */
.results-bar {
    padding: .6rem 1rem;
    font-size: .82rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #fff3ee;
    color: #c9553a;
    border: 1px solid #f5cfc2;
    border-radius: 20px;
    padding: .18rem .6rem;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
}

    .filter-badge .x {
        font-size: .9rem;
        line-height: 1;
    }

    .filter-badge:hover {
        background: #fce0d6;
    }

.clear-all {
    color: #e8704a;
    font-size: .8rem;
    text-decoration: underline;
}

/* ===== PRODUCT GRID ===== */
/* Tự cân đối số cột theo màn hình — không bao giờ có cột thừa/lệch */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);           /* mobile: 2 cột */
    gap: .85rem;
    padding: .85rem;
}

@media (min-width: 540px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; }
}

@media (min-width: 860px) {
    .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; padding: 1.1rem 1.5rem; }
}

@media (min-width: 1180px) {
    .menu-grid { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; padding: 1.2rem 2rem; }
}

@media (min-width: 1500px) {
    .menu-grid { grid-template-columns: repeat(6, 1fr); gap: 1.3rem; padding: 1.3rem 3rem; }
}

/* ===== PRODUCT CARD ===== */
.menu-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
    cursor: default;
}

    .menu-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(232,112,74,.15);
    }

.card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #fdf0eb 0%, #fce5d8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #f5c5aa;
    position: relative;
    overflow: hidden;
}

    .card-img-wrap .emoji-icon {
        font-size: 2.8rem;
    }

.card-body {
    padding: .7rem .8rem .8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.card-category {
    font-size: .7rem;
    font-weight: 600;
    color: #e8704a;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.card-name {
    font-size: .92rem;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin-top: .1rem;
}

.card-tag {
    font-size: .68rem;
    background: #f5f0ee;
    color: #b07060;
    padding: .1rem .45rem;
    border-radius: 10px;
}

.card-price {
    margin-top: auto;
    padding-top: .4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8704a;
}

    .card-price .from {
        font-size: .72rem;
        font-weight: 400;
        color: #aaa;
    }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #aaa;
}

    .empty-state .icon {
        font-size: 3.5rem;
        margin-bottom: .8rem;
    }

    .empty-state p {
        font-size: 1rem;
    }

/* ===== PAGINATION ===== */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .4rem;
    padding: 1rem 1rem 1.5rem;
    flex-wrap: wrap;
}

    .pager a, .pager span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 .5rem;
        border-radius: 10px;
        font-size: .88rem;
        font-weight: 600;
        text-decoration: none;
        transition: background .15s, color .15s;
    }

    .pager a {
        background: #fff;
        color: #555;
        border: 1.5px solid #e0dbd8;
    }

        .pager a:hover {
            background: #fff3ee;
            color: #e8704a;
            border-color: #f5cfc2;
        }

    .pager span.current {
        background: #e8704a;
        color: #fff;
        border: 1.5px solid #e8704a;
    }

    .pager span.dots {
        background: none;
        border: none;
        color: #bbb;
        min-width: 20px;
    }

/* ============================================================
    CSS VARIABLES – FRESH GREEN THEME
    ============================================================ */
:root {
    --g1: #00b09b;
    --g2: #0abf8e;
    --g3: #11d3a6;
    --accent: #00c9a7;
    --accent-dark: #009e85;
    --leaf: #e6faf6;
    --leaf2: #c8f5ec;
    --text: #1a2e2b;
    --muted: #6b9990;
    --border: #d4f0eb;
    --white: #ffffff;
    --card-shadow: 0 4px 20px rgba(0,180,155,.13);
    --card-hover: 0 12px 36px rgba(0,180,155,.22);
    --glass: rgba(255,255,255,.72);
}

/* ============================================================
    RESET
    ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: #f0faf8;
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

/* ============================================================
    HERO – gradient xanh + water drops effect
    ============================================================ */
.hero {
    background: linear-gradient(135deg, #00b09b 0%, #0abf8e 50%, #1de9b6 100%);
    padding: 2rem 1rem 1.6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
    /* Hiệu ứng sóng / bong bóng nước */
    .hero::before, .hero::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        background: rgba(255,255,255,.08);
        pointer-events: none;
    }

    .hero::before {
        width: 340px;
        height: 340px;
        top: -120px;
        left: -80px;
    }

    .hero::after {
        width: 260px;
        height: 260px;
        bottom: -100px;
        right: -60px;
    }

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.07);
    pointer-events: none;
}

.hero-bubble-1 {
    width: 180px;
    height: 180px;
    top: 10px;
    right: 15%;
}

.hero-bubble-2 {
    width: 90px;
    height: 90px;
    bottom: 20px;
    left: 20%;
}

.hero-bubble-3 {
    width: 50px;
    height: 50px;
    top: 30px;
    left: 40%;
}

.hero h1 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 .35rem;
    letter-spacing: -.5px;
    position: relative;
}

.hero-sub {
    color: rgba(255,255,255,.85);
    font-size: .95rem;
    margin-bottom: 1.2rem;
    position: relative;
}

/* Search bar */
.search-form {
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    position: relative;
}

    .search-form input {
        flex: 1;
        border: none;
        padding: .75rem 1.4rem;
        font-size: 1rem;
        outline: none;
        background: rgba(255,255,255,.96);
        color: var(--text);
    }

        .search-form input::placeholder {
            color: #aac8c2;
        }

    .search-form button {
        background: #009e85;
        color: #fff;
        border: none;
        padding: 0 1.4rem;
        font-size: 1rem;
        cursor: pointer;
        transition: background .2s;
        white-space: nowrap;
    }

        .search-form button:hover {
            background: #00806e;
        }

/* ============================================================
    CATEGORY PILLS (scroll ngang)
    ============================================================ */
.cat-scroll-wrap {
    background: var(--white);
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

    .cat-scroll-wrap::-webkit-scrollbar {
        display: none;
    }

.cat-scroll {
    display: flex;
    gap: .5rem;
    padding: .75rem 1rem;
    min-width: max-content;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    background: var(--leaf);
    border: 1.5px solid var(--border);
    transition: all .18s;
    white-space: nowrap;
}

    .cat-pill img.cat-pill-img {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
    }

    .cat-pill .cat-pill-icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .7rem;
        color: var(--muted);
    }

    .cat-pill:hover {
        background: var(--leaf2);
        color: var(--accent-dark);
        border-color: var(--accent);
    }

    .cat-pill.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        box-shadow: 0 3px 12px rgba(0,180,155,.3);
    }

/* ============================================================
    TAG CLOUD
    ============================================================ */
.tag-section {
    background: #f0faf8;
    border-bottom: 1px solid var(--border);
    padding: .6rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.tag-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
    margin-right: .2rem;
}

.tag-pill {
    display: inline-block;
    padding: .22rem .75rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 500;
    background: #fff;
    color: var(--accent-dark);
    border: 1.5px solid var(--border);
    text-decoration: none;
    transition: all .15s;
}

    .tag-pill:hover, .tag-pill.active {
        background: var(--accent);
        color: #fff;
        border-color: var(--accent);
        box-shadow: 0 2px 8px rgba(0,180,155,.25);
    }

/* ============================================================
    RESULTS BAR
    ============================================================ */
.results-bar {
    padding: .55rem 1rem;
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    background: #f8fffe;
    border-bottom: 1px solid var(--border);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: var(--leaf2);
    color: var(--accent-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .16rem .6rem;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s;
}

    .filter-badge:hover {
        background: var(--border);
    }

.clear-all {
    color: var(--accent-dark);
    font-size: .8rem;
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================================
    PRODUCT GRID
    ============================================================ */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
    padding: .85rem;
}

@media (min-width: 540px) {
    .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1rem; }
}

@media (min-width: 860px) {
    .menu-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; padding: 1.1rem 1.5rem; }
}

@media (min-width: 1180px) {
    .menu-grid { grid-template-columns: repeat(5, 1fr); gap: 1.2rem; padding: 1.2rem 2rem; }
}

@media (min-width: 1500px) {
    .menu-grid { grid-template-columns: repeat(6, 1fr); gap: 1.3rem; padding: 1.3rem 3rem; }
}

/* ============================================================
    PRODUCT CARD
    ============================================================ */
.menu-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
    border: 1.5px solid var(--border);
    position: relative;
}

    .menu-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--card-hover);
        border-color: var(--accent);
    }

    /* Dew / moisture drop effect trên card */
    .menu-card::before {
        content: '';
        position: absolute;
        top: 12px;
        right: 14px;
        width: 10px;
        height: 10px;
        background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(0,180,155,.35));
        border-radius: 50%;
        opacity: 0;
        transition: opacity .2s;
        pointer-events: none;
        z-index: 2;
    }

    .menu-card:hover::before {
        opacity: 1;
    }

/* Card image area */
.card-img-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e6faf6 0%, #c8f5ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

    .card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.card-img-placeholder {
    font-size: 2.8rem;
    color: var(--accent);
    opacity: .45;
}
/* Shimmer effect khi hover */
.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .45s;
}

.menu-card:hover .card-img-wrap::after {
    transform: translateX(100%);
}

/* Badges trên ảnh */
.card-badge-wrap {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
}

.card-badge {
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: 8px;
    background: rgba(255,255,255,.88);
    color: var(--accent-dark);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,180,155,.25);
}

/* Card body */
.card-body {
    padding: .75rem .9rem .85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.card-cat-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: .25rem;
}

.card-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem;
    margin-top: .1rem;
}

.card-tag {
    font-size: .66rem;
    background: var(--leaf);
    color: var(--accent-dark);
    padding: .1rem .42rem;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: background .15s;
}

    .card-tag:hover {
        background: var(--leaf2);
    }

/* Combo list */
.combo-list {
    margin-top: .3rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.combo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--leaf);
    border-radius: 7px;
    padding: .18rem .45rem;
    border: 1px solid var(--border);
    transition: background .15s;
    gap: .3rem;
}

    .combo-row:hover {
        background: var(--leaf2);
    }

.combo-name {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .25rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

    .combo-name i {
        color: var(--accent);
        font-size: .6rem;
        flex-shrink: 0;
    }

.combo-price {
    font-size: .78rem;
    font-weight: 800;
    color: var(--accent-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.combo-more {
    font-size: .68rem;
    color: var(--muted);
    font-style: italic;
    padding: .05rem .2rem;
}

/* ============================================================
    EMPTY STATE
    ============================================================ */
.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: var(--muted);
}

    .empty-state .icon {
        font-size: 4rem;
        color: var(--leaf2);
        margin-bottom: .8rem;
        display: block;
    }

    .empty-state p {
        font-size: 1rem;
    }

    .empty-state a {
        color: var(--accent-dark);
        font-weight: 700;
    }

/* ============================================================
    PAGINATION
    ============================================================ */
.pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    padding: 1rem 1rem 1.8rem;
    flex-wrap: wrap;
}

    .pager a, .pager span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 .5rem;
        border-radius: 10px;
        font-size: .88rem;
        font-weight: 600;
        text-decoration: none;
        transition: all .15s;
    }

    .pager a {
        background: var(--white);
        color: var(--muted);
        border: 1.5px solid var(--border);
    }

        .pager a:hover {
            background: var(--leaf);
            color: var(--accent-dark);
            border-color: var(--accent);
        }

    .pager span.current {
        background: var(--accent);
        color: #fff;
        border: 1.5px solid var(--accent);
        box-shadow: 0 3px 10px rgba(0,180,155,.3);
    }

    .pager span.dots {
        background: none;
        border: none;
        color: var(--muted);
        min-width: 20px;
    }

/* ============================================================
    SEARCH CLEAR BUTTON (Home/Index)
    ============================================================ */
.search-clear-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    background: rgba(255,255,255,.96);
    color: #aaa;
    border: none;
    border-left: 1px solid #eee;
    font-size: 1rem;
    text-decoration: none;
    transition: color .15s;
    flex-shrink: 0;
}

.search-clear-btn:hover {
    color: #e55;
}

/* ============================================================
    ADD TO CART BUTTON (Home/Index)
    ============================================================ */
.btn-add-cart {
    width: 100%;
    margin-top: .4rem;
    margin-bottom: .35rem;
    padding: .45rem .7rem;
    background: linear-gradient(135deg, #00b09b, #96c93d);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    box-shadow: 0 2px 8px rgba(0,176,155,.28);
    transition: opacity .18s, transform .1s;
}

.btn-add-cart:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* ============================================================
    COMBO SELECT MODAL (shared Home + Cart)
    ============================================================ */
.combo-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 3000;
    align-items: flex-end;
    justify-content: center;
}

.combo-modal-backdrop.open {
    display: flex;
}

.combo-modal {
    background: #fff;
    border-radius: 22px 22px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 1.5rem 1.2rem 2rem;
    animation: cmSlideUp .22s ease;
}

@keyframes cmSlideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* alias dùng trong Cart */
@keyframes slideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.combo-modal h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: #1a2e2b;
}

.combo-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .7rem 1rem;
    border-radius: 12px;
    border: 2px solid #d4f0eb;
    margin-bottom: .5rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.combo-option:hover,
.combo-option.selected {
    border-color: #00b09b;
    background: #edfaf7;
}

.combo-option .co-name {
    font-weight: 600;
    font-size: .93rem;
}

.combo-option .co-price {
    color: #00b09b;
    font-weight: 700;
    font-size: .93rem;
}

.cm-btn-close,
.btn-close-modal {
    width: 100%;
    padding: .7rem;
    border: none;
    background: #f0faf8;
    border-radius: 12px;
    font-size: .9rem;
    color: #6b9990;
    cursor: pointer;
    margin-top: .5rem;
    font-weight: 600;
}

/* ============================================================
    NAVBAR CART BADGE
    ============================================================ */
.cart-nav-link {
    position: relative;
}

.cart-badge-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ============================================================
    CART PAGE (/Cart/Index)
    ============================================================ */
.cart-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.2rem 1rem 3rem;
}

/* Brand header */
.cart-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(135deg, var(--g1), #96c93d);
    border-radius: 18px;
    margin-bottom: 1.4rem;
    box-shadow: 0 4px 18px rgba(0,176,155,.25);
    color: #fff;
}

.cart-brand img {
    height: 64px;
    border-radius: 12px;
    margin-bottom: .6rem;
    object-fit: contain;
}

.cart-brand .brand-icon {
    font-size: 2.8rem;
    margin-bottom: .4rem;
}

.cart-brand h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.5px;
}

.cart-brand p {
    margin: .25rem 0 0;
    font-size: .9rem;
    opacity: .88;
}

/* Section titles */
.section-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--g1);
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 1.4rem 0 .7rem;
    padding-bottom: .45rem;
    border-bottom: 2px solid var(--border);
}

/* Cart empty */
.cart-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--muted);
    font-size: 1rem;
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: .7rem;
    display: block;
    opacity: .45;
}

/* Cart item row */
.cart-item {
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .75rem 1rem;
    margin-bottom: .65rem;
    transition: box-shadow .18s;
}

.cart-item:hover {
    box-shadow: 0 3px 14px rgba(0,176,155,.13);
}

.cart-item-img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0faf8;
}

.cart-item-img-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: #f0faf8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-size {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .3rem;
}

.cart-item-price {
    font-size: .9rem;
    color: var(--g1);
    font-weight: 700;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
    flex-shrink: 0;
}

/* Quantity box */
.qty-box {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    background: #f0faf8;
}

.qty-box button {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--g1);
    font-weight: 700;
    transition: background .15s;
}

.qty-box button:hover {
    background: #e6faf6;
}

.qty-box input {
    width: 36px;
    text-align: center;
    border: none;
    background: none;
    font-size: .95rem;
    font-weight: 700;
    color: #1a2e2b;
    -moz-appearance: textfield;
}

.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Remove button */
.btn-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: .95rem;
    padding: 2px 4px;
    transition: color .15s;
}

.btn-remove:hover {
    color: #e74c3c;
}

/* Cart total */
.cart-total-box {
    background: linear-gradient(135deg, var(--g1), #96c93d);
    color: #fff;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .5rem;
}

.cart-total-box .label {
    font-size: .95rem;
    font-weight: 600;
}

.cart-total-box .amount {
    font-size: 1.35rem;
    font-weight: 800;
}

/* Customer form */
.form-row {
    margin-bottom: .85rem;
}

.form-row label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: .3rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: .7rem .95rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: .95rem;
    background: #f0faf8;
    color: #1a2e2b;
    transition: border-color .15s;
    font-family: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--g1);
    box-shadow: 0 0 0 3px rgba(0,176,155,.12);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

/* Notice box */
.notice-box {
    background: #fff8ed;
    border: 1.5px solid #f5c36d;
    border-radius: 12px;
    padding: .85rem 1rem;
    font-size: .85rem;
    color: #7a5a00;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.notice-box p {
    margin: 0;
}

.notice-box p + p {
    margin-top: .45rem;
}

.notice-box i {
    color: #f5a623;
    margin-right: .35rem;
}

/* Order button */
.btn-order {
    width: 100%;
    padding: .9rem;
    background: linear-gradient(135deg, var(--g1), #96c93d);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,176,155,.35);
    transition: opacity .18s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-order:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.btn-order:active {
    transform: translateY(0);
}

.btn-order:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Order success screen */
.order-success {
    display: none;
    text-align: center;
    background: var(--white);
    border-radius: 18px;
    border: 2px solid var(--border);
    padding: 2.5rem 1.5rem;
    box-shadow: 0 6px 28px rgba(0,176,155,.15);
}

.order-success .ok-icon {
    font-size: 4rem;
    color: var(--g1);
    margin-bottom: .8rem;
}

.order-success h3 {
    margin: 0 0 .5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.order-success p {
    color: var(--muted);
    margin-bottom: 1.2rem;
    font-size: .95rem;
    line-height: 1.5;
}

.order-success .code {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--g1);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1.5rem;
    background: var(--g1);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity .15s;
}

.btn-back:hover {
    opacity: .88;
    color: #fff;
}

/* Cart responsive */
@media (max-width: 480px) {
    .cart-item-name { font-size: .88rem; }
    .cart-total-box .amount { font-size: 1.15rem; }
}
/* ===== SITE FOOTER ===== */
.site-footer {
    background: #0f2b26;
    color: #c8e6e0;
    padding: 2.5rem 1rem 1rem;
    margin-top: 3rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #4ecdc4;
    letter-spacing: .5px;
}
.footer-logo-img {
    max-height: 52px;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: .3rem;
    filter: brightness(0) invert(1);
}
.footer-slogan {
    font-size: .92rem;
    color: #a0c8c0;
    margin-top: .3rem;
}
.footer-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}
.footer-col {
    min-width: 170px;
    flex: 1 1 170px;
    max-width: 240px;
    font-size: .88rem;
    line-height: 1.8;
}
.footer-col-title {
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: .3rem;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.footer-col a {
    color: #c8e6e0;
    text-decoration: none;
}
.footer-col a:hover {
    color: #4ecdc4;
    text-decoration: underline;
}
.footer-copy {
    text-align: center;
    font-size: .78rem;
    color: #5a9090;
    border-top: 1px solid #1e4040;
    padding-top: 1rem;
}

/* ===== FLOATING ACTION BUTTONS ===== */
.float-btns {
    position: fixed;
    bottom: 28px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.22);
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
    animation: float-pulse 2.5s ease-in-out infinite;
}

.float-btn:hover {
    transform: scale(1.13);
    box-shadow: 0 6px 24px rgba(0,0,0,.3);
    animation: none;
}

.float-btn-zalo {
    background: #0068ff;
    padding: 11px;
}

.float-btn-zalo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /*filter: brightness(0) invert(1);*/
}

.float-btn-call {
    background: #25d366;
    color: #fff;
    font-size: 1.3rem;
}

@keyframes float-pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 4px 18px rgba(0,0,0,.22); }
    50%       { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
}

/* ===== FOOTER QR ===== */
.footer-qr-img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    /*border: 3px solid #1e4040;*/
    /*margin-top: .4rem;*/
    display: block;
    image-rendering: crisp-edges;
}

.footer-col-qr {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 600px) {
    .footer-col-qr { align-items: center; }
    .footer-qr-img { width: 170px; height: 170px; }
}

/* ===== CAPTCHA ===== */
.captcha-box {
    display: flex;
    align-items: center;
    gap: .7rem;
    background: #f0faf8;
    border: 1.5px solid var(--border, #d4f0eb);
    border-radius: 12px;
    padding: .6rem 1rem;
    width: 100%;
}

.captcha-question {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #00b09b;
    letter-spacing: .5px;
    white-space: nowrap;
}

.captcha-input {
    width: 80px !important;
    padding: .5rem .7rem !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border: 1.5px solid var(--border, #d4f0eb) !important;
    border-radius: 10px !important;
    background: #fff !important;
    flex-shrink: 0;
}

.captcha-input:focus {
    outline: none;
    border-color: #00b09b !important;
    box-shadow: 0 0 0 3px rgba(0,176,155,.12);
}

.captcha-refresh {
    background: none;
    border: 1.5px solid var(--border, #d4f0eb);
    border-radius: 10px;
    padding: .45rem .65rem;
    cursor: pointer;
    color: #00b09b;
    font-size: .9rem;
    transition: all .15s;
    flex-shrink: 0;
    line-height: 1;
}

.captcha-refresh:hover {
    background: #e6faf6;
    border-color: #00b09b;
}

/* ===== PAGESIZE SELECTOR ===== */
.pagesize-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    color: var(--muted);
    flex-shrink: 0;
}

.pagesize-btn {
    padding: .2rem .55rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: .8rem;
    color: var(--muted);
    text-decoration: none;
    transition: all .15s;
    font-weight: 600;
}

.pagesize-btn:hover,
.pagesize-btn.active {
    background: var(--primary, #00b09b);
    color: #fff;
    border-color: var(--primary, #00b09b);
    text-decoration: none;
}
