/* Pomy's ordering site (4.0.0): Bootstrap 5, a warm orange, Be Vietnam Pro;
   phone first. */
:root {
    --brand: #f07a28;
    --brand-dark: #c9580f;
    --brand-soft: #fff1e6;
    --ink: #1f2a37;
    --muted: #6b7280;
    --line: #e7e9ee;
    --bg: #f6f7f9;
    --bs-body-font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-link-color-rgb: 201, 88, 15;
    --bs-link-hover-color-rgb: 160, 64, 8;
}
body { background: var(--bg); font-size: 15px; }
a { text-decoration: none; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border-color: var(--brand); color: var(--brand-dark); }
.btn-outline-brand:hover { background: var(--brand-soft); color: var(--brand-dark); }
.text-brand { color: var(--brand-dark) !important; }

/* The bar above and the header. */
.topbar { background: var(--ink); color: #d1d5db; padding: .35rem 0; }
.topbar a { color: #fff; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; font-size: 1.25rem; white-space: nowrap; min-width: 0; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .site-header .brand { font-size: 1.02rem; flex: 1; } }
.brand-mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.1rem; }
.search .form-control { border-radius: 2rem 0 0 2rem; border-color: var(--brand); }
.search .btn { border-radius: 0 2rem 2rem 0; padding-inline: 1rem; }
.hotline { align-items: center; gap: .5rem; color: var(--ink); line-height: 1.1; }
.hotline i { font-size: 1.8rem; color: var(--brand); }
.hotline small { display: block; color: var(--muted); }
.btn-cart { position: relative; font-size: 1.5rem; color: var(--ink); padding: .25rem .5rem; flex: none; }
.cart-count { position: absolute; top: 0; right: 0; min-width: 1.2rem; height: 1.2rem; border-radius: .6rem; background: var(--brand); color: #fff; font-size: .72rem; line-height: 1.2rem; text-align: center; padding: 0 .25rem; }
.catbar { background: var(--brand); }
.catbar .nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.catbar .nav-link { color: #fff; font-weight: 500; font-size: .92rem; white-space: nowrap; padding: .6rem .8rem; }
.catbar .nav-link:hover, .catbar .nav-link.active { background: rgba(0, 0, 0, .12); }

/* Home. */
.hero { border-radius: 1rem; background: linear-gradient(120deg, #ffb26b 0%, var(--brand) 55%, #e2551b 100%); color: #fff; padding: 2.5rem 2rem; position: relative; overflow: hidden; }
.hero h1 { font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.hero p { max-width: 38rem; opacity: .95; }
.hero .paws { position: absolute; right: -1rem; bottom: -2rem; font-size: 12rem; opacity: .12; transform: rotate(-18deg); }
.hero .btn-light { color: var(--brand-dark); font-weight: 600; }
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem; display: flex; gap: .6rem; align-items: center; font-size: .9rem; }
.perk i { font-size: 1.6rem; color: var(--brand); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .6rem; }
@media (max-width: 575.98px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: .4rem; } .cat-tile { font-size: .78rem; padding: .5rem .25rem; } .cat-tile img { width: 44px; height: 44px; } }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: .75rem .5rem; text-align: center; color: var(--ink); font-size: .88rem; font-weight: 500; }
.cat-tile:hover { border-color: var(--brand); color: var(--brand-dark); }
.cat-tile img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto .4rem; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin: 1.6rem 0 .75rem; border-bottom: 2px solid var(--brand); }
.section-head h2 { font-size: 1.15rem; font-weight: 700; margin: 0; background: var(--brand); color: #fff; padding: .4rem .9rem; border-radius: .5rem .5rem 0 0; }
.section-head a { margin-left: auto; font-size: .9rem; }
/* On the home page, one row a category: five wide, four on a phone. */
@media (max-width: 991.98px) { .home-row .card-product:nth-child(n+5) { display: none; } }

/* Products. */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 576px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .grid { grid-template-columns: repeat(5, 1fr); } }
.card-product { background: #fff; border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.card-product:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.card-product .thumb { aspect-ratio: 1; background: #fff; display: block; position: relative; overflow: hidden; }
.card-product .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.card-product .body { padding: .5rem .65rem .65rem; display: flex; flex-direction: column; gap: .25rem; flex-grow: 1; }
.card-product .name { color: var(--ink); font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { color: #d6331f; font-weight: 700; }
.card-product .actions { margin-top: auto; display: flex; gap: .4rem; align-items: center; }
.sold-out { position: absolute; inset: auto .5rem .5rem auto; background: rgba(31, 42, 55, .85); color: #fff; font-size: .75rem; padding: .15rem .5rem; border-radius: 1rem; }
.card-product.out .thumb img { opacity: .5; }

/* One product. */
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: .75rem; aspect-ratio: 1; display: grid; place-items: center; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 1rem; }
.gallery-thumbs { display: flex; gap: .4rem; margin-top: .5rem; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid var(--line); border-radius: .5rem; background: #fff; padding: 2px; width: 4rem; height: 4rem; flex: none; }
.gallery-thumbs button.active { border-color: var(--brand); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.variants { display: flex; flex-wrap: wrap; gap: .4rem; }
.variants .btn { border-radius: .5rem; font-size: .88rem; }
.variants .btn.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.variants .btn:disabled { text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; background: #fff; }
.qty button { border: 0; background: #f3f4f6; width: 2.2rem; }
.qty input { width: 3.2rem; border: 0; text-align: center; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* The cart and the order. */
.cart-line { display: flex; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 3.8rem; height: 3.8rem; object-fit: contain; border: 1px solid var(--line); border-radius: .5rem; background: #fff; flex: none; }
.cart-line .info { flex-grow: 1; min-width: 0; font-size: .9rem; }
.cart-line .remove { color: var(--muted); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.panel h2 { font-size: 1.05rem; font-weight: 700; }
.receive-choice .btn { border-radius: .5rem; }
.receive-choice .btn-check:checked + .btn { background: var(--brand); border-color: var(--brand); color: #fff; }
.notice { background: #fff8e6; border: 1px solid #ffe2a8; border-radius: .5rem; padding: .6rem .75rem; font-size: .88rem; }
.policy h3 { font-size: 1.05rem; margin-top: 1rem; }

/* Footer, floating contact. */
.site-footer { background: #fff; border-top: 3px solid var(--brand); margin-top: 2rem; }
.site-footer h6 { font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .03em; }
.site-footer li { margin-bottom: .35rem; }
.site-footer .copyright { background: var(--ink); color: #d1d5db; }
.float-contact { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 1030; }
.float-btn { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.3rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.float-btn.zalo { background: #0068ff; }
.float-btn.call { background: #18a058; }
.float-btn:hover { color: #fff; filter: brightness(1.08); }
.breadcrumb { font-size: .88rem; }
