/* ============================================================
   TARO TOKYO — Design System 2026
   Override file: loaded AFTER style.css
   ============================================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  --ms-brand:        #0f172a;
  --ms-accent:       #e11d48;
  --ms-accent-soft:  #fff1f4;
  --ms-accent-hover: #be1238;
  --ms-gold:         #f59e0b;
  --ms-green:        #10b981;

  --ms-surface:      #ffffff;
  --ms-surface-2:    #f9f8f6;
  --ms-surface-3:    #f1f0ed;
  --ms-surface-nav:  rgba(255,255,255,0.80);

  --ms-text:         #0f172a;
  --ms-text-muted:   #64748b;
  --ms-text-light:   #94a3b8;
  --ms-border:       #e8e6e1;
  --ms-border-focus: #0f172a;

  --ms-r-sm:  0.375rem;
  --ms-r-md:  0.75rem;
  --ms-r-lg:  1.125rem;
  --ms-r-xl:  1.5rem;
  --ms-r-2xl: 2rem;
  --ms-r-pill:9999px;

  --ms-shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --ms-shadow-sm: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
  --ms-shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
  --ms-shadow-lg: 0 12px 32px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
  --ms-shadow-card: 0 0 0 1px var(--ms-border), 0 2px 8px rgba(0,0,0,.04);
  --ms-shadow-card-hover: 0 0 0 1px #c8c5be, 0 8px 28px rgba(0,0,0,.10);

  --ms-font:    'Plus Jakarta Sans', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ms-ease:    cubic-bezier(0.4, 0, 0.2, 1);
  --ms-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode tokens */
@media (prefers-color-scheme: dark) {
  :root {
    --ms-surface:     #111827;
    --ms-surface-2:   #1a2234;
    --ms-surface-3:   #222d3f;
    --ms-surface-nav: rgba(17,24,39,0.85);
    --ms-text:        #f1f5f9;
    --ms-text-muted:  #94a3b8;
    --ms-text-light:  #64748b;
    --ms-border:      #1e2d45;
    --ms-border-focus:#f1f5f9;
    --ms-shadow-card: 0 0 0 1px var(--ms-border), 0 2px 8px rgba(0,0,0,.2);
  }
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--ms-font) !important;
  color: var(--ms-text) !important;
  background: var(--ms-surface) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* chặn scroll ngang toàn trang */
}

/* ============================================================
   TOPPER BAR (SĐT + địa chỉ)
   ============================================================ */
.py-1.bg-black {
  background: var(--ms-brand) !important;
  padding: 6px 0 !important;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.py-1.bg-black .text {
  color: rgba(255,255,255,.7);
  font-size: 0.78rem;
  white-space: nowrap;        /* fix #2 — tablet: tránh wrap */
  overflow: hidden;
  text-overflow: ellipsis;
}
.py-1.bg-black .icon {
  color: rgba(255,255,255,.5);
  margin-right: 6px;
  flex-shrink: 0;
}
/* fix #1 — mobile: ẩn địa chỉ, chỉ hiện SĐT */
@media (max-width: 767px) {
  .py-1.bg-black .col-md-6 { display: none !important; }
  .py-1.bg-black .col-md   { width: 100%; justify-content: center; }
}

/* ============================================================
   NAVBAR — Sticky (no backdrop-filter, no transition, no will-change)
   ============================================================ */
#ftco-navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--ms-surface-nav) !important;
  backdrop-filter: none !important;        /* fix #: bỏ blur tốn GPU */
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid var(--ms-border) !important;
  box-shadow: none !important;
  padding: 10px 0 !important;
  transition: none !important;             /* fix #: không transition khi scroll */
  will-change: auto;                       /* fix #: không promote layer thừa */
}
#ftco-navbar.scrolled {
  box-shadow: var(--ms-shadow-md) !important;
}
#ftco-navbar .container {
  padding-left: 16px !important;
  padding-right: 16px !important;
}
#ftco-navbar .navbar-brand {
  font-family: var(--ms-font) !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  color: var(--ms-brand) !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}
