* { box-sizing: border-box; }
:root {
  --kc-header-bg: linear-gradient(90deg, #c1121f 0%, #a80f1a 100%);
  --kc-header-border: #8f0f17;
  --kc-header-btn: #8f0f17;
  --kc-header-btn-text: #ffffff;
  --kc-header-text: #ffffff;
  --kc-header-muted: rgba(255,255,255,0.92);
  --kc-accent: #d70018;
  --kc-dark: #1f2d46;
}
body {
  margin: 0;
  background: #f2f2f2;
  color: #1f2937;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding-bottom: 0;
}
.container { width: min(1240px, 95vw); margin: 0 auto; }

.top-strip { background: #203354; color: #fff; font-size: 12px; }
.top-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.top-strip-left { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-strip-right { display: flex; gap: 16px; flex-wrap: nowrap; white-space: nowrap; }
.top-strip a { color: #fff; text-decoration: none; }

.topbar { background: var(--kc-header-bg); border-bottom: 1px solid var(--kc-header-border); }
.detail-topbar {
  background: linear-gradient(90deg, #c1121f 0%, #a80f1a 100%);
  border-bottom-color: #8f0f17;
}
.detail-topbar .menu-btn {
  background: #8f0f17;
  color: #fff;
}
.topbar-inner { display: grid; grid-template-columns: 220px minmax(300px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; }
.logo-block { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: transparent; font-size: 22px; box-shadow: none; }
.logo-copy { background: transparent; border-radius: 0; padding: 0; }
.logo-copy b { display: block; font-size: 18px; line-height: 1; color: #fff; letter-spacing: 0.2px; }
.logo-copy span { display: block; font-size: 11px; color: rgba(255,255,255,.92); margin-top: 4px; }
.search-panel { display: flex; gap: 8px; align-items: center; min-width: 0; }
.menu-btn { height: 38px; padding: 0 10px; border: none; border-radius: 8px; background: #203354; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.search-wrap { display: flex; gap: 6px; min-width: 0; flex: 1; }
.search-wrap input { flex: 1; min-width: 0; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.search-wrap button { border: none; border-radius: 8px; background: var(--kc-accent); color: #fff; padding: 0 12px; font-weight: 700; font-size: 13px; cursor: pointer; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-actions a { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0; text-decoration: none; color: #fff; background: transparent; border: none; font-size: 13px; font-weight: 700; padding: 0 14px; white-space: nowrap; text-align: center; line-height: 1.15; box-shadow: none; }
.auth-wrap { display: none; gap: 8px; align-items: center; justify-content: flex-end; }
.user-chip { background: #fff8cc; border: 1px solid #e7cf58; border-radius: 999px; padding: 7px 10px; font-size: 13px; font-weight: 700; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logout-btn { border: none; border-radius: 999px; background: #111827; color: #fff; padding: 8px 12px; font-weight: 700; cursor: pointer; }

.main-nav { background: #fff; border-bottom: 1px solid #ececec; }
.main-nav-inner { display: flex; gap: 18px; min-height: 46px; align-items: center; overflow: auto; }
.main-nav-inner a { text-decoration: none; color: #1f2937; font-weight: 600; white-space: nowrap; }

 .mobile-searchbar { display: none; }
.mobile-bottom-nav { display: none; }
.hero-mobile-overlay { display: none; }

.hero-grid { margin-top: 14px; display: grid; grid-template-columns: 220px minmax(0, 1fr) 280px; gap: 12px; }
.category-card, .hero-main, .mini-banner, .hot-sale, .category-block, .promo-banners img, .service-strip div, .cart-box, .form-box, .branch-card { background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.category-card { padding: 10px; display: flex; flex-direction: column; gap: 6px; border: 1px solid #ececec; }
.category-card.is-collapsed { display: none; }
.category-card.category-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  z-index: 50;
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
}
.hero-grid { position: relative; }
.cat-title { background: #203354; color: #fff; font-weight: 800; border-radius: 10px; padding: 11px 12px; text-align: center; margin-bottom: 4px; font-size: 14px; }
.category-card a { display: block; text-decoration: none; color: #111827; background: #fafafa; border-radius: 8px; padding: 10px 10px; font-weight: 500; border: 1px solid #eee; transition: .18s ease; font-size: 14px; line-height: 1.35; }
.category-card a:hover { background: #fff3f3; border-color: #fecaca; color: #b91c1c; }
.hero-main { position: relative; overflow: hidden; min-height: 430px; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge { position: absolute; left: 20px; top: 18px; background: var(--kc-accent); color: #fff; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.hero-desktop-copy { position: absolute; left: 20px; bottom: 22px; max-width: 520px; color: #fff; }
.hero-desktop-copy span { display: inline-block; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.28); padding: 7px 10px; border-radius: 999px; }
.hero-desktop-copy h1 { margin: 10px 0 8px; font-size: 34px; line-height: 1.2; }
.hero-desktop-copy p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.94); }
.hero-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta-row a { text-decoration: none; color: #111; background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.hero-cta-row a.ghost { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hero-side { display: flex; flex-direction: column; gap: 10px; }
.mini-banner { position: relative; min-height: 136px; overflow: hidden; border: 1px solid #ececec; }
.mini-banner img { position: absolute; right: 0; bottom: 0; width: 45%; height: 100%; object-fit: cover; }
.mini-banner > div { position: relative; z-index: 1; width: 58%; padding: 18px; color: #fff; }
.mini-banner strong { display: block; font-size: 20px; line-height: 1.2; }
.mini-banner span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.92); }
.mini-banner.red { background: linear-gradient(135deg, #d70018 0%, #ef4444 100%); }
.mini-banner.blue { background: linear-gradient(135deg, #203354 0%, #34558a 100%); }
.mini-banner.dark { background: linear-gradient(135deg, #2b2b2b 0%, #545454 100%); }

.voucher { margin: 14px 0 12px; background: linear-gradient(90deg,#ef4444,#c91626); border-radius: 12px; color: #fff; font-size: 20px; font-weight: 800; padding: 14px 18px; text-align: center; }
.brand-section { margin: 10px 0 14px; }
.brand-title { margin: 0 0 10px; font-size: 20px; color: #111827; font-weight: 800; }
.brand-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0; }
.brand-row span { background: #fff; border: 1px solid #eee; border-radius: 10px; text-align: center; padding: 10px; font-weight: 700; color: #6b7280; }

.hot-sale { padding: 14px; margin-bottom: 18px; border: 1px solid #c91626; background: linear-gradient(180deg, #d70018 0%, #bf1020 100%); }
.sale-head { color: #fff; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.sale-head h2 { margin: 0; font-size: 26px; color: #fff; }
.sale-head span { background: rgba(255,255,255,.14); color: #fff; border-radius: 999px; padding: 6px 10px; font-weight: 700; font-size: 13px; }
.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.product { position: relative; border-radius: 14px; background: #fff; padding: 10px; border: 1px solid #f0d7db; box-shadow: 0 8px 24px rgba(17,24,39,.06); transition: transform .18s ease, box-shadow .18s ease; overflow: hidden; }
.product:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,24,39,.10); }
.product .discount { position: absolute; top: 8px; left: 8px; background: linear-gradient(180deg, #ff5a67 0%, #d70018 100%); color: #fff; font-weight: 800; font-size: 10px; padding: 4px 8px; border-radius: 999px; box-shadow: 0 6px 14px rgba(215,0,24,.24); z-index: 2; }
.product img { width: 100%; height: 210px; object-fit: contain; border-radius: 12px; background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%); border: 1px solid #f6e4e7; padding: 8px; }
.product h3 { font-size: 15px; line-height: 1.45; min-height: 44px; margin: 10px 0 8px; font-weight: 700; color: #1f2937; }
.price { display: flex; flex-direction: column; gap: 3px; }
.price del { color: #9ca3af; font-size: 11px; }
.price strong { color: #dc2626; font-size: 20px; line-height: 1.1; }
.product-feature-chip { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 5px 10px; border-radius: 999px; background: #fff5d6; color: #9a6700; border: 1px solid #f3d27a; font-size: 11px; font-weight: 800; width: fit-content; }
.product-gift-line { margin-top: 6px; color: #111827; font-size: 12px; font-weight: 700; }
.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.sold-chip { background: #fff1f2; color: #b91c1c; border-radius: 999px; padding: 4px 8px; font-weight: 700; font-size: 10px; text-align: center; }
.product-rating { color: #f59e0b; font-size: 11px; font-weight: 700; }
.product button { margin-top: 10px; width: 100%; border: none; background: linear-gradient(180deg, #ff2638 0%, #d70018 100%); color: #fff; font-weight: 800; border-radius: 10px; padding: 10px; cursor: pointer; font-size: 13px; box-shadow: 0 8px 18px rgba(215,0,24,.22); }

.category-block { padding: 12px; margin-bottom: 14px; border: 1px solid #ececec; }
.category-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.category-head-link, .category-head-link:hover, .category-head-link:focus, .category-head-link:active { text-decoration: none; color: inherit; }
.category-head h2 { margin: 0; font-size: 18px; color: #111827; }
.category-head h2 .category-title-link { color: inherit; text-decoration: none; }
.category-head-cta, .category-head a { font-size: 12px; text-decoration: none !important; color: var(--kc-accent); font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.category-grid.grid-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.promo-banners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 12px; }
.promo-banners img { width: 100%; height: 180px; object-fit: cover; border: 1px solid #ececec; }
.service-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.service-strip div { border: 1px solid #ececec; padding: 12px; font-weight: 700; text-align: center; }
.branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.branch-card { padding: 14px; border: 1px solid #ececec; }
.branch-card h3 { margin: 0 0 10px; font-size: 18px; }
.branch-card p { margin: 0 0 12px; color: #4b5563; min-height: 44px; }
.branch-card button { width: 100%; border: none; border-radius: 10px; padding: 10px; background: #e5e7eb; font-weight: 700; }

.checkout { margin: 20px 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cart-box, .form-box { border-radius: 14px; padding: 14px; border: 1px solid #ececec; }
.cart-item { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px dashed #ddd; padding: 10px 0; }
.cart-item p { margin: 6px 0 0; color: #4b5563; font-size: 14px; }
.cart-item button { border: none; background: var(--kc-accent); color: #fff; border-radius: 8px; padding: 8px 12px; }
.cart-total { margin-top: 12px; font-size: 18px; }
#order-form { display: grid; gap: 10px; }
#order-form input, #order-form textarea { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px 12px; font: inherit; }
#order-form textarea { min-height: 80px; resize: vertical; }
#order-form button { border: none; background: #2563eb; color: #fff; border-radius: 10px; padding: 12px; font-weight: 700; cursor: pointer; }
#order-result { margin-top: 10px; color: #065f46; font-weight: 600; }
.login-hint { margin: 0 0 10px; color: #374151; font-size: 14px; }
.my-orders { margin-top: 14px; border-top: 1px dashed #ddd; padding-top: 10px; }
.my-orders h4 { margin: 0 0 8px; }
.my-order-item { border: 1px solid #ececec; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.my-order-item span { color: #374151; font-size: 14px; }
.my-order-item small { color: #6b7280; }

.site-footer { background: #efefef; border-top: 1px solid #ddd; padding: 28px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 18px; }
.site-footer h4 { margin: 0 0 10px; font-size: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li, .site-footer p, .site-footer small { color: #374151; font-size: 14px; line-height: 1.5; margin: 0; }
.site-footer a { color: #1f2937; text-decoration: none; }
.floating-contact-actions {
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  z-index: 9999;
}
.zalo, .call-hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(15,23,42,.18);
}
.zalo { background: #0ea5e9; box-shadow: 0 8px 20px rgba(2,132,199,.35); }
.call-hotline { background: #dc2626; box-shadow: 0 8px 20px rgba(220,38,38,.28); }

@media (max-width: 1200px) {
  .topbar-inner { grid-template-columns: 180px minmax(240px, 1fr) auto; }
  .logo-copy b { font-size: 18px; }
  .logo-copy span { font-size: 11px; }
  .search-panel { gap: 8px; }
  .menu-btn { padding: 0 10px; font-size: 13px; }
  .search-wrap input { padding: 10px 12px; font-size: 13px; }
  .search-wrap button { padding: 0 12px; font-size: 13px; }
  .top-actions a { font-size: 13px; padding: 0 12px; }
  .auth-wrap { display: none; }
  .hero-grid { grid-template-columns: 220px 1fr; }
  .hero-side { grid-column: span 2; display: grid; grid-template-columns: repeat(3, 1fr); }
  .products, .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand-row { grid-template-columns: repeat(3, 1fr); }
  .promo-banners { grid-template-columns: 1fr 1fr; }
  .service-strip { grid-template-columns: repeat(2, 1fr); }
  .branches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: 136px minmax(120px, 1fr) auto;
    gap: 6px;
  }
  .logo-block { gap: 6px; }
  .logo-mark { width: 34px; height: 34px; font-size: 18px; }
  .logo-copy b { font-size: 13px; }
  .logo-copy span { display: none; }
  .search-panel { gap: 6px; }
  .menu-btn { height: 34px; padding: 0 8px; font-size: 11px; }
  .search-wrap { gap: 4px; }
  .search-wrap input { height: 34px; padding: 8px 10px; font-size: 11px; }
  .search-wrap button { height: 34px; padding: 0 8px; font-size: 11px; }
  .top-actions a {
    min-height: 34px;
    font-size: 10px;
    padding: 0 6px;
    max-width: 92px;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
  }
}
@media (max-width: 860px) {
  .desktop-shell { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { order: 1; min-height: 240px; }
  .category-card {
    display: flex !important;
    order: 2;
    margin-top: 10px;
    padding: 12px;
    border-radius: 16px;
    gap: 8px;
  }
  .category-card .cat-title {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, #c1121f 0%, #a80f1a 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
  }
  #category-menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .category-card a {
    height: 100%;
    padding: 11px 10px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.35;
  }
  .hero-side { display: none !important; }
  .products, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .promo-banners { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
}

.card-white { background: #fff; border: 1px solid #ececec; border-radius: 14px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
/* Skeleton / loading: no wrong product content shown; placeholder only */
.page-loading .detail-gallery-main img,
.page-loading .detail-info-smarttech h1,
.page-loading .detail-brand-row,
.page-loading .detail-price-box,
.page-loading .detail-variant-box,
.page-loading .detail-description-card .detail-copy {
  opacity: 1;
}
.detail-gallery-skeleton .main-photo { background: #f1f5f9; }
.detail-copy-skeleton p { color: #94a3b8; }
@keyframes detail-skeleton-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes detail-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-line,
.skeleton-thumb,
.skeleton-pill,
.related-skeleton-media {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #e9eef5 100%);
  background-size: 200% 100%;
  animation: detail-skeleton-shimmer 1.45s linear infinite;
}
.skeleton-line {
  height: 14px;
  border-radius: 999px;
}
.skeleton-line-title { width: 92%; height: 18px; margin-bottom: 10px; }
.skeleton-line-subtitle { width: 66%; height: 18px; }
.skeleton-pill { min-height: 32px; width: 90px; border-radius: 999px; }
.skeleton-pill-wide { width: 140px; }
.skeleton-line-price-old { width: 92px; height: 14px; margin: 0; }
.skeleton-line-price-main { width: 180px; height: 34px; border-radius: 12px; }
.skeleton-line-price-note { width: 120px; height: 14px; }
.skeleton-line-copy-lg { width: 100%; height: 14px; }
.skeleton-line-copy { width: 94%; height: 14px; }
.skeleton-line-copy-short { width: 62%; height: 14px; }
.skeleton-line-related { width: 100%; height: 14px; }
.skeleton-line-related-price { width: 72px; height: 14px; margin-top: 10px; }
.skeleton-thumb {
  width: 100%;
  height: 84px;
  border-radius: 12px;
}
.related-skeleton-media {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  flex: 0 0 74px;
}
.page-loading .detail-title-skeleton,
.page-loading .detail-price-box span,
.page-loading .detail-copy-skeleton p {
  animation: detail-skeleton-pulse 1.2s ease-in-out infinite;
}
.detail-loading-overlay {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: transparent;
  backdrop-filter: none;
  color: #111827;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s ease;
}
.page-loading .detail-loading-overlay {
  display: grid;
  opacity: 1;
}
.page-loading .detail-sale-badge {
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 45%, #e9eef5 100%);
  background-size: 200% 100%;
  color: transparent;
  border: none;
  animation: detail-skeleton-shimmer 1.45s linear infinite;
}
.page-loading .thumbs-skeleton {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.page-loading .detail-brand-row-skeleton .brand-pill,
.page-loading .detail-brand-row-skeleton .sku-pill,
.page-loading .detail-price-box-skeleton del,
.page-loading .detail-price-box-skeleton strong,
.page-loading .detail-price-box-skeleton span {
  color: transparent;
  border-color: transparent;
}
.page-loading .detail-copy-skeleton {
  display: grid;
  gap: 12px;
}
.page-loading .related-skeleton-list {
  display: grid;
  gap: 12px;
}
.page-loading .related-skeleton-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}
.page-loading .related-skeleton-copy {
  display: grid;
  gap: 10px;
}
.detail-loading-spinner {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(37, 99, 235, .14));
}
.page-loading .main-photo {
  opacity: 0;
  visibility: hidden;
}
.detail-page-smarttech { padding-top: 14px; padding-bottom: 24px; }
.detail-breadcrumb { font-size: 13px; color: #6b7280; margin-bottom: 12px; }
.detail-main-smarttech { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.detail-gallery-column, .detail-info-smarttech, .detail-support, .detail-description-card, .detail-sidebar-card { padding: 16px; }
.detail-gallery-main { position: relative; background: #fff; border-radius: 14px; border: 1px solid #ececec; display: grid; place-items: center; height: 560px; overflow: hidden; }
.detail-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; max-width: 100%; max-height: 100%; margin: 0 auto; }
.detail-sale-badge { position: absolute; top: 14px; left: 14px; background: linear-gradient(180deg,#ff5a67,#d70018); color: #fff; font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; }
.thumbs-smarttech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; align-items: start; }
.thumbs-smarttech img { display: block; width: 100%; height: 84px; object-fit: contain; border: 1px solid #ececec; border-radius: 12px; padding: 6px; background: #fff; box-shadow: none; transform: none; margin: 0; }
.thumbs-smarttech img.is-active { border-color: #d70018; box-shadow: 0 0 0 1px rgba(215,0,24,.16); }
.detail-mini-policies { margin-top: 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.detail-mini-policies span { background: #fff7f7; border: 1px solid #ffd4d8; border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.detail-brand-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.brand-pill, .sku-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.brand-pill { background: #fff5d6; color: #9a6700; border: 1px solid #f3d27a; }
.sku-pill { background: #f3f4f6; color: #374151; }
.detail-info-smarttech h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.25; color: #111827; }
.detail-price-box { margin: 14px 0; display: grid; gap: 6px; }
.detail-price-box del { color: #9ca3af; font-size: 16px; }
.detail-price-box strong { color: #d70018; font-size: 34px; line-height: 1.1; }
.detail-price-box span { color: #b91c1c; font-weight: 700; }
.detail-variant-stock { margin: 0 0 8px; font-size: 14px; color: #4b5563; }
.detail-variant-box { margin-top: 16px; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 14px; background: #f8fafc; }
.detail-variant-box h4 { margin: 0 0 10px; font-size: 15px; }
.detail-variant-list { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-variant-btn { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 999px; padding: 8px 12px; cursor: pointer; font: inherit; }
.detail-variant-btn.is-active { border-color: #d70018; color: #d70018; background: #fff1f2; }
.detail-highlight-box { border: 1px solid #ffd6db; background: #fff8f8; border-radius: 14px; padding: 14px; }
.detail-highlight-box h4 { margin: 0 0 10px; color: #b91c1c; font-size: 16px; }
.benefits { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #374151; }
.benefits-numbered {
  list-style: none;
  counter-reset: promo-item;
  padding-left: 0;
  gap: 7px;
}
.benefits-numbered li {
  counter-increment: promo-item;
  position: relative;
  padding-left: 38px;
  min-height: 26px;
  display: flex;
  align-items: center;
}
.benefits-numbered li::before {
  content: counter(promo-item);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #d70018;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.promo-phone { color: #2563eb; font-weight: 800; }
.detail-cta-stack { display: grid; gap: 10px; margin-top: 16px; }
.buy-btn, .secondary-btn { min-height: 46px; border-radius: 10px; font-weight: 800; font-size: 14px; }
.buy-btn { border: none; background: linear-gradient(180deg,#ff2638,#d70018); color: #fff; }
.buy-btn-stacked { display: grid; gap: 2px; justify-items: center; align-content: center; padding: 10px 14px; }
.buy-btn-stacked span { font-size: 16px; line-height: 1.1; }
.buy-btn-stacked small { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.92); line-height: 1.25; }
.secondary-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d70018; color: #d70018; text-decoration: none; background: #fff; }
.detail-support h3, .detail-sidebar-card h3 { margin: 0 0 12px; font-size: 20px; }
.support-hotline { font-size: 30px; font-weight: 800; color: #d70018; margin-bottom: 12px; }
.support-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #374151; }
.support-showroom { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #ddd; }
.support-showroom p { margin: 8px 0 0; color: #4b5563; }
.detail-content-smarttech { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; margin-top: 18px; align-items: start; }
.detail-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.detail-tabs .tab { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; }
.detail-tabs .tab.active { background: #d70018; color: #fff; border-color: #d70018; }
.detail-tab-panel[hidden] { display: none; }
.detail-copy,
.detail-content-html,
.detail-tab-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detail-copy p { margin: 0 0 14px; line-height: 1.7; color: #374151; }
.detail-copy img,
.detail-content-html img,
.desc-image,
.detail-copy table,
.detail-content-html table,
.detail-copy iframe,
.detail-content-html iframe,
.detail-copy video,
.detail-content-html video,
.detail-copy embed,
.detail-content-html embed,
.detail-copy object,
.detail-content-html object {
  max-width: 100% !important;
}
.detail-copy img,
.detail-content-html img,
.desc-image,
.detail-copy iframe,
.detail-content-html iframe,
.detail-copy video,
.detail-content-html video,
.detail-copy embed,
.detail-content-html embed,
.detail-copy object,
.detail-content-html object {
  display: block;
  width: 100% !important;
  height: auto !important;
}
.detail-copy table,
.detail-content-html table {
  display: block;
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.desc-image { width: 100%; border-radius: 14px; margin: 10px 0 16px; }
.review-box { border: 1px solid #fee2e2; background: #fff7f7; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.detail-review-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid #ececec; }
.detail-review-block { padding: 18px 16px; border-top: none; margin: 8px 0 0; width: 100%; }
.detail-content-aligned { width: calc(100% - 416px); margin-right: 416px; }
.detail-review-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-review-stars { font-size: 18px; font-weight: 800; color: #f59e0b; display: flex; align-items: center; gap: 8px; }
.detail-review-stars span { color: #111827; font-size: 15px; }
.detail-review-count { color: #2563eb; font-size: 14px; font-weight: 700; text-decoration: none; }
.review-box-smarttech { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.review-summary-score { text-align: center; }
.review-summary-score b { display: block; font-size: 42px; color: #d70018; margin-bottom: 4px; }
.review-summary-score span { color: #6b7280; font-size: 14px; }
.review-summary-bars { display: grid; gap: 8px; }
.review-bar-row { display: grid; grid-template-columns: 36px 1fr 28px; align-items: center; gap: 10px; font-size: 14px; color: #374151; }
.review-bar { height: 8px; border-radius: 999px; background: #eceff3; overflow: hidden; }
.review-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%); }
.comment-list { display: grid; gap: 10px; }
.comment-item { border: 1px solid #ececec; border-radius: 12px; padding: 12px 14px; background: #fff; color: #374151; line-height: 1.6; }
.comment-item p { margin: 8px 0 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.comment-head span { color: #f59e0b; font-size: 13px; font-weight: 800; }
.mini-item, .related-vertical-item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; text-decoration: none; color: inherit; padding: 9px 0; border-bottom: 1px solid #edf2f7; align-items: center; }
.mini-item:last-child, .related-vertical-item:last-child { border-bottom: none; }
.mini-item img, .related-vertical-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.mini-item b, .related-vertical-item b { display: block; font-size: 13px; line-height: 1.35; }
.mini-item p, .related-vertical-item p { margin: 4px 0 0; color: #d70018; font-weight: 700; font-size: 13px; }
.related-vertical-list { display: grid; }
.detail-sidebar-card { min-height: 100%; }
@media (max-width: 1100px) {
  .detail-main-smarttech { grid-template-columns: 1fr 1fr; }
  .detail-content-smarttech { grid-template-columns: 1fr; }
  .detail-content-aligned { width: 100%; margin-right: 0; }
}
@media (max-width: 720px) {
  .detail-page-smarttech { padding-top: 10px; }
  .detail-breadcrumb { margin-bottom: 10px; }
  .detail-main-smarttech,
  .detail-content-smarttech {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .detail-content-aligned {
    width: 100%;
    margin-right: 0;
  }
  .detail-gallery-column,
  .detail-info-smarttech,
  .detail-description-card,
  .detail-sidebar-card,
  .detail-review-block {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    padding: 14px;
  }
  .detail-gallery-main { height: 360px; }
  .detail-info-smarttech h1 { font-size: 24px; }
  .detail-price-box strong { font-size: 28px; }
  .thumbs-smarttech { grid-template-columns: repeat(4, 1fr); }
  .detail-mini-policies { grid-template-columns: 1fr; }
  .review-box-smarttech { grid-template-columns: 1fr; }
  .review-summary-score { text-align: left; }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 24px;
}
.image-lightbox[hidden] { display: none; }
.image-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 560px) {
  body { padding-bottom: 78px; }
  .container { width: min(100%, 96vw); }
  .detail-page.container { width: min(100%, 96vw); }
  .detail-gallery-column,
  .detail-info-smarttech,
  .detail-description-card,
  .detail-sidebar-card,
  .detail-review-block {
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  .detail-gallery-main { height: 320px; }
  .detail-tabs { gap: 6px; }
  .detail-tabs .tab {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px;
  }
  .detail-copy,
  .detail-content-html,
  .detail-tab-panel,
  .review-box,
  .comment-list {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .detail-copy *,
  .detail-content-html * {
    max-width: 100% !important;
    box-sizing: border-box;
  }
  .mobile-searchbar {
    display: block;
    background: linear-gradient(90deg, #c1121f 0%, #a80f1a 100%);
    padding: 12px 10px 10px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #8f0f17;
    box-shadow: 0 10px 20px rgba(0,0,0,.12);
  }
  .mobile-search-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; text-decoration: none; }
  .mobile-logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 20px; color: #fff; }
  .mobile-brand b { display: block; font-size: 15px; }
  .mobile-brand span { display: block; font-size: 10px; color: rgba(255,255,255,.92); line-height: 1.35; }
  .mobile-cart { min-width: 62px; text-decoration: none; color: #fff; font-size: 11px; display: grid; justify-items: center; gap: 2px; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 8px 10px; }
  .mobile-search-input-row { display: grid; grid-template-columns: 1fr 44px; gap: 8px; align-items: center; }
  .mobile-searchbar input { height: 42px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 0 12px; font-size: 15px; background: #fff; }
  .mobile-searchbar button { height: 42px; border: none; border-radius: 12px; font-size: 18px; background: #fff; }
  .mobile-category-strip { display: none !important; }
  .mobile-category-strip::-webkit-scrollbar { display: none; }
  .mobile-category-strip a { flex: 0 0 auto; text-decoration: none; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
  .mobile-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
  .mobile-trust-row span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 12px; padding: 8px 6px; text-align: center; font-size: 11px; font-weight: 700; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 10px; }
  .hero-main { border-radius: 18px; overflow: hidden; min-height: 210px; }
  .hero-main img { max-height: 220px; }
  .hero-desktop-copy, .hero-badge { display: none; }
  .hero-mobile-overlay { display: grid; gap: 6px; position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px; border-radius: 16px; background: linear-gradient(180deg, rgba(0,0,0,.04) 0%, rgba(0,0,0,.72) 100%); color: #fff; }
  .hero-mobile-overlay span { font-size: 12px; font-weight: 700; opacity: .92; }
  .hero-mobile-overlay h2 { margin: 0; font-size: 18px; line-height: 1.35; }
  .hero-mobile-overlay a { justify-self: start; text-decoration: none; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
  .voucher { font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 16px; margin: 12px 0 10px; text-align: left; }
  .brand-row, .promo-banners, .service-strip { display: none; }
  .branches { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 14px; }
  .branch-card { padding: 12px; border-radius: 14px; }
  .branch-card h3 { font-size: 15px; margin-bottom: 8px; }
  .branch-card p { min-height: 0; font-size: 13px; margin-bottom: 10px; }
  .branch-card button { border-radius: 10px; padding: 10px; font-size: 13px; }
  .site-footer { display: block; padding: 18px 0 96px; margin-top: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; }
  .site-footer h4 { font-size: 16px; margin-bottom: 8px; }
  .site-footer li, .site-footer p, .site-footer small { font-size: 13px; }
  .category-block { display: block; border-radius: 16px; padding: 12px; margin-bottom: 12px; }
  .category-head { align-items: center; }
  .category-head h2 { font-size: 15px; line-height: 1.35; }
  .category-head a { font-size: 12px; }
  .mobile-category-carousel-wrap { position: relative; padding: 0; }
  .mobile-category-pager { position: relative; display: block; width: calc(100% + 24px); margin-left: -12px; margin-right: -12px; padding: 0; }
  .mobile-category-pages { min-width: 0; width: 100%; padding: 0 12px; }
  .mobile-category-page { display: none; }
  .mobile-category-page.is-active { display: block; }
  .mobile-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .mobile-category-grid .product {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 16px;
    padding: 9px;
  }
  .mobile-category-grid .product img { height: 128px; padding: 4px; }
  .mobile-category-grid .product h3 {
    font-size: 13px;
    line-height: 1.35;
    min-height: 36px;
    margin: 7px 0 5px;
  }
  .mobile-category-grid .product h3 a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .mobile-category-grid .price { gap: 2px; }
  .mobile-category-grid .price strong { font-size: 16px; line-height: 1.2; }
  .mobile-category-grid .price del { font-size: 10px; }
  .mobile-category-grid .product-feature-chip { margin-top: 6px; padding: 4px 8px; font-size: 10px; }
  .mobile-category-grid .product-gift-line { margin-top: 4px; font-size: 11px; }
  .mobile-category-grid .product-meta-row { margin-top: auto; font-size: 10px; }
  .mobile-category-grid .sold-chip, .mobile-category-grid .product-rating { font-size: 10px; }
  .mobile-category-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.96) 100%);
    color: #b91c1c;
    display: grid;
    place-items: center;
    font-size: 0;
    line-height: 1;
    z-index: 1;
    box-shadow: 0 10px 24px rgba(15,23,42,.16);
  }
  .mobile-category-arrow span { font-size: 20px; font-weight: 700; transform: translateY(-1px); }
  .mobile-category-arrow:disabled { opacity: .4; }
  .mobile-category-arrow.prev { left: 0; }
  .mobile-category-arrow.next { right: 0; }
  .mobile-category-pages + .mobile-category-arrow.next,
  .mobile-category-arrow.prev {
    pointer-events: auto;
  }
  .mobile-category-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .mobile-category-dot {
    width: 7px;
    height: 7px;
    border: none;
    border-radius: 999px;
    background: #d1d5db;
    padding: 0;
    transition: all .18s ease;
  }
  .mobile-category-dot.is-active { width: 20px; background: #dc2626; }
  .hot-sale { border-radius: 16px; padding: 12px; margin-bottom: 12px; }
  .sale-head { flex-direction: column; align-items: flex-start; }
  .sale-head h2 { font-size: 24px; }
  .sale-head span { font-size: 12px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .product { border-radius: 16px; padding: 9px; }
  .product img { height: 128px; padding: 4px; }
  .product h3 { font-size: 13px; line-height: 1.35; min-height: 36px; margin: 7px 0 5px; }
  .price { gap: 2px; }
  .price strong { font-size: 16px; line-height: 1.2; }
  .price del { font-size: 10px; }
  .product-feature-chip { margin-top: 6px; padding: 4px 8px; font-size: 10px; }
  .product-gift-line { margin-top: 4px; font-size: 11px; }
  .product-meta-row { margin-top: 6px; }
  .sold-chip, .product-rating { font-size: 10px; }
  .product button { font-size: 12px; padding: 10px 8px; border-radius: 12px; }
  .checkout { margin: 8px 0 0; }
  .cart-box, .form-box { border-radius: 16px; padding: 12px; }
  .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); backdrop-filter: blur(16px); border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: repeat(5, 1fr); z-index: 40; padding: 8px 0 max(8px, env(safe-area-inset-bottom)); }
  .mobile-bottom-nav a { text-decoration: none; color: #111827; display: grid; justify-items: center; gap: 3px; font-size: 16px; font-weight: 700; }
  .mobile-bottom-nav a span { font-size: 11px; }
  .floating-contact-actions { right: 10px; bottom: 88px; gap: 8px; }
  .zalo, .call-hotline { padding: 10px 12px; font-size: 13px; }
}
