/* ============================================================
   GIA DỤNG VIỆT – css/style.css
   Website bán đồ gia dụng (HTML/CSS/JS thuần)
   ============================================================ */

/* ---------- Reset & biến màu ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #16a34a;
  --primary-dark: #12813c;
  --primary-light: #e7f6ee;
  --accent: #f59e0b;
  --danger: #ef4444;
  --price: #dc2626;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f6faf7;
  --surface: #ffffff;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, .12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: 58px 0; }
.text-center { text-align: center; }

/* ---------- Nút bấm ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; transition: all .25s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary-dark); background: transparent; }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.brand img { width: 40px; height: 40px; }
.brand-accent { color: var(--primary); }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 9px 15px; border-radius: var(--radius-sm);
  font-weight: 500; color: #334155; transition: .2s;
}
.main-nav a:hover { background: var(--primary-light); color: var(--primary-dark); }
.main-nav a.active { background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative;
  display: inline-flex; padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  transition: .2s;
}
.cart-btn:hover { background: #d3eedd; }
.cart-btn svg { width: 22px; height: 22px; stroke: var(--primary-dark); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge.pulse { animation: pulse .45s ease; }
@keyframes pulse { 50% { transform: scale(1.4); } }

.menu-toggle {
  display: none; padding: 9px; border: none; cursor: pointer;
  border-radius: var(--radius-sm); background: var(--primary-light);
}
.menu-toggle svg { width: 22px; height: 22px; stroke: var(--primary-dark); display: block; }

/* ---------- Hero (trang chủ) ---------- */
.hero {
  background: linear-gradient(135deg, #eafaf0 0%, #ffffff 55%, #fef9ec 100%);
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 40px; padding: 60px 0;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--primary-dark);
  box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.14; margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 span { color: var(--primary); }
.hero-desc { color: var(--text-muted); max-width: 480px; margin-bottom: 28px; font-size: 17px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; }
.hero-stats b { font-size: 26px; color: var(--primary-dark); display: block; line-height: 1.2; }
.hero-stats span { color: var(--text-muted); font-size: 14px; }
.hero-art img { width: 100%; animation: floaty 5.5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ---------- Dải cam kết ---------- */
.features { background: var(--surface); border-bottom: 1px solid var(--border); padding: 34px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { display: flex; align-items: center; gap: 14px; }
.feature-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: 14px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; stroke: var(--primary-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature b { display: block; font-size: 15px; }
.feature span { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Tiêu đề mục ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head .eyebrow {
  color: var(--primary); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px;
}
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 10px; letter-spacing: -.4px; }
.section-head p { color: var(--text-muted); }

/* ---------- Danh mục nổi bật ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 20px;
  text-align: center; transition: .25s; display: block;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-emoji {
  width: 74px; height: 74px; margin: 0 auto 14px;
  border-radius: 50%; font-size: 36px;
  display: flex; align-items: center; justify-content: center;
}
.category-card h3 { font-size: 17px; margin-bottom: 4px; }
.category-card p { color: var(--text-muted); font-size: 14px; }

/* ---------- Thẻ sản phẩm ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; transition: .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; background: #f1f5f9; }
.product-thumb img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }

.badge-sale, .badge-tag {
  position: absolute; top: 12px; z-index: 2;
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.badge-sale { left: 12px; background: var(--danger); }
.badge-tag { right: 12px; background: var(--accent); }

.product-cat { font-size: 12.5px; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.product-name {
  font-size: 15.5px; line-height: 1.4; margin: 4px 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44px;
}
.product-rating { color: var(--accent); font-size: 13.5px; margin-bottom: 10px; }
.product-rating span { color: var(--text-muted); }

.product-bottom { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.price-box { display: flex; flex-direction: column; line-height: 1.25; }
.price { color: var(--price); font-weight: 800; font-size: 17.5px; }
.price-box del { color: var(--text-muted); font-size: 13px; }
.btn-add {
  width: 42px; height: 42px; flex-shrink: 0;
  border: none; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.btn-add:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ---------- Banner khuyến mãi + đếm ngược ---------- */
.promo-banner {
  background: linear-gradient(120deg, #166534, #16a34a 55%, #15803d);
  border-radius: 22px; color: #fff; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  box-shadow: var(--shadow-md);
}
.promo-content { padding: 48px; }
.promo-content h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -.4px; margin-bottom: 10px; }
.promo-content > p { opacity: .92; max-width: 420px; }
.countdown { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.cd-box {
  min-width: 76px; padding: 10px 8px; text-align: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px;
}
.cd-box b { font-size: 27px; display: block; line-height: 1.2; }
.cd-box span { font-size: 11.5px; text-transform: uppercase; opacity: .85; letter-spacing: .5px; }
.promo-art { padding: 20px 28px 20px 0; }
.promo-art img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25)); }

/* ---------- Đăng ký nhận tin ---------- */
.newsletter { background: var(--surface); border-block: 1px solid var(--border); padding: 46px 0; }
.newsletter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.newsletter-inner h3 { font-size: 23px; letter-spacing: -.3px; }
.newsletter-inner p { color: var(--text-muted); }
.newsletter-form { display: flex; gap: 10px; flex: 1; min-width: min(430px, 100%); max-width: 520px; }
.newsletter-form input {
  flex: 1; padding: 12px 20px; font-size: 15px; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: 999px; outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--primary); }

/* ---------- Đầu trang con (breadcrumb) ---------- */
.page-head {
  background: linear-gradient(120deg, #eafaf0, #fdf6e7);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 30px;
}
.breadcrumb { font-size: 14px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); margin-top: 4px; letter-spacing: -.4px; }
.page-head p { color: var(--text-muted); margin-top: 4px; }

/* ---------- Trang sản phẩm: bộ lọc ---------- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; }
.filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  position: sticky; top: 90px;
}
.filter-group + .filter-group { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border); }
.filter-group h3 { font-size: 15px; margin-bottom: 12px; }
.cat-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; margin-bottom: 2px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 8px; font-size: 14.5px; color: #334155;
  transition: .15s;
}
.cat-list button:hover { background: var(--primary-light); }
.cat-list button.active { background: var(--primary); color: #fff; font-weight: 600; }
.range-label { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-muted); margin-bottom: 6px; }
.range-value { color: var(--primary-dark); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--primary); cursor: pointer; }
.filter-reset { margin-top: 20px; width: 100%; padding: 10px; border-radius: var(--radius-sm); }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.search-box {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px;
  border: 1.5px solid var(--border); border-radius: 999px;
  padding: 9px 18px; background: var(--bg);
}
.search-box:focus-within { border-color: var(--primary); }
.search-box svg { width: 18px; height: 18px; stroke: var(--text-muted); flex-shrink: 0; }
.search-box input {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14.5px; width: 100%;
}
.sort-select {
  padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: #fff;
  font-family: inherit; font-size: 14px; cursor: pointer;
}
.result-count { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.result-count b { color: var(--primary-dark); }

.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); grid-column: 1 / -1; }
.empty-state .empty-emoji { font-size: 64px; margin-bottom: 12px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* ---------- Trang giỏ hàng ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.cart-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cart-table th {
  text-align: left; padding: 14px 18px;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.cart-table td { padding: 16px 18px; border-top: 1px solid var(--border); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 14px; }
.cart-item img { width: 78px; height: 60px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-item-name { display: block; font-weight: 600; font-size: 14.5px; color: inherit; }
.cart-item-name:hover { color: var(--primary); }
.cart-item-cat { font-size: 13px; color: var(--text-muted); }
.unit-price { color: var(--text-muted); white-space: nowrap; }

.qty-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; }
.qty-btn {
  width: 34px; height: 34px; border: none; background: transparent;
  font-size: 17px; font-weight: 700; color: var(--primary-dark); cursor: pointer;
  border-radius: 50%; transition: .15s;
}
.qty-btn:hover { background: var(--primary-light); }
.qty-input { width: 40px; text-align: center; border: none; background: transparent; font-family: inherit; font-weight: 600; font-size: 15px; }

.line-total { font-weight: 700; color: var(--price); white-space: nowrap; }
.remove-btn {
  border: none; background: #fee2e2; color: var(--danger);
  padding: 9px; border-radius: 9px; cursor: pointer;
  display: inline-flex; transition: .2s;
}
.remove-btn:hover { background: var(--danger); color: #fff; }
.remove-btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.summary-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  position: sticky; top: 90px;
}
.summary-card h3 { margin-bottom: 12px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; color: #334155; }
.free-ship-note {
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13.5px; border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 12px 0;
}
.summary-row.total {
  border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 16px;
  font-size: 19px; font-weight: 800; color: var(--text);
}
.summary-card .btn { margin-top: 16px; }
.ship-hint { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 10px; }

.success-box {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 6px solid var(--primary);
  border-radius: var(--radius); padding: 46px 30px;
  text-align: center; max-width: 580px; margin: 0 auto;
}
.success-box .success-emoji { font-size: 62px; }
.success-box h2 { margin: 10px 0 6px; }
.success-box p { color: var(--text-muted); }
.success-order-id {
  display: inline-block; margin: 14px 0 22px; padding: 8px 22px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; font-weight: 700; letter-spacing: .5px;
}

/* ---------- Link xem chi tiết trên thẻ sản phẩm ---------- */
.product-link { display: block; color: inherit; }
.product-link:hover .product-name { color: var(--primary-dark); }

/* ---------- Trang chi tiết sản phẩm ---------- */
.detail-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; align-items: start;
}
.detail-gallery {
  position: sticky; top: 90px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.detail-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.detail-info h1 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3; letter-spacing: -.4px; margin: 6px 0 8px;
}
.detail-price-box {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  background: #fdf2f2; border: 1px solid #fecaca;
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin: 16px 0;
}
.price-detail { font-size: 30px; font-weight: 800; color: var(--price); }
.price-old { color: var(--text-muted); font-size: 17px; }
.chip-giam {
  background: var(--danger); color: #fff;
  font-weight: 700; font-size: 13.5px;
  padding: 3px 12px; border-radius: 999px; align-self: center;
}
.detail-desc { color: #334155; margin-bottom: 18px; }

.policy-list { margin-bottom: 24px; }
.policy-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0; font-size: 14.5px; color: #334155;
}
.policy-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px; background: var(--primary-light);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}