#ftco-navbar .navbar-brand small {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ms-accent) !important;
  margin-left: 3px;
}
#ftco-navbar .nav-link {
  color: var(--ms-text) !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  padding: 6px 14px !important;
  border-radius: var(--ms-r-pill) !important;
  transition: background 180ms ease, color 180ms ease !important;
  opacity: 0.85;
}
#ftco-navbar .nav-link:hover,
#ftco-navbar .nav-item.active .nav-link {
  background: var(--ms-surface-3) !important;
  color: var(--ms-text) !important;
  opacity: 1;
}
#ftco-navbar .dropdown-menu {
  border: 1px solid var(--ms-border) !important;
  border-radius: var(--ms-r-lg) !important;
  box-shadow: var(--ms-shadow-lg) !important;
  background: var(--ms-surface) !important;
  padding: 8px !important;
  margin-top: 8px !important;
  min-width: 180px;
}
#ftco-navbar .dropdown-item {
  border-radius: var(--ms-r-md) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--ms-text) !important;
  padding: 8px 14px !important;
  transition: background 150ms ease !important;
}
#ftco-navbar .dropdown-item:hover {
  background: var(--ms-surface-3) !important;
  color: var(--ms-text) !important;
}

/* ============================================================
   PRODUCT CARD — Modern 2026
   ============================================================ */
.ms-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 4px;
}
/* Card wrapper — cần d-flex trên column cha để stretch đều */
.ms-product-card {
  background: var(--ms-surface);
  border-radius: var(--ms-r-xl);
  box-shadow: var(--ms-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;          /* fill flex column cha */
  transition: transform 240ms var(--ms-ease), box-shadow 240ms var(--ms-ease);
  text-decoration: none;
  color: inherit;
  will-change: transform;
}
.ms-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ms-shadow-card-hover);
  text-decoration: none;
  color: inherit;
}

/* Image wrap — aspect-ratio thay ::before padding-top trick */
.ms-product-card__image-wrap {
  position: relative;
  overflow: hidden;
  background: var(--ms-surface-3);
  aspect-ratio: 4 / 5;  /* chuẩn 4:5 portrait — nhất quán mọi card */
  width: 100%;
  flex-shrink: 0;       /* không bị nén khi card flex */
}
.ms-product-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ms-ease);
}
.ms-product-card:hover .ms-product-card__image-wrap img {
  transform: scale(1.05);
}

/* Badge */
.ms-product-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ms-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: var(--ms-r-pill);
  z-index: 2;
  pointer-events: none;
}
.ms-product-card__badge--new  { background: var(--ms-green); }
.ms-product-card__badge--sale { background: var(--ms-gold); color: var(--ms-brand); }

/* Card body — flex:1 để stretch xuống cuối, đẩy price xuống đáy */
.ms-product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Name — luôn reserve đúng 2 dòng dù text ngắn */
.ms-product-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ms-text);
  line-height: 1.5;
  min-height: calc(1.5em * 2);  /* reserve 2 dòng cố định */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.ms-product-card__name a { color: inherit; text-decoration: none; }

/* Price row — luôn dính đáy card */
.ms-product-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  min-height: 28px;   /* reserve chỗ dù không có giá */
}
.ms-product-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ms-text);
}
.ms-product-card__price-original {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ms-text-muted);
  text-decoration: line-through;
}
.ms-product-card__price-sale {
  color: var(--ms-accent);
  font-weight: 700;
}
/* Placeholder image — scale nhỏ lại, không crop full */
.ms-product-card__img--placeholder {
  object-fit: contain !important;
  padding: 20px;
  background: var(--ms-surface-3);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.ms-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.ms-section-title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 800;
  color: var(--ms-text);
  letter-spacing: -0.03em;
  margin: 0;
}
.ms-section-title span {
  color: var(--ms-accent);
}
.ms-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ms-text-muted);
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 150ms ease;
}
.ms-view-all:hover {
  color: var(--ms-text);
  text-decoration: none;
}
.ms-view-all::after { content: '→'; }

/* ============================================================
   BENTO GRID — Homepage Categories
   ============================================================ */
