/* ==========================================================================
   Thiên An USA – storefront styles
   ========================================================================== */
[hidden] { display: none !important; }

:root {
  --red: #a06853;
  --red-dark: #87543f;
  --red-soft: #faf0ea;
  --gold: #bda57f;
  --ink: #37322c;
  --ink-2: #514a42;
  --muted: #6f675c;
  --line: #ece5dd;
  --bg: #fbf8f4;
  --white: #ffffff;
  --green: #4f7159;
  --green-soft: #edf3ef;
  --amber: #8a6642;
  --amber-soft: #f8f0e0;
  --blue: #4f6a7d;
  --blue-soft: #eef2f6;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(88, 72, 55, .05);
  --shadow: 0 10px 28px rgba(88, 72, 55, .07);
  --shadow-lg: 0 20px 50px rgba(88, 72, 55, .11);
  --container: 1240px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.meta-muted { color: var(--muted); font-size: 13px; }
.eyebrow {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red-dark); margin-bottom: 8px;
}
.section { padding: 56px 0; }
.section-alt { background: #f7f2ea; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px;
}
.section-head h2 { margin-bottom: 4px; }
.section-sub { color: var(--muted); margin: 0; max-width: 620px; font-size: 14px; }
/* Cho phép xuống dòng trong tiêu đề do quản trị nhập (ví dụ thẻ promo trang chủ). */
.preline { white-space: pre-line; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700;
  font-size: 13.5px; color: var(--red-dark); white-space: nowrap;
}
.link-more:hover { color: var(--red-dark); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(160, 104, 83, .22); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #faf6f0; }
.btn-danger { background: #b0705a; color: #fff; }
.btn-danger:hover { background: #9c6450; }
.btn-muted { background: #efe8df; color: var(--muted); cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: #f7f2ea; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { flex: none; }

/* ---------------------------------------------------------------- badges */
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .02em;
}
.badge-sale { background: var(--red); color: #fff; box-shadow: 0 6px 14px rgba(160, 104, 83, .3); }
.badge-out { background: #5b544a; color: #fff; top: auto; bottom: 12px; }

.status {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: #f8f4ee; color: #6f665c;
}
.status-pending { background: var(--amber-soft); color: var(--amber); }
.status-confirmed { background: var(--blue-soft); color: var(--blue); }
.status-shipping { background: #eff3f7; color: #4d6577; }
.status-completed, .status-paid, .status-active, .status-approved { background: var(--green-soft); color: var(--green); }
.status-cancelled, .status-hidden, .status-rejected, .status-refunded { background: #faf0ea; color: #9c6450; }
.status-unpaid { background: #f8f4ee; color: #6f665c; }
.stars { color: #ddd5c8; font-size: 14px; letter-spacing: 1px; }
.stars .on { color: #c08f4f; }

/* ---------------------------------------------------------------- topbar */
.topbar { background: #f5ede3; color: #6f675c; font-size: 12.5px; border-bottom: 1px solid #ece2d6; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 38px;
}
.topbar-note { margin: 0; display: flex; align-items: center; gap: 7px; }
.topbar-note svg { color: var(--red); flex: none; }
.topbar-links { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar-links a:hover { color: var(--red-dark); }
.topbar-links .sep { width: 1px; height: 12px; background: #ded4c7; }
.topbar-admin { color: var(--red-dark); font-weight: 700; }

/* ---------------------------------------------------------------- header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; align-items: center; gap: 22px; padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(145deg, var(--red), var(--red-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; letter-spacing: .02em; box-shadow: 0 8px 18px rgba(160, 104, 83, .22);
}
.brand-logo { height: 46px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 19px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; }
.brand-text small { font-size: 10.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; margin-top: 3px; }
.brand-light .brand-text strong { color: var(--ink); }
.brand-light .brand-text small { color: var(--muted); }
.header-search {
  flex: 1; display: flex; max-width: 560px; background: #faf6f0; border: 1.5px solid #efe8df;
  border-radius: 999px; padding: 4px 4px 4px 18px; transition: border-color .2s, background .2s;
}
.header-search:focus-within { border-color: var(--red); background: #fff; }
.header-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; }
.header-search button {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.header-search button:hover { background: var(--red-dark); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hotline { display: flex; align-items: center; gap: 10px; }
.header-icon-round {
  width: 40px; height: 40px; border-radius: 50%; background: var(--red-soft); color: var(--red);
  display: inline-flex; align-items: center; justify-content: center;
}
.hotline-text { display: flex; flex-direction: column; line-height: 1.2; }
.hotline-text small { font-size: 10.5px; color: var(--muted); }
.hotline-text strong { font-size: 14px; white-space: nowrap; }
.header-icon {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: var(--ink-2); font-weight: 600;
}
.header-icon:hover { color: var(--red); }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px;
  font-style: normal; font-weight: 800; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 4px; border: 2px solid #fff; line-height: 1;
}
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 6px; }

/* ------------------------------------------------------------------- nav */
.main-nav { background: #f9f4ec; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(88, 72, 55, .05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; align-items: stretch; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: flex; align-items: center; gap: 5px; padding: 15px 17px;
  color: #6f665c; font-size: 14px; font-weight: 600; letter-spacing: 0;
  transition: background .15s, color .15s;
}
.nav-list > li > a:hover, .nav-list > li > a.active { background: var(--red-soft); color: var(--red-dark); }
.nav-list > li > a.active { box-shadow: inset 0 -3px 0 var(--red); }
.nav-list .nav-sale { color: var(--red-dark); }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 8px; display: none;
  border-top: 2px solid var(--red);
}
.nav-list > li:hover .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }
.dropdown a:hover { background: var(--red-soft); color: var(--red); }
.nav-support { display: flex; align-items: center; gap: 7px; color: #6f675c; font-size: 12.5px; font-weight: 600; }

/* ----------------------------------------------------------------- flash */
.flash-wrap { padding-top: 18px; display: grid; gap: 8px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
}
.flash-success { background: var(--green-soft); color: #46654f; border-color: #d3e5d8; }
.flash-danger { background: var(--red-soft); color: #87543f; border-color: #e8cfc2; }
.flash-warning { background: var(--amber-soft); color: #836444; border-color: #f0e0c0; }
.flash-info { background: var(--blue-soft); color: #5d7085; border-color: #dee5ec; }
.flash-close { border: 0; background: transparent; font-size: 20px; line-height: 1; color: inherit; opacity: .6; }
.flash-close:hover { opacity: 1; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 26px 0 40px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #efe7dc; aspect-ratio: 16 / 6.4; }
.hero-intro {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fbf4ec 0%, #f6ece1 55%, #fdf9f4 100%);
  padding: 56px 48px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.hero-intro h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 6px 0 10px; letter-spacing: -.02em; }
.hero-intro p { color: var(--muted); max-width: 620px; margin-bottom: 20px; }
.hero-intro .hero-eyebrow { background: #fff; border: 1px solid var(--line); color: var(--red-dark); }
@media (max-width: 720px) {
  .hero-intro { padding: 32px 24px; }
}
.hero-slide {
  display: block; position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 48px 60px; color: #fff;
  background: linear-gradient(90deg, rgba(52, 40, 31, .82) 0%, rgba(52, 40, 31, .45) 48%, rgba(52, 40, 31, 0) 78%);
}
.hero-eyebrow {
  display: inline-block; align-self: flex-start; background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .28); padding: 6px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px;
}
.hero-caption h1, .hero-caption h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 10px; }
.hero-caption p { font-size: clamp(.95rem, 1.6vw, 1.15rem); color: #ece4d9; max-width: 480px; margin-bottom: 22px; }
.hero-caption .btn { align-self: flex-start; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .9); color: var(--ink); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.slider-arrow.prev { left: 18px; }
.slider-arrow.next { right: 18px; }
.slider-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45);
  transition: width .2s, background .2s;
}
.slider-dots button.is-active { width: 26px; background: #fff; }

/* ------------------------------------------------------------- categories */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.category-tile:hover img { transform: scale(1.06); }
.category-info {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 13px;
  background: linear-gradient(0deg, rgba(52, 40, 31, .82), rgba(52, 40, 31, 0));
  color: #fff; display: flex; flex-direction: column; line-height: 1.25;
}
.category-info strong { font-size: 14px; }
.category-info small { font-size: 10.5px; color: #d8cfc1; }

/* --------------------------------------------------------------- products */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e6ded1; }
.product-thumb { position: relative; display: block; background: #f9f5ef; overflow: hidden; }
.product-thumb img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-thumb img { transform: scale(1.045); }
.product-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red); }
.product-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 0; min-height: 2.7em; }
.product-name a:hover { color: var(--red); }
.product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.price { font-size: 18px; font-weight: 800; }
.price-sale { font-size: 18px; font-weight: 800; color: var(--red); }
.price-old { font-size: 13px; color: #6f675c; text-decoration: line-through; }
.product-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.product-actions form { flex: 1; }
.product-actions .btn { width: 100%; }
.icon-link {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none;
}
.icon-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
.product-body .btn:disabled { background: #f8f4ee; color: #6f675c; }

/* ----------------------------------------------------------------- promos */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 300px;
  display: flex; align-items: center; color: #fff; isolation: isolate;
}
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(52, 40, 31, .82), rgba(52, 40, 31, .22));
}
.promo-caption { padding: 40px; max-width: 420px; }
.promo-caption .eyebrow { color: #e8d3ae; }
.promo-caption h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.promo-caption p { color: #e6ded1; font-size: 14px; }
.promo-caption .btn { margin-top: 4px; }
.promo-dark::after { background: linear-gradient(90deg, rgba(45, 38, 30, .86), rgba(45, 38, 30, .3)); }

.sale-banner {
  display: grid; grid-template-columns: .9fr 1.3fr; gap: 30px; align-items: center;
  padding: 40px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #9d6552 0%, #87543f 55%, #5d3b2e 100%);
  box-shadow: var(--shadow);
}
.sale-banner-copy .eyebrow { color: #fff; }
.sale-banner-copy h2 { color: #fff; }
.sale-banner-copy p { color: #fdf7f2; max-width: 380px; }
.sale-banner-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sale-mini {
  background: #fff; color: var(--ink); border-radius: 12px; padding: 10px;
  display: flex; flex-direction: column; gap: 5px; position: relative;
  transition: transform .2s;
}
.sale-mini:hover { transform: translateY(-4px); }
.sale-mini img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f9f5ef; }
.sale-mini strong { font-size: 11.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.sale-mini .price-sale { font-size: 13.5px; }
.sale-mini-off {
  position: absolute; top: 6px; right: 6px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px;
}

/* ------------------------------------------------------------------- blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post-body { padding: 18px 20px 20px; }
.post-date { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.post-body h3 { font-size: 16px; margin: 8px 0 6px; line-height: 1.4; }
.post-body h3 a:hover { color: var(--red); }
.post-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

/* ------------------------------------------------------------------ trust */
.trust-band { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-grid strong { display: block; font-size: 30px; font-weight: 900; color: var(--red); line-height: 1.1; }
.trust-grid span { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* ------------------------------------------------------------- page head */
.page-head {
  background: linear-gradient(135deg, #fff 0%, #f9f4ed 100%);
  border-bottom: 1px solid var(--line); padding: 30px 0 34px;
}
.page-head h1 { margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; max-width: 720px; }
.page-head-compact { padding: 22px 0 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span:last-child { color: var(--ink-2); font-weight: 600; }

/* ------------------------------------------------------------- category */
.category-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 36px 0 56px;
  align-items: start;
}
.filters { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filter-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.filter-cats > li > a { display: block; padding: 7px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid #f7f2ea; }
.filter-cats > li:last-child > a { border-bottom: 0; }
.filter-cats a:hover, .filter-cats a.active { color: var(--red); }
.filter-cats ul { padding-left: 12px; border-left: 2px solid #f7f2ea; margin: 4px 0 6px 4px; }
.filter-cats ul a { font-size: 13px; font-weight: 500; color: var(--muted); padding: 4px 0; display: block; }
.filter-cats ul a:hover, .filter-cats ul a.active { color: var(--red); font-weight: 600; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.price-inputs label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.price-inputs input { width: 100%; margin-top: 4px; }
.filter-form input, .sort-form select, .search-page-form input {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 9px;
  outline: none; background: #fff; font-size: 13.5px;
}
.filter-form input:focus, .sort-form select:focus { border-color: var(--red); }
.filter-form .btn { margin-top: 10px; }
.filter-clear { display: block; text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; text-decoration: underline; }
.filter-help p { font-size: 13px; color: var(--muted); }
.listing-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin-bottom: 20px;
}
.listing-toolbar p { margin: 0; font-size: 13.5px; color: var(--muted); }
.listing-toolbar strong { color: var(--ink); }
.sort-form { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sort-form select { width: auto; min-width: 160px; padding: 7px 10px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; }
.page-link {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px; background: #fff;
  border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13.5px;
}
.page-link:hover { border-color: var(--red); color: var(--red); }
.page-link.active { background: var(--red); border-color: var(--red); color: #fff; }
.page-dots { color: var(--muted); padding: 0 4px; }
.empty-state { text-align: center; padding: 70px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-icon { font-size: 40px; display: block; margin-bottom: 10px; }
.empty-state p { color: var(--muted); }
.empty-inline { text-align: center; padding: 26px; color: var(--muted); }

/* --------------------------------------------------------------- product */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 36px 0 20px; align-items: start; }
.product-gallery { position: sticky; top: 80px; }
.gallery-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-main img[hidden] { display: none; }
.gallery-video { display: block; background: #000; line-height: 0; }
.gallery-video[hidden] { display: none; }
.gallery-video iframe, .gallery-video video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #fff; }
.gallery-thumb img { aspect-ratio: 1; object-fit: cover; }
.gallery-thumb .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(17, 12, 9, .4); color: #fff; font-size: 20px; text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.gallery-thumb.is-video img { filter: saturate(.85); }
.gallery-thumb.is-active, .gallery-thumb:hover { border-color: var(--red); }
.product-summary h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 6px 0 8px; }
.product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.product-price-lg { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.product-price-lg .price, .product-price-lg .price-sale { font-size: 32px; }
.product-price-lg .price-old { font-size: 16px; }
.save-note { background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 7px; }
.product-lead { color: #6f665c; font-size: 14.5px; }
.stock-line { display: flex; align-items: center; gap: 12px; font-size: 13px; margin-bottom: 18px; }
.stock-in { color: var(--green); font-weight: 700; }
.stock-out { color: #9c6450; font-weight: 700; }
.stock-warn { display: block; font-size: 11.5px; color: #9c6450; font-weight: 700; }
.add-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 22px; }
.add-form .btn-lg { flex: 1; min-width: 160px; }
.qty-stepper { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 40px; border: 0; background: #faf6f1; font-size: 18px; color: var(--ink-2); }
.qty-stepper button:hover { background: #efe8df; }
.qty-stepper input { width: 54px; border: 0; text-align: center; font-weight: 700; outline: none; }
.product-perks { display: grid; gap: 9px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13.5px; }
.product-perks span { color: var(--green); font-weight: 900; margin-right: 6px; }
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.share-row a { font-weight: 600; text-decoration: underline; }
.share-row a:hover { color: var(--red); }

.product-details { padding: 30px 0 10px; }
.tabs { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tab-buttons { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); padding: 6px 10px 0; background: #fdfaf6; }
.tab-btn {
  border: 0; background: transparent; padding: 13px 18px; font-weight: 700; font-size: 13.5px;
  color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.is-active { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: none; padding: 26px 28px 32px; }
.tab-panel.is-active { display: block; }
.prose { white-space: pre-line; color: #58514a; font-size: 14.5px; line-height: 1.75; }
.prose p { white-space: pre-line; }
.prose-lg { font-size: 15.5px; }
.specs-table { display: grid; gap: 0; max-width: 720px; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid #f7f2ea; font-size: 14px; }
.spec-row span { color: var(--muted); }
.reviews-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.review { padding: 18px 0; border-bottom: 1px solid #f7f2ea; }
.review:first-child { padding-top: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.avatar-lg { width: 52px; height: 52px; font-size: 20px; }
.review-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.review p { margin: 0; font-size: 14px; color: #58514a; }
.review-form { background: #fbf7f3; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 10px; }
.review-form h3 { margin-bottom: 4px; }
.review-form label, .field { display: block; font-size: 12.5px; font-weight: 700; color: #6f665c; }
.review-form input, .review-form select, .review-form textarea,
.field input, .field select, .field textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; border: 1.5px solid var(--line);
  border-radius: 9px; outline: none; background: #fff; font-size: 14px; font-weight: 400; color: var(--ink);
}
.review-form input:focus, .review-form select:focus, .review-form textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.form-hint { font-size: 12px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------------- cart */
.steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 0 30px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.steps li span { width: 27px; height: 27px; border-radius: 50%; background: #efe8df; color: #6f675c; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.steps li.is-active { color: var(--red-dark); }
.steps li.is-active span { background: var(--red); color: #fff; }
.steps li + li::before { content: "—"; color: #ddd5c8; margin-right: 2px; }
.cart-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.cart-layout > *, .checkout-layout > *, .account-layout > *, .product-layout > *, .post-layout > *, .contact-layout > *, .page-layout > *, .lookup-layout > *, .order-panels > * { min-width: 0; }
.cart-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th { text-align: left; padding: 13px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #fdfaf6; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 14px 16px; border-bottom: 1px solid #f7f2ea; vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-product { display: flex; align-items: center; gap: 12px; }
.cart-product img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #f9f5ef; flex: none; }
.cart-name { font-weight: 700; font-size: 13.5px; display: block; line-height: 1.35; }
.cart-name:hover { color: var(--red); }
.qty-input { width: 70px; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; text-align: center; font-weight: 700; }
.remove-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #9c6450; font-size: 18px; line-height: 1; }
.remove-btn:hover { background: var(--red-soft); border-color: #e8cfc2; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.cart-actions-right { display: flex; gap: 8px; flex-wrap: wrap; }
.summary-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: sticky; top: 80px;
}
.summary-card h2 { font-size: 16px; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; color: #6f665c; }
.summary-row strong { color: var(--ink); }
.summary-discount strong { color: var(--green); }
.summary-total { display: flex; justify-content: space-between; gap: 12px; border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 12px; font-size: 15px; font-weight: 800; }
.summary-total strong { font-size: 22px; color: var(--red); }
.summary-note { font-size: 12px; color: var(--muted); margin: 10px 0 16px; }
.summary-trust { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.checkout-form { display: flex; flex-direction: column; gap: 18px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form-card h2 { font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.form-card h2 > span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-full { grid-column: 1 / -1; }
.payment-options { display: grid; gap: 10px; margin-bottom: 14px; }
.payment-option {
  display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line);
  border-radius: 11px; padding: 13px 15px; cursor: pointer; transition: border-color .15s, background .15s;
}
.payment-option:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.payment-option input { accent-color: var(--red); }
.payment-body { flex: 1; display: flex; flex-direction: column; }
.payment-body strong { font-size: 13.5px; }
.payment-body small { font-size: 12px; color: var(--muted); }
.payment-icon { font-size: 20px; }
.terms-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #6f665c; }
.terms-check input { margin-top: 3px; accent-color: var(--red); }
.terms-check a { color: var(--red); text-decoration: underline; }
.summary-items { display: grid; gap: 12px; max-height: 360px; overflow: auto; padding-right: 4px; margin-bottom: 14px; }
.summary-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.summary-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f9f5ef; flex: none; }
.summary-item > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.summary-item strong { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.summary-item > span { font-weight: 700; white-space: nowrap; }
.coupon-form { border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); padding: 12px 0; margin: 8px 0 12px; }
.coupon-form label { font-size: 12px; font-weight: 700; color: var(--muted); }
.coupon-row { display: flex; gap: 7px; margin-top: 5px; }
.coupon-row input { flex: 1; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; outline: none; font-size: 13px; }
.coupon-row .btn { padding: 8px 12px; font-size: 12.5px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; background: var(--green-soft); color: #46654f; padding: 9px 11px; border-radius: 8px; }
.coupon-applied button { border: 0; background: transparent; color: #87543f; text-decoration: underline; font-size: 12px; }

/* ---------------------------------------------------------- order success */
.success-card {
  text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 42px 24px; margin-bottom: 22px;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green);
  font-size: 30px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.success-card h1 { font-size: 26px; }
.success-card > p { color: var(--muted); max-width: 600px; margin: 0 auto 22px; }
.success-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 820px; margin: 0 auto; text-align: left; }
.success-meta > div { background: #fbf7f3; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.success-meta strong { font-size: 14px; color: var(--ink); }
.bank-box { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.bank-box h2 { font-size: 16px; }
.bank-box p { font-size: 13.5px; color: var(--muted); }
.bank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bank-grid > div { background: #fbf7f3; padding: 11px 14px; border-radius: 9px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.bank-grid strong { font-size: 14px; color: var(--ink); }
.order-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; padding-bottom: 30px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 16px; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.info-line { margin: 0 0 6px; font-size: 13.5px; }
.success-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ----------------------------------------------------------------- lookup */
.lookup-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: start; padding: 32px 0 60px; }
.lookup-form { display: grid; gap: 12px; }
.inline-error { background: var(--red-soft); border: 1px solid #e8cfc2; color: #87543f; border-radius: 8px; padding: 9px 12px; font-size: 13px; }
.lookup-result { display: grid; gap: 16px; }

/* ------------------------------------------------------------------- auth */
.auth-wrap { display: flex; justify-content: center; padding: 46px 0 60px; }
.auth-card {
  display: grid; grid-template-columns: 1fr 1.1fr; width: min(940px, 100%);
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.auth-aside {
  background: radial-gradient(130% 130% at 10% 0%, #f6ebe1 0%, #faf3ec 55%, #fdf9f4 100%);
  color: var(--ink); padding: 44px 38px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.auth-aside-alt { background: radial-gradient(130% 130% at 10% 0%, #f2ece3 0%, #f7f2ea 60%, #fcf9f5 100%); }
.auth-aside .brand-mark { background: var(--red); box-shadow: none; border: 0; }
.auth-aside h2 { font-size: 26px; margin-top: 14px; }
.auth-aside p { color: var(--muted); }
.auth-aside ul { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.auth-aside img { margin-top: auto; width: 100%; opacity: .95; border-radius: 12px; }
.auth-form { padding: 38px 40px; }
.auth-form h1 { font-size: 26px; }
.auth-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.auth-form form { display: grid; gap: 12px; }
.auth-switch { margin: 16px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-switch a { color: var(--red); font-weight: 700; }
.auth-demo { margin-top: 18px; background: #fbf7f3; border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; font-size: 11.5px; color: var(--muted); display: grid; gap: 2px; }
.auth-demo strong { color: var(--ink-2); }

/* ---------------------------------------------------------------- account */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding: 30px 0 60px; }
.account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 80px; }
.account-chip { display: flex; gap: 10px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.account-chip div { display: flex; flex-direction: column; min-width: 0; }
.account-chip strong { font-size: 14px; }
.account-chip small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.account-nav nav a { display: block; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.account-nav nav a:hover, .account-nav nav a.is-active { background: var(--red-soft); color: var(--red-dark); }
.account-main { display: grid; gap: 20px; }
.account-main .panel { scroll-margin-top: 90px; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; padding: 11px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fdfaf6; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 12px; border-bottom: 1px solid #f7f2ea; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a.table-link { color: var(--red); font-weight: 700; }
.table .table-sub { display: block; font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------------- blog */
.post-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; padding: 34px 0 60px; }
.post-detail h1 { margin: 8px 0 18px; }
.post-hero { border-radius: var(--radius-lg); margin-bottom: 22px; aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.post-sidebar { display: grid; gap: 16px; position: sticky; top: 80px; }
.side-post { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f7f2ea; align-items: center; }
.side-post:last-child { border-bottom: 0; }
.side-post img { width: 62px; height: 50px; border-radius: 8px; object-fit: cover; flex: none; }
.side-post span { font-size: 12.5px; font-weight: 600; line-height: 1.35; display: flex; flex-direction: column; }
.side-post small { color: var(--muted); font-weight: 400; font-size: 11px; margin-top: 2px; }

/* ---------------------------------------------------------------- contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0 26px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.contact-icon { font-size: 26px; display: block; margin-bottom: 6px; }
.contact-card h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .07em; }
.contact-card a { font-weight: 700; color: var(--red); font-size: 15px; }
.contact-card p { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.contact-strong { color: var(--ink) !important; font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding-bottom: 60px; }
.contact-side { display: grid; gap: 16px; align-content: start; }
.map-placeholder {
  background: radial-gradient(120% 120% at 20% 20%, #f0ece5 0%, #e8e0d5 60%, #ded4c6 100%);
  border-radius: var(--radius); padding: 40px 24px; text-align: center; color: #5a534a;
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.map-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .6;
}
.map-placeholder > * { position: relative; }
.map-pin { font-size: 34px; }
.map-placeholder span { font-size: 12px; color: #6f665c; }
.hours-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f7f2ea; font-size: 13px; }
.hours-row:last-of-type { border-bottom: 0; }

/* ------------------------------------------------------------------ pages */
.page-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; padding: 34px 0 60px; }
.page-sidebar { display: grid; gap: 16px; }
.side-links li a { display: block; padding: 8px 0; border-bottom: 1px solid #f7f2ea; font-size: 13.5px; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a:hover { color: var(--red); }

/* ---------------------------------------------------------------- filters */
.search-page-form { display: flex; gap: 8px; max-width: 560px; margin-top: 14px; }
.search-page-form input { flex: 1; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; outline: none; }
.search-page-form input:focus { border-color: var(--red); }

/* ------------------------------------------------------------------ error */
.error-wrap { display: flex; justify-content: center; padding: 60px 0 80px; }
.error-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px; text-align: center; max-width: 560px; }
.error-code { font-size: 68px; font-weight: 900; color: var(--red); line-height: 1; display: block; letter-spacing: -.04em; }
.error-card h1 { margin-top: 10px; font-size: 24px; }
.error-card p { color: var(--muted); }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------- features */
.features-strip { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 12px; }
.feature-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--red-soft); color: var(--red); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.feature-item strong { display: block; font-size: 13.5px; }
.feature-item p { margin: 0; font-size: 11.5px; color: var(--muted); }

/* ----------------------------------------------------------------- footer */
.site-footer { background: #f7f1e8; color: #6b6359; font-size: 13.5px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .9fr .9fr 1.4fr; gap: 36px; padding: 48px 0 40px; }
.footer-brand p { margin-top: 16px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.social-links { display: flex; gap: 8px; margin-top: 14px; }
.social-links a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e6dccd; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--ink-2);
}
.social-links a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-col h4 { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a:hover { color: var(--red-dark); }
.footer-contact p { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-size: 12.5px; }
.footer-contact svg { color: var(--red); flex: none; margin-top: 3px; }
.newsletter { margin-top: 14px; }
.newsletter label { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; color: var(--muted); }
.newsletter-row { display: flex; gap: 6px; }
.newsletter-row input { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 8px; border: 1px solid #e6dccd; background: #fff; color: var(--ink); outline: none; font-size: 13px; }
.newsletter-row input:focus { border-color: var(--red); }
.newsletter-row .btn { padding: 9px 14px; font-size: 12.5px; }
.footer-bottom { border-top: 1px solid #e9dfd1; padding: 16px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #6f675c; }
.footer-bottom p { margin: 0; }
.payment-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-badges span {
  border: 1px solid #e6dccd; background: #fff; border-radius: 5px; padding: 3px 7px; font-size: 9.5px;
  font-weight: 800; letter-spacing: .04em; color: #6f675c;
}
.footer-admin a { text-decoration: underline; }
.footer-admin a:hover { color: var(--red-dark); }

/* ------------------------------------------------------------------ toast */
.toast-stack { position: fixed; right: 20px; bottom: 22px; z-index: 200; display: grid; gap: 8px; max-width: 340px; }
.toast {
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px;
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600;
  animation: toast-in .25s ease;
}
.toast.error { background: #9c6450; }
.toast.success { background: #46654f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.float-call {
  position: fixed; right: 20px; bottom: 82px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px rgba(160, 104, 83, .42);
  animation: pulse 2.6s infinite;
}
.float-call:hover { background: var(--red-dark); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(160, 104, 83, .45); }
  70% { box-shadow: 0 0 0 16px rgba(160, 104, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(160, 104, 83, 0); }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .hotline { display: none; }
  .nav-list > li > a { padding: 14px 12px; font-size: 12.5px; }
  .nav-support { display: none; }
}

@media (max-width: 960px) {
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  body.nav-open .main-nav { display: block; position: static; }
  body.nav-open .nav-list { flex-direction: column; align-items: stretch; }
  body.nav-open .nav-list > li > a { padding: 13px 18px; border-bottom: 1px solid #ede5db; text-transform: none; font-size: 14px; }
  body.nav-open .dropdown { position: static; display: block; box-shadow: none; border-radius: 0; padding: 4px 10px 8px 26px; background: #f3ece2; border-top: 0; }
  body.nav-open .dropdown a { color: var(--ink-2); }
  body.nav-open .dropdown a:hover { background: var(--red-soft); color: var(--red-dark); }
  .hero-caption { padding: 30px; }
  .hero-slider { aspect-ratio: 16 / 8; }
  .promo-grid, .post-grid { grid-template-columns: 1fr 1fr; }
  .sale-banner { grid-template-columns: 1fr; }
  .sale-banner-products { grid-template-columns: repeat(4, 1fr); }
  .category-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .filter-help { grid-column: 1 / -1; }
  .product-layout { grid-template-columns: 1fr; gap: 26px; }
  .product-gallery { position: static; }
  .cart-layout, .checkout-layout, .order-panels, .lookup-layout, .account-layout, .post-layout, .page-layout, .contact-layout { grid-template-columns: 1fr; }
  .summary-card, .account-nav, .post-sidebar, .filters { position: static; }
  .account-nav nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .reviews-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 28px); }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .brand-text small { display: none; }
  .header-icon > span:last-child { display: none; }
  .header-actions { gap: 14px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; }
  .brand-logo { height: 40px; max-width: 150px; }
  .brand-text strong { font-size: 16px; }
  .hero { padding-top: 14px; }
  .hero-caption h1, .hero-caption h2 { font-size: 1.55rem; }
  .hero-caption p { font-size: 12.5px; margin-bottom: 14px; }
  .hero-caption { padding: 20px; }
  .hero-eyebrow { font-size: 9px; padding: 4px 8px; margin-bottom: 8px; }
  .hero-caption .btn { padding: 8px 14px; font-size: 12px; }
  .hero-slider { aspect-ratio: 4 / 3.2; }
  .slider-arrow { display: none; }
  .section { padding: 38px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .product-grid, .product-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 10px 11px 12px; }
  .product-name { font-size: 12.5px; min-height: 3.4em; }
  .price, .price-sale { font-size: 15px; }
  .product-actions .btn { padding: 7px 9px; font-size: 11.5px; }
  .icon-link { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promo-grid, .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .sale-banner { padding: 24px; }
  .sale-banner-products { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .success-meta { grid-template-columns: 1fr 1fr; }
  .bank-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr; }
  .steps li { font-size: 11.5px; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); position: relative; }
  .cart-table td { border: 0; padding: 5px 0; }
  .cart-table td::before { content: attr(data-label); font-size: 11px; color: var(--muted); display: block; }
  .cart-table td:last-child { position: absolute; right: 10px; top: 10px; width: auto; }
  .cart-table td:last-child::before { display: none; }
  .cart-actions { flex-direction: column; align-items: stretch; }
  .cart-actions .btn { width: 100%; }
  .cart-actions-right { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .tab-btn { padding: 10px 12px; font-size: 12px; }
  .tab-panel { padding: 18px; }
  .auth-form { padding: 26px 22px; }
  .error-card { padding: 30px 22px; }
  .float-call { width: 44px; height: 44px; bottom: 74px; right: 14px; }
}

/* ------------------------------------------------------- ?nh phóng to (zoom) */
.img-zoom {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(22, 15, 10, .88);
  cursor: zoom-out;
  animation: imgZoomFade .16s ease-out;
}
.img-zoom img {
  max-width: min(94vw, 760px);
  max-height: 90vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.img-zoom-close {
  position: absolute; top: 14px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 22px; line-height: 1;
  cursor: pointer;
}
.img-zoom-close:hover { background: rgba(255, 255, 255, .3); }
body.img-zoom-open { overflow: hidden; }
@keyframes imgZoomFade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) {
  .img-zoom { padding: 10px; }
  .img-zoom img { padding: 6px; }
}
