/* ============================================================
   assets/shop.css
   Stylesheet riêng cho khu vực "mặt tiền" cửa hàng (index.php,
   product.php). Dùng chung biến màu / font với assets/style.css
   (đã import trước) nhưng ghi đè layout body vì style.css mặc
   định căn giữa dạng "card" (dành cho trang login).
   ============================================================ */

* { box-sizing: border-box; }

/* ---------------- Sticky footer layout ----------------
   html/body chiếm đủ chiều cao màn hình, body là flex-column với 3
   khối con trực tiếp: .shop-topbar (header) → .shop-wrap (main,
   flex:1 để "nở" chiếm hết khoảng trống còn lại) → .shop-footer
   (luôn bị đẩy xuống đáy màn hình, kể cả khi nội dung trang rất ngắn). */
html { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
}

.shop-topbar { flex: 0 0 auto; }

.shop-wrap {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ---------------- Topbar ---------------- */
.shop-topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 4px 16px -12px rgba(15, 23, 42, 0.15);
}
.shop-topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}

/* Brand */
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark, var(--accent)));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 10px -2px var(--accent-ring);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--text); letter-spacing: -.01em; }

/* Search */
.shop-search { flex: 1; max-width: 420px; }
.shop-search input {
  width: 100%; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font: inherit; font-size: 14px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.shop-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.shop-spacer { flex: 1; }

/* Admin quick link */
.topbar-admin-link {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
}
.topbar-admin-link:hover { color: var(--accent); border-color: var(--accent); }

/* Khách vãng lai (chưa đăng nhập): nút Đăng nhập / Đăng ký trên topbar */
.guest-auth-links { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.guest-link {
  font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; transition: background .15s, border-color .15s, color .15s;
}
.guest-link-login { color: var(--text-dim); border: 1px solid var(--border); background: var(--surface); }
.guest-link-login:hover { color: var(--accent); border-color: var(--accent); }
.guest-link-register { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.guest-link-register:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---------------- Account badge + dropdown ---------------- */
.account-menu { position: relative; flex-shrink: 0; }
.account-badge {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer;
  font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.account-badge:hover { border-color: var(--accent); }
.account-badge:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--accent-ring); }
.account-badge img { width: 32px; height: 32px; border-radius: 50%; display: block; background: var(--accent-soft); flex-shrink: 0; }
.account-badge .acc-text { display: flex; flex-direction: column; line-height: 1.25; align-items: flex-start; }
.account-badge .acc-name { font-weight: 700; font-size: 13px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.account-badge .acc-balance-inline { font-weight: 800; font-size: 12.5px; color: var(--accent); }
.account-badge .acc-caret { color: var(--text-faint); font-size: 10px; transition: transform .15s; margin-left: 2px; }
.account-menu.is-open .acc-caret { transform: rotate(180deg); }

.account-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 270px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 8px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}
.account-menu.is-open .account-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  pointer-events: auto;
}

.account-dropdown .acc-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 6px; }
.account-dropdown .acc-head img { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); }
.account-dropdown .acc-head .acc-uname { font-weight: 700; font-size: 14px; color: var(--text); }
.account-dropdown .acc-head .acc-email { font-size: 12.5px; color: var(--text-faint); word-break: break-all; }
.account-dropdown .acc-balance {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--accent-soft); color: var(--accent); border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 13px; font-weight: 700; margin-bottom: 6px;
}
.account-dropdown a, .account-dropdown button.acc-link {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
  color: var(--text); text-decoration: none; background: none; border: none; cursor: pointer; font-family: inherit;
}
.account-dropdown a:hover, .account-dropdown button.acc-link:hover { background: var(--accent-soft); color: var(--accent); }
.account-dropdown .acc-logout { color: var(--err); border-top: 1px solid var(--border-soft); margin-top: 6px; padding-top: 10px; }
.account-dropdown .acc-logout:hover { background: var(--err-bg); color: var(--err); }

/* ---------------- Category tabs ---------------- */
.cat-tabs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; overflow-x: auto; }
.cat-tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); text-decoration: none;
  white-space: nowrap; transition: border-color .15s, color .15s, background .15s;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------------- Breadcrumb (dùng chung index + product) ---------------- */
.pd-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint); padding-top: 22px;
}
.pd-breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color .12s ease; }
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-breadcrumb .sep { color: var(--text-faint); }
.pd-breadcrumb .current { color: var(--text); font-weight: 600; }

.shop-heading { padding-top: 10px; }
.shop-heading h1 { font-family: var(--font-display); font-size: 26px; margin: 0 0 4px; letter-spacing: -.01em; }
.shop-heading p { color: var(--text-dim); margin: 0; font-size: 14.5px; }

/* ---------------- Alerts ---------------- */
.pd-alert { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; }
.alert-ok.pd-alert { background: var(--ok-bg); color: var(--ok); }
.alert-err.pd-alert { background: var(--err-bg); color: var(--err); }

