/* Mishio Kachi homepage CRO and responsive repair — 2026-09-27 */

body.home .mk-home-final > * {
  order: 0 !important;
}

/* Accurate, clickable policy strip. */
.mk-trustbar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  min-height: 40px;
  padding: 6px 16px !important;
}

.mk-trustbar::before {
  content: none !important;
}

.mk-trustbar a {
  display: inline-flex !important;
  align-items: center;
  color: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.mk-trustbar a + a::before {
  content: "·";
  margin: 0 14px;
  color: #869096;
}

.mk-trustbar a:hover,
.mk-trustbar a:focus-visible {
  color: #315f8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Hero: two clear brand promises, usable CTAs and no decorative fake control. */
body.home .mk-demo-hero,
body.home .mk-demo-hero-inner {
  width: 100% !important;
  max-width: 1440px !important;
}

body.home .mk-demo-hero-inner {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}

body.home .mk-demo-hero-img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}

body.home .mk-demo-hero-copy {
  z-index: 3 !important;
}

body.home .mk-demo-hero-copy h1 {
  margin: 10px 0 16px !important;
  color: #252b2d !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

body.home .mk-demo-hero-copy h1 > span {
  display: block;
}

body.home .mk-demo-hero-copy .lead {
  max-width: 590px !important;
  margin-bottom: 22px !important;
  color: #5a666a !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

body.home .mk-demo-hero-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px !important;
}

body.home .mk-demo-hero-actions .mk-pill {
  min-height: 46px;
  padding: 12px 20px !important;
}

body.home .mk-image-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #546166;
  font-size: 10px;
  line-height: 1;
  backdrop-filter: blur(5px);
}

/* Four equally useful trust links. */
body.home .mk-demo-trust {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  width: min(100%, 1440px) !important;
  height: auto !important;
  margin: 0 auto !important;
  background: rgba(255,255,255,.98) !important;
}

body.home .mk-demo-trust > a {
  display: flex !important;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-right: 1px solid #e5e9e1;
  background: rgba(255,255,255,.98);
  color: inherit;
  text-decoration: none;
}

body.home .mk-demo-trust > a:last-child {
  border-right: 0;
}

body.home .mk-demo-trust > a:hover {
  background: #f7faf5;
}

body.home .mk-demo-trust > a:focus-visible {
  outline: 3px solid #315f8c;
  outline-offset: -3px;
}

body.home .mk-demo-trust > a span {
  min-width: 0;
  color: #758085;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

body.home .mk-demo-trust > a b {
  display: block;
  margin-bottom: 2px;
  color: #30383b;
  font-size: 13px !important;
}

/* Put products and prices directly after the opening promise. */
body.home #san-pham-noi-bat {
  padding: 34px 0 28px !important;
}

body.home .mk-product-toolbar {
  margin-bottom: 18px !important;
}

body.home .mk-product-toolbar h2,
body.home .mk-section-head h2,
body.home #mk-store-network-title,
body.home #mk-home-support-title {
  margin: 0 !important;
  color: #283033 !important;
  font-size: clamp(25px, 2vw, 34px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
}

body.home .mk-demo-products .woocommerce ul.products li.product {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
}

body.home .mk-demo-products .woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 3.9em;
  margin: 10px 0 6px !important;
  color: #30383b !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

body.home .mk-demo-products .woocommerce ul.products li.product .price {
  min-height: 44px;
  margin-top: auto !important;
  padding-right: 0 !important;
}

body.home .mk-demo-products .woocommerce ul.products li.product .button {
  position: static !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: auto !important;
  margin: 10px 0 0 !important;
  padding: 9px 10px !important;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  background: #315f8c !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.35 !important;
  text-align: center;
  white-space: normal !important;
}

body.home .mk-demo-products .woocommerce ul.products li.product .button:hover {
  background: #244f78 !important;
}

body.home .mk-demo-products .woocommerce ul.products li.product .button::after {
  content: none !important;
}

body.home .mk-price-from small {
  color: #667277;
  font-size: 11px;
  font-weight: 600;
}

/* Category block now follows products and helps comparison, rather than delaying prices. */
body.home .mk-home-categories {
  padding: 30px 0 !important;
  background: #f8f9f6;
}

body.home .mk-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 18px;
}