.ms-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 160px;
  gap: 10px;
}
.ms-bento-item {
  position: relative;
  border-radius: var(--ms-r-xl);
  overflow: hidden;
  cursor: pointer;
  background: var(--ms-surface-3);
}
.ms-bento-item:hover .ms-bento-item__img {
  transform: scale(1.06);
}
.ms-bento-item:hover .ms-bento-item__overlay {
  opacity: 1;
}
.ms-bento-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ms-ease);
}
.ms-bento-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.65) 0%, rgba(15,23,42,.1) 60%, transparent 100%);
  opacity: .75;
  transition: opacity 300ms ease;
}
.ms-bento-item__label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  z-index: 2;
}
.ms-bento-item__label h3 {
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 4px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.ms-bento-item__label span {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ms-bento-item--tall    { grid-row: span 2; }
.ms-bento-item--wide    { grid-column: span 8; }
.ms-bento-item--half    { grid-column: span 6; }
.ms-bento-item--third   { grid-column: span 4; }
.ms-bento-item--quarter { grid-column: span 3; }

/* Default bento layout */
.ms-bento-cosmetic   { grid-column: span 4; grid-row: span 2; }
.ms-bento-food       { grid-column: span 8; grid-row: span 1; }
.ms-bento-clothes    { grid-column: span 5; grid-row: span 1; }
.ms-bento-shoe       { grid-column: span 3; grid-row: span 2; }
.ms-bento-backpack   { grid-column: span 3; grid-row: span 1; }
.ms-bento-clock      { grid-column: span 6; grid-row: span 1; }
.ms-bento-office     { grid-column: span 3; grid-row: span 1; }

/* Responsive bento */
@media (max-width: 1024px) {
  .ms-bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .ms-bento-cosmetic   { grid-column: span 3; grid-row: span 2; }
  .ms-bento-food       { grid-column: span 3; grid-row: span 1; }
  .ms-bento-clothes    { grid-column: span 3; grid-row: span 1; }
  .ms-bento-shoe       { grid-column: span 2; grid-row: span 2; }
  .ms-bento-backpack   { grid-column: span 2; grid-row: span 1; }
  .ms-bento-clock      { grid-column: span 2; grid-row: span 1; }
  .ms-bento-office     { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .ms-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; }
  .ms-bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .ms-bento-cosmetic, .ms-bento-shoe { grid-row: span 2 !important; }
}

/* ============================================================
   FILTER BAR — Category Chips (thay sidebar)
   ============================================================ */
.ms-filter-bar {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: var(--ms-surface);
  border-bottom: 1px solid var(--ms-border);
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  /* will-change: auto — không promote layer thừa cho element bị ẩn */
  will-change: auto;
}
.ms-filter-bar::-webkit-scrollbar { display: none; }
.ms-filter-bar__inner {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  white-space: nowrap;
  min-width: max-content;
}
.ms-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--ms-r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ms-text-muted);
  background: var(--ms-surface-2);
  border: 1px solid var(--ms-border);
  text-decoration: none;
  transition: all 180ms var(--ms-ease);
  white-space: nowrap;
}
.ms-chip:hover {
  background: var(--ms-surface-3);
  color: var(--ms-text);
  text-decoration: none;
  border-color: #c8c5be;
}
.ms-chip--active {
  background: var(--ms-brand) !important;
  color: #ffffff !important;
  border-color: var(--ms-brand) !important;
  font-weight: 700;
  cursor: default;
}
.ms-chip--sub {
  font-size: 0.75rem !important;
  padding: 5px 11px !important;
  color: var(--ms-text-muted);
  border-style: dashed;
}
.ms-chip--sub.ms-chip--active { border-style: solid !important; color: #fff !important; }
.ms-chip-sep {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 6px;
  color: var(--ms-text-light);
  font-size: 0.9rem;
  user-select: none;
  flex-shrink: 0;
}

/* ============================================================
   HERO SECTION (product page)
   ============================================================ */
.ms-hero-bread {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--ms-r-2xl) var(--ms-r-2xl);
  margin-bottom: 8px;
}
.ms-hero-bread__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}
.ms-hero-bread__title {
  position: relative;
  z-index: 2;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  text-shadow: 0 4px 24px rgba(0,0,0,.3);
  margin: 0;
}

/* ============================================================
   PRODUCT GRID SECTION
   ============================================================ */
.ms-products-section {
  padding: 32px 0 64px;
  background: var(--ms-surface-2);
}
.ms-products-section .container { max-width: 1320px; }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
/* Skeleton — dùng transform (compositor thread) thay vì background-position */
.ms-skeleton {
  position: relative;
  overflow: hidden;
  background: var(--ms-surface-3);
  border-radius: var(--ms-r-md);
}
.ms-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: ms-shimmer-slide 1.4s ease infinite;
}
.ms-skeleton--card {
  border-radius: var(--ms-r-xl);
  overflow: hidden;
}
.ms-skeleton--image {
  width: 100%;
  padding-top: 125%;
  border-radius: var(--ms-r-xl) var(--ms-r-xl) 0 0;
}
.ms-skeleton--text {
  height: 14px;
  margin: 8px 0;
}
.ms-skeleton--price {
  height: 18px;
  width: 60%;
  margin-top: 12px;
}

/* ============================================================
   FADE-UP ANIMATION (thay AOS)
   ============================================================ */
