/*
Theme Name: Cu Đơ Hà Tĩnh
Theme URI: https://cudohathinh.vn
Author: Cu Đơ Hà Tĩnh
Description: Website bán đặc sản kẹo cu đơ truyền thống Hà Tĩnh – Full SPA với giỏ hàng, đặt hàng và quản lý backend WordPress.
Version: 1.0.0
License: Private
Text Domain: cudohathinh
*/

:root {
  --amber: #c8860a;
  --amber-light: #f0a500;
  --amber-pale: #fdf3dc;
  --brown: #4a2c0a;
  --brown-mid: #7a4a1a;
  --cream: #faf5ea;
  --red: #b52a1a;
  --green: #2d7a2d;
  --white: #ffffff;
  --text: #2a1a06;
  --text-muted: #7a6040;
  --border: #e8d5a0;
  --shadow: 0 2px 16px rgba(74,44,10,0.08);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Be Vietnam Pro', sans-serif; background: var(--cream); color: var(--text); }

/* ── TOPBAR ── */
.topbar { background: var(--brown); color: #f0d080; font-size: 13px; padding: 8px 0; text-align: center; letter-spacing: .04em; }
.topbar a { color: #f0d080; text-decoration: none; font-weight: 600; }
.topbar span { margin: 0 8px; opacity: .5; }

/* ── HEADER ── */
header { background: var(--white); border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 200; box-shadow: var(--shadow); }
.header-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer; }
.logo-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--amber), var(--brown)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown); line-height: 1.1; }
.logo-text small { display: block; font-family: 'Be Vietnam Pro', sans-serif; font-size: 10px; color: var(--amber); letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a { font-size: 14px; font-weight: 500; color: var(--brown); text-decoration: none; padding: 8px 14px; border-radius: 6px; transition: all .2s; cursor: pointer; }
nav a:hover, nav a.active { background: var(--amber-pale); color: var(--amber); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: 10px; min-width: 200px; box-shadow: 0 8px 32px rgba(74,44,10,.13); z-index: 300; }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 18px; font-size: 13px; color: var(--brown-mid); border-radius: 0; transition: all .15s; }
.dropdown-menu a:hover { background: var(--amber-pale); padding-left: 24px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.cart-btn { display: flex; align-items: center; gap: 8px; background: var(--amber); color: var(--white); padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; transition: background .2s; position: relative; }
.cart-btn:hover { background: var(--brown); }
.cart-badge { background: var(--red); color: #fff; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: absolute; top: -6px; right: -6px; }

/* ── PAGES ── */
.page { display: none; }
.page.active { display: block; }

/* ── FREESHIP BAR ── */
.freeship-bar { background: var(--red); color: #fff; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.freeship-bar span { margin: 0 10px; opacity: .6; }

/* ── HERO ── */
.hero { background: linear-gradient(135deg, #4a2c0a 0%, #7a3a10 40%, #c8860a 100%); color: #fff; padding: 80px 24px 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: 5px 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(34px, 6vw, 58px); font-weight: 900; line-height: 1.15; margin-bottom: 18px; }
.hero h1 em { color: #f0d060; font-style: normal; }
.hero p { font-size: 15px; line-height: 1.7; max-width: 580px; margin: 0 auto 28px; opacity: .88; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: #f0d060; color: var(--brown); padding: 13px 30px; border-radius: 40px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: all .2s; box-shadow: 0 4px 20px rgba(0,0,0,.2); border: none; font-family: inherit; }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }

/* ── SECTION ── */
.wrap { max-width: 1140px; margin: 0 auto; padding: 60px 24px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--brown); text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 36px; }
.divider { display: block; width: 56px; height: 3px; background: linear-gradient(90deg, var(--amber), var(--amber-light)); border-radius: 2px; margin: 10px auto 14px; }

/* ── INTRO BOX ── */
.intro-box { background: var(--white); border-radius: 18px; border: 1px solid var(--border); padding: 44px 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media(max-width:680px){ .intro-box { grid-template-columns: 1fr; padding: 28px 20px; } }
.intro-img { background: linear-gradient(135deg, #f0d060, #c8860a); border-radius: 12px; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 72px; }
.intro-text h2 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--brown); margin-bottom: 14px; font-weight: 700; }
.intro-text p { font-size: 14px; line-height: 1.8; color: var(--text-muted); margin-bottom: 10px; }

/* ── BRANDS ── */
.brands-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
@media(max-width:760px){ .brands-grid { grid-template-columns: repeat(2,1fr); } }
.brand-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 14px; text-align: center; cursor: pointer; transition: all .2s; }
.brand-card:hover { background: var(--amber-pale); border-color: var(--amber); transform: scale(1.04); }
.brand-icon { font-size: 30px; margin-bottom: 8px; }
.brand-name { font-size: 12px; font-weight: 600; color: var(--brown); }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 20px; }
.product-card { background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--border); transition: all .25s; cursor: pointer; position: relative; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(74,44,10,.14); border-color: var(--amber); }
.product-img-box { width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, var(--amber-pale), #ffe9a0); display: flex; align-items: center; justify-content: center; font-size: 52px; position: relative; overflow: hidden; }
.product-img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.freeship-tag { position: absolute; top: 8px; left: 8px; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .04em; text-transform: uppercase; }
.product-info { padding: 12px 14px 14px; }
.product-name { font-size: 13px; font-weight: 600; color: var(--brown); margin-bottom: 5px; line-height: 1.3; }
.product-price { font-size: 15px; font-weight: 700; color: var(--amber); margin-bottom: 3px; }
.product-views { font-size: 11px; color: var(--text-muted); }
.btn-buy { display: block; width: 100%; background: var(--amber); color: #fff; border: none; padding: 8px 0; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 10px; transition: background .2s; font-family: inherit; }
.btn-buy:hover { background: var(--brown); }

/* ── NEWS ── */
.news-section { background: var(--amber-pale); border-radius: 20px; padding: 44px 28px; max-width: 1140px; margin: 0 auto 40px; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); gap: 20px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: all .2s; }
.news-card:hover { box-shadow: 0 8px 28px rgba(74,44,10,.12); transform: translateY(-3px); }
.news-img { background: linear-gradient(135deg, var(--amber-pale), #ffe9a0); aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; font-size: 34px; position: relative; }
.news-tag { position: absolute; bottom: 7px; left: 7px; background: var(--amber); color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.news-body { padding: 12px 14px; }
.news-title { font-size: 13px; font-weight: 600; color: var(--brown); line-height: 1.4; }
.news-date { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ── CONTACT STRIP ── */
.contact-strip { background: linear-gradient(90deg, var(--brown), var(--brown-mid)); color: #fff; text-align: center; padding: 40px 24px; }
.contact-strip h3 { font-family: 'Playfair Display', serif; font-size: 22px; margin-bottom: 8px; }
.contact-strip p { opacity: .8; font-size: 14px; margin-bottom: 16px; }
.contact-phone { display: inline-block; font-size: 26px; font-weight: 700; color: #f0d060; text-decoration: none; }
.contact-phone:hover { color: #fff; }

/* ── FOOTER ── */
footer { background: var(--brown); color: #d0b080; padding: 44px 24px 20px; }
.footer-grid { max-width: 1140px; margin: 0 auto 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
@media(max-width:760px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #f0d060; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; font-weight: 600; }
.footer-grid p, .footer-grid a { font-size: 13px; line-height: 1.9; color: #a08060; text-decoration: none; display: block; transition: color .2s; }
.footer-grid a:hover { color: #f0d060; }
.footer-bottom { max-width: 1140px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; text-align: center; font-size: 12px; color: #806040; }

/* ── PRODUCT DETAIL ── */
.breadcrumb { max-width: 1140px; margin: 0 auto; padding: 16px 24px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--amber); text-decoration: none; cursor: pointer; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.product-detail { max-width: 1140px; margin: 0 auto; padding: 28px 24px 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media(max-width:760px){ .product-detail { grid-template-columns: 1fr; gap: 24px; } }
.pd-images { position: sticky; top: 90px; }
.pd-main-img { background: linear-gradient(135deg, var(--amber-pale), #ffe9a0); border-radius: 16px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 100px; border: 2px solid var(--border); margin-bottom: 12px; overflow: hidden; position: relative; }
.pd-main-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumb { width: 70px; height: 70px; background: linear-gradient(135deg, #fdf3dc, #ffe9a0); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 26px; border: 2px solid transparent; cursor: pointer; transition: border-color .2s; overflow: hidden; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.pd-thumb.active, .pd-thumb:hover { border-color: var(--amber); }
.pd-badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.pd-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--brown); line-height: 1.2; margin-bottom: 10px; }
.pd-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.stars { color: #f0a500; font-size: 16px; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--text-muted); }
.pd-price-box { background: var(--amber-pale); border-radius: 12px; padding: 18px 20px; margin-bottom: 20px; }
.pd-price { font-size: 32px; font-weight: 700; color: var(--amber); }
.pd-price-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.pd-qty { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pd-qty label { font-size: 14px; font-weight: 600; color: var(--brown); }
.qty-ctrl { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-ctrl button { background: var(--amber-pale); border: none; width: 36px; height: 36px; font-size: 18px; font-weight: 700; cursor: pointer; color: var(--brown); transition: background .2s; font-family: inherit; }
.qty-ctrl button:hover { background: var(--border); }
.qty-ctrl input { width: 48px; height: 36px; border: none; text-align: center; font-size: 15px; font-weight: 600; background: #fff; font-family: inherit; color: var(--brown); }
.pd-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.btn-addcart { flex: 1; background: var(--white); border: 2px solid var(--amber); color: var(--amber); padding: 13px 20px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-addcart:hover { background: var(--amber-pale); }
.btn-buynow { flex: 2; background: var(--amber); border: none; color: #fff; padding: 13px 20px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn-buynow:hover { background: var(--brown); }
.pd-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.pd-feature { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--brown-mid); }
.pd-desc { font-size: 14px; line-height: 1.8; color: var(--text-muted); }
.pd-desc h4 { font-size: 16px; color: var(--brown); font-weight: 700; margin-bottom: 10px; margin-top: 16px; }
.pd-desc ul { padding-left: 18px; }
.pd-desc ul li { margin-bottom: 5px; }

/* ── CART ── */
.cart-layout { max-width: 1140px; margin: 0 auto; padding: 32px 24px 60px; display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media(max-width:900px){ .cart-layout { grid-template-columns: 1fr; } }
.cart-title { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; color: var(--brown); margin-bottom: 24px; }
.cart-empty { text-align: center; padding: 60px 24px; background: var(--white); border-radius: 16px; border: 1px solid var(--border); }
.cart-empty .empty-icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty p { color: var(--text-muted); margin-bottom: 20px; }
.cart-table { background: var(--white); border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.ci-img { width: 80px; height: 80px; background: linear-gradient(135deg, var(--amber-pale), #ffe9a0); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; overflow: hidden; }
.ci-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ci-name { font-size: 14px; font-weight: 600; color: var(--brown); margin-bottom: 4px; }
.ci-brand { font-size: 12px; color: var(--text-muted); }
.ci-price { font-size: 15px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.ci-qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.ci-qty button { background: var(--amber-pale); border: none; width: 30px; height: 30px; font-size: 16px; cursor: pointer; color: var(--brown); font-family: inherit; }
.ci-qty button:hover { background: var(--border); }
.ci-qty span { width: 36px; text-align: center; font-size: 14px; font-weight: 600; }
.ci-del { background: none; border: none; font-size: 18px; cursor: pointer; color: #ccc; transition: color .2s; padding: 4px; }
.ci-del:hover { color: var(--red); }
.cart-summary { background: var(--white); border-radius: 16px; border: 1px solid var(--border); padding: 24px; position: sticky; top: 90px; }
.cs-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--brown); margin-bottom: 20px; }
.cs-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cs-row:last-of-type { border-bottom: none; }
.cs-row.total { font-weight: 700; font-size: 16px; color: var(--brown); padding-top: 14px; }
.cs-row .val { color: var(--amber); font-weight: 600; }
.cs-row.total .val { font-size: 20px; color: var(--amber); }
.cs-freeship { background: #edfce9; border: 1px solid #b0e8a0; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #2d7a2d; margin: 14px 0; font-weight: 500; }
.btn-checkout { display: block; width: 100%; background: var(--amber); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 16px; transition: background .2s; }
.btn-checkout:hover { background: var(--brown); }
.btn-continue { display: block; width: 100%; background: transparent; color: var(--brown); border: 2px solid var(--border); padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; margin-top: 10px; transition: all .2s; }
.btn-continue:hover { border-color: var(--amber); color: var(--amber); }
.checkout-form { background: var(--white); border-radius: 16px; border: 1px solid var(--border); padding: 24px; margin-top: 24px; }
.cf-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--brown); font-weight: 700; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media(max-width:540px){ .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--brown-mid); }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--cream); transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--amber); background: #fff; }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-order { display: block; width: 100%; background: var(--green); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 6px; transition: background .2s; }
.btn-order:hover { background: #1e5c1e; }

/* ── CONTACT PAGE ── */
.contact-page { max-width: 1140px; margin: 0 auto; padding: 40px 24px 60px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media(max-width:760px){ .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card { background: linear-gradient(135deg, var(--brown), var(--brown-mid)); color: #fff; border-radius: 18px; padding: 40px 36px; }
.contact-info-card h2 { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.contact-info-card p { opacity: .8; font-size: 14px; line-height: 1.7; margin-bottom: 30px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.cinfo-icon { width: 44px; height: 44px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cinfo-text strong { display: block; font-size: 13px; color: #f0d060; font-weight: 600; letter-spacing: .05em; margin-bottom: 3px; }
.cinfo-text span { font-size: 15px; font-weight: 500; }
.social-row { display: flex; gap: 10px; margin-top: 28px; }
.social-btn { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; transition: background .2s; text-decoration: none; }
.social-btn:hover { background: rgba(255,255,255,.3); }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 36px; }
.contact-form-card h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--brown); margin-bottom: 6px; }
.contact-form-card .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.btn-send { display: block; width: 100%; background: var(--amber); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; margin-top: 4px; transition: background .2s; }
.btn-send:hover { background: var(--brown); }
.map-embed { margin-top: 40px; border-radius: 16px; overflow: hidden; border: 2px solid var(--border); box-shadow: 0 4px 24px rgba(74,44,10,.10); }
.map-embed iframe { display: block; width: 100%; }
@media (max-width: 767px) { .map-embed iframe { height: 260px; } }
.faq-section { margin-top: 48px; }
.faq-section h3 { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--brown); font-weight: 700; margin-bottom: 20px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 14px 18px; font-weight: 600; font-size: 14px; color: var(--brown); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.faq-q:hover { background: var(--amber-pale); }
.faq-q .arrow { transition: transform .3s; font-size: 12px; color: var(--amber); }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 14px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.faq-a.open { display: block; }

/* ── TOAST ── */
#toast { position: fixed; bottom: 24px; right: 24px; background: var(--brown); color: #f0d060; padding: 14px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 9999; opacity: 0; transform: translateY(20px); transition: all .3s; pointer-events: none; box-shadow: 0 8px 32px rgba(74,44,10,.3); }
#toast.show { opacity: 1; transform: translateY(0); }

/* ── ORDER SUCCESS ── */
.order-success { text-align: center; padding: 60px 24px; }
.order-success .ok-icon { font-size: 72px; margin-bottom: 16px; }
.order-success h2 { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--brown); font-weight: 700; margin-bottom: 10px; }
.order-success p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.product-card { animation: fadeUp .35s ease both; }
.product-card:nth-child(1){animation-delay:.04s} .product-card:nth-child(2){animation-delay:.08s}
.product-card:nth-child(3){animation-delay:.12s} .product-card:nth-child(4){animation-delay:.16s}
.product-card:nth-child(5){animation-delay:.20s} .product-card:nth-child(6){animation-delay:.24s}
.product-card:nth-child(7){animation-delay:.28s} .product-card:nth-child(8){animation-delay:.32s}

/* ── HAMBURGER ── */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px; transition: background .2s; }
.hamburger:hover { background: var(--amber-pale); }
.hamburger span { display: block; height: 2px; background: var(--brown); border-radius: 2px; transition: all .3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV ── */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.mobile-nav.open { pointer-events: all; }
.mobile-nav-overlay { position: absolute; inset: 0; background: rgba(30,10,0,.5); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.mobile-nav.open .mobile-nav-overlay { opacity: 1; }
.mobile-nav-drawer { position: absolute; top: 0; right: 0; width: min(300px, 85vw); height: 100%; background: var(--white); transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); overflow-y: auto; box-shadow: -8px 0 40px rgba(74,44,10,.18); display: flex; flex-direction: column; }
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--amber-pale); }
.mobile-nav-logo { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--brown); }
.mobile-nav-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--brown-mid); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.mobile-nav-close:hover { background: var(--border); }
.mobile-nav-links { flex: 1; padding: 12px 0; }
.mobile-nav-links a { display: flex; align-items: center; gap: 12px; padding: 14px 22px; font-size: 15px; font-weight: 500; color: var(--brown); text-decoration: none; cursor: pointer; border-bottom: 1px solid rgba(232,213,160,.4); transition: all .15s; }
.mobile-nav-links a:hover, .mobile-nav-links a.active { background: var(--amber-pale); color: var(--amber); padding-left: 28px; }
.mobile-nav-links .mn-icon { font-size: 18px; width: 24px; text-align: center; }
.mobile-nav-sub { background: rgba(253,243,220,.6); border-left: 3px solid var(--amber); margin: 0; }
.mobile-nav-sub a { font-size: 13.5px; padding: 11px 22px 11px 42px; color: var(--brown-mid); }
.mobile-nav-footer { padding: 18px 20px; background: var(--brown); color: #f0d060; }
.mobile-nav-footer p { font-size: 12px; opacity: .7; margin-bottom: 6px; }
.mobile-nav-footer a { font-size: 18px; font-weight: 700; color: #f0d060; text-decoration: none; display: block; }

/* ── MOBILE BOTTOM BAR ── */
.mobile-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); z-index: 400; box-shadow: 0 -4px 20px rgba(74,44,10,.1); padding: 0 4px env(safe-area-inset-bottom, 0); }
.mbb-inner { display: grid; grid-template-columns: repeat(4,1fr); height: 56px; }
.mbb-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 10px; color: var(--text-muted); padding: 4px 0; border-radius: 8px; transition: color .2s; position: relative; }
.mbb-btn:hover, .mbb-btn.active { color: var(--amber); }
.mbb-btn .mbb-icon { font-size: 20px; line-height: 1; }
.mbb-btn .mbb-badge { position: absolute; top: 4px; right: calc(50% - 18px); background: var(--red); color: #fff; border-radius: 50%; width: 16px; height: 16px; font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── FLOATING WIDGET ── */
#float-contact { position: fixed; right: 18px; bottom: 90px; display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 9000; }
.float-item { position: relative; display: flex; align-items: center; }
.float-btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.22); transition: transform 0.22s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s; position: relative; animation: floatPop 0.5s cubic-bezier(.34,1.56,.64,1) both; }
#float-zalo .float-btn { animation-delay: 0.05s; }
#float-messenger .float-btn { animation-delay: 0.12s; }
#float-phone .float-btn { animation-delay: 0.19s; }
#float-top .float-btn { animation-delay: 0.26s; }
@keyframes floatPop { from { opacity: 0; transform: scale(0.4) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.float-btn:hover { transform: scale(1.13) translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.28); }
.zalo-btn { background: linear-gradient(135deg, #0068ff, #0090ff); }
.messenger-btn { background: linear-gradient(135deg, #0084ff, #a334fa); }
.phone-btn { background: linear-gradient(135deg, #25d366, #1da851); }
.top-btn { background: linear-gradient(135deg, #b0c4d8, #8aaabb); }
.zalo-btn::before, .phone-btn::before { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: pulse-ring 2s ease-out infinite; }
.zalo-btn { color: #0068ff; }
.phone-btn { color: #25d366; }
.zalo-btn::before { animation-delay: 0s; }
.phone-btn::before { animation-delay: 1s; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.55); opacity: 0; } }
.float-tooltip { position: absolute; right: 58px; background: rgba(30,15,5,0.88); color: #f0d060; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 7px; white-space: nowrap; pointer-events: none; opacity: 0; transform: translateX(8px); transition: all 0.2s; font-family: 'Be Vietnam Pro', sans-serif; }
.float-tooltip::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: rgba(30,15,5,0.88); border-right: none; }
.float-item:hover .float-tooltip { opacity: 1; transform: translateX(0); }
#float-top { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#float-top.visible { opacity: 1; pointer-events: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header-inner { padding: 12px 16px; }
  nav a { padding: 7px 10px; font-size: 13px; }
  .wrap { padding: 40px 16px; }
  .news-section { padding: 32px 16px; margin: 0 16px 32px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 14px; }
  .brands-grid { grid-template-columns: repeat(3,1fr); }
  .cart-layout { grid-template-columns: 1fr 300px; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contact-grid { gap: 24px; }
}
@media (max-width: 767px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .mobile-bottom-bar { display: block; }
  body { padding-bottom: 56px; }
  .topbar { font-size: 11px; padding: 6px 8px; }
  .topbar .tb-hide { display: none; }
  .header-inner { padding: 10px 14px; gap: 8px; }
  .logo-text { font-size: 17px; }
  .logo-icon { width: 40px; height: 40px; font-size: 17px; }
  .cart-btn { display: none; }
  .hero { padding: 48px 18px 40px; }
  .hero h1 { font-size: clamp(26px, 8vw, 40px); }
  .hero p { font-size: 14px; }
  .freeship-bar { font-size: 11px; padding: 8px 10px; }
  .wrap { padding: 28px 14px; }
  .section-title { font-size: 22px; }
  .intro-box { padding: 22px 16px; gap: 20px; }
  .brands-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .product-grid { grid-template-columns: repeat(2,1fr); gap: 12px; }
  .news-section { padding: 28px 14px; margin: 0 0 24px; border-radius: 0; }
  .news-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-detail { padding: 16px 14px 40px; gap: 16px; }
  .pd-images { position: static; }
  .pd-title { font-size: 20px; }
  .pd-price { font-size: 24px; }
  .pd-actions { flex-direction: column; gap: 8px; }
  .btn-addcart, .btn-buynow { flex: unset; width: 100%; }
  .cart-layout { grid-template-columns: 1fr; padding: 16px 14px 40px; gap: 16px; }
  .cart-title { font-size: 20px; margin-bottom: 16px; }
  .cart-item { grid-template-columns: 60px 1fr; gap: 10px; padding: 14px; }
  .cart-item .ci-price, .cart-item .ci-qty, .cart-item .ci-del { grid-column: 2; }
  .ci-img { width: 60px; height: 60px; font-size: 24px; grid-row: span 2; }
  .cart-summary { position: static; }
  .contact-page { padding: 24px 14px 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-info-card { padding: 28px 20px; }
  .contact-form-card { padding: 24px 18px; }
  #page-about .wrap > div[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; padding: 0; }
  footer { padding: 32px 16px 16px; }
  #float-contact { bottom: 68px; right: 12px; gap: 8px; }
  .float-btn { width: 42px; height: 42px; }
  #toast { bottom: 68px; right: 12px; left: 12px; text-align: center; font-size: 13px; }
}
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .news-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
  .brands-grid { grid-template-columns: repeat(2,1fr); }
  .pd-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) and (orientation: landscape) {
  .hero { padding: 36px 18px 28px; }
  .hero h1 { font-size: 28px; }
  .mobile-nav-drawer { width: min(340px, 60vw); }
}