body.home .mk-section-head > p {
  margin: 0;
  color: #667277;
  font-size: 14px;
  line-height: 1.55;
}

body.home .mk-home-brand-stories {
  padding-top: 24px !important;
}

/* Replace the repeated promise strip with a useful decision-support CTA. */
body.home .mk-home-support {
  display: grid;
  width: min(calc(100% - 48px), 1192px);
  margin: 22px auto 34px;
  padding: 30px 34px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  border: 1px solid #dfe7d9;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3f8ef 0%, #eef5fa 100%);
}

body.home .mk-home-support p:not(.mk-eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: #5e6b70;
  font-size: 14px;
  line-height: 1.6;
}

body.home .mk-home-support-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

body.home .mk-home-support .mk-text-link {
  color: #315f8c;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* One support launcher: channels appear only after the user opens it. */
.mk-floating-chat:has(> .mk-floating-chat__toggle) > .mk-floating-chat__toggle {
  display: inline-flex !important;
  order: 3;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.mk-floating-chat:has(> .mk-floating-chat__toggle):not(.is-open) > .mk-floating-chat__item {
  display: none !important;
}

body.home .mk-floating-chat:not(.mk-chat-ready),
body.home .mk-floating-chat.mk-chat-scrolling {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

body.home .mk-floating-chat.mk-chat-ready:not(.mk-chat-scrolling) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (min-width: 1280px) {
  body.home .mk-demo-hero-inner,
  body.home .mk-demo-hero-img,
  body.home .mk-demo-hero-copy {
    height: clamp(430px, 27vw, 470px) !important;
    min-height: clamp(430px, 27vw, 470px) !important;
  }

  body.home .mk-demo-hero-copy {
    width: 46% !important;
    padding: 44px 48px 42px !important;
  }

  body.home .mk-demo-hero-copy h1 {
    max-width: none !important;
    font-size: clamp(43px, 2.75vw, 50px) !important;
    line-height: 1.06 !important;
  }

  body.home .mk-demo-hero-copy h1 > span {
    white-space: nowrap;
  }

  body.home .mk-demo-hero-inner::after {
    right: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1279px) {
  body.home .mk-demo-hero-inner,
  body.home .mk-demo-hero-img,
  body.home .mk-demo-hero-copy {
    height: 430px !important;
    min-height: 430px !important;
  }

  body.home .mk-demo-hero-copy {
    width: 51% !important;
    padding: 38px 34px !important;
  }

  body.home .mk-demo-hero-copy h1 {
    font-size: clamp(37px, 4vw, 45px) !important;
    line-height: 1.08 !important;
  }
}

@media (max-width: 768px) {
  body.home .mk-home-final > * {
    order: 10 !important;
  }

  body.home .mk-home-final > .mk-demo-hero {
    order: 1 !important;
  }

  body.home .mk-home-final > .mk-demo-trust {
    order: 2 !important;
  }

  body.home .mk-home-final > #san-pham-noi-bat {
    order: 3 !important;
  }

  body.home .mk-home-final > .mk-ui24-need-shortcuts {
    order: 4 !important;
  }

  body.home .mk-home-final > .mk-home-categories {
    order: 5 !important;
  }

  body.home .mk-home-final > .mk-home-brand-stories {
    order: 6 !important;
  }

  .mk-trustbar {
    min-height: 34px;
    padding: 5px 10px !important;
  }

  .mk-trustbar a {
    display: none !important;
    font-size: 11px;
  }

  .mk-trustbar a:first-child {
    display: inline-flex !important;
  }

  body.home .mk-demo-hero-inner {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    flex-direction: column;
    background: #f8f7f1 !important;
  }

  body.home .mk-demo-hero-copy {
    position: relative !important;
    inset: auto !important;
    order: 1;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px 18px 22px !important;
    background: #f8f7f1 !important;
  }

  body.home .mk-demo-hero-img {
    position: relative !important;
    inset: auto !important;
    order: 2;
    height: 215px !important;
    min-height: 215px !important;
    object-position: 68% center !important;
  }

  body.home .mk-demo-hero-copy h1 {
    margin: 8px 0 12px !important;
    font-size: clamp(32px, 9.2vw, 42px) !important;
    line-height: 1.08 !important;
  }

  body.home .mk-demo-hero-copy .lead {
    margin-bottom: 17px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  body.home .mk-demo-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .mk-demo-hero-actions .mk-pill {
    width: 100%;
    min-height: 48px;
    padding: 10px 8px !important;
    font-size: 12px !important;
    text-align: center;
  }

  body.home .mk-image-note {
    right: 10px;
    bottom: 9px;
  }

  body.home .mk-demo-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    height: auto !important;
  }

  body.home .mk-demo-trust > a {
    min-height: 74px;
    padding: 10px 11px;
    border-right: 1px solid #e5e9e1;
    border-bottom: 1px solid #e5e9e1;
  }

  body.home .mk-demo-trust > a:nth-child(2n) {
    border-right: 0;
  }

  body.home .mk-demo-trust > a:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  body.home .mk-demo-trust > a span {
    font-size: 10.5px !important;
  }

  body.home .mk-demo-trust > a b {
    font-size: 11.5px !important;
  }

  body.home #san-pham-noi-bat {
    padding: 24px 0 20px !important;
  }

  body.home .mk-product-toolbar {
    display: grid !important;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  body.home .mk-product-toolbar h2 {
    grid-column: 1 / -1;
    font-size: 25px !important;
  }

  body.home .mk-product-tabs {
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  body.home .mk-product-tabs::-webkit-scrollbar {
    display: none;
  }

  body.home .mk-demo-products .products li.product:nth-child(n+5) {
    display: none !important;
  }

  body.home .mk-demo-products .woocommerce ul.products li.product .woocommerce-loop-product__title {
    min-height: 4.7em;
    font-size: 13px !important;
  }

  body.home .mk-demo-products .woocommerce ul.products li.product .button {
    min-height: 46px !important;
    font-size: 11px !important;
  }

  body.home .mk-home-categories {
    padding: 24px 0 !important;
  }

  body.home .mk-section-head {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  body.home .mk-section-head h2 {
    font-size: 25px !important;
  }

  body.home .mk-section-head > p {
    font-size: 12px;
  }

  body.home .mk-home-support {
    width: calc(100% - 24px);
    margin: 16px auto 26px;
    padding: 23px 18px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  body.home .mk-home-support-actions {
    align-items: stretch;
  }

  body.home .mk-home-support .mk-pill {
    width: 100%;
    text-align: center;
  }

  body.home .mk-floating-chat {
    display: none !important;
  }
}

@media (max-width: 360px) {
  body.home .mk-demo-hero-actions {
    grid-template-columns: 1fr !important;
  }

  body.home .mk-demo-hero-copy h1 {
    font-size: 30px !important;
  }

  body.home .mk-demo-trust {
    grid-template-columns: 1fr !important;
  }

  body.home .mk-demo-trust > a,
  body.home .mk-demo-trust > a:nth-child(2n),
  body.home .mk-demo-trust > a:nth-last-child(-n+2) {
    min-height: 66px;
    border-right: 0;
    border-bottom: 1px solid #e5e9e1;
  }

  body.home .mk-demo-trust > a:last-child {
    border-bottom: 0;
  }
}

/* Desktop canvas normalization — every visible panel shares one pair of edges. */
@media (min-width: 769px) {
  body.home {
    --mk-home-canvas-max: 1192px;
    --mk-home-canvas-gap: 48px;
  }

  body.home .mk-home-final > .mk-demo-hero,
  body.home .mk-demo-trust,
  body.home .mk-home-section > .mk-home-shell,
  body.home #he-thong-cua-hang > .mk-home-shell,
  body.home #goc-tu-van,
  body.home .mk-home-support {
    width: min(calc(100% - var(--mk-home-canvas-gap)), var(--mk-home-canvas-max)) !important;
    max-width: var(--mk-home-canvas-max) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* The editorial block used to constrain both the panel and its child shell. */
  body.home #mk-home-restored #goc-tu-van {
    padding: 28px 32px !important;
  }

  body.home #mk-home-restored #goc-tu-van > .mk-home-shell {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (min-width: 1280px) {
  body.home {
    --mk-home-canvas-gap: 64px;
  }
}
