/* Theme base — tối giản, đọc tốt trên mobile, critical CSS gọn (docs/12 §6) */
:root {
  --bg: #ffffff; --text: #1a1c1e; --muted: #5c656e; --border: #e3e5e9;
  --accent: #0f9d6b; --accent-dark: #0b7d54; --surface: #f4f5f7;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; border-radius: 10px; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }

.site-header { display: flex; align-items: center; gap: 24px; max-width: 1080px; margin: 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.brand { font-weight: 800; font-size: 18px; color: var(--accent-dark); }
.site-header nav { display: flex; gap: 16px; flex: 1; }
.site-header nav a:hover, .cart-link:hover { color: var(--accent); }
.cart-link { font-weight: 600; }
.site-footer { border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 13px; padding: 20px; }
.footer-custom { max-width: 1080px; margin: 0 auto 12px; text-align: left; color: var(--text); }
.footer-map { max-width: 1080px; margin: 0 auto 12px; }
.footer-map iframe { border: 0; border-radius: 10px; }
.footer-addr { margin: 4px 0; }

/* Nút nổi liên hệ (Flatsome-style) — cố định, thuần CSS */
html { scroll-behavior: smooth; }
.float-contact { position: fixed; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.float-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; box-shadow: 0 3px 10px rgba(0,0,0,.22); }
.float-btn.call { background: #1ca05c; animation: sf-ring 1.4s ease-in-out infinite; }
.float-btn.zalo { background: #0068ff; }
.float-btn.mess { background: #0084ff; }
.float-btn.top { background: #444; }
.float-btn:hover { filter: brightness(1.08); }
@keyframes sf-ring { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .float-btn.call { animation: none; } }

.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 600; padding: 11px 22px; border-radius: 9px; border: 0; font-size: 15px; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.hero { text-align: center; padding: 48px 16px; }
.hero h1 { font-size: 34px; margin: 0 0 8px; }
.hero p { color: var(--muted); margin: 0 0 20px; }

.grid-section h1, .grid-section h2 { margin: 24px 0 16px; }
.collection-desc { color: var(--muted); margin: -8px 0 18px; max-width: 720px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.product-card h3 { font-size: 15px; margin: 10px 0 4px; font-weight: 600; }
.product-card .price { color: var(--accent-dark); font-weight: 700; margin: 0; }
.product-card img, .ph { aspect-ratio: 1; object-fit: cover; width: 100%; }
.ph { background: var(--surface); border-radius: 10px; }
.ph.big { aspect-ratio: 1; }

.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 16px; }
.product-info h1 { margin: 0 0 6px; }
.product-info .price { font-size: 22px; font-weight: 800; color: var(--accent-dark); }
.product-info form { display: grid; gap: 6px; max-width: 320px; margin: 16px 0 24px; }
.product-info label { font-size: 13px; color: var(--muted); font-weight: 600; }
.product-info select, .product-info input,
.review-form input, .review-form select, .review-form textarea { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.description { color: var(--muted); }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Đánh giá sản phẩm */
.reviews { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.reviews h2 { margin: 0 0 16px; font-size: 20px; }
.review-thanks { color: var(--accent-dark); font-weight: 600; }
.review-empty { color: var(--muted); }
.review-list { list-style: none; margin: 0 0 24px; padding: 0; }
.review-item { padding: 14px 0; border-top: 1px solid var(--border); }
.review-head { display: flex; align-items: center; gap: 10px; }
.review-stars { color: var(--accent); letter-spacing: 1px; }
.review-body { color: var(--muted); margin-top: 4px; }
.review-form { display: grid; gap: 6px; max-width: 440px; margin-top: 8px; }
.review-form h3 { margin: 0 0 4px; font-size: 16px; }
.review-form label { font-size: 13px; color: var(--muted); font-weight: 600; }
.review-form textarea { resize: vertical; }
.review-form .btn { margin-top: 8px; justify-self: start; }

.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
.cart-table .num { text-align: right; font-weight: 600; }
.cart-table .total-row td { font-weight: 800; border-bottom: 0; }
.qty-form input { width: 64px; padding: 7px; border: 1px solid var(--border); border-radius: 7px; }
.muted { color: var(--muted); }

.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.checkout-form { display: grid; gap: 6px; }
.checkout-form h2 { font-size: 17px; margin: 14px 0 4px; }
.checkout-form label { font-size: 13px; color: var(--muted); font-weight: 600; }
.checkout-form input, .checkout-form textarea { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.checkout-form .radio { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text); font-weight: 500; }
.checkout-form .btn { margin-top: 14px; }
.checkout-form .error { color: #c0392b; background: #fdecea; padding: 10px 12px; border-radius: 8px; }
.order-summary { background: var(--surface); border-radius: 12px; padding: 18px; }
.order-summary h2 { margin: 0 0 12px; font-size: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 16px; }

.thankyou-page { text-align: center; padding: 56px 16px; }
.bank-box { background: var(--surface); border-radius: 12px; padding: 20px; max-width: 420px; margin: 20px auto; text-align: left; }

@media (max-width: 760px) {
  .product-page, .checkout-grid { grid-template-columns: 1fr; }
}
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.post-card { display: block; color: inherit; text-decoration: none; }
.post-card img, .post-card .ph { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--muted); }
.post-card h3 { font-size: 16px; margin: 10px 0 4px; }
.post-card .excerpt { color: var(--muted); font-size: 13.5px; margin: 0; }
.post-single, .page-single { max-width: 760px; margin: 0 auto; }
.post-single .post-cover { width: 100%; border-radius: 12px; margin: 12px 0; }
.post-meta { color: var(--muted); font-size: 13px; }
.post-body, .page-body { line-height: 1.7; }
.post-body img, .page-body img { max-width: 100%; border-radius: 8px; }
.page-builder { display: flex; flex-direction: column; gap: 8px; }
.blk-section { margin: 8px 0; }
.blk-heading { margin: 8px 0; }
.blk-text { line-height: 1.7; }
.blk-image { width: 100%; border-radius: 10px; }
.blk-btn { margin: 8px 0; }
.blk-divider { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.blk-columns { display: grid; gap: 18px; }
.blk-col { min-width: 0; }
@media (max-width: 760px) { .blk-columns { grid-template-columns: 1fr !important; } }
.blk-booking { margin: 12px 0; }
.blk-booking .booking-widget { display: grid; gap: 6px; max-width: 460px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.blk-booking .booking-widget label { font-size: 13px; color: var(--muted); font-weight: 600; }
.blk-booking .booking-widget input, .blk-booking .booking-widget select { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.blk-booking .booking-widget .btn { margin-top: 10px; }

/* ── Menu điều hướng (header/footer) + widget areas ──────── */
.site-nav .menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; align-items: center; }
.site-nav .menu li { position: relative; }
.site-nav .menu > li > a { display: block; padding: 6px 10px; border-radius: 8px; }
.site-nav .menu .submenu { list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; left: 0; min-width: 180px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); display: none; z-index: 40; }
.site-nav .menu li.has-sub:hover .submenu, .site-nav .menu li.has-sub:focus-within .submenu { display: block; }
.site-nav .menu .submenu a { display: block; padding: 7px 10px; border-radius: 7px; white-space: nowrap; }
.site-nav .menu .submenu a:hover { background: var(--surface-2, #f5f5f5); }
.footer-nav .menu { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; padding: 0; margin: 0 0 10px; justify-content: center; }
.footer-nav .submenu { display: flex; gap: 10px; list-style: none; padding: 4px 0 0; margin: 0; }
.footer-widgets, .header-widgets { max-width: var(--content-w, 1100px); margin: 0 auto; padding: 12px 16px; }
@media (max-width: 760px) { .site-nav .menu .submenu { position: static; display: block; box-shadow: none; border: 0; padding-left: 12px; } }
