/* ============================================================
   Út Nhỏ Decor — Global Stylesheet
   Phong cách: Boho-Vintage  (cam đất / beige / xanh ô liu / serif)
   ------------------------------------------------------------
   QUY TẮC: File này giữ NGUYÊN bộ CSS gốc từ thiết kế prototype.
   Tailwind (Play CDN) chỉ được dùng cho các component MỚI.
   Không sửa bảng màu / font / bo góc gốc.
   ============================================================ */

/* ---- Design tokens (dùng lại trong JS & component mới) ---- */
:root {
  --c-terra:   #C4714B;  /* cam đất chủ đạo  */
  --c-terra-d: #b05d38;
  --c-crimson: #A63228;  /* đỏ Tết           */
  --c-sage:    #7A8B6E;  /* xanh ô liu       */
  --c-gold:    #D4A843;
  --c-cream:   #FAF6F0;  /* nền beige        */
  --c-cream-2: #F0E5D6;
  --c-ink:     #2C1F14;  /* nâu đậm chữ      */
  --c-brown:   #7A5C45;
  --c-brown-l: #A08060;
  --font-serif: 'Lora', serif;
  --font-sans:  'Be Vietnam Pro', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Preflight (thay reset của Tailwind Play CDN — CDN đã GỠ vì khảo sát
   cho thấy 0 class Tailwind được dùng trên toàn site, chỉ tải ~110KB vô ích.
   Giữ các rule reset này để giao diện y hệt như khi còn CDN.) ---- */
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
ol, ul, menu { list-style: none; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; }
button, select { text-transform: none; }
button, [type='button'], [type='reset'], [type='submit'] { -webkit-appearance: button; background-color: transparent; background-image: none; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
hr { height: 0; color: inherit; border-top-width: 1px; }
small { font-size: 80%; }
[hidden] { display: none; }

html { scroll-behavior: smooth; }
body { background: #FAF6F0; color: #2C1F14; font-family: 'Be Vietnam Pro', sans-serif; overflow-x: hidden; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #FAF6F0; }
::-webkit-scrollbar-thumb { background: #C4714B; border-radius: 3px; }

/* Alpine: ẩn template trước khi khởi tạo để tránh nháy {{ }} */
[x-cloak] { display: none !important; }

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,246,240,0.84);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(196,113,75,0.1);
}
.nav-link {
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px; font-weight: 500;
  color: #2C1F14; text-decoration: none; letter-spacing: 0.1em;
  text-transform: uppercase; position: relative; padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 1px; background: #C4714B; transition: width 0.3s ease;
}
.nav-link:hover { color: #C4714B; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #C4714B; }
.nav-link.active::after { width: 100%; }

/* Mobile menu */
.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  color: #2C1F14; padding: 8px; border-radius:10px;
  transition: background 0.2s;
}
.menu-btn:hover { background: rgba(196,113,75,0.1); color: #C4714B; }
.mobile-nav {
  display: none; flex-direction: column; gap: 0;
  background: rgba(250,246,240,0.98); border-top: 1px solid rgba(196,113,75,0.1);
  padding: 8px 0 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px; font-weight: 500;
  color: #2C1F14; text-decoration: none; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 14px 28px; display: block;
  border-bottom: 1px solid rgba(196,113,75,0.06); transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover { color: #C4714B; background: rgba(196,113,75,0.05); }
.mobile-nav a.festive { color: #A63228; }

/* Buttons */
.icon-btn {
  background: none; border: none; cursor: pointer; color: #2C1F14;
  padding: 8px; border-radius:10px; display: flex; align-items: center;
  justify-content: center; transition: background 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(196,113,75,0.1); color: #C4714B; }
.btn-primary {
  background: #C4714B; color: #fff; border: none; padding: 15px 34px;
  border-radius: 50px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 15px;
  font-weight: 600; letter-spacing: 0.03em; cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(196,113,75,0.32);
}
.btn-primary:hover { background: #b05d38; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,113,75,0.42); }
.btn-outline {
  background: transparent; color: #2C1F14; border: 1.5px solid rgba(44,31,20,0.28);
  padding: 14px 32px; border-radius: 50px; font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: #C4714B; color: #C4714B; }
.btn-festive {
  background: #A63228; color: #fff; border: none; padding: 13px 28px;
  border-radius: 50px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(166,50,40,0.3);
}
.btn-festive:hover { background: #8c2820; transform: translateY(-2px); }
.btn-sage {
  background: #7A8B6E; color: #fff; border: none; padding: 13px 28px;
  border-radius: 50px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 4px 18px rgba(122,139,110,0.3);
}
.btn-sage:hover { background: #65755a; transform: translateY(-2px); }

/* Product cards */
.product-card {
  background: #fff; border-radius: 18px; overflow: hidden; cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(44,31,20,0.07);
}
.product-card:hover { box-shadow: 0 20px 60px rgba(44,31,20,0.18); transform: translateY(-5px); }
.product-img-wrap { overflow: hidden; position: relative; }
.product-img { width: 100%; height: 250px; object-fit: cover; transition: transform 0.5s; display: block; }
.product-card:hover .product-img { transform: scale(1.08); }
.cart-slide-btn {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(196,113,75,0.93); color: #fff; border: none;
  padding: 13px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transform: translateY(100%); opacity: 0; transition: all 0.3s;
}
.product-card:hover .cart-slide-btn { transform: translateY(0); opacity: 1; }

/* Category circles */
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 14px; cursor: pointer; }
.cat-circle-img {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  border: 3px solid #E8D9CC; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; display: block;
}
.cat-circle:hover .cat-circle-img { border-color: #C4714B; transform: scale(1.06); box-shadow: 0 10px 32px rgba(196,113,75,0.22); }
.cat-circle-name {
  font-family: 'Lora', serif; font-size: 15px; font-weight: 600;
  color: #2C1F14; text-align: center; transition: color 0.2s;
}
.cat-circle:hover .cat-circle-name { color: #C4714B; }

/* Seasonal cards */
.seasonal-card { border-radius:22px; overflow: hidden; position: relative; cursor: pointer; }
.seasonal-card img { width: 100%; height: 420px; object-fit: cover; transition: transform 0.55s; display: block; }
.seasonal-card:hover img { transform: scale(1.05); }

/* Stars */
.stars { color: #D4A843; letter-spacing: 2px; }

/* Tags */
.tag { display: inline-block; padding: 4px 11px; border-radius: 50px; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.tag-terra { background: rgba(196,113,75,0.13); color: #C4714B; }
.tag-crimson { background: rgba(166,50,40,0.12); color: #A63228; }
.tag-sage { background: rgba(122,139,110,0.13); color: #5A6B50; }

/* Tag ĐÈ LÊN ẢNH card (shop + trang chủ): nền trắng đục + blur để đọc rõ trên
   mọi ảnh sáng/tối (nền alpha 13-18% cũ bị chìm vào ảnh). Đồng bộ với chip
   có sẵn ở trang chi tiết sản phẩm. Màu chữ theo mùa qua .tag--<mod>. */
.tag--overlay {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(44,31,20,0.12);
}
.tag--tet   { color: #A63228; }
.tag--noel  { color: #5A6B50; }
.tag--go    { color: #9A7820; }
.tag--terra { color: #B05D38; }

/* Newsletter */
.nl-input {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 13px 20px; border-radius: 50px 0 0 50px;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px; outline: none; width: 220px;
}
.nl-input::placeholder { color: rgba(255,255,255,0.4); }
.nl-btn {
  background: #C4714B; color: #fff; border: none; padding: 13px 22px;
  border-radius: 0 50px 50px 0; font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.nl-btn:hover { background: #b05d38; }
.foot-link { color: rgba(250,246,240,0.5); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.foot-link:hover { color: #C4714B; }
.soc-btn {
  background: none; border: 1px solid rgba(255,255,255,0.12); cursor: pointer;
  color: rgba(250,246,240,0.55); width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.soc-btn:hover { border-color: #C4714B; color: #C4714B; background: rgba(196,113,75,0.1); }

/* Animations */
@keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }
.anim-1 { animation: fadeUp 0.8s ease forwards; }
.anim-2 { animation: fadeUp 0.8s 0.2s ease both; }

/* ============================================================
   COMPONENT MỚI — Mini-cart drawer, Toast, Badge
   (Dùng cùng tông Boho-Vintage; không phá vỡ thiết kế gốc)
   ============================================================ */

/* Badge số lượng trên icon giỏ hàng */
.cart-badge {
  position: absolute; top: 3px; right: 3px; background: #C4714B; color: #fff;
  min-width: 15px; height: 15px; padding: 0 3px; border-radius: 50px; font-size: 9px;
  font-weight: 700; display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.cart-badge.bump { animation: badgeBump 0.35s ease; }
@keyframes badgeBump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

/* Lớp phủ tối phía sau mini-cart */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(26,17,10,0.45); z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }

/* Mini-cart slide-over */
.mini-cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 90vw;
  background: #FAF6F0; z-index: 201; display: flex; flex-direction: column;
  box-shadow: -16px 0 48px rgba(44,31,20,0.22);
  transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mini-cart.open { transform: translateX(0); }
.mini-cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid rgba(196,113,75,0.14);
}
.mini-cart__title { font-family: 'Lora', serif; font-size:18px; font-weight: 700; color: #2C1F14; }
.mini-cart__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.mini-cart__foot { padding: 20px 24px; border-top: 1px solid rgba(196,113,75,0.14); background: #F5EDE3; }

/* Một dòng sản phẩm trong giỏ */
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(196,113,75,0.1); }
.cart-line__img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cart-line__name { font-family: 'Lora', serif; font-size: 14px; font-weight: 600; color: #2C1F14; line-height: 1.35; }
.cart-line__meta { font-size: 12px; color: #A08060; margin-top: 2px; }
.cart-line__price { font-family: 'Lora', serif; font-size: 14px; font-weight: 700; color: #C4714B; }

/* Bộ chỉnh số lượng */
.qty-box { display: inline-flex; align-items: center; border: 1px solid rgba(44,31,20,0.18); border-radius: 50px; overflow: hidden; }
.qty-box button {
  width: 28px; height: 28px; border: none; background: transparent; cursor: pointer;
  color: #2C1F14; font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.qty-box button:hover { background: rgba(196,113,75,0.12); color: #C4714B; }
.qty-box input {
  width: 34px; text-align: center; border: none; background: transparent;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px; font-weight: 600; color: #2C1F14; outline: none;
}
.qty-box input::-webkit-outer-spin-button,
.qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Nút xoá dòng */
.cart-remove { background: none; border: none; cursor: pointer; color: #A08060; font-size: 12px; transition: color 0.2s; }
.cart-remove:hover { color: #A63228; }

/* Cụm nút chia sẻ (share.js — product + post dùng chung) */
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-chip {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid #E8D9CC;
  background: #fff; color: #5A4035; border-radius: 50px; padding: 8px 16px;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.share-chip:hover { border-color: #C4714B; color: #C4714B; }

/* Tìm kiếm toàn cục: SPOTLIGHT MODAL (markup dựng bởi main.js initSearch)
   — thay dải trắng full-width dưới navbar cũ bằng panel nổi giữa màn. */
.search-overlay {
  position: fixed; inset: 0; z-index: 280;
  background: rgba(26,17,10,0.45);
  display: none; padding: 14vh 16px 16px;
}
.search-overlay.open { display: block; animation: searchFade 0.22s ease; }
.search-panel {
  max-width: 600px; margin: 0 auto; background: #fff;
  border-radius: 20px; box-shadow: 0 30px 90px rgba(44,31,20,0.35);
  padding: 8px 18px 10px; animation: searchPop 0.22s ease;
}
.search-input-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; }
.search-input-row input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 16.5px; color: #2C1F14;
}
.search-close {
  background: none; border: none; cursor: pointer; color: #8A6A50;
  font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.search-close:hover { background: #F5EDE3; color: #C4714B; }
.search-suggest { display: none; border-top: 1px solid #F5EDE3; max-height: min(430px, 55vh); overflow-y: auto; }
@keyframes searchFade { from { opacity: 0; } }
@keyframes searchPop { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@media (max-width: 640px) {
  .search-overlay { padding: 16px 12px; }
  .search-panel { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .search-overlay.open, .search-panel { animation: none; }
}

/* Quick-add: chọn nhanh phân loại khi thêm giỏ từ card shop (quick-add.js)
   Mobile: bottom-sheet trượt từ đáy · >=640px: dialog căn giữa. */
.qa-backdrop {
  position: fixed; inset: 0; z-index: 270; background: rgba(26,17,10,0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.qa-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 271;
  background: #FAF6F0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -12px 50px rgba(44,31,20,0.28);
  transform: translateY(100%); transition: transform 0.3s ease;
  max-height: 82vh; display: flex; flex-direction: column;
}
.open > .qa-backdrop { opacity: 1; pointer-events: auto; }
.open > .qa-sheet { transform: translateY(0); }
/* Container singleton không có class riêng -> bật qua class open đặt trên wrapper */
.qa-head { display: flex; gap: 14px; align-items: center; padding: 18px 20px 14px; border-bottom: 1px solid #EADDCF; }
.qa-img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #F2E8DA; flex-shrink: 0; }
.qa-info { flex: 1; min-width: 0; }
.qa-name {
  font-family: 'Lora', serif; font-size: 15px; font-weight: 600; color: #2C1F14;
  line-height: 1.35; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.qa-price { font-size: 17px; color: #C4714B; margin-top: 4px; }
.qa-close {
  background: none; border: none; cursor: pointer; color: #8A6A50;
  font-size: 24px; line-height: 1; padding: 4px 8px; align-self: flex-start;
}
.qa-body { padding: 14px 20px; overflow-y: auto; }
.qa-group { margin-bottom: 14px; }
.qa-group-name { font-size: 12.5px; font-weight: 600; color: #7A5C45; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.qa-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-opt {
  border: 1.5px solid #E0D0BE; background: #fff; color: #5A4035;
  border-radius: 10px; padding: 9px 16px; font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.qa-opt:hover { border-color: #C4714B; }
.qa-opt.active { border-color: #C4714B; background: rgba(196,113,75,0.09); color: #C4714B; font-weight: 600; }
.qa-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.qa-qty .qa-group-name { margin-bottom: 0; }
.qa-qty-box { display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid #E0D0BE; border-radius: 50px; background: #fff; }
.qa-qty-box button {
  background: none; border: none; cursor: pointer; color: #5A4035;
  font-size: 17px; line-height: 1; width: 36px; height: 34px;
}
.qa-qty-box span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; color: #2C1F14; }
.qa-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #EADDCF; }
.qa-confirm { width: 100%; }
.qa-confirm:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
@media (min-width: 640px) {
  .qa-sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 420px; max-width: calc(100vw - 40px);
    border-radius: 22px; max-height: 80vh;
    transform: translate(-50%, -46%) scale(0.97); opacity: 0; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .open > .qa-sheet { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .qa-sheet, .qa-backdrop { transition: none; }
}

/* Trạng thái giỏ rỗng */
.cart-empty { text-align: center; padding: 56px 24px; color: #A08060; }
.cart-empty__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  background: #F5EDE3; margin-bottom: 18px;
}

/* Toast thông báo */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast {
  background: #2C1F14; color: #FAF6F0; padding: 13px 22px; border-radius: 50px;
  font-size: 14px; font-weight: 500; box-shadow: 0 8px 28px rgba(44,31,20,0.3);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.4s forwards;
}
.toast svg { color: #7A8B6E; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

/* Responsive — tablet */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wood-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
/* Anchor (#story...) không bị navbar cố định che mất đầu section */
section[id] { scroll-margin-top: 84px; }

/* ---------- Skeleton loading (khung xám nhấp nháy khi chờ API) ---------- */
.sk-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 10px rgba(44,31,20,0.07); }
.sk { position: relative; overflow: hidden; background: #EFE5D8; }
.sk::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: skShimmer 1.2s infinite;
}
@keyframes skShimmer { to { transform: translateX(100%); } }
.sk-img { height: 260px; }
.sk-line { height: 13px; border-radius: 6px; margin: 12px 18px 0; }
.sk-line.w70 { width: 70%; }
.sk-line.w40 { width: 40%; margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

/* Dropdown toàn site: bỏ mũi tên mặc định trình duyệt (lệch) -> chevron SVG căn giữa phải.
   (!important cho padding-right vì style trang đặt padding shorthand sau file này) */
.sort-select, .form-select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  /* !important: CSS trang khai báo "background:#fff" (shorthand) SAU file này sẽ xoá image nếu không */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A5C45' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 13px !important;
  background-color: #fff;
  padding-right: 36px !important;
  cursor: pointer;
}
.sort-select::-ms-expand, .form-select::-ms-expand { display: none; }

/* Responsive — mobile */
@media (max-width: 768px) {
  .menu-btn { display: flex !important; }
  .nav-links-row { display: none !important; }
  /* Navbar GỌN: trước đây logo + VI/EN + 4 icon + hamburger = ~420px trên màn
     390px -> hamburger bị đẩy RA NGOÀI mép phải, không bấm được menu.
     Ẩn những thứ đã có bản sao trong menu mobile + bó padding. */
  .navbar > div:not(.mobile-nav) { padding: 12px 14px !important; gap: 10px !important; }
  /* CHÚ Ý: .mobile-nav nằm TRONG .navbar — chỉ ẩn VI/EN ở HÀNG TRÊN,
     bản trong menu hamburger phải giữ (nếu không mất chỗ đổi ngôn ngữ) */
  .navbar .lang-switcher { display: none !important; }
  .navbar .mobile-nav .lang-switcher { display: flex !important; }
  .navbar a.icon-btn[href="order.html"] { display: none !important; } /* Theo dõi đơn còn trong menu mobile */
  .navbar .icon-btn { padding: 7px !important; }
  /* Hero mobile gọn: bỏ ép cao 100vh, thu khoảng cách/chữ/ảnh */
  .hero-section { min-height: auto !important; padding-top: 72px !important; }
  .hero-grid { flex-direction: column !important; gap: 26px !important; padding: 30px 20px 42px !important; }
  .hero-grid h1 { font-size: clamp(30px, 8.5vw, 40px) !important; }
  .hero-grid h1[data-i18n-html="home.hero_title2"] { margin-bottom: 16px !important; }
  .hero-grid p[data-i18n="home.hero_sub"] { margin-bottom: 10px !important; }
  .hero-grid p[data-i18n="home.hero_quote"] { margin-bottom: 22px !important; }
  .hero-btns { margin-bottom: 26px !important; }
  .hero-trust { gap: 14px 20px !important; }
  .hero-img-wrap { height: 250px !important; border-radius: 22px 22px 56px 22px !important; box-shadow: 0 20px 60px rgba(44,31,20,0.18) !important; }
  .hero-badge-l { display: none !important; }
  .hero-badge-r { display: none !important; }
  .seasonal-grid { flex-direction: column !important; }
  .seasonal-card img { height: 260px !important; }
  .story-grid { flex-direction: column !important; gap: 40px !important; }
  .footer-cols { flex-direction: column !important; gap: 40px !important; }
  .cats-row { flex-wrap: wrap !important; justify-content: center !important; gap: 28px !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; }
  .wood-grid { grid-template-columns: 1fr !important; }
  .cat-circle-img { width: 120px !important; height: 120px !important; }
}
@media (max-width: 520px) {
  .products-grid { grid-template-columns: 1fr !important; }
  .nl-input { width: 160px !important; }
  .hero-btns { flex-direction: column !important; align-items: stretch !important; }
  .hero-btns button { text-align: center !important; }
}
/* Giảm khoảng cách dọc các section trang chủ trên mobile (đỡ rỗng/dài) */
@media (max-width: 600px) {
  .home-section { padding-top: 60px !important; padding-bottom: 60px !important; padding-left: 18px !important; padding-right: 18px !important; }
}

/* ============================================================
   PHASE 4d — Bộ chuyển giao diện theo mùa (seasonal.js)
   Chỉ tô các COMPONENT MỚI. Palette gốc giữ nguyên 100%.
   Biến --season-accent do seasonal.js đặt trên <html> theo mùa —
   màu từng mùa giờ CẤU HÌNH TỪ ADMIN (tab "Mùa", site_config.seasons);
   giá trị dưới đây là fallback tĩnh khi config chưa tải/lỗi.
   ============================================================ */
:root { --season-accent: #C4714B; }

/* Admin tắt bộ chuyển mùa -> seasonal.js đặt attribute này lên <html>.
   !important vì .navbar/.mobile-nav .season-switcher có display cụ thể. */
html[data-season-switcher="hidden"] .season-switcher { display: none !important; }

/* --- Bộ chuyển mùa (pills) trong navbar --- */
.season-switcher {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(196,113,75,0.08); border: 1px solid rgba(196,113,75,0.16);
  border-radius:50px; padding: 3px; margin-right: 6px;
}
.season-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 12px; font-weight: 500;
  color: #7A5C45; background: transparent; border: none; cursor: pointer;
  padding: 5px 10px; border-radius:50px; line-height: 1;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.season-pill__emoji { font-size: 13px; }
.season-pill:hover { color: var(--season-accent); }
.season-pill.is-active {
  background: #fff; color: var(--season-accent); font-weight: 600;
  box-shadow: 0 2px 10px rgba(44,31,20,0.07);
}
.navbar .season-switcher { display: inline-flex; }
/* Trên mobile: ẩn switcher ở navbar, hiện bản trong menu mobile */
@media (max-width: 768px) {
  .navbar .season-switcher { display: none; }
}
.mobile-nav .season-switcher {
  display: flex; justify-content: center; margin: 12px 28px 4px;
}
.mobile-nav .season-pill { padding: 8px 14px; font-size: 13px; }

/* --- Giá tiền: chữ số sans đậm, thẳng cột — tách bạch với serif của tiêu đề.
   Gắn class="vnd" vào phần tử hiển thị giá; !important thắng font Lora inline. --- */
.vnd, .cart-line__price {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.005em;
}

/* --- Lưới "Đã xem gần đây": 5 SP/hàng desktop, thống nhất với SP liên quan --- */
.recent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1200px) { .recent-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .recent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .recent-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Scroll-reveal: section dưới màn hình trượt nhẹ lên khi cuộn tới --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* --- Card mới xuất hiện (lưới SP, featured, "Xem thêm"): fade-up so le --- */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card-in { animation: cardIn 0.45s cubic-bezier(.2,.8,.2,1) backwards; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-in { animation: none; }
}

/* --- Nút liên hệ nổi (Zalo + gọi điện) góc phải dưới --- */
.contact-fab {
  position: fixed; right: 16px; bottom: 18px; z-index: 190;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  transition: bottom 0.35s ease;
}
.contact-fab a {
  width: 48px; height: 48px; border-radius: 50%; position: relative;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  box-shadow: 0 4px 16px rgba(44,31,20,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-fab a:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 8px 24px rgba(44,31,20,0.32); }
.fab-zalo { background: #0068FF; color: #fff; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 800; font-size: 12.5px; }
.fab-call { background: #C4714B; color: #fff; }
.fab-call::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(196,113,75,0.55);
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(0.85); opacity: 0.9; }
  70%  { transform: scale(1.3);  opacity: 0; }
  100% { transform: scale(1.3);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fab-call::after { animation: none; } }

/* --- Ribbon banner mùa (cố định đáy, không phá layout trang) --- */
.season-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  transform: translateY(110%); transition: transform 0.35s ease;
  background: var(--season-accent);
  box-shadow: 0 -4px 18px rgba(44,31,20,0.18);
}
.season-bar.is-show { transform: translateY(0); }
.season-bar__inner {
  max-width: 1280px; margin: 0 auto; padding: 11px 24px;
  display: flex; align-items: center; gap: 12px;
  color: #FAF6F0; font-family: 'Be Vietnam Pro', sans-serif;
}
.season-bar__emoji { font-size: 18px; flex-shrink: 0; }
.season-bar__msg {
  font-family: 'Lora', serif; font-size: 15px; font-weight: 500;
  flex: 1; min-width: 0;
}
.season-bar__cta {
  flex-shrink: 0; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #FAF6F0;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 16px; border-radius:50px; transition: background 0.2s;
}
.season-bar__cta:hover { background: rgba(255,255,255,0.28); }
.season-bar__close {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: #FAF6F0; font-size: 22px; line-height: 1; padding: 2px 6px;
  opacity: 0.8; transition: opacity 0.2s;
}
.season-bar__close:hover { opacity: 1; }
@media (max-width: 600px) {
  .season-bar__msg { font-size: 13px; }
  .season-bar__cta { padding: 6px 12px; font-size: 12px; }
  .season-bar__inner { padding: 10px 16px; gap: 9px; }
}

/* --- Card sản phẩm ẩn khi bị lọc (shop.html) --- */
.product-card.is-hidden { display: none !important; }

/* ============================================================
   PHASE 6a — Nút chuyển ngôn ngữ (i18n.js): VI / EN
   ============================================================ */
.lang-switcher {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(196,113,75,0.08); border: 1px solid rgba(196,113,75,0.16);
  border-radius:50px; padding: 3px; margin-right: 6px;
}
.lang-pill {
  font-family: 'Be Vietnam Pro', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; color: #7A5C45; background: transparent; border: none;
  cursor: pointer; padding: 5px 9px; border-radius:50px; line-height: 1;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.lang-pill:hover { color: var(--season-accent, #C4714B); }
.lang-pill.is-active {
  background: #fff; color: var(--season-accent, #C4714B);
  box-shadow: 0 2px 10px rgba(44,31,20,0.07);
}
.navbar .lang-switcher { display: inline-flex; }
@media (max-width: 768px) {
  .navbar .lang-switcher { display: none; }
}
.mobile-nav .lang-switcher { display: flex; justify-content: center; margin: 4px 28px 12px; }
.mobile-nav .lang-pill { padding: 8px 14px; font-size: 13px; }