@keyframes ms-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ms-animate {
  opacity: 0;
  animation: ms-fade-up 480ms var(--ms-ease) forwards;
}
.ms-animate.is-visible {
  /* fallback: class added by IntersectionObserver */
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers */
.ms-delay-1 { animation-delay: 80ms; }
.ms-delay-2 { animation-delay: 160ms; }
.ms-delay-3 { animation-delay: 240ms; }
.ms-delay-4 { animation-delay: 320ms; }
.ms-delay-5 { animation-delay: 400ms; }
.ms-delay-6 { animation-delay: 480ms; }

/* ============================================================
   SPEED DIAL FAB
   ============================================================ */
.ms-fab-container {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}
.ms-fab-trigger {
  width: 52px;
  height: 52px;
  border-radius: var(--ms-r-pill);
  background: var(--ms-brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--ms-shadow-lg);
  transition: transform 250ms var(--ms-ease-spring), background 180ms ease;
  outline: none;
}
.ms-fab-trigger:hover { background: #1e293b; }
.ms-fab-trigger .ms-fab-icon-close { display: none; }
.ms-fab-container.is-open .ms-fab-trigger .ms-fab-icon-open  { display: none; }
.ms-fab-container.is-open .ms-fab-trigger .ms-fab-icon-close { display: inline; }
.ms-fab-container.is-open .ms-fab-trigger { transform: rotate(45deg); background: var(--ms-accent); }

.ms-fab-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(.95);
  transition: opacity 220ms var(--ms-ease), transform 220ms var(--ms-ease);
}
.ms-fab-container.is-open .ms-fab-actions {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ms-fab-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-fab-action-label {
  background: var(--ms-surface);
  color: var(--ms-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--ms-r-pill);
  box-shadow: var(--ms-shadow-md);
  white-space: nowrap;
  pointer-events: none;
  border: 1px solid var(--ms-border);
}
.ms-fab-action-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--ms-r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--ms-shadow-md);
  transition: transform 180ms var(--ms-ease-spring);
  flex-shrink: 0;
}
.ms-fab-action-btn:hover { transform: scale(1.12); text-decoration: none; color: #fff; }
.ms-fab-action-btn--fb      { background: #1877f2; }
.ms-fab-action-btn--msg     { background: linear-gradient(135deg,#00c6ff,#0072ff); }
.ms-fab-action-btn--sale    { background: var(--ms-accent); }

/* ============================================================
   SERVICES BAR (Gutters)
   ============================================================ */
.ms-services-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--ms-border);
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-r-xl);
  overflow: hidden;
  margin: 24px 0;
}
.ms-service-item {
  background: var(--ms-surface);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ms-service-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.ms-service-item__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ms-text);
  margin: 0 0 2px;
}
.ms-service-item__desc {
  font-size: 0.75rem;
  color: var(--ms-text-muted);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   FOOTER — New 2026
   ============================================================ */

/* ── CTA Band ── */
.ms-footer__cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
}
.ms-footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.ms-footer__cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--ms-r-pill);
  padding: 3px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ms-footer__cta-title {
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1.2;
}
.ms-footer__cta-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,.5);
  margin: 0;
  line-height: 1.5;
}
.ms-footer__cta-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.ms-footer__btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: var(--ms-r-pill);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 180ms var(--ms-ease);
  white-space: nowrap;
}
.ms-footer__btn--primary {
  background: var(--ms-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(225,29,72,.3);
}
.ms-footer__btn--primary:hover {
  background: var(--ms-accent-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.ms-footer__btn--ghost {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.12);
}
.ms-footer__btn--ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
}

/* ── Main grid ── */
.ms-footer__main {
  background: #0a1120;
  padding: 56px 0 48px;
}
.ms-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px 32px;
}
.ms-footer__col--brand { padding-right: 16px; }

.ms-footer__logo {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.ms-footer__logo span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-accent);
  margin-left: 4px;
  vertical-align: middle;
}
.ms-footer__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  line-height: 1.7;
  margin: 0 0 24px;
}
.ms-footer__social {
  display: flex;
  gap: 8px;
}
.ms-footer__social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--ms-r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 180ms var(--ms-ease-spring), opacity 150ms ease;
  opacity: .75;
}
.ms-footer__social-btn:hover { opacity: 1; transform: translateY(-2px); text-decoration: none; }
.ms-footer__social-btn--fb  { background: #1877f2; }
.ms-footer__social-btn--msg { background: linear-gradient(135deg,#00c6ff,#0072ff); }

.ms-footer__heading {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.ms-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-footer__links li a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color 150ms ease, padding-left 150ms ease;
}
.ms-footer__links li a:hover {
  color: #fff;
  padding-left: 5px;
}

/* ── Contact ── */
.ms-footer__contact {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ms-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  line-height: 1.5;
}
.ms-footer__contact-icon { flex-shrink: 0; font-size: 0.9rem; margin-top: 1px; }
.ms-footer__contact li a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color 150ms ease;
}
.ms-footer__contact li a:hover { color: #fff; }
.ms-footer__delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.25);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--ms-r-pill);
}

