/* ============================================================
   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.86);
  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::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-signature); opacity: .9;
}
.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: var(--gradient-signature);
  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); }
.topbar-admin-link .nav-icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 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(--gradient-signature); border: 1px solid transparent; }
.guest-link-register:hover { filter: brightness(1.05); }

/* ---------------- 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: 28px; height: 28px; border-radius: 50%; display: block; flex-shrink: 0;
  padding: 2px; box-sizing: content-box; background: var(--gradient-signature);
}
.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: 36px; height: 36px; border-radius: 50%; padding: 2px; box-sizing: content-box; background: var(--gradient-signature); }
.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, box-shadow .15s;
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent); }
.cat-tab.active {
  background: var(--gradient-signature); border-color: transparent; color: #fff;
  box-shadow: 0 6px 14px -6px var(--accent-ring);
}

/* ---------------- 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(-4px); }
.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::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .2s;
  background: linear-gradient(0deg, rgba(13,21,38,0.24) 0%, transparent 45%);
}
.product-card:hover .thumb::after { opacity: 1; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .thumb img { transform: scale(1.05); }
.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 9px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.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.preorder .vname { color: #b7791f; }
.pd-variant-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pd-variant-opt.preorder:has(input:checked) { border-color: #b7791f; background: #fef3e0; }

.pd-preorder-hint {
  margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: #92600f;
  background: #fef3e0; border: 1px solid #f6dfae; border-radius: var(--radius-sm); padding: 8px 12px;
}

.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ủ) ----------------
   Compact single-row strip: headline+text on the left, stats/CTA on
   the right. Kept intentionally slim so it doesn't push products down. */
.shop-hero {
  margin-top: 22px;
  border-radius: 14px;
  padding: 16px 24px;
  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%),
    var(--gradient-signature);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(47,95,255,0.55);
}
.shop-hero-main { position: relative; z-index: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.shop-hero h1 {
  font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.01em;
  margin: 0; line-height: 1.3; white-space: nowrap;
}
.shop-hero p {
  font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.85); margin: 0;
}
.shop-hero-stats { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex-shrink: 0; }
.shop-hero-stat { display: flex; align-items: baseline; gap: 4px; }
.shop-hero-stat b { font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.shop-hero-stat span { font-size: 11px; color: rgba(255,255,255,0.78); font-weight: 600; }
.shop-hero-cta {
  font-size: 12.5px; font-weight: 700; text-decoration: none; color: var(--accent-dark);
  background: #fff; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
  transition: transform .15s;
}
.shop-hero-cta:hover { transform: translateY(-1px); }
@media (max-width: 640px) {
  .shop-hero { padding: 14px 16px; }
  .shop-hero-main { flex-direction: column; align-items: flex-start; gap: 2px; }
  .shop-hero h1 { font-size: 15px; white-space: normal; }
  .shop-hero-stats { gap: 14px; }
}

/* ---------------- 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: 40px; height: 40px; border-radius: 12px; background: var(--gradient-signature);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 6px 14px -6px var(--accent-ring);
}
.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); position: relative; }
.shop-footer::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--gradient-signature); opacity: .85;
}
.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; } }
.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);
}

/* Dropdown chọn danh mục: ẩn mặc định (desktop đã có .cat-tabs ở header) */
.cat-select-menu { position: relative; display: none; flex-shrink: 0; }

.cat-select-btn {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 12px 7px 14px; cursor: pointer;
  max-width: 160px;
}
.cat-select-btn span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cs-caret { font-size: 10px; flex-shrink: 0; transition: transform .15s; }
.cat-select-menu.is-open .cs-caret { transform: rotate(180deg); }

.cat-select-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px; max-width: calc(100vw - 48px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
  padding: 6px; z-index: 30;
  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;
  max-height: 260px; overflow-y: auto;
}
.cat-select-menu.is-open .cat-select-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  pointer-events: auto;
}
.cat-select-dropdown a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--text-dim); text-decoration: none;
}
.cat-select-dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.cat-select-dropdown a.active { background: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .products-count { display: none; } /* ẩn hẳn số lượng sản phẩm ở mobile */
  .products-panel-head { justify-content: flex-end; }
  .cat-select-menu { display: block; margin-left: auto; }
}
/* Hiệu ứng mờ nhẹ khi đang tải nội dung mới qua AJAX */
#shop-main { transition: opacity .18s ease; }
#shop-main.shop-main-loading { opacity: .35; pointer-events: none; }