/* ---------------- Product grid ---------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px; margin-top: 20px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.product-card:hover { box-shadow: var(--shadow-card); border-color: var(--accent); transform: translateY(-3px); }
.product-card .thumb {
  aspect-ratio: 1 / 1; background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .thumb .no-img { color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 30px; }
.product-card .stock-flag {
  position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
}
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat-name { font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.product-card .p-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; min-height: 38px; }
.product-card .p-price { margin-top: auto; font-size: 15px; font-weight: 800; color: var(--accent); }
.product-card .p-price .from { font-size: 11px; font-weight: 600; color: var(--text-faint); text-transform: uppercase; margin-right: 4px; }
.product-card .p-price .old { font-size: 12px; font-weight: 600; color: var(--text-faint); text-decoration: line-through; margin-left: 6px; }

/* ---------------- Product detail page ---------------- */
.pd-card {
  display: grid; grid-template-columns: 380px 1fr; gap: 36px; margin-top: 22px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-card);
}
@media (max-width: 780px) { .pd-card { grid-template-columns: 1fr; padding: 18px; } }

.pd-media { display: flex; flex-direction: column; gap: 16px; }
.pd-image { background: var(--accent-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; }
.pd-image img { width: 100%; height: 100%; object-fit: cover; }
.pd-image .no-img { color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 54px; }

.pd-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-trust-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 0;
  font-size: 11.5px; font-weight: 600; color: var(--text-dim); text-align: center; line-height: 1.3;
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  padding: 10px 6px; white-space: normal; word-break: break-word; overflow-wrap: anywhere;
}
.pd-trust-item .ic { font-size: 16px; flex-shrink: 0; }
@media (max-width: 460px) {
  .pd-trust { grid-template-columns: 1fr; }
  .pd-trust-item { flex-direction: row; justify-content: flex-start; text-align: left; }
}

.pd-info .pd-cat-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px;
}
.pd-info h1 { font-family: var(--font-display); font-size: 24px; margin: 0 0 14px; letter-spacing: -.01em; }