/* ── Bottom bar ── */
.ms-footer__bottom {
  background: #060d18;
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 16px 0;
}
.ms-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ms-footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,.25);
  margin: 0;
}
.ms-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ms-footer__bottom-links a {
  font-size: 0.78rem;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color 150ms ease;
}
.ms-footer__bottom-links a:hover { color: rgba(255,255,255,.7); }
.ms-footer__sep { color: rgba(255,255,255,.15); font-size: 0.75rem; }

/* ── Back to top ── */
.ms-footer__top {
  position: fixed;
  bottom: 88px;
  right: 20px;
  z-index: 9998;
  width: 40px;
  height: 40px;
  border-radius: var(--ms-r-pill);
  background: rgba(15,23,42,.92);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms var(--ms-ease-spring);
  outline: none;
}
.ms-footer__top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ms-footer__top:hover {
  background: rgba(15,23,42,1);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ms-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .ms-footer__col--brand { grid-column: 1 / -1; padding-right: 0; }
  .ms-footer__cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .ms-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .ms-footer__cta { padding: 32px 0; }
  .ms-footer__main { padding: 36px 0 32px; }
  .ms-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* Hide old ftco-footer styles */
.ftco-footer { display: none !important; }
.mouse { display: none !important; }

/* ── OLD FOOTER override (giữ lại để không break nếu trang nào còn dùng) ── */
.ftco-footer .ftco-heading-2 {
  font-family: var(--ms-font) !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.45) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
}
.ftco-footer a {
  color: rgba(255,255,255,.65) !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  transition: color 150ms ease;
}
.ftco-footer a:hover { color: #fff !important; }
.ftco-footer p {
  color: rgba(255,255,255,.45);
  font-size: 0.8rem;
  margin: 0;
}
.ftco-footer .ftco-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--ms-r-pill);
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.8) !important;
  font-size: 1rem;
  transition: background 150ms ease;
}
.ftco-footer .ftco-footer-social a:hover {
  background: rgba(255,255,255,.18) !important;
  color: #fff !important;
}
.mouse { display: none; }

/* ============================================================
   LOADER
   ============================================================ */
#ftco-loader {
  background: var(--ms-surface) !important;
}
#ftco-loader .path { stroke: var(--ms-accent) !important; }

/* ============================================================
   PAGINATION — Modern 2026
   ============================================================ */

/* Hide legacy Bootstrap pagination (nếu còn bị render ở đâu đó) */
ul.pagination { display: none !important; }

.ms-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 0 8px;
}
.ms-pagination__inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Nav buttons (Trước / Tiếp) */
.ms-pagination__btn--nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--ms-r-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ms-text);
  background: var(--ms-surface);
  border: 1.5px solid var(--ms-border);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms var(--ms-ease-spring);
  cursor: pointer;
  white-space: nowrap;
}
.ms-pagination__btn--nav:hover {
  background: var(--ms-surface-3);
  border-color: #b0aca6;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--ms-text);
}
.ms-pagination__btn--disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
.ms-pagination__btn--nav svg {
  flex-shrink: 0;
}

/* Page number buttons */
.ms-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ms-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border-radius: var(--ms-r-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ms-text-muted);
  background: transparent;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all 160ms ease;
}
.ms-pagination__page:hover {
  background: var(--ms-surface-3);
  border-color: var(--ms-border);
  color: var(--ms-text);
  text-decoration: none;
}
.ms-pagination__page--active {
  background: var(--ms-brand) !important;
  color: #fff !important;
  border-color: var(--ms-brand) !important;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15,23,42,.25);
  cursor: default;
}
.ms-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  font-size: 0.9rem;
  color: var(--ms-text-light);
  letter-spacing: 0.08em;
}

/* Info text */
.ms-pagination__info {
  font-size: 0.8rem;
  color: var(--ms-text-muted);
  margin: 0;
}