.detail-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.detail-buy .qty-stepper { border-color: var(--primary); }
.detail-note { font-size: 13.5px; color: var(--text-muted); margin-top: 16px; }

/* ---------- Form (liên hệ) ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.form-card h2 { margin-bottom: 4px; }
.form-card > p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-field label i { color: var(--danger); font-style: normal; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  outline: none; background: #fff; transition: border-color .2s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--primary); }
.field-error { display: block; color: var(--danger); font-size: 13px; min-height: 19px; margin-top: 4px; }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--danger); }

.contact-info-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.contact-info-card + .contact-info-card { margin-top: 14px; }
.contact-info-card .feature-icon { width: 48px; height: 48px; }
.contact-info-card b { display: block; font-size: 15.5px; }
.contact-info-card p { color: var(--text-muted); font-size: 14.5px; }
.map-box { margin-top: 16px; }
.map-box img { border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Trang giới thiệu ---------- */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-story h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; letter-spacing: -.4px; }
.about-story p { color: #334155; margin-bottom: 12px; }
.about-story img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.stats-band {
  background: linear-gradient(120deg, #14532d, #16a34a);
  border-radius: 22px; color: #fff;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; padding: 40px 30px; text-align: center;
  box-shadow: var(--shadow-md);
}
.stats-band b { font-size: clamp(28px, 3.4vw, 40px); display: block; line-height: 1.2; }
.stats-band span { opacity: .88; font-size: 14px; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; transition: .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .category-emoji { width: 62px; height: 62px; font-size: 30px; margin: 0 0 12px; }
.value-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.value-card p { color: var(--text-muted); font-size: 14px; }

.cta-band {
  background: linear-gradient(120deg, #166534, #16a34a);
  border-radius: 22px; color: #fff; text-align: center;
  padding: 52px 30px; box-shadow: var(--shadow-md);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; letter-spacing: -.4px; }
.cta-band p { opacity: .92; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1f14; color: #b7c8bd; margin-top: 74px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 32px; padding: 56px 0 42px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; }
.site-footer p { font-size: 14.5px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer-links a { display: block; padding: 5px 0; font-size: 14.5px; color: #9db3a5; transition: .2s; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-contact li { display: flex; gap: 10px; padding: 5px 0; font-size: 14.5px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.socials a:hover { background: var(--primary); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0; text-align: center; font-size: 14px; color: #86a292;
}

/* ---------- Thông báo (toast) ---------- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: #0f172a; color: #fff;
  padding: 13px 20px; border-radius: 12px;
  box-shadow: var(--shadow-md); font-size: 14.5px; max-width: 360px;
  animation: toastIn .3s ease;
}
.toast.error { background: #7f1d1d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
.toast.hide { opacity: 0; transform: translateY(10px); transition: .35s; }

/* ---------- Hiệu ứng xuất hiện ---------- */
.fade-up { animation: fadeUp .55s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .category-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 44px 0; }
  .hero-desc { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-art { max-width: 520px; margin: 0 auto; }
  .promo-banner { grid-template-columns: 1fr; text-align: center; }
  .promo-content { padding: 36px 26px 8px; }
  .promo-content > p { margin-inline: auto; }
  .countdown { justify-content: center; }
  .promo-art { padding: 0 26px 26px; max-width: 420px; margin: 0 auto; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; gap: 26px; }
  .detail-gallery { position: static; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--surface); flex-direction: column;
    padding: 14px; gap: 4px; box-shadow: var(--shadow-md);
    display: none; z-index: 99;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 16px; }
  .menu-toggle { display: inline-flex; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .category-grid, .value-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .brand span.brand-text { display: none; }
}

@media (max-width: 430px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-item img { width: 64px; height: 50px; }
}