/* Dropdown chọn danh mục trong products-panel-head: ẩn mặc định (desktop dùng .cat-tabs ở header) */
.cat-select-menu { position: relative; display: none; flex-shrink: 0; }
.cat-select-btn {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 12px 7px 14px; cursor: pointer;
  max-width: 160px;
}
.cat-select-btn span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-caret { font-size: 10px; flex-shrink: 0; transition: transform .15s; }
.cat-select-menu.is-open .cs-caret { transform: rotate(180deg); }
.cat-select-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px; max-width: calc(100vw - 48px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
  padding: 6px; z-index: 30;
  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; max-height: 260px; overflow-y: auto;
}
.cat-select-menu.is-open .cat-select-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto;
}
.cat-select-dropdown a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; color: var(--text-dim); text-decoration: none;
}
.cat-select-dropdown a:hover { background: var(--accent-soft); color: var(--accent); }
.cat-select-dropdown a.active { background: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .products-count { display: none; }
  .products-panel-head { justify-content: flex-end; }
  .cat-select-menu { display: block; margin-left: auto; }
}
/* ---------------- Breadcrumb (dùng chung index + product) ---------------- */
.pd-breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
  margin-top: 22px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.pd-breadcrumb a {
  color: var(--text-dim); text-decoration: none; font-weight: 600;
  transition: color .12s ease;
}
.pd-breadcrumb a:hover { color: var(--accent); }
.pd-breadcrumb .sep { color: var(--text-faint); font-size: 12px; }
.pd-breadcrumb .current {
  color: var(--text); font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw;
}
.shop-heading {
  margin-top: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.shop-heading h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
  letter-spacing: -.01em;
  color: var(--text);
}
.shop-heading p {
  color: var(--text-dim);
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.shop-heading p strong { color: var(--text); }

/* ============================================================
   COMMERCIAL STOREFRONT 2026
   ============================================================ */
body.shop-page { background: #f6f8fc; }
.shop-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 16px 72px; }

.shop-hero {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  gap: 56px;
  padding: 54px 58px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(125,106,255,.52), transparent 27%),
    radial-gradient(circle at 73% 82%, rgba(37,99,235,.38), transparent 30%),
    linear-gradient(135deg, #08142d 0%, #111d3f 54%, #172554 100%);
  box-shadow: 0 26px 70px rgba(15, 23, 42, .22);
}
.shop-hero::before {
  content: '';
  position: absolute;
  width: 310px;
  height: 310px;
  right: 60px;
  top: 40px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 42px;
  transform: rotate(14deg);
}
.shop-hero::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  right: 125px;
  top: 98px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(99,102,241,.88), rgba(37,99,235,.28));
  box-shadow: 0 30px 70px rgba(30,64,175,.35);
  transform: rotate(-8deg);
}
.shop-hero-main { position: relative; z-index: 2; display: block; max-width: 680px; }
.hero-eyebrow, .section-kicker {
  display: block;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.shop-hero h1 {
  max-width: 650px;
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.shop-hero p { max-width: 590px; margin: 0; color: #c8d3e8; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.hero-primary, .hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .2s, background .2s, border-color .2s;
}
.hero-primary { background: #fff; color: #172554; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.hero-secondary { border: 1px solid rgba(255,255,255,.26); color: #fff; background: rgba(255,255,255,.06); }
.hero-primary:hover, .hero-secondary:hover { transform: translateY(-2px); }
.hero-secondary:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.11); }
.shop-hero-stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: end;
}
.shop-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(8,20,45,.44);
  backdrop-filter: blur(10px);
}
.shop-hero-stat b { color: #fff; font-size: 25px; line-height: 1; }
.shop-hero-stat span { color: #cbd5e1; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.shop-hero-cta { grid-column: 1/-1; padding: 13px 18px; border-radius: 12px; color: #fff; background: #4f46e5; text-align: center; font-weight: 750; }

.commerce-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 22px 0 50px;
  overflow: hidden;
  border: 1px solid #e3e8f2;
  border-radius: 18px;
  background: #e3e8f2;
  box-shadow: 0 12px 36px rgba(30, 41, 59, .06);
}
.commerce-benefits article { display: flex; align-items: center; gap: 13px; padding: 20px 22px; background: #fff; }
.benefit-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; color: #4338ca; background: #eef2ff; font-weight: 850; }
.commerce-benefits strong { display: block; color: #172033; font-size: 14px; }
.commerce-benefits small { display: block; margin-top: 3px; color: #718096; font-size: 12px; line-height: 1.4; }

.products-panel { padding: 0; border: 0; background: transparent; box-shadow: none; }
.products-panel-head { align-items: end; margin-bottom: 22px; padding: 0; border: 0; }
.products-title-block h2, .steps-copy h2 { margin: 0 0 6px; color: #121a2d; font-size: 30px; letter-spacing: -.035em; }
.products-title-block .section-kicker, .steps-copy .section-kicker { margin-bottom: 8px; color: #4f46e5; }
.products-count { color: #718096; font-size: 13px; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  overflow: hidden;
  border: 1px solid #e2e7f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(30,41,59,.055);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: #c7d2fe; box-shadow: 0 20px 46px rgba(46,55,90,.13); }
.product-card .thumb { aspect-ratio: 1.15/1; background: #edf2fb; }
.product-card .thumb::after { background: linear-gradient(to top, rgba(15,23,42,.12), transparent 40%); }
.product-card .body { gap: 8px; padding: 17px 18px 18px; }
.product-card .cat-name { color: #4f46e5; font-size: 10px; letter-spacing: .1em; }
.product-card .p-name { min-height: 44px; color: #141b2d; font-size: 16px; line-height: 1.35; }
.p-meta { display: flex; justify-content: space-between; gap: 8px; color: #8791a6; font-size: 11px; }
.product-card .p-price { padding-top: 5px; color: #3157e8; font-size: 18px; }
.p-card-action { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding-top: 13px; border-top: 1px solid #edf0f5; color: #27334d; font-size: 12px; font-weight: 750; }
.product-card:hover .p-card-action { color: #4f46e5; }

.buying-steps { display: grid; grid-template-columns: .78fr 1.22fr; gap: 54px; align-items: center; margin-top: 70px; padding: 46px; border-radius: 24px; background: #fff; border: 1px solid #e3e8f2; }
.steps-copy p { max-width: 420px; color: #667085; line-height: 1.7; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps-grid article { min-height: 178px; padding: 20px; border-radius: 17px; background: #f5f7fc; }
.steps-grid b { display: block; margin-bottom: 30px; color: #4f46e5; font-size: 12px; letter-spacing: .1em; }
.steps-grid strong { display: block; margin-bottom: 8px; color: #172033; font-size: 14px; }
.steps-grid span { color: #718096; font-size: 12px; line-height: 1.55; }
.usage-note { margin-top: 18px; padding: 16px 20px; border-radius: 13px; color: #667085; background: #eef2f8; font-size: 12px; text-align: center; }
.usage-note strong { color: #344054; }

@media (max-width: 960px) {
  .shop-hero { grid-template-columns: 1fr; min-height: auto; gap: 34px; }
  .shop-hero::before, .shop-hero::after { opacity: .52; }
  .shop-hero-stats { max-width: 520px; align-self: auto; }
  .product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .buying-steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .shop-wrap { padding: 14px 12px 48px !important; }
  .shop-hero { display: block; padding: 34px 24px 26px; border-radius: 21px; }
  .shop-hero::before, .shop-hero::after { display: none; }
  .hero-eyebrow { margin-bottom: 9px; }
  .shop-hero h1, .shop-hero-main h1 { font-size: 34px; line-height: 1.08; }
  .shop-hero p, .shop-hero-main p { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-primary, .hero-secondary { width: 100%; }
  .shop-hero-stats { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .shop-hero-stat { text-align: left; padding: 14px; }
  .commerce-benefits { grid-template-columns: 1fr; margin: 14px 0 38px; }
  .commerce-benefits article { padding: 16px; }
  .products-panel-head { align-items: flex-start; }
  .products-title-block h2 { font-size: 25px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
  .product-card { border-radius: 14px; }
  .product-card .body { padding: 12px; gap: 6px; }
  .product-card .p-name { min-height: 38px; font-size: 13px; }
  .product-card .p-price { font-size: 15px; }
  .p-meta { display: none; }
  .p-card-action { font-size: 11px; padding-top: 10px; }
  .buying-steps { margin-top: 44px; padding: 26px 18px; }
  .steps-copy h2 { font-size: 25px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 0; }
  .steps-grid b { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card, .hero-primary, .hero-secondary { transition: none; }
}

/* ============================================================
   COMPACT STOREFRONT — ưu tiên nội dung, giảm khoảng trống
   ============================================================ */
.shop-wrap { padding-top: 18px; }
.shop-hero {
  min-height: 258px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 30px;
  padding: 30px 34px;
  border-radius: 22px;
}
.shop-hero::before { width: 220px; height: 220px; right: 42px; top: 20px; border-radius: 32px; }
.shop-hero::after { width: 132px; height: 132px; right: 88px; top: 58px; border-radius: 26px; }
.hero-eyebrow, .section-kicker { margin-bottom: 8px; }
.shop-hero h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(29px, 3.4vw, 42px);
  line-height: 1.08;
}
.shop-hero p { max-width: 610px; font-size: 14px; line-height: 1.55; }
.hero-actions { margin-top: 17px; }
.hero-primary, .hero-secondary { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; }
.shop-hero-stats { gap: 9px; }
.shop-hero-stat { gap: 2px; padding: 12px 14px; border-radius: 13px; }
.shop-hero-stat b { font-size: 20px; }
.shop-hero-stat span { font-size: 9px; }
.shop-hero-cta { padding: 10px 14px; font-size: 13px; }

.commerce-benefits { margin: 14px 0 30px; border-radius: 14px; }
.commerce-benefits article { gap: 10px; padding: 13px 15px; }
.benefit-icon { width: 32px; height: 32px; border-radius: 9px; }
.commerce-benefits strong { font-size: 12px; }
.commerce-benefits small { margin-top: 1px; font-size: 10.5px; }

.products-panel-head { margin-bottom: 14px; }
.products-title-block h2, .steps-copy h2 { font-size: 26px; }
.product-grid { gap: 14px; }
.product-card { border-radius: 15px; }
.product-card .thumb { aspect-ratio: 4/3; }
.product-card .body { gap: 5px; padding: 12px 14px 13px; }
.product-card .p-name { min-height: 38px; font-size: 14px; line-height: 1.3; }
.p-meta { font-size: 10.5px; }
.product-card .p-price { padding-top: 2px; font-size: 16px; }
.p-card-action { margin-top: 2px; padding-top: 9px; font-size: 11px; }

@media (max-width: 768px) {
  .shop-wrap { padding-top: 10px !important; }
  .shop-hero { padding: 20px 18px 17px; border-radius: 17px; }
  .shop-hero h1, .shop-hero-main h1 { margin-bottom: 8px; font-size: 25px; line-height: 1.1; }
  .shop-hero p, .shop-hero-main p { font-size: 13px; line-height: 1.48; }
  .hero-actions { flex-direction: row; margin-top: 14px; }
  .hero-primary, .hero-secondary { width: auto; min-height: 38px; flex: 1; padding: 0 10px; font-size: 12px; }
  .shop-hero-stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; margin-top: 15px; }
  .shop-hero-stat { padding: 9px; }
  .shop-hero-stat b { font-size: 17px; }
  .shop-hero-stat span { font-size: 8px; letter-spacing: .04em; }
  .shop-hero-cta { grid-column: 1/-1; }
  .commerce-benefits { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 10px 0 24px; }
  .commerce-benefits article { min-width: 0; justify-content: center; padding: 10px 6px; text-align: center; }
  .benefit-icon { width: 27px; height: 27px; }
  .commerce-benefits strong { font-size: 10px; line-height: 1.25; }
  .commerce-benefits small { display: none; }
  .products-panel-head { margin-bottom: 11px; }
  .products-title-block h2 { font-size: 21px; }
  .product-grid { gap: 8px !important; }
  .product-card { border-radius: 12px; }
  .product-card .thumb { aspect-ratio: 4/3; }
  .product-card .body { gap: 4px; padding: 9px; }
  .product-card .cat-name { font-size: 8px; }
  .product-card .p-name { min-height: 32px; font-size: 12px; }
  .p-meta { display: flex; flex-direction: column; gap: 1px; font-size: 9px; }
  .product-card .p-price { font-size: 14px; }
  .p-card-action { display: none; }
}

@media (max-width: 390px) {
  .shop-hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-actions { gap: 7px; }
  .hero-primary, .hero-secondary { font-size: 11px; }
}

/* ============================================================
   SIMPLE STOREFRONT — thanh giới thiệu gọn + panel sản phẩm
   ============================================================ */
.store-summary-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 13px 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(105deg, #315efb 0%, #754ff2 52%, #f33d83 100%);
  box-shadow: 0 12px 30px rgba(69, 70, 190, .18);
}
.store-summary-copy { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.store-summary-copy strong { flex: none; font-size: 17px; letter-spacing: -.02em; }
.store-summary-copy span { overflow: hidden; color: rgba(255,255,255,.82); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.store-summary-stats { display: flex; align-items: center; gap: 22px; color: rgba(255,255,255,.85); font-size: 11px; white-space: nowrap; }
.store-summary-stats b { color: #fff; font-size: 14px; }
.store-summary-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: #3157d9;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(45, 35, 100, .15);
}
.store-summary-account:hover { color: #f02d79; transform: translateY(-1px); }

.responsible-notice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 20px;
  padding: 12px 16px;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 11px;
  color: #475569;
  background: #fff7f7;
  font-size: 11.5px;
  line-height: 1.5;
}
.responsible-notice strong { flex: none; color: #c62828; font-size: 12px; }

.products-panel {
  padding: 22px;
  border: 1px solid #e1e7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(30, 41, 59, .07);
}
.products-panel-head { padding-bottom: 15px; border-bottom: 1px solid #edf0f5; }

@media (max-width: 768px) {
  .store-summary-bar {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 13px 14px;
    border-radius: 14px;
  }
  .store-summary-copy { display: block; }
  .store-summary-copy strong { display: block; font-size: 14px; }
  .store-summary-copy span { display: block; margin-top: 2px; max-width: 230px; font-size: 10px; }
  .store-summary-stats { grid-column: 1; grid-row: 2; gap: 14px; font-size: 9px; }
  .store-summary-stats b { font-size: 11px; }
  .store-summary-account { grid-column: 2; grid-row: 1 / span 2; min-height: 34px; padding: 0 11px; font-size: 10px; }
  .responsible-notice { display: block; margin: 9px 0 14px; padding: 10px 11px; font-size: 10px; }
  .responsible-notice strong { display: block; margin-bottom: 3px; font-size: 11px; }
  .products-panel { padding: 13px 10px 11px; border-radius: 15px; }
  .products-panel-head { padding: 0 2px 10px; }
}

@media (max-width: 420px) {
  .store-summary-bar { grid-template-columns: 1fr; }
  .store-summary-copy span { max-width: 100%; }
  .store-summary-stats { grid-column: 1; grid-row: auto; }
  .store-summary-account { grid-column: 1; grid-row: auto; width: max-content; }
}

/* ============================================================
   PRODUCT CONVERSION — gọn card, ưu tiên giá và hành động mua
   ============================================================ */
.product-card .thumb { aspect-ratio: 16/10; }
.pd-price-box { padding: 11px 14px; margin-bottom: 14px; }
.pd-price-prompt { color: var(--text-dim); font-size: 15px; font-weight: 700; }
.pd-variants { gap: 7px; margin-bottom: 14px; }
.pd-variant-opt { min-height: 44px; padding: 9px 12px; }
.pd-order-form .btn-inline {
  min-width: 190px;
  min-height: 42px;
  box-shadow: 0 8px 20px rgba(49, 87, 232, .2);
}
.pd-order-form .btn-inline::before {
  content: '';
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='19' cy='20' r='1'/%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.8a2 2 0 0 0 2-1.6L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 768px) {
  .product-card .thumb { aspect-ratio: 16/10; }
  .pd-card { gap: 14px; }
  .pd-media { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: stretch; }
  .pd-image { width: 150px; height: 150px; aspect-ratio: 1/1; border-radius: 13px; }
  .pd-image img { object-fit: contain; }
  .pd-trust { margin-top: 0; gap: 6px; }
  .pd-trust-item { min-height: 0; padding: 8px 9px; font-size: 10px; line-height: 1.3; }
  .pd-info h1 { margin-bottom: 9px; font-size: 22px; }
  .pd-price-box { margin-bottom: 11px; }
  .pd-order-form { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .pd-order-form .btn-inline { width: 100%; min-width: 0; padding-inline: 10px; font-size: 12px; }
}

@media (max-width: 420px) {
  .pd-media { grid-template-columns: 118px minmax(0, 1fr); }
  .pd-image { width: 118px; height: 118px; }
  .pd-trust-item { padding: 6px 7px; font-size: 9px; }
}