/* Responsive */
@media (max-width: 480px) {
  .ms-pagination__btn--nav span { display: none; }
  .ms-pagination__btn--nav { padding: 0 12px; }
  .ms-pagination__page { min-width: 40px; height: 40px; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.ms-section { padding: 48px 0; }
.ms-section--light { background: var(--ms-surface-2); }
.ms-container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* Hide old floating buttons (replaced by Speed Dial) */
a.fb-message-blue,
a.fb-message-white,
a.sale-message-blue { display: none !important; }

/* Clean up legacy styles that conflict */
.hero-wrap.hero-bread { display: none; }
.ftco-section.ftco-no-pt.ftco-no-pb .ftco-services { display: none; }
.ftco-footer .block-23 ul li a span.icon { opacity: .5; }
.ftco-footer .block-23 ul li { color: rgba(255,255,255,.65); font-size: .875rem; }

/* ============================================================
   IMAGE LAZY-LOAD SHIMMER
   — Chỉ chạy khi image đang loading (.is-loading), tắt sau khi load
   — KHÔNG chạy mặc định để tránh 48 animations đồng thời
   ============================================================ */
.ms-product-card__image-wrap.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent          0%,
    rgba(255,255,255,.28) 50%,
    transparent          100%
  );
  transform: translateX(-100%);
  animation: ms-shimmer-slide 1.4s ease infinite;
  pointer-events: none;
}
@keyframes ms-shimmer-slide {
  to { transform: translateX(250%); }
}

/* ============================================================
   PREFERS-REDUCED-MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ms-product-card__image-wrap::after,
  .ms-skeleton::after { display: none !important; }
}

/* ============================================================
   Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ms-border); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #a8a29e; }

/* ============================================================
   AMAZON-STYLE THEME
   ============================================================ */

/* ── Page background — Amazon grey ── */
body { background: #ffffff !important; }
.ms-products-section { background: #ffffff !important; }

/* ── Navbar redesign ── */
#ftco-navbar {
  padding: 0 !important;
  background: var(--ms-brand) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  will-change: transform;
  transform: translateZ(0);
  /* fix: stack nav-inner + nav-strip vertically — override Bootstrap flex-wrap */
  display: flex !important;
  flex-direction: column !important;
}
.ms-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  min-height: 56px;
  flex-wrap: nowrap;
  width: 100%;       /* fill full width của navbar */
}
.ms-nav__logo {
  flex-shrink: 0;
  font-family: var(--ms-font) !important;
  font-weight: 900 !important;
  font-size: 1.15rem !important;
  color: #fff !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
  line-height: 1;
  padding: 4px 8px;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: border-color 150ms ease;
  white-space: nowrap;
}
.ms-nav__logo:hover { border-color: rgba(255,255,255,.6); text-decoration: none !important; }
.ms-nav__logo small {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ms-accent);
  display: block;
  line-height: 1;
}