.pd-price-box { background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }
.pd-price { font-size: 26px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.pd-price .old { font-size: 15px; font-weight: 600; color: var(--text-faint); text-decoration: line-through; margin-left: 10px; }
.pd-stock { font-size: 13px; font-weight: 600; }
.pd-stock.in { color: var(--ok); }
.pd-stock.out { color: var(--err); }

.pd-field-label { font-size: 12.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: .03em; margin: 4px 0 8px; }

.pd-variants { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pd-variant-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pd-variant-opt input { accent-color: var(--accent); }
.pd-variant-opt .vname { font-size: 13.5px; font-weight: 600; flex: 1; }
.pd-variant-opt .vprice { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.pd-variant-opt .vprice .old { font-size: 11.5px; color: var(--text-faint); text-decoration: line-through; margin-right: 6px; }
.pd-variant-opt.disabled { opacity: .5; cursor: not-allowed; }
.pd-variant-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.pd-order-form { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-input {
  display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.qty-input button { width: 34px; height: 40px; border: none; background: var(--surface); cursor: pointer; font-size: 16px; color: var(--text-dim); }
.qty-input button:hover { background: var(--accent-soft); color: var(--accent); }
.qty-input input { width: 54px; height: 40px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font: inherit; font-weight: 700; }
.qty-input input:focus { outline: none; }

.pd-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 13.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 4px;
}
.pd-subtotal span:last-child { color: var(--accent); font-size: 16px; font-weight: 800; }

.pd-sections { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.pd-section-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; }
.pd-section-card h3 { font-size: 14.5px; margin: 0 0 12px; font-family: var(--font-display); display: flex; align-items: center; gap: 8px; }
.pd-section-ic { font-size: 15px; }
.pd-section .txt { font-size: 14px; line-height: 1.7; color: var(--text-dim); white-space: pre-line; }

/* Nội dung đã render từ markdown (Parsedown) — HTML thật, không cần pre-line */
.pd-section .markdown-body { white-space: normal; }
.markdown-body p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.markdown-body p:last-child { margin-bottom: 0; }
.markdown-body ul, .markdown-body ol { margin: 0 0 12px; padding-left: 22px; }
.markdown-body li { margin-bottom: 4px; font-size: 14px; color: var(--text-dim); }
.markdown-body a { color: var(--accent); text-decoration: underline; }
.markdown-body strong { color: var(--text); font-weight: 700; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
  font-family: var(--font-display); color: var(--text); margin: 16px 0 8px; line-height: 1.3;
}
.markdown-body h1:first-child, .markdown-body h2:first-child,
.markdown-body h3:first-child, .markdown-body h4:first-child { margin-top: 0; }
.markdown-body code {
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono);
  font-size: 12.5px; padding: 2px 6px; border-radius: 4px;
}
.markdown-body pre { background: #101828; color: #f2f4f7; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 0 0 12px; }
.markdown-body pre code { background: none; color: inherit; padding: 0; }
.markdown-body blockquote {
  margin: 0 0 12px; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft);
  color: var(--text-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.markdown-body img { max-width: 100%; border-radius: var(--radius-sm); }
.markdown-body table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 13px; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.markdown-body th { background: #fafbff; font-weight: 700; }

.empty-shop { text-align: center; padding: 70px 20px; color: var(--text-faint); }
.empty-shop .e-icon { font-size: 42px; margin-bottom: 10px; }

/* Nút đặt hàng: không chiếm full width như .btn mặc định (dùng cho form login) */
.btn-inline { width: auto; padding: 11px 26px; }
.btn:disabled, .btn-inline:disabled { background: var(--text-faint); cursor: not-allowed; box-shadow: none; }

/* ---------------- Hero banner (trang chủ) ---------------- */
/* Gọn, dạng dải ngang 1 hàng: text bên trái + số liệu/CTA bên phải,
   thay vì khối lớn nhiều tầng như trước để tiết kiệm diện tích. */
.shop-hero {
  margin-top: 22px;
  border-radius: 16px;
  padding: 18px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background:
    radial-gradient(500px 200px at 100% -20%, rgba(255,255,255,0.16) 0%, transparent 60%),
    linear-gradient(120deg, var(--accent) 0%, var(--accent-hover) 60%, #3730a3 100%);
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(79,70,229,0.55);
}
.shop-hero-main { position: relative; z-index: 1; min-width: 0; }
.shop-hero h1 {
  font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -0.01em;
  margin: 0 0 3px; line-height: 1.25;
}
.shop-hero p {
  font-size: 13px; line-height: 1.4; color: rgba(255,255,255,0.85); margin: 0;
  max-width: 480px;
}
.shop-hero-stats { position: relative; z-index: 1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex-shrink: 0; }
.shop-hero-stat { display: flex; flex-direction: column; gap: 1px; }
.shop-hero-stat b { font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.shop-hero-stat span { font-size: 11px; color: rgba(255,255,255,0.75); font-weight: 600; }
.shop-hero-cta {
  font-size: 13px; font-weight: 700; text-decoration: none; color: var(--accent);
  background: #fff; padding: 9px 18px; border-radius: 999px; white-space: nowrap;
  transition: opacity .15s;
}
.shop-hero-cta:hover { opacity: .9; }
@media (max-width: 640px) {
  .shop-hero { padding: 16px 18px; }
  .shop-hero h1 { font-size: 17px; }
  .shop-hero-stats { gap: 16px; }
}

/* ---------------- Trust strip ---------------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; margin-top: 18px;
}
.trust-strip-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-card);
}
.trust-strip-ic {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.trust-strip-txt b { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.trust-strip-txt span { display: block; font-size: 12px; color: var(--text-faint); margin-top: 1px; }

/* ---------------- Products panel (container bọc lưới sản phẩm) ---------------- */
.products-panel {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 22px 22px 26px; margin-top: 22px;
}
.products-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}
.products-count { font-size: 13px; color: var(--text-dim); }
.products-count strong { color: var(--text); }
.products-page-indicator {
  font-size: 12.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------------- Pagination ---------------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.page-link {
  min-width: 36px; height: 36px; padding: 0 8px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-link.disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { color: var(--text-faint); padding: 0 4px; font-size: 13px; }

/* ---------------- Trang liên hệ ---------------- */
.contact-hero { text-align: center; max-width: 620px; margin: 0 auto; padding-top: 6px; }
.contact-hero h1 { font-family: var(--font-display); font-size: 28px; margin: 0 0 8px; letter-spacing: -.01em; }
.contact-hero p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin: 0; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px; margin-top: 30px;
}
.contact-card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 24px 22px; text-align: center;
  text-decoration: none; color: var(--text); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.contact-card .cc-ic {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: var(--accent-soft); color: var(--accent);
}
.contact-card b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.contact-card span { display: block; font-size: 12.5px; color: var(--text-faint); word-break: break-word; }
.contact-card.zalo .cc-ic    { background: #e8f4ff; color: #0068ff; }
.contact-card.facebook .cc-ic{ background: #e8f0ff; color: #1877f2; }
.contact-card.telegram .cc-ic{ background: #e6f6ff; color: #29a9eb; }

.contact-info-panel {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 24px 26px;
}
.contact-info-panel h2 { font-family: var(--font-display); font-size: 16px; margin: 0 0 14px; }
.contact-info-panel .kv span:first-child { min-width: 140px; }

/* ---------------- Footer ---------------- */
.shop-footer { flex: 0 0 auto; border-top: 1px solid var(--border); margin-top: 56px; background: var(--surface); }
.shop-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 32px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.sf-brand { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.sf-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--text); }
.sf-tagline { font-size: 12.5px; color: var(--text-faint); }
.sf-links { display: flex; gap: 18px; flex-wrap: wrap; }
.sf-links a { font-size: 13px; font-weight: 600; color: var(--text-dim); text-decoration: none; }
.sf-links a:hover { color: var(--accent); }
.sf-copy { font-size: 12px; color: var(--text-faint); width: 100%; text-align: center; }
@media (min-width: 640px) { .sf-copy { width: auto; text-align: right; } }