/* Search bar — flex: 3 để chiếm nhiều không gian hơn */
.ms-nav__search {
  flex: 3;
  display: flex;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 180ms ease;
  min-width: 0;
  max-width: 800px;  /* giới hạn tối đa trên màn rất rộng */
}
.ms-nav__search:focus-within { border-color: var(--ms-gold); }
.ms-nav__search-cat {
  height: 100%;
  padding: 0 8px;
  background: #ffffff;
  border: none;
  border-right: 1px solid #cdcdcd;
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  max-width: 120px;
}
.ms-nav__search-input {
  flex: 1;
  height: 100%;
  padding: 0 12px;
  background: #fff;
  border: none;
  font-size: 0.9rem;
  color: #111;
  outline: none;
  min-width: 0;
}
.ms-nav__search-input::placeholder { color: #999; }
.ms-nav__search-btn {
  width: 46px;
  height: 100%;
  background: var(--ms-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ms-brand);
  flex-shrink: 0;
  transition: background 150ms ease;
}
.ms-nav__search-btn:hover { background: #e8a000; }

/* Right nav links */
.ms-nav__right {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.ms-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.7rem;
  font-weight: 500;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: border-color 150ms ease;
  white-space: nowrap;
  min-width: 56px;
  line-height: 1.2;
}
.ms-nav__link:hover { border-color: rgba(255,255,255,.6); }
.ms-nav__link--sale { color: var(--ms-accent) !important; }
.ms-nav__link span { font-size: 0.7rem; }
.ms-nav__user { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }

/* Mobile burger */
.ms-nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.ms-nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 220ms ease;
}
.ms-nav__burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ms-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.ms-nav__burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Category strip */
.ms-nav-strip {
  background: #232f3e;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;       /* fill full width, tách hẳn khỏi nav-inner */
}
.ms-nav-strip::-webkit-scrollbar { display: none; }
.ms-nav-strip__inner {
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 0;
  white-space: nowrap;
  min-width: max-content;
}
.ms-nav-strip__item {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 400;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.ms-nav-strip__item:hover { border-color: rgba(255,255,255,.7); color: #fff; text-decoration: none; }
.ms-nav-strip__item.active { border-color: #fff; color: #fff; font-weight: 700; }

/* Remove old navbar classes that conflict */
#ftco-navbar .navbar-brand { display: none !important; }
#ftco-navbar .navbar-toggler { display: none !important; }
#ftco-navbar .navbar-collapse { display: none !important; }

/* ── Product card — Amazon compact square ── */
.ms-product-card {
  border-radius: 4px !important;
  box-shadow: none !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  will-change: auto !important;
  transition: box-shadow 180ms ease !important;
}
.ms-product-card:hover {
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.12) !important;
}
/* Square 1:1 image ratio */
.ms-product-card__image-wrap {
  aspect-ratio: 1 / 1 !important;
}
.ms-product-card__body {
  padding: 8px 10px 10px !important;
  gap: 3px !important;
}
.ms-product-card__name {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  min-height: calc(1.4em * 2) !important;
  color: #0F1111 !important;
}
.ms-product-card__price-row {
  padding-top: 4px !important;
  min-height: 22px !important;
}
.ms-product-card__price {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  color: #B12704 !important;
}
.ms-product-card__price-original {
  font-size: 0.72rem !important;
  color: #565959 !important;
}
.ms-product-card__price-sale {
  color: #B12704 !important;
}
.ms-product-card__badge {
  font-size: 0.65rem !important;
  padding: 2px 7px !important;
  top: 6px !important;
  left: 6px !important;
}

/* ── 6-column grid on desktop ── */
.ms-products-section .container { max-width: 1400px !important; }

/* Product price — Rakuten-style sale presentation */
.ms-product-card__price-row {
  display: block !important;
  padding-top: 6px !important;
  min-height: 58px !important;
}
.ms-product-card__sale-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 2px;
  flex-wrap: nowrap;
}
.ms-product-card__sale-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #d10a3a !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  line-height: 1;
}
.ms-product-card__sale-label {
  min-width: 0;
  color: #d10a3a !important;
  font-size: 0.82rem !important;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-product-card__price-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  line-height: 1.1;
  flex-wrap: nowrap;
}
.ms-product-card__currency {
  color: #111 !important;
  font-size: 0.86rem !important;
  font-weight: 500;
}
.ms-product-card__price {
  color: #111 !important;
  font-size: 1.26rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}
.ms-product-card__price-sale {
  color: #111 !important;
}
.ms-product-card__price-original {
  color: #666 !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ms-product-card__contact-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 4px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .ms-product-card__body {
    padding: 8px 8px 10px !important;
  }
  .ms-product-card__price-row {
    min-height: 52px !important;
  }
  .ms-product-card__sale-line {
    gap: 4px;
    flex-wrap: nowrap;
  }
  .ms-product-card__sale-badge {
    min-height: 20px;
    padding: 2px 5px;
    font-size: 0.66rem !important;
  }
  .ms-product-card__sale-label {
    font-size: 0.68rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ms-product-card__currency {
    font-size: 0.74rem !important;
  }
  .ms-product-card__price {
    font-size: 0.98rem !important;
  }
  .ms-product-card__price-original {
    font-size: 0.66rem !important;
  }
  .ms-product-card__contact-price {
    padding: 3px 6px;
    font-size: 0.68rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .ms-product-card__body {
    padding: 8px 8px 10px !important;
  }
  .ms-product-card__sale-line {
    gap: 5px;
  }
  .ms-product-card__sale-badge {
    padding: 2px 6px;
    font-size: 0.7rem !important;
  }
  .ms-product-card__sale-label {
    font-size: 0.72rem !important;
  }
  .ms-product-card__price {
    font-size: 1.08rem !important;
  }
  .ms-product-card__price-original {
    font-size: 0.68rem !important;
  }
  .ms-product-card__contact-price {
    font-size: 0.72rem;
  }
}

.ms-product-detail__image {
  display: block;
  width: 100%;
  position: relative;
  background: #f8f7f4;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.ms-product-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8f7f4;
}
.ms-product-detail__price {
  margin: 12px 0 18px;
}
.product-details .ms-product-detail__price span {
  color: inherit;
  font-size: inherit;
}
.product-details .ms-product-detail__price .ms-product-card__sale-badge {
  background: #d10a3a !important;
  color: #fff !important;
}
.product-details .ms-product-detail__price .ms-product-card__sale-label {
  color: #d10a3a !important;
}
.product-details .ms-product-detail__price .ms-product-card__currency,
.product-details .ms-product-detail__price .ms-product-card__price-sale {
  color: #111 !important;
}
.product-details .ms-product-detail__price .ms-product-card__price-original {
  color: #666 !important;
}
.ms-product-detail__contact-price {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 0.92rem;
}
.ms-product-detail-card {
  max-width: 1120px;
  margin: 0 auto 28px;
  background: #fff;
  border: 1px solid #e6e2dc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}
.ms-product-detail-card__media {
  padding: 24px !important;
  background: linear-gradient(180deg, #faf9f6 0%, #fff 100%);
  border-right: 1px solid #eee9e1;
}
.ms-product-detail-card__body {
  padding: 28px 32px !important;
}
.ms-product-detail-card__body h3 {
  color: #111;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}
.ms-product-detail__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ms-product-detail__chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.ms-product-detail__chip--sale {
  background: #d10a3a;
}
.ms-product-detail__description {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.85;
  margin-top: 22px;
  padding: 18px 20px;
  background: #fbfaf8;
  border: 1px solid #eee8df;
  border-radius: 8px;
}

@media (max-width: 767.98px) {
  .ftco-section {
    padding-top: 8px !important;
  }
  .ms-product-detail-card {
    max-width: 100%;
    margin-left: 6px;
    margin-right: 6px;
    border-radius: 6px;
  }
  .ms-product-detail-card__media {
    padding: 0 !important;
    border-right: 0;
    border-bottom: 1px solid #eee9e1;
  }
  .ms-product-detail-card__body {
    padding: 12px 14px 16px !important;
  }
  .ms-product-detail-card__body h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .ms-product-detail__meta {
    margin-bottom: 8px;
  }
  .ms-product-detail__price {
    margin: 6px 0 12px;
  }
  .ms-product-detail__description {
    display: block;
    margin-top: 14px;
    padding: 12px;
    font-size: 0.86rem;
    line-height: 1.7;
  }
}

/* ── Amazon section wrapper ── */
.ms-az-section {
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 14px 16px;
  margin-bottom: 16px;
  /* bỏ qua render khi off-screen → giảm tải scroll */
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}
.ms-az-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ms-az-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0F1111;
  margin: 0;
}
.ms-az-section__more {
  font-size: 0.8125rem;
  color: #007185;
  text-decoration: none;
  font-weight: 400;
}
.ms-az-section__more:hover { color: #c45500; text-decoration: underline; }

/* ── Filter bar — ẩn hoàn toàn (thay bằng ms-sub-bar) ── */
.ms-filter-bar { display: none !important; }

/* ── Sub-type bar: chỉ hiện khi category có sub (Giày → Nike/Adidas…) ── */
.ms-sub-bar {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 92px;
  z-index: 89;
}
.ms-sub-bar::-webkit-scrollbar { display: none; }
.ms-sub-bar__inner {
  display: flex;
  align-items: center;
  padding: 6px 16px;
  gap: 6px;
  white-space: nowrap;
  min-width: max-content;
}
.ms-sub-chip {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--ms-r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ms-text-muted);
  background: var(--ms-surface-2);
  border: 1px solid var(--ms-border);
  text-decoration: none;
  transition: all 160ms ease;
  white-space: nowrap;
}
.ms-sub-chip:hover {
  background: var(--ms-surface-3);
  color: var(--ms-text);
  text-decoration: none;
  border-color: #b0aca6;
}
.ms-sub-chip--active {
  background: var(--ms-brand) !important;
  color: #fff !important;
  border-color: var(--ms-brand) !important;
  font-weight: 700;
}

/* ── Hero bread — compact ── */
.ms-hero-bread {
  height: 80px !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}
.ms-hero-bread__title { font-size: 1.25rem !important; }

/* ── Responsive navbar ── */
@media (max-width: 768px) {
  .ms-nav__search-cat { display: none; }
  .ms-nav__right {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--ms-brand);
    flex-direction: column;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .ms-nav__right.is-open { display: flex; }
  .ms-nav__link { flex-direction: row; min-width: unset; padding: 12px 16px; width: 100%; justify-content: flex-start; gap: 10px; border-radius: 0; border: none; font-size: 0.875rem; }
  .ms-nav__burger { display: flex; }
  .ms-nav-inner { position: relative; }
  #ftco-navbar { position: sticky !important; }
}
