/* Tapo Vietnam homepage visual refinement — November 2026 */
:root {
  --tapo-blue: #1268d7;
  --tapo-blue-deep: #073b8c;
  --tapo-ink: #17243a;
  --tapo-muted: #66758a;
  --tapo-line: #e7edf4;
  --tapo-surface: #f5f8fc;
  --tapo-radius: 18px;
}

body.home {
  color: var(--tapo-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.home #main { background: #fff; }
body.home #main > .page-wrapper { padding-top: 0; }
body.home #main .entry-header { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

/* Cleaner navigation and search header */
#header .header-main { box-shadow: 0 4px 20px rgba(18, 51, 95, .07); }
#header .header-nav > li > a { transition: color .2s ease, opacity .2s ease; }
#header .header-nav > li:hover > a { color: #fff; opacity: .82; }
#header .searchform input[type="search"] { border-radius: 999px 0 0 999px; }
#header .searchform .button { border-radius: 0 999px 999px 0; }

/* Banner */
body.home #main .slider-wrapper { overflow: hidden; }
body.home #main .slider .flickity-viewport,
body.home #main .slider .banner { border-radius: 0 0 22px 22px; overflow: hidden; }
body.home #main .flickity-page-dots .dot { width: 9px; height: 9px; margin: 0 5px; opacity: .48; }
body.home #main .flickity-page-dots .dot.is-selected { width: 24px; border-radius: 9px; background: var(--tapo-blue); opacity: 1; }

/* Consistent section rhythm and headings */
body.home #main .section { padding-top: clamp(30px, 4vw, 58px); padding-bottom: clamp(30px, 4vw, 58px); }
body.home #main .section_1239227010,
body.home #main .section_1562951296 { padding-top: clamp(26px, 3vw, 42px); }
body.home #main h2,
body.home #main .section-title b { color: var(--tapo-ink); }
body.home #main .section-title { margin-bottom: 22px; }
body.home #main .section-title b { border-color: var(--tapo-blue); border-width: 3px; }
body.home #main .section-title span { font-size: clamp(19px, 2.2vw, 27px); font-weight: 750; letter-spacing: -.025em; }

/* Category shortcuts */
body.home #main .section_1239227010 .row { row-gap: 14px; }
body.home #main .section_1239227010 .col-inner { height: 100%; }
body.home #main .section_1239227010 a { display: flex; min-height: 104px; align-items: center; justify-content: center; padding: 18px; border: 1px solid var(--tapo-line); border-radius: 16px; background: linear-gradient(145deg, #fff, #f5f9ff); box-shadow: 0 5px 18px rgba(23, 57, 101, .045); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
body.home #main .section_1239227010 a:hover { transform: translateY(-3px); border-color: #b7d5fc; box-shadow: 0 12px 28px rgba(23, 85, 155, .11); }
body.home #main .section_1239227010 h5 { margin: 0; color: var(--tapo-ink); font-size: 15px; line-height: 1.35; font-weight: 700; }

/* Product cards: calm surfaces, aligned content, clear price */
body.home #main .product-small .col-inner { height: 100%; }
body.home #main .product-small .box { height: 100%; overflow: hidden; border: 1px solid var(--tapo-line); border-radius: var(--tapo-radius); background: #fff; box-shadow: 0 5px 18px rgba(17, 43, 77, .045); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
body.home #main .product-small .box:hover { transform: translateY(-4px); border-color: #c8dcf5; box-shadow: 0 14px 32px rgba(17, 66, 123, .12); }
body.home #main .product-small .box-image { margin: 10px 10px 0; overflow: hidden; border-radius: 13px; background: #f7f9fc; }
body.home #main .product-small .box-image img { mix-blend-mode: multiply; transition: transform .35s ease; }
body.home #main .product-small .box:hover .box-image img { transform: scale(1.035); }
body.home #main .product-small .box-text { display: flex; flex-direction: column; padding: 15px 16px 17px; }
body.home #main .product-small .name { min-height: 3.9em; margin-bottom: 9px; color: #26364d; font-size: 14px; line-height: 1.4; font-weight: 650; }
body.home #main .product-small .price-wrapper { margin-top: auto; }
body.home #main .product-small .price { color: #e34d3d; font-size: 18px; font-weight: 800; }
body.home #main .product-small .price del { color: #91a0b2; font-size: 12px; font-weight: 400; }
body.home #main .product-small .badge-container { margin: 8px; }
body.home #main .product-small .badge { border-radius: 999px; }
body.home #main .product-small .button { min-height: 38px; border-radius: 999px; font-weight: 700; }
body.home #main .product-small .add-to-cart-button { margin-top: 12px; }
body.home #main .row.row-hot { max-width: 1440px; margin-right: auto; margin-left: auto; }

/* Brand benefit and comparison block */
body.home #main .section_1473841757 .section-content { padding: 0 18px; }
body.home #main .section_1473841757 .row { overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, #0c4ca8, #1680e8); box-shadow: 0 16px 36px rgba(18, 89, 171, .2); }
body.home #main .section_1473841757,
body.home #main .section_1473841757 * { color: #fff; }
body.home #main .section_1473841757 a { color: #fff; font-weight: 800; }
body.home #main .section_1096098930 { background: var(--tapo-surface); }
body.home #main .section_1096098930 .row { align-items: center; }
body.home #main .section_1096098930 .text-box { padding: 18px; }
body.home #main .section_1096098930 img { border-radius: 16px; }

/* Editorial cards */
body.home #main .section_1483530548 .col-inner { height: 100%; overflow: hidden; border: 1px solid var(--tapo-line); border-radius: 16px; background: #fff; box-shadow: 0 5px 18px rgba(17, 43, 77, .045); }
body.home #main .section_1483530548 .box-text { padding: 18px; }
body.home #main .section_1483530548 h3 { color: var(--tapo-ink); font-size: 16px; line-height: 1.45; }
body.home #main .section_1483530548 .button { border-radius: 999px; }

/* Social subscribe panel */
body.home #main .section_1452577059 .row { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--tapo-line); border-radius: 22px; background: linear-gradient(145deg, #f8fbff, #edf5ff); }
body.home #main .section_1452577059 input[type="email"] { border-radius: 999px; }
body.home #main .section_1452577059 .button { border-radius: 999px; }

/* Fixed contact shortcuts */
#top-link { border-radius: 999px; }
@media (max-width: 849px) {
  body.home #main .slider .flickity-viewport,
  body.home #main .slider .banner { border-radius: 0 0 14px 14px; }
  body.home #main .section_1239227010 a { min-height: 82px; padding: 12px; }
  body.home #main .section_1239227010 h5 { font-size: 13px; }
  body.home #main .product-small .box-text { padding: 11px; }
  body.home #main .product-small .name { font-size: 13px; }
  body.home #main .product-small .price { font-size: 16px; }
  body.home #main .section_1483530548 .box-text { padding: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home #main *, #header * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Product rows synced by WP Sync use their own card component. Keep its palette
   aligned with Tapo blue and let the card under the pointer lead visually. */
body.home .wpss1-wrap { --tapo-accent: #1676e8; --tapo-accent-deep: #0d4fa9; --tapo-ink: #172b46; }
body.home .wpss1-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e0eaf5 !important;
  border-radius: 15px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(21, 57, 99, .07) !important;
  transition: transform .28s ease, opacity .28s ease, filter .28s ease, box-shadow .28s ease, border-color .28s ease !important;
}
body.home .wpss1-product-card::after {
  position: absolute;
  z-index: 3;
  top: 0;
  left: -150%;
  width: 65%;
  height: 100%;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 10%, rgba(255,255,255,.05) 34%, rgba(255,255,255,.64) 50%, rgba(80,190,255,.18) 57%, transparent 76%);
  transform: skewX(-18deg);
}
body.home .wpss1-product-card:hover {
  z-index: 4;
  transform: translateY(-6px) scale(1.015);
  border-color: #69b8ff !important;
  filter: brightness(1.045) saturate(1.08);
  box-shadow: 0 16px 38px rgba(18, 104, 215, .24), 0 0 0 1px rgba(48, 157, 255, .22) !important;
}
body.home .wpss1-product-card:hover::after { animation: tapo-card-light-sweep .8s ease-out forwards; }
body.home .wpss1-grid:has(.wpss1-product-card:hover) .wpss1-product-card:not(:hover) {
  opacity: .55;
  filter: saturate(.72) brightness(.98);
  transform: scale(.985);
}
body.home .wpss1-card-body { color: #30445d !important; }
body.home .wpss1-product-card .wpss1-price,
body.home .wpss1-product-card .price,
body.home .wpss1-product-card [class*="price"] { color: #075fc4; }
body.home .wpss1-product-card .wpss1-discount,
body.home .wpss1-product-card [class*="discount"] {
  border-color: #cce2fb !important;
  border-radius: 9px !important;
  background: #edf6ff !important;
  color: #075fc4 !important;
}
body.home .wpss1-product-card .wpss1-stock,
body.home .wpss1-product-card [class*="stock"] { color: #16835b; }
body.home .wpss1-product-card .wpss1-interest,
body.home .wpss1-product-card [class*="interest"] {
  border-color: #d7e8fa !important;
  border-radius: 8px !important;
  background: #f2f8ff !important;
  color: #54708d !important;
}
body.home .wpss1-product-card a.button,
body.home .wpss1-product-card .button {
  border-radius: 10px !important;
  background: #1268d7 !important;
  color: #fff !important;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
body.home .wpss1-product-card:hover a.button,
body.home .wpss1-product-card:hover .button {
  background: #084da9 !important;
  box-shadow: 0 5px 14px rgba(18, 104, 215, .25);
}
@keyframes tapo-card-light-sweep {
  to { left: 155%; }
}

/* Fix the feature section that had a mismatched heading, duplicate card copy,
   and malformed fourth-column shortcode. */
body.home #main .section_1096098930 { overflow: hidden; background: #f4f8fd; }
body.home #main .section_1096098930 #row-1016091292 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid #e2ebf5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(26, 67, 115, .08);
}
body.home #main .section_1096098930 #row-1016091292 > .col { width: auto; max-width: none; padding: 0; }
body.home #main .section_1096098930 #row-1016091292 > .col:first-child { grid-column: 1 / -1; }
body.home #main .section_1096098930 #row-1016091292 > .col:first-child h2 {
  margin: 0 0 6px;
  color: #123b70;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 750;
  letter-spacing: -.025em;
}
body.home #main .section_1096098930 #row-1016091292 > .col:first-child p {
  color: #5b6f87;
  font-size: 16px;
}
body.home #main .section_1096098930 #row-1016091292 > .col:not(:first-child) .banner {
  height: 100%;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid #e4edf7;
  border-radius: 16px;
  background-color: #eef6ff;
  box-shadow: 0 6px 20px rgba(26, 67, 115, .07);
  transition: transform .25s ease, box-shadow .25s ease;
}
body.home #main .section_1096098930 #row-1016091292 > .col:not(:first-child) .banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(26, 93, 164, .18);
}
body.home #main .section_1096098930 #row-1016091292 h3 { color: #133b71; font-size: 20px; line-height: 1.3; font-weight: 700; }
body.home #main .section_1096098930 #row-1016091292 .text-box { padding: 16px; }

/* Remove the duplicate technical title above the hero as requested. */
body.home #main > h1.tt-h1 { display: none !important; }

/* Disable the old page-wide cursor glow; the replacement stays inside a product card. */
.tapo-pointer-light {
  display: none !important;
}

/* Feature row: heading followed by four feature cards on one desktop row. */
body.home #main .tapo-home-features {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px);
}
body.home #main .tapo-home-features > .col { width: auto !important; max-width: none !important; padding: 0 !important; }
body.home #main .tapo-home-features > .col:first-child { grid-column: 1 / -1; }
body.home #main .tapo-home-features > .col:not(:first-child) .banner { min-height: 390px; }
body.home #main .tapo-home-features {
  justify-content: stretch !important;
  justify-items: stretch !important;
  column-gap: 8px !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) {
  margin: 0 !important;
  flex: initial !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner {
  width: 100% !important;
  margin: 0 !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner {
  height: 470px !important;
  min-height: 470px !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box {
  height: 240px !important;
  min-height: 240px !important;
  margin-top: 8px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box h3 {
  width: 100%;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* A narrow, smooth sheen follows the pointer only inside its current product card. */
body.home .wpss1-product-card::after {
  top: var(--tapo-sheen-y, 50%);
  left: var(--tapo-sheen-x, 50%);
  width: 72px;
  height: 240px;
  opacity: 0;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.64), rgba(111,202,255,.30), transparent);
  filter: blur(9px);
  transform: translate(-50%, -50%) rotate(24deg);
  transition: left .22s ease-out, top .22s ease-out, opacity .25s ease;
  animation: none !important;
}
body.home .wpss1-product-card.is-pointer-inside::after { opacity: .8; }

/* Editorial article images were clipped by a shared product image rule. */
body.home .wps-items-v2179:not(.type-product) .wps-card-v2179__image {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  overflow: hidden;
  background: #f4f8fc;
}
body.home .wps-items-v2179:not(.type-product) .wps-card-v2179__image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
}
@media (max-width: 849px) {
  body.home #main .tapo-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; padding: 16px; }
  body.home #main .tapo-home-features > .col:not(:first-child) .banner { height: 430px !important; min-height: 430px !important; }
  body.home #main .tapo-home-features > .col:not(:first-child) .text-box { height: 230px !important; min-height: 230px !important; }
  body.home #main .section_1096098930 #row-1016091292 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  body.home #main .section_1096098930 #row-1016091292 > .col:not(:first-child) .banner { min-height: 330px; }
  .tapo-pointer-light { display: none; }
}
@media (max-width: 549px) {
  body.home #main .tapo-home-features { grid-template-columns: 1fr !important; }
  body.home #main .tapo-home-features > .col:not(:first-child) .banner { height: 450px !important; min-height: 450px !important; }
  body.home #main .tapo-home-features > .col:not(:first-child) .text-box { height: 230px !important; min-height: 230px !important; }
  body.home #main .section_1096098930 #row-1016091292 { grid-template-columns: 1fr; }
  body.home #main .section_1096098930 #row-1016091292 > .col:not(:first-child) .banner { min-height: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .wpss1-product-card, body.home .wpss1-product-card::after,
  body.home #main .section_1096098930 * { animation: none !important; transition: none !important; }
}

/* The homepage builder regenerates section wrapper IDs; the inner row ID is stable. */
body #main #row-1016091292 {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid #e2ebf5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(26, 67, 115, .08);
}
body #main #row-1016091292 > .col { width: auto !important; max-width: none !important; padding: 0 !important; }
body #main #row-1016091292 > .col:first-child { grid-column: 1 / -1; }
body #main #row-1016091292 > .col:first-child h2 { margin: 0 0 6px; color: #123b70; font-size: clamp(23px, 3vw, 34px); font-weight: 750; letter-spacing: -.025em; }
body #main #row-1016091292 > .col:first-child p { color: #5b6f87; font-size: 16px; }
body #main #row-1016091292 > .col:not(:first-child) .banner { height: 100%; min-height: 390px; overflow: hidden; border: 1px solid #e4edf7; border-radius: 16px; background-color: #eef6ff; box-shadow: 0 6px 20px rgba(26, 67, 115, .07); transition: transform .25s ease, box-shadow .25s ease; }
body #main #row-1016091292 > .col:not(:first-child) .banner:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(26, 93, 164, .18); }
body #main #row-1016091292 h3 { color: #133b71; font-size: 20px; line-height: 1.3; font-weight: 700; }
body #main #row-1016091292 .text-box { padding: 16px; }
#main > h1.tt-h1 { display: none !important; }
@media (max-width: 849px) { body #main #row-1016091292 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; } body #main #row-1016091292 > .col:not(:first-child) .banner { min-height: 330px; } }
@media (max-width: 549px) { body #main #row-1016091292 { grid-template-columns: 1fr; } body #main #row-1016091292 > .col:not(:first-child) .banner { min-height: 390px; } }

/* Neutralize the legacy blue builder background behind the four feature cards. */
body #main #row-1016091292 { background: #f4f8fd !important; background-image: none !important; }
body #main #row-1016091292 > .col:not(:first-child) .banner { background-color: #fff !important; }
.tapo-pointer-light {
  width: 108px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(100deg, transparent 0%, rgba(73, 178, 255, .06) 24%, rgba(135, 221, 255, .44) 51%, rgba(66, 151, 255, .09) 77%, transparent 100%);
  filter: blur(5px);
}

/* Stable class on the feature row prevents builder-generated IDs changing its layout. */
body #main .tapo-home-features {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 46px) !important;
  border: 1px solid #e2ebf5 !important;
  border-radius: 24px;
  background: #f4f8fd !important;
  background-image: none !important;
  box-shadow: none !important;
}
body #main .tapo-home-features > .col { width: auto !important; max-width: none !important; padding: 0 !important; }
body #main .tapo-home-features > .col:first-child { grid-column: 1 / -1; }
body #main .tapo-home-features > .col:first-child h2 { margin: 0 0 6px; color: #123b70; font-size: clamp(23px, 3vw, 34px); font-weight: 750; letter-spacing: -.025em; }
body #main .tapo-home-features > .col:first-child p { color: #5b6f87; font-size: 16px; }
body #main .tapo-home-features > .col:not(:first-child) .banner { height: 100%; min-height: 390px; overflow: hidden; border: 1px solid #e4edf7; border-radius: 16px; background-color: #fff !important; box-shadow: 0 6px 20px rgba(26, 67, 115, .07); transition: transform .25s ease, box-shadow .25s ease; }
body #main .tapo-home-features > .col:not(:first-child) .banner:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(26, 93, 164, .18); }
body #main .tapo-home-features h3 { color: #133b71; font-size: 20px; line-height: 1.3; font-weight: 700; }
body #main .tapo-home-features .text-box { padding: 16px; }
@media (max-width: 849px) { body #main .tapo-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px !important; } body #main .tapo-home-features > .col:not(:first-child) .banner { min-height: 330px; } }
@media (max-width: 549px) { body #main .tapo-home-features { grid-template-columns: 1fr; } body #main .tapo-home-features > .col:not(:first-child) .banner { min-height: 390px; } }

/* Give each feature enough width so heading and description clear the product artwork. */
body #main .tapo-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body #main .tapo-home-features > .col:not(:first-child) .banner {
  min-height: 440px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
}
body #main .tapo-home-features > .col:not(:first-child) .text-box {
  position: relative !important;
  inset: auto !important;
  width: calc(100% - 32px) !important;
  margin: 16px auto 0 !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(224, 235, 247, .9);
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 5px 18px rgba(32, 69, 112, .07);
  transform: none !important;
  backdrop-filter: blur(7px);
}
body #main .tapo-home-features h3 { margin-bottom: 8px; font-size: 21px; }
body #main .tapo-home-features .ux-text { color: #566c85; font-size: 15px; line-height: 1.5; }
@media (max-width: 849px) { body #main .tapo-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } body #main .tapo-home-features > .col:not(:first-child) .banner { min-height: 400px; } }
@media (max-width: 549px) { body #main .tapo-home-features { grid-template-columns: 1fr; } body #main .tapo-home-features > .col:not(:first-child) .banner { min-height: 410px; } }

/* Keep the pointer streak visible against the site's white surfaces. */
.tapo-pointer-light {
  opacity: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(34, 137, 238, .08) 22%, rgba(76, 190, 255, .48) 48%, rgba(21, 111, 220, .22) 60%, transparent 100%);
  box-shadow: 0 0 20px rgba(33, 132, 228, .3);
  filter: blur(3px);
  mix-blend-mode: normal;
}
.tapo-pointer-light.is-visible { opacity: .9; }

/* WP Sync card tokens, with sale and stock states kept distinct but coordinated. */
body.home .wpss1-product-card .wpss1-price { color: #075fc4 !important; }
body.home .wpss1-product-card .wpss1-old-price { color: #8b9caf !important; }
body.home .wpss1-product-card .wpss1-price-label { color: #60758d !important; }
body.home .wpss1-product-card .wpss1-badge {
  border: 1px solid #cce2fb !important;
  border-radius: 9px !important;
  background: #edf6ff !important;
  color: #075fc4 !important;
}
body.home .wpss1-product-card .wpss1-card-meta { color: #657991 !important; }
body.home .wpss1-product-card .wpss1-card-status-row { color: #16835b !important; }
body.home .wpss1-product-card .wpss1-card-btn {
  border-color: #1268d7 !important;
  border-radius: 10px !important;
  background: #1268d7 !important;
  color: #fff !important;
}
body.home .wpss1-product-card:hover .wpss1-card-btn { background: #084da9 !important; }

/* Keep feature copy in its own panel so it never covers the phone or camera art. */
body.home #main .tapo-home-features { column-gap: 4px !important; }
body.home #main .tapo-home-features > .col:not(:first-child) > .col-inner {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner {
  display: block !important;
  height: 680px !important;
  min-height: 680px !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-inner {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-bg {
  position: relative !important;
  inset: auto !important;
  order: 2 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-bg img {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: auto !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers {
  position: relative !important;
  inset: auto !important;
  order: 1 !important;
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 240px !important;
  min-height: 240px !important;
  padding: 8px !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-link { display: none !important; }
body.home #main .tapo-home-features > .col:not(:first-child) .text-box {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 14px !important;
  background: #f6faff !important;
  box-shadow: none !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box-content,
body.home #main .tapo-home-features > .col:not(:first-child) .text-inner {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 100% !important;
}
@media (max-width: 849px) {
  body.home #main .tapo-home-features > .col:not(:first-child) .banner { height: 640px !important; min-height: 640px !important; }
  body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers { height: 230px !important; min-height: 230px !important; }
}
@media (max-width: 549px) {
  body.home #main .tapo-home-features > .col:not(:first-child) .banner { height: 680px !important; min-height: 680px !important; }
  body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers { height: 230px !important; min-height: 230px !important; }
}
/* Let each text panel take its natural height while keeping the image start aligned. */
body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers {
  height: 250px !important;
  min-height: 250px !important;
  align-items: center !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box {
  height: auto !important;
  min-height: 0 !important;
  align-self: center !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box-content,
body.home #main .tapo-home-features > .col:not(:first-child) .text-inner {
  height: auto !important;
  display: block !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box h3 {
  min-height: 0 !important;
  display: block !important;
}
@media (max-width: 849px) {
  body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers { height: 240px !important; min-height: 240px !important; }
}
@media (max-width: 549px) {
  body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers { height: 240px !important; min-height: 240px !important; }
}
/* Overlay the copy at the quiet top of each image, keeping device screens visible below. */
body.home #main .tapo-home-features > .col:not(:first-child) .banner-inner {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-bg {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-bg img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-layers {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 12px !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 12px 10px !important;
  border: 1px solid rgba(215, 230, 248, .92) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .91) !important;
  box-shadow: 0 4px 14px rgba(27, 67, 114, .08) !important;
  backdrop-filter: blur(5px);
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box h3 {
  margin: 0 0 5px !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .text-box p {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner {
  height: 430px !important;
  min-height: 430px !important;
}
body.home #main .tapo-home-features > .col:not(:first-child) .banner-bg img {
  object-position: center top !important;
}
@media (max-width: 849px) {
  body.home #main .tapo-home-features > .col:not(:first-child) .banner { height: 640px !important; min-height: 640px !important; }
}
@media (max-width: 549px) {
  body.home #main .tapo-home-features > .col:not(:first-child) .banner { height: 680px !important; min-height: 680px !important; }
}
/* Uniform article thumbnails and compact copy avoid tall blank areas in sliders. */
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post {
  height: auto !important;
  min-height: 0 !important;
}
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 170px !important;
  min-height: 170px !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f4f8fc !important;
}
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px !important;
}
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__title {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.35 !important;
}
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__excerpt {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  line-height: 1.4 !important;
}
body.home #main .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__actions {
  min-height: 0 !important;
  margin-top: 4px !important;
}

/* Flatsome-inspired mini-marketplace styling for storefront and product categories. */
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 {
  --wpsx5-accent: #1268d7 !important;
  --wpss2-accent: #1268d7 !important;
  --wpsx5-page-bg: #f5f7fa !important;
  --wpsx5-layout-gap: 12px !important;
  --wpsx5-surface-radius: 10px !important;
  --wpsx5-surface-shadow: 0 3px 12px rgba(25, 48, 78, .06) !important;
  padding: 18px 0 40px;
  color: #17243a;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-shell { max-width: 1440px; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-hero {
  margin: 0 0 12px;
  padding: 20px 24px;
  border: 1px solid #e6edf5;
  border-radius: 12px;
  background: linear-gradient(105deg, #fff 0%, #f5f9ff 68%, #edf5ff 100%);
  box-shadow: 0 3px 12px rgba(25, 48, 78, .04);
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-breadcrumb { margin-bottom: 6px; color: #718096; font-size: 12px; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-hero h1 { margin: 0; color: #133a70; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; font-weight: 800; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .tapo-shop-subtitle { margin: 6px 0 0; color: #62748a; font-size: 14px; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .tapo-shop-category-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 13px 16px;
  overflow-x: auto;
  border: 1px solid #e7edf4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(25, 48, 78, .04);
  scrollbar-width: thin;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .tapo-shop-category-label { flex: 0 0 auto; margin-right: 2px; color: #62748a; font-size: 12px; font-weight: 750; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .tapo-shop-category-bar a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid #e4ebf3;
  border-radius: 7px;
  background: #f9fbfd;
  color: #33465f;
  font-size: 13px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .tapo-shop-category-bar a:hover,
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .tapo-shop-category-bar a.is-current {
  border-color: #8dbbf4;
  background: #edf5ff;
  color: #075fc4;
  transform: translateY(-1px);
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #e7edf4;
  border-radius: 10px;
  background: #fff;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort label { display: flex; align-items: center; gap: 10px; color: #52657b; font-size: 13px; font-weight: 650; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort select { min-width: 175px; height: 38px; margin: 0; border: 1px solid #dce5ef; border-radius: 7px; background-color: #fff; color: #25364a; font-size: 13px; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-grid { --wpsx5-cols: 5; gap: 12px !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card {
  overflow: hidden;
  border: 1px solid #e7edf4 !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(20, 47, 80, .045) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card:hover {
  z-index: 2;
  transform: translateY(-3px);
  border-color: #8dbbf4 !important;
  box-shadow: 0 9px 22px rgba(45, 64, 89, .13) !important;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-img {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  aspect-ratio: 1 / 1 !important;
  padding: 10px !important;
  background: #fff !important;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-img img { width: 100% !important; height: 100% !important; object-fit: contain !important; transition: transform .25s ease; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card:hover .wpss2-img img { transform: scale(1.035); }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card-body { gap: 7px !important; padding: 11px 12px 12px !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card-body h3 { min-height: 39px !important; margin: 0 !important; font-size: 13px !important; line-height: 1.4 !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card-body h3 a { color: #25364a !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-price { margin: 0 !important; color: #075fc4 !important; font-size: 18px !important; font-weight: 800 !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .ttgdw-price-v2138__money-amount,
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .ttgdw-price-v2138__money-currency { color: #075fc4 !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wps-trust-metrics { min-height: 19px !important; margin: 0 !important; font-size: 11px !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wps-trust-chip { min-height: 19px !important; padding: 2px 7px !important; border-radius: 5px !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-sale-badge { border: 0 !important; border-radius: 5px !important; background: #eaf3ff !important; color: #075fc4 !important; font-size: 11px !important; font-weight: 750 !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card-actions { margin-top: 2px !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-buy-row { display: grid !important; grid-template-columns: 42px minmax(0, 1fr) !important; gap: 7px !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-cart-icon { display: flex !important; align-items: center; justify-content: center; min-height: 36px !important; padding: 0 !important; border: 1px solid #a8c9f2 !important; border-radius: 6px !important; background: #f1f7ff !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-cart-icon svg,
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-cart-icon svg path { color: #1268d7 !important; fill: #1268d7 !important; stroke: #1268d7 !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-cart-text { display: none !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-main-cta { display: flex !important; align-items: center; justify-content: center; min-height: 36px !important; padding: 6px 8px !important; border-radius: 6px !important; background: #1268d7 !important; color: #fff !important; font-size: 12px !important; font-weight: 750 !important; }
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-pagination a,
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-pagination .current { border-radius: 6px !important; }
@media (max-width: 1199px) { body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-grid { --wpsx5-cols: 4; } }
@media (max-width: 849px) {
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 { padding-top: 12px; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-hero { padding: 16px; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-grid { --wpsx5-cols: 3; }
}
@media (max-width: 549px) {
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-grid { --wpsx5-cols: 2; gap: 8px !important; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card-body { padding: 9px !important; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-card-body h3 { font-size: 12px !important; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort { width: 100%; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort label { justify-content: space-between; width: 100%; }
  body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort select { min-width: 0; }
}

/* Product category polish: remove the nested image frame and keep sorting controls on one line. */
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort label > span {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpsx5-sort select {
  flex: 1 1 auto;
}
body:is(.woocommerce-shop, .tax-product_cat) #wpsx5-archive-1 .wpss2-img {
  border: 0 !important;
  border-radius: 8px 8px 0 0 !important;
}

/* Collapsible SEO description on product category archives. */
body.tax-product_cat .tapo-category-seo {
  max-width: 1240px;
  margin: 26px auto 38px;
  overflow: hidden;
  border: 1px solid #e2eaf4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(25, 48, 78, .045);
  color: #40536b;
}
body.tax-product_cat .tapo-category-seo__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 20px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
body.tax-product_cat .tapo-category-seo__summary::-webkit-details-marker { display: none; }
body.tax-product_cat .tapo-category-seo__summary::marker { content: ""; }
body.tax-product_cat .tapo-category-seo__summary h1,
body.tax-product_cat .tapo-category-seo__summary h2,
body.tax-product_cat .tapo-category-seo__summary h3 {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: #173c70;
  font-size: clamp(19px, 2vw, 24px) !important;
  line-height: 1.35;
}
body.tax-product_cat .tapo-category-seo__summary p {
  display: -webkit-box;
  grid-column: 1;
  margin: 0 !important;
  overflow: hidden;
  color: #62748a;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body.tax-product_cat .tapo-category-seo__action {
  display: inline-flex;
  grid-column: 2;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #cfe0f5;
  border-radius: 7px;
  color: #075fc4;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
body.tax-product_cat .tapo-category-seo__action::after { content: "⌄"; font-size: 16px; }
body.tax-product_cat .tapo-category-seo[open] .tapo-category-seo__action::after { content: "⌃"; }
body.tax-product_cat .tapo-category-seo__less,
body.tax-product_cat .tapo-category-seo[open] .tapo-category-seo__more { display: none; }
body.tax-product_cat .tapo-category-seo[open] .tapo-category-seo__less { display: inline; }
body.tax-product_cat .tapo-category-seo[open] .tapo-category-seo__summary { border-bottom: 1px solid #e9eff6; }
body.tax-product_cat .tapo-category-seo__content { padding: 8px 24px 24px; }
body.tax-product_cat .tapo-category-seo__content h2 { margin: 22px 0 10px; color: #173c70; font-size: 22px; }
body.tax-product_cat .tapo-category-seo__content h3 { margin: 18px 0 8px; color: #284b76; font-size: 17px; }
body.tax-product_cat .tapo-category-seo__content p,
body.tax-product_cat .tapo-category-seo__content li { color: #4b5f77; font-size: 14px; line-height: 1.75; }
body.tax-product_cat .tapo-category-seo__content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
body.tax-product_cat .tapo-category-seo__content th { background: #edf5ff; color: #173c70; }
body.tax-product_cat .tapo-category-seo__content th,
body.tax-product_cat .tapo-category-seo__content td { padding: 9px 12px; border: 1px solid #dce7f4; }
@media (max-width: 620px) {
  body.tax-product_cat .tapo-category-seo { margin: 18px 10px 28px; border-radius: 10px; }
  body.tax-product_cat .tapo-category-seo__summary { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  body.tax-product_cat .tapo-category-seo__summary p { grid-column: 1; -webkit-line-clamp: 3; }
  body.tax-product_cat .tapo-category-seo__action { grid-column: 1; grid-row: auto; justify-self: start; }
  body.tax-product_cat .tapo-category-seo__content { padding: 4px 16px 18px; }
}

/* Two-column quote form and verified company details on product category pages. */
body.tax-product_cat #tt-bao-gia {
  margin: 26px auto 38px;
  padding: 24px;
  border: 1px solid #e1e9f3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(25, 48, 78, .045);
}
body.tax-product_cat #tt-bao-gia .tapo-quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr);
  align-items: stretch;
  gap: 24px;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-form-column { min-width: 0; }
body.tax-product_cat #tt-bao-gia .tapo-quote-form-column > h3 {
  margin: 0 0 6px !important;
  color: #173c70;
  font-size: 23px;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-form-column > p {
  margin: 0 0 14px !important;
  color: #62748a;
  font-size: 14px;
}
body.tax-product_cat #tt-bao-gia .tt-form {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  gap: 10px;
}
body.tax-product_cat #tt-bao-gia .tt-form input:not([type="hidden"]),
body.tax-product_cat #tt-bao-gia .tt-form textarea,
body.tax-product_cat #tt-bao-gia .tt-form button {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.tax-product_cat #tt-bao-gia .tt-form textarea { min-height: 112px; }
body.tax-product_cat #tt-bao-gia .tt-form button { min-height: 48px; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company {
  align-self: start;
  padding: 22px 24px;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  background: linear-gradient(145deg, #f3f8ff, #fff 78%);
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company h3 {
  margin: 0 0 18px !important;
  color: #173c70;
  font-size: 17px;
  line-height: 1.45;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid #e5edf7;
  color: #4e6178;
  font-size: 14px;
  line-height: 1.55;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company__row strong { color: #334e70; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__row--mst { grid-template-columns: max-content minmax(0, 1fr); gap: 12px; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__row--mst > span { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; white-space: nowrap; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__row--mst .tapo-quote-company__profile { flex: 0 1 190px; justify-content: center; color: #fff !important; font-size: 13px; font-weight: 750; text-align: center; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__hotline span { display: grid; gap: 5px; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__row a { color: #075fc4; font-weight: 700; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__profile {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 7px;
  background: #1268d7;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  transition: background .18s ease, transform .18s ease;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company__profile:hover { transform: translateY(-1px); background: #0756b3; color: #fff !important; }
body.tax-product_cat #tt-bao-gia .tapo-quote-company__links-title {
  margin: 12px 0 7px;
  color: #334e70;
  font-size: 13px;
  font-weight: 750;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company__links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #dce8f6;
  border-radius: 6px;
  background: #fff;
  color: #315577;
  font-size: 11px;
  line-height: 1.25;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
body.tax-product_cat #tt-bao-gia .tapo-quote-company__links a:hover {
  border-color: #a8c9f2;
  background: #edf5ff;
  color: #075fc4;
}

@media (max-width: 760px) {
  body.tax-product_cat #tt-bao-gia { margin: 20px 10px 30px; padding: 16px; }
  body.tax-product_cat #tt-bao-gia .tapo-quote-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.tax-product_cat #tt-bao-gia .tapo-quote-company { padding: 18px; }
}

/* Product detail: keep sticky content below the fixed navigation and use the available form width. */
body.single-product #tt-bao-gia { scroll-margin-top: 88px; }
body.single-product .wp-sync-detail-v1987__sidebar { top: 76px !important; }
body.single-product .tt-pheu-form { scroll-margin-top: 88px; }
body.single-product .tt-form { width: 100% !important; max-width: none !important; }
body.single-product .tt-form input:not([type="hidden"]),
body.single-product .tt-form textarea,
body.single-product .tt-form button { width: 100% !important; max-width: none !important; }

/* Related articles: preserve the whole thumbnail and avoid tall blank cards when a post has no image. */
body.single-product .wp-sync-detail-posts { align-items: start !important; }
body.single-product .wp-sync-detail-post { height: auto !important; min-height: 0 !important; }
body.single-product .wp-sync-detail-post img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f5f8fc !important;
}
@media (max-width: 849px) {
  body.single-product .wp-sync-detail-v1987__sidebar { position: static !important; top: auto !important; }
}

/* News landing page: replace masonry's fixed image boxes with a compact, responsive card grid. */
body.page-id-589 #main .row.row-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  height: auto !important;
  margin: 0 auto !important;
}
body.page-id-589 #main .row.row-grid > .col {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.page-id-589 #main .row.row-grid > .col > .col-inner,
body.page-id-589 #main .row.row-grid .box.box-blog-post {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
body.page-id-589 #main .row.row-grid .box.box-blog-post {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid #dfe8f2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(18, 51, 95, .07) !important;
}
body.page-id-589 #main .row.row-grid .box-image {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #f4f8fd !important;
}
body.page-id-589 #main .row.row-grid .box-image .image-cover {
  position: relative !important;
  height: auto !important;
  padding-top: 0 !important;
  aspect-ratio: 16 / 9 !important;
}
body.page-id-589 #main .row.row-grid .box-image img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}
body.page-id-589 #main .row.row-grid .box-text {
  position: relative !important;
  inset: auto !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #fff !important;
  color: #17243a !important;
}
body.page-id-589 #main .row.row-grid .box-text-inner { padding: 0 !important; }
body.page-id-589 #main .row.row-grid .box-text a,
body.page-id-589 #main .row.row-grid .box-text .post-title a { color: #17243a !important; }
body.page-id-589 #main .row.row-grid .post-title { font-size: 16px !important; line-height: 1.4 !important; }
body.page-id-589 #main .row.row-grid .from_the_blog_excerpt { color: #66758a !important; }
@media (max-width: 849px) {
  body.page-id-589 #main .row.row-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
}
@media (max-width: 549px) {
  body.page-id-589 #main .row.row-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
}

/* Editorial list on the news landing page: clean two-column cards without fabricated thumbnails. */
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 14px !important;
  height: auto !important;
  margin: 0 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item {
  position: static !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .col-inner,
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-blog-post {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-blog-post {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid #e1eaf5 !important;
  border-radius: 11px !important;
  background: #fff !important;
  box-shadow: 0 3px 12px rgba(22, 58, 104, .055) !important;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-blog-post:hover {
  transform: translateY(-2px);
  border-color: #b6d2f4 !important;
  box-shadow: 0 9px 22px rgba(22, 82, 151, .11) !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-text {
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px !important;
  background: #fff !important;
  color: #263b56 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-text-inner { padding: 0 !important; }
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .post-title {
  margin: 0 0 9px !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .post-title a {
  color: #193b68 !important;
  transition: color .18s ease;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .post-title a:hover { color: #1268d7 !important; }
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .post-meta {
  color: #7a8ba1 !important;
  font-size: 11px !important;
  letter-spacing: .02em;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .is-divider {
  width: 30px !important;
  margin: 9px 0 !important;
  border-color: #c9def7 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .from_the_blog_excerpt {
  margin: 0 !important;
  color: #596d85 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
@media (max-width: 849px) {
  body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 { grid-template-columns: 1fr !important; }
}

/* Site-wide rule for editorial and product thumbnails: show the complete source image. */
body #main .box.box-blog-post .box-image img,
body #main .product-small .box-image img,
body .wp-sync-detail-gallery__main img,
body .wp-sync-detail-gallery__thumb img,
body .wp-sync-detail-post img,
body .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__image img,
body .wpss1-wrap .wpss1-product-card .wpss1-img img,
body .wpsx5-archive .wpss2-img img {
  object-fit: contain !important;
  object-position: center !important;
}
body #main .box.box-blog-post .box-image,
body #main .product-small .box-image,
body .wp-sync-detail-gallery__main,
body .wp-sync-detail-post img,
body .wps-items-v2179:not(.type-product) .wps-card-v2179.is-post .wps-card-v2179__image,
body .wpss1-wrap .wpss1-product-card .wpss1-img,
body .wpsx5-archive .wpss2-img {
  background-color: #f5f8fc !important;
}
body .wp-sync-news-page-v2033 .wpsnp-card__img img,
body .wp-sync-news-v2032 .wpsn1-hero-img img,
body .wp-sync-news-v2032 .wpsn2-hero-img img,
body .wp-sync-news-v2032 .wpsn1-related-card img,
body .wp-sync-news-v2032 .wpsn2-related img,
body .wp-sync-news-v2032 .wpsn1-related-media img,
body .wp-sync-news-v2032 .wpsn2-related-media img,
body .wp-sync-news-v2032 .wpsn1-side-posts__media img,
body .wp-sync-pdetail-v2002 .wpsd2-news img,
body .wp-sync-pdetail-v2013 .wpsd3-news img,
body .wp-sync-pdetail-v2013 .wp-sync-detail-post img,
body .wp-sync-pdetail-v2020 .wp-sync-detail-post img,
body .wp-sync-pdetail-v2020 .wpsd4-news-card__image img {
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
body .wp-sync-news-page-v2033 .wpsnp-card__img:has(.wpsnp-noimg) { display: none !important; }
body .wp-sync-news-v2032 .wpsn1-related-media,
body .wp-sync-news-v2032 .wpsn2-related-media,
body .wp-sync-news-v2032 .wpsn1-side-posts__media,
body .wp-sync-pdetail-v2002 .wpsd2-news,
body .wp-sync-pdetail-v2013 .wpsd3-news,
body .wp-sync-pdetail-v2020 .wpsd4-news-card__image {
  background: #f5f8fc !important;
}

/* Installation service landing page: give the plain page content a clear Tapo hierarchy. */
body.page-id-42605 #main > h1.tt-h1 {
  display: block !important;
  width: min(1200px, calc(100% - 36px)) !important;
  max-width: 1200px !important;
  margin: 26px auto 0 !important;
  padding: clamp(24px, 4vw, 42px) clamp(22px, 4vw, 40px) !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(115deg, #0756b3, #1878e5 62%, #55a1f4) !important;
  color: #fff !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  box-shadow: 0 12px 28px rgba(18, 85, 165, .18) !important;
}
body.page-id-42605 #content {
  width: min(1200px, calc(100% - 36px)) !important;
  max-width: 1200px !important;
  margin: 0 auto 40px !important;
  padding: 0 !important;
  background: transparent !important;
}
body.page-id-42605 #content .row-main {
  margin: 0 !important;
  padding: clamp(20px, 3vw, 34px) !important;
  border: 1px solid #e2ebf5;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 54, 92, .07);
}
body.page-id-42605 #content .row-main > .col { padding: 0 !important; }
body.page-id-42605 #content .row-main .col-inner > p:first-of-type {
  margin: 0 0 16px !important;
  padding: 18px 20px !important;
  border: 1px solid #d7e8fb;
  border-left: 4px solid #1268d7;
  border-radius: 0;
  background: #f2f7ff;
  color: #344b66;
  font-size: 16px;
  line-height: 1.7;
}
body.page-id-42605 #content .row-main .col-inner > p:nth-of-type(2) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px !important;
}
body.page-id-42605 #content .row-main .col-inner > p:nth-of-type(2) .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0 !important;
  padding: 10px 20px !important;
  border: 1px solid #1268d7 !important;
  border-radius: 9px !important;
  background: #1268d7 !important;
  color: #fff !important;
  font-weight: 750;
  box-shadow: 0 5px 14px rgba(18, 104, 215, .17);
}
body.page-id-42605 #content .row-main .col-inner > p:nth-of-type(2) .button.secondary {
  background: #fff !important;
  color: #1268d7 !important;
}
body.page-id-42605 #content .row-main h2 {
  margin: 30px 0 14px !important;
  padding: 2px 0 2px 13px;
  border-left: 4px solid #1268d7;
  color: #123b70;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.3;
  font-weight: 800;
}
body.page-id-42605 #content .row-main h2:first-of-type { margin-top: 0 !important; }
body.page-id-42605 #content .row-main p,
body.page-id-42605 #content .row-main li { color: #43556b; line-height: 1.7; }
body.page-id-42605 #content .row-main > .col > .col-inner > ul,
body.page-id-42605 #content .row-main > .col > .col-inner > ol {
  margin: 0 0 24px !important;
  padding: 16px 22px 16px 42px !important;
  border: 1px solid #e5edf7;
  border-radius: 0;
  background: #f8fbff;
}
body.page-id-42605 #content .row-main > .col > .col-inner > ul li,
body.page-id-42605 #content .row-main > .col > .col-inner > ol li { margin: 5px 0; padding-left: 3px; }
body.page-id-42605 #content .row-main .products .product-small .box {
  height: 100%;
  overflow: hidden;
  border: 1px solid #e2eaf4;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 54, 92, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-id-42605 #content .row-main .products .product-small .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(20, 54, 92, .13);
}
body.page-id-42605 #content .row-main .product-small .box-image { margin: 0 !important; padding: 8px; background: #fff !important; }
body.page-id-42605 #content .row-main .products .product-small .box-image {
  height: auto !important;
  min-height: 0 !important;
  padding: 10px !important;
  overflow: hidden;
}
body.page-id-42605 #content .row-main .products .product-small .image-fade_in_back {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
}
body.page-id-42605 #content .row-main .products .product-small .image-fade_in_back > a {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
body.page-id-42605 #content .row-main .products .product-small .image-fade_in_back img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
body.page-id-42605 #content .row-main .product-small .box-text { padding: 12px 14px 16px; }
body.page-id-42605 #content .row-main .product-small .name a { color: #24374f; font-weight: 650; }
body.page-id-42605 #content .row-main .product-small .price { color: #1268d7; font-weight: 800; }
body.page-id-42605 #content .row-main .products .product-small .col-inner { position: relative; }
body.page-id-42605 #content .row-main .products .product-small .badge-container {
  top: 10px !important;
  left: 10px !important;
  z-index: 3 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
}
body.page-id-42605 #content .row-main .products .product-small .callout.badge.badge-circle {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  transform: none !important;
}
body.page-id-42605 #content .row-main .products .product-small .badge-inner.secondary.on-sale {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 58px !important;
  height: 32px !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: #1268d7 !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
}
body.page-id-42605 #content .row-main .products .product-small .onsale {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  transform: none !important;
}
body.page-id-42605 #content .row-main h3 {
  margin: 20px 0 6px;
  padding: 12px 15px;
  border: 1px solid #e2ebf5;
  border-radius: 0;
  background: #f8fbff;
  color: #183d6e;
  font-size: 17px;
  line-height: 1.4;
}

/* About page: continue the same restrained Tapo landing-page hierarchy. */
body.page-id-32104 #main > h1.tt-h1 {
  display: block !important;
  width: min(1200px, calc(100% - 36px)) !important;
  max-width: 1200px !important;
  margin: 26px auto 0 !important;
  padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 40px) !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(115deg, #0756b3, #1878e5 62%, #55a1f4) !important;
  color: #fff !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(18, 85, 165, .16) !important;
}
body.page-id-32104 #content {
  width: min(1200px, calc(100% - 36px)) !important;
  max-width: 1200px !important;
  margin: 0 auto 40px !important;
  padding: 0 !important;
  background: transparent !important;
}
body.page-id-32104 #content .row-main {
  margin: 0 !important;
  padding: clamp(20px, 3vw, 34px) !important;
  border: 1px solid #e2ebf5;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 54, 92, .07);
}
body.page-id-32104 #content .row-main > .col { padding: 0 !important; }
body.page-id-32104 #content .row-main > .col > .col-inner > p:first-of-type {
  margin: 0 0 16px !important;
  padding: 18px 20px !important;
  border: 1px solid #d7e8fb;
  border-left: 4px solid #1268d7;
  border-radius: 0;
  background: #f2f7ff;
  color: #344b66;
  font-size: 16px;
  line-height: 1.75;
}
body.page-id-32104 #content .row-main > .col > .col-inner > p:nth-of-type(2) {
  margin: 0 0 28px !important;
  padding: 12px 16px !important;
  border-left: 3px solid #9bbde2;
  background: #f8fafc;
  color: #596b80;
  font-size: 14px;
  line-height: 1.65;
}
body.page-id-32104 #content .row-main h2 {
  margin: 30px 0 14px !important;
  padding: 2px 0 2px 13px;
  border-left: 4px solid #1268d7;
  color: #123b70;
  font-size: clamp(21px, 2.5vw, 27px);
  line-height: 1.3;
  font-weight: 800;
}
body.page-id-32104 #content .row-main h2:first-of-type { margin-top: 0 !important; }
body.page-id-32104 #content .row-main p,
body.page-id-32104 #content .row-main li {
  color: #43556b;
  line-height: 1.7;
}
body.page-id-32104 #content .row-main > .col > .col-inner > ul {
  margin: 0 0 26px !important;
  padding: 14px 22px 14px 42px !important;
  border: 1px solid #e5edf7;
  border-radius: 0;
  background: #f8fbff;
}
body.page-id-32104 #content .row-main > .col > .col-inner > ul li {
  margin: 0 !important;
  padding: 9px 0;
  border-bottom: 1px solid #e8eef6;
}
body.page-id-32104 #content .row-main > .col > .col-inner > ul li:last-child { border-bottom: 0; }
body.page-id-32104 #content .row-main > .col > .col-inner > ul li::marker { color: #1268d7; }
body.page-id-32104 #content .row-main h2:last-of-type + p {
  margin: 0 !important;
  padding: 18px 20px !important;
  border-left: 4px solid #1268d7;
  background: #f2f7ff;
  color: #344b66;
  line-height: 1.8;
}
body.page-id-32104 #content .row-main a { color: #0756b3; font-weight: 650; }
body.page-id-32104 #content .row-main a:hover { color: #0b78df; }
@media (max-width: 849px) {
  body.page-id-32104 #main > h1.tt-h1,
  body.page-id-32104 #content { width: calc(100% - 24px) !important; }
  body.page-id-32104 #content .row-main { padding: 18px !important; }
  body.page-id-32104 #content .row-main > .col > .col-inner > p:first-of-type { padding: 15px !important; }
  body.page-id-32104 #content .row-main > .col > .col-inner > ul { padding: 12px 14px 12px 34px !important; }
}

/* Contact page: clear contact details, service paths, and map in one hierarchy. */
body.page-id-601 #main > h1.tt-h1 {
  display: block !important;
  width: min(1200px, calc(100% - 36px)) !important;
  max-width: 1200px !important;
  margin: 26px auto 0 !important;
  padding: clamp(24px, 4vw, 40px) clamp(22px, 4vw, 40px) !important;
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(115deg, #0756b3, #1878e5 62%, #55a1f4) !important;
  color: #fff !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(18, 85, 165, .16) !important;
}
body.page-id-601 #content {
  width: min(1200px, calc(100% - 36px)) !important;
  max-width: 1200px !important;
  margin: 0 auto 40px !important;
  padding: 0 !important;
  background: transparent !important;
}
body.page-id-601 #content .row-main {
  margin: 0 !important;
  padding: clamp(20px, 3vw, 34px) !important;
  border: 1px solid #e2ebf5;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 54, 92, .07);
}
body.page-id-601 #content .row-main > .col { padding: 0 !important; }
body.page-id-601 #content .row-main > .col > .col-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "intro intro"
    "info-title help-title"
    "info-list help-list"
    "order-title order-title"
    "order-copy order-copy"
    "note note"
    "map-title map-title"
    "map map";
  column-gap: 22px;
  align-items: start;
}
body.page-id-601 #content .row-main > .col > .col-inner > p:first-of-type {
  grid-area: intro;
  margin: 0 0 24px !important;
  padding: 19px 22px !important;
  border: 1px solid #d7e8fb;
  border-left: 4px solid #1268d7;
  background: #f2f7ff;
  color: #344b66;
  font-size: 17px;
  line-height: 1.75;
}
body.page-id-601 #content .row-main h2 {
  margin: 10px 0 12px !important;
  padding: 3px 0 3px 13px;
  border-left: 4px solid #1268d7;
  color: #123b70;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  font-weight: 800;
}
body.page-id-601 #content .row-main h2:nth-of-type(1) { grid-area: info-title; }
body.page-id-601 #content .row-main h2:nth-of-type(2) { grid-area: help-title; }
body.page-id-601 #content .row-main h2:nth-of-type(3) { grid-area: order-title; margin-top: 28px !important; }
body.page-id-601 #content .row-main h2:nth-of-type(4) { grid-area: map-title; margin-top: 28px !important; }
body.page-id-601 #content .row-main > .col > .col-inner > ul:nth-of-type(1) { grid-area: info-list; }
body.page-id-601 #content .row-main > .col > .col-inner > ul:nth-of-type(2) { grid-area: help-list; }
body.page-id-601 #content .row-main > .col > .col-inner > ul {
  align-self: stretch;
  margin: 0 !important;
  padding: 10px 18px 10px 34px !important;
  border: 1px solid #e3ecf7;
  background: #f8fbff;
}
body.page-id-601 #content .row-main li {
  margin: 0 !important;
  padding: 10px 0;
  border-bottom: 1px solid #e8eef6;
  color: #43556b;
  line-height: 1.65;
}
body.page-id-601 #content .row-main li:last-child { border-bottom: 0; }
body.page-id-601 #content .row-main li::marker { color: #1268d7; }
body.page-id-601 #content .row-main p,
body.page-id-601 #content .row-main li { color: #43556b; line-height: 1.7; }
body.page-id-601 #content .row-main > .col > .col-inner > p:nth-of-type(2) { grid-area: order-copy; margin: 0 !important; }
body.page-id-601 #content .row-main > .col > .col-inner > p:nth-of-type(3) {
  grid-area: note;
  margin: 18px 0 0 !important;
  padding: 14px 18px !important;
  border-left: 3px solid #9bbde2;
  background: #f8fafc;
  color: #596b80;
}
body.page-id-601 #content .row-main > .col > .col-inner > p:nth-of-type(4) {
  grid-area: map;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid #dce8f6;
  background: #f4f8fd;
}
body.page-id-601 #content .row-main > .col > .col-inner > p:nth-of-type(4) iframe {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: clamp(300px, 38vw, 440px);
}
body.page-id-601 #content .row-main a { color: #0756b3; font-weight: 650; }
body.page-id-601 #content .row-main a:hover { color: #0b78df; }
body.page-id-601 #content .row-main li a[href^="tel:"],
body.page-id-601 #content .row-main li a[href^="mailto:"] {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #cfe3fb;
  background: #fff;
  text-decoration: none;
}
@media (max-width: 849px) {
  body.page-id-601 #main > h1.tt-h1,
  body.page-id-601 #content { width: calc(100% - 24px) !important; }
  body.page-id-601 #content .row-main { padding: 18px !important; }
  body.page-id-601 #content .row-main > .col > .col-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "info-title" "info-list" "help-title" "help-list" "order-title" "order-copy" "note" "map-title" "map";
    row-gap: 0;
  }
}

/* Recent articles: compact horizontal cards with readable titles and thumbnails. */
body #content .post-sidebar #block_widget-3 .box.box-vertical {
  display: block !important;
  height: auto !important;
  margin-bottom: 12px !important;
  overflow: hidden;
  border: 1px solid #e3ebf5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(20, 54, 92, .06);
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-image {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 7px;
  background: #f3f7fc;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-image .image-cover {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  padding-top: 56.25% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-text {
  display: block !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 12px 14px !important;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .post-title {
  margin: 0 0 7px !important;
  color: #23354c;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 650;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .post-date {
  margin: 0 !important;
  color: #718096;
  font-size: 12px !important;
  line-height: 1.4 !important;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}
body.single-post .tt-pheu-form .tt-form,
body.single-product .tt-pheu-form .tt-form {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
body.single-post .tt-pheu-form .tt-form input:not([type="hidden"]),
body.single-post .tt-pheu-form .tt-form textarea,
body.single-post .tt-pheu-form .tt-form button,
body.single-product .tt-pheu-form .tt-form input:not([type="hidden"]),
body.single-product .tt-pheu-form .tt-form textarea,
body.single-product .tt-pheu-form .tt-form button {
  width: 100% !important;
  max-width: none !important;
}
@media (max-width: 849px) {
  body.page-id-42605 #main > h1.tt-h1,
  body.page-id-42605 #content { width: calc(100% - 24px) !important; }
  body.page-id-42605 #content .row-main { padding: 18px !important; }
}

/* Article detail polish: stronger title and a complete featured image. */
body.single-post.postid-586 article#post-586 .entry-header {
  margin: 0 0 22px !important;
  padding: 26px 28px 24px !important;
  overflow: hidden;
  border: 1px solid #dce8f6;
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f9ff 0%, #fff 76%);
  box-shadow: 0 8px 24px rgba(18, 68, 126, .08);
}
body.single-post.postid-586 article#post-586 .entry-header-text {
  max-width: 900px;
  margin: 0 auto !important;
  padding: 0 !important;
}
body.single-post.postid-586 article#post-586 .entry-category a {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid #cfe3fb;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1268d7;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
}
body.single-post.postid-586 article#post-586 .entry-title {
  margin: 12px 0 0 !important;
  color: #173b68;
  font-size: clamp(27px, 3.1vw, 38px) !important;
  line-height: 1.2 !important;
  font-weight: 800;
  letter-spacing: -.025em;
}
body.single-post.postid-586 article#post-586 .entry-header::after {
  content: "";
  display: block;
  width: min(100%, 520px);
  height: clamp(320px, 40vw, 520px);
  max-width: 100%;
  margin: 22px auto 0;
  background-color: transparent;
  background-image: url("https://tapo.com.vn/wp-content/uploads/2026/05/mua-10-tang-1-tapo.png");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
body.single-post.postid-586 article#post-586 footer.entry-meta { display: none !important; }

/* Author bio as a compact, branded information card. */
body.single-post article#post-586 .entry-author.author-box {
  margin: 24px 0 30px !important;
  padding: 22px 24px !important;
  border: 1px solid #dce8f6;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3f8ff, #fff 78%);
  box-shadow: 0 6px 20px rgba(18, 68, 126, .07);
}
body.single-post article#post-586 .entry-author .flex-row {
  display: flex !important;
  align-items: center !important;
  gap: 18px;
}
body.single-post article#post-586 .entry-author .flex-col.mr.circle {
  flex: 0 0 82px;
  width: 82px !important;
  max-width: 82px;
  margin: 0 !important;
  padding: 0 !important;
}
body.single-post article#post-586 .entry-author .blog-author-image img {
  display: block;
  width: 82px !important;
  height: 82px !important;
  border-radius: 50%;
}
body.single-post article#post-586 .entry-author .flex-col:not(.mr) {
  flex: 1 1 auto;
  min-width: 0;
}
body.single-post article#post-586 .entry-author .author-name,
body.single-post article#post-586 .entry-author h5 {
  margin: 0 0 8px !important;
  color: #173b68;
  font-size: 16px !important;
  font-weight: 800;
  letter-spacing: .04em;
}
body.single-post article#post-586 .entry-author p {
  margin: 0 !important;
  color: #53657b;
  font-size: 14px;
  line-height: 1.7;
}
body #content .post-sidebar #block_widget-3 .post-item,
body #content .post-sidebar #block_widget-3 .post-item > .col-inner {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical {
  overflow: hidden !important;
  border: 1px solid #e3ebf5 !important;
  border-radius: 14px !important;
  box-shadow: 0 3px 12px rgba(20, 54, 92, .06) !important;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-image,
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-image .image-cover,
body #content .post-sidebar #block_widget-3 .box.box-vertical .box-image img {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 849px) {
  body.single-post.postid-586 article#post-586 .entry-header {
    padding: 20px 16px 18px !important;
    border-radius: 14px;
  }
  body.single-post.postid-586 article#post-586 .entry-title { font-size: 28px !important; }
  body.single-post.postid-586 article#post-586 .entry-header::after {
    height: min(72vw, 320px);
    width: min(100%, 360px);
    margin-top: 16px;
    border-radius: 0;
  }
  body.single-post article#post-586 .entry-author.author-box { padding: 18px !important; }
  body.single-post article#post-586 .entry-author .flex-row { align-items: flex-start !important; gap: 13px; }
  body.single-post article#post-586 .entry-author .flex-col.mr.circle,
  body.single-post article#post-586 .entry-author .blog-author-image img {
    flex-basis: 60px;
    width: 60px !important;
    max-width: 60px;
    height: 60px !important;
  }
}

/* Keep the article frame square; soften only the opening and closing edges. */
body.single-post.postid-586 article#post-586 > .article-inner.has-shadow {
  overflow: hidden;
  border: 1px solid #e4eaf2 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.single-post.postid-586 article#post-586 .entry-header {
  border: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  box-shadow: none !important;
}
body.single-post.postid-586 article#post-586 .entry-author.author-box {
  border: 0 !important;
  border-top: 1px solid #dce8f6 !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: none !important;
}
body #content .post-sidebar #block_widget-3 .box.box-vertical {
  border-radius: 0 !important;
  box-shadow: none !important;
}
body #content .post-sidebar #block_widget-3 .post-item:first-child .box.box-vertical {
  border-radius: 12px !important;
}
body #content .post-sidebar #block_widget-3 .post-item:last-child .box.box-vertical {
  border-radius: 12px !important;
}

/* Services/news portal: use consistent article columns and text-only cards when imagery is absent. */
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 {
  --wpsnp-accent: #1268d7 !important;
  --wpsnp-soft: #f0f6ff !important;
  --wpsnp-border: #dce7f4 !important;
  --wpsnp-muted: #60728a !important;
  --wpsnp-bg: transparent !important;
  --wpsnp-text: #20344f !important;
  width: 100%;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-wrap {
  max-width: 1240px;
  padding: 24px 18px 42px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-head {
  margin-bottom: 20px;
  align-items: center;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-head h1 {
  color: #123b70;
  font-size: clamp(26px, 3vw, 36px);
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-head nav {
  gap: 8px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-head nav a {
  border-color: #d7e5f5;
  background: #fff;
  color: #244665;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-head nav a:hover {
  border-color: #9dc5f4;
  background: #f0f6ff;
  color: #0756b3;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-portal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-feature,
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-list {
  display: contents;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card {
  display: flex !important;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 61, 107, .055);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card:hover {
  transform: translateY(-2px);
  border-color: #b9d5f5;
  box-shadow: 0 10px 24px rgba(22, 61, 107, .11);
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card__img:has(.wpsnp-noimg) {
  display: none !important;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card__img:not(:has(.wpsnp-noimg)) {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 0;
  background: #f5f8fc;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card__img img {
  width: 100%;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 16px 16px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card:has(> .wpsnp-card__img .wpsnp-noimg) .wpsnp-card__body {
  min-height: 178px;
  padding: 19px 18px 17px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card__cat {
  color: #1268d7;
  font-size: 12px;
  letter-spacing: .01em;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card h3,
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card.is-hero h3 {
  display: -webkit-box;
  margin: 6px 0 0;
  overflow: hidden;
  color: #20344f;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #60728a;
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-meta {
  margin-top: auto;
  padding-top: 11px;
  color: #667991;
  font-size: 12px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section {
  margin: 30px 0;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-products-block {
  border-color: #dce7f4;
  border-radius: 12px;
  box-shadow: none;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-products-list {
  gap: 14px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-archive-block {
  border-color: #dce7f4;
  border-radius: 12px;
  box-shadow: none;
}
@media (max-width: 980px) {
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-portal,
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-wrap {
    padding: 16px 10px 30px;
  }
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-portal,
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp-card:has(> .wpsnp-card__img .wpsnp-noimg) .wpsnp-card__body {
    min-height: 150px;
  }
}

/* Technical archive: featured lead, balanced article grid, and compact sidebar. */
body.category.category-ky-thuat #content {
  width: min(1280px, calc(100% - 32px));
  max-width: 1280px;
  margin: 0 auto 36px;
}
body.category.category-ky-thuat #content > .row.row-large {
  align-items: flex-start;
  padding-top: 26px;
  padding-bottom: 36px;
}
body.category.category-ky-thuat #post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}
body.category.category-ky-thuat #post-list > article {
  min-width: 0;
  margin: 0 !important;
}
body.category.category-ky-thuat #post-list > article:first-child {
  grid-column: 1 / -1;
}
body.category.category-ky-thuat #post-list article .article-inner {
  position: relative;
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e0e9f4 !important;
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 4px 16px rgba(20, 54, 92, .055) !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
body.category.category-ky-thuat #post-list article:hover .article-inner {
  transform: translateY(-3px);
  border-color: #a9c9ed !important;
  box-shadow: 0 12px 28px rgba(20, 71, 130, .12) !important;
}
body.category.category-ky-thuat #post-list article .entry-header {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}
body.category.category-ky-thuat #post-list article .entry-header-text {
  width: 100%;
  padding: 18px 18px 14px !important;
}
body.category.category-ky-thuat #post-list article .entry-category {
  margin: 0 0 8px !important;
  color: #1268d7;
  font-size: 11px !important;
  font-weight: 750;
  letter-spacing: .045em;
}
body.category.category-ky-thuat #post-list article .entry-category a {
  color: #1268d7;
}
body.category.category-ky-thuat #post-list article .entry-title {
  margin: 0 !important;
  color: #20344f;
  font-size: clamp(18px, 1.7vw, 21px) !important;
  font-weight: 750;
  line-height: 1.36;
}
body.category.category-ky-thuat #post-list article .entry-title a {
  color: inherit;
  transition: color .18s ease;
}
body.category.category-ky-thuat #post-list article .entry-title a:hover {
  color: #0756b3;
}
body.category.category-ky-thuat #post-list article .entry-divider {
  width: 34px;
  margin: 10px 0 !important;
  border-color: #b8d4f4;
}
body.category.category-ky-thuat #post-list article .entry-meta {
  color: #728197;
  font-size: 10px !important;
  letter-spacing: .025em;
}
body.category.category-ky-thuat #post-list article .entry-meta a {
  color: #516984;
}
body.category.category-ky-thuat #post-list article .entry-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  overflow: hidden;
  background: #f4f8fd;
}
body.category.category-ky-thuat #post-list article:not(.has-post-thumbnail) .entry-image {
  display: none !important;
}
body.category.category-ky-thuat #post-list article .entry-image > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
body.category.category-ky-thuat #post-list article .entry-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
  transition: transform .35s ease;
}
body.category.category-ky-thuat #post-list article:hover .entry-image img {
  transform: scale(1.025);
}
body.category.category-ky-thuat #post-list article .entry-image .badge {
  top: 12px;
  left: 12px;
  z-index: 2;
  transform: scale(.82);
  transform-origin: top left;
}
body.category.category-ky-thuat #post-list article .entry-content {
  flex: 1;
  padding: 0 18px 18px !important;
}
body.category.category-ky-thuat #post-list article .entry-summary p {
  display: -webkit-box;
  margin: 0 0 12px !important;
  overflow: hidden;
  color: #53677f;
  font-size: 14px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
body.category.category-ky-thuat #post-list article .more-link {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid #1268d7 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #0756b3 !important;
  font-size: 12px !important;
  font-weight: 750;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
body.category.category-ky-thuat #post-list article .more-link:hover {
  background: #1268d7 !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(18, 104, 215, .2);
}
body.category.category-ky-thuat #post-list article footer.entry-meta {
  margin: auto 0 0 !important;
  padding: 10px 18px 13px !important;
  border-top: 1px solid #edf1f6;
  font-size: 10px !important;
  line-height: 1.5;
}
body.category.category-ky-thuat #post-list article footer .tags-links,
body.category.category-ky-thuat #post-list article footer .sep,
body.category.category-ky-thuat #post-list article footer .comments-link {
  display: none !important;
}
body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-header {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: stretch;
}
body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-header-text {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: 26px !important;
}
body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-image {
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  min-height: 250px;
  aspect-ratio: auto;
}
body.category.category-ky-thuat #post-list > article:first-child .entry-title {
  font-size: clamp(22px, 2.5vw, 31px) !important;
}
body.category.category-ky-thuat #post-list > article:first-child .entry-content {
  padding-top: 18px !important;
}
body.category.category-ky-thuat #post-list > article:first-child .entry-summary p {
  -webkit-line-clamp: 3;
}
body.category.category-ky-thuat #post-list article .article-inner::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(190px circle at var(--tapo-sheen-x, 50%) var(--tapo-sheen-y, 50%), rgba(71, 147, 237, .12), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
body.category.category-ky-thuat #post-list article.is-pointer-inside .article-inner::after { opacity: 1; }
body.category.category-ky-thuat #content .pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 26px 0 8px;
}
body.category.category-ky-thuat #content .pagination a,
body.category.category-ky-thuat #content .pagination span {
  min-width: 36px;
  height: 36px;
  border: 1px solid #d7e5f5;
  border-radius: 8px;
  background: #fff;
  color: #0756b3;
}
body.category.category-ky-thuat #content .pagination .current {
  border-color: #1268d7;
  background: #1268d7;
  color: #fff;
}
@media (max-width: 849px) {
  body.category.category-ky-thuat #content { width: calc(100% - 20px); }
  body.category.category-ky-thuat #post-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  body.category.category-ky-thuat #post-list > article:first-child { grid-column: auto; }
  body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-header { grid-template-columns: minmax(0, 1fr); }
  body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-header-text,
  body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-image { grid-column: 1; }
  body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-header-text { grid-row: 1; }
  body.category.category-ky-thuat #post-list > article:first-child.has-post-thumbnail .entry-image { grid-row: 2; height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  body.category.category-ky-thuat #content { width: calc(100% - 16px); }
  body.category.category-ky-thuat #content > .row.row-large { padding-top: 14px; }
  body.category.category-ky-thuat #post-list article .entry-header-text,
  body.category.category-ky-thuat #post-list article .entry-content { padding-right: 14px !important; padding-left: 14px !important; }
  body.category.category-ky-thuat #post-list article footer.entry-meta { padding-right: 14px !important; padding-left: 14px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.category.category-ky-thuat #post-list article .article-inner,
  body.category.category-ky-thuat #post-list article .entry-image img,
}

/* Services page category rows: compact horizontal sliders with a single-line action. */
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-section-head h2 {
  min-width: 0;
  margin: 0;
  color: #123b70;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-section-head > a {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  color: #0756b3;
  line-height: 1.2;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 13px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #9cc4f2 #edf3fa;
  -webkit-overflow-scrolling: touch;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid::-webkit-scrollbar { height: 7px; }
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid::-webkit-scrollbar-track { background: #edf3fa; border-radius: 8px; }
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid::-webkit-scrollbar-thumb { background: #9cc4f2; border-radius: 8px; }
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid > .wpsnp-card {
  flex: 0 0 calc((100% - 32px) / 3.15);
  min-width: 250px;
  scroll-snap-align: start;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-card:focus-within {
  border-color: #80b4f0;
  box-shadow: 0 0 0 3px rgba(18, 104, 215, .12);
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-card__img:not(:has(.wpsnp-noimg)) img {
  transition: transform .28s ease;
}
body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-card:hover .wpsnp-card__img img {
  transform: scale(1.025);
}
@media (max-width: 980px) {
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid > .wpsnp-card {
    flex-basis: calc((100% - 18px) / 2.15);
  }
}
@media (max-width: 620px) {
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp-section-head {
    gap: 10px;
  }
  body.page-id-597 .wp-sync-news-page-v2033.is-news-page-02 .wpsnp2-section .wpsnp2-grid > .wpsnp-card {
    flex-basis: min(82vw, 320px);
    min-width: 0;
  }
}

/* News page: clearer editorial hierarchy and grouped article cards. */
body.page-id-589 #main #content .row.align-equal > .col > .col-inner {
  padding: 20px !important;
  border: 1px solid #e1eaf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 59, 104, .055);
}
body.page-id-589 #main #content .row.align-equal > .col:first-child .section-title {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0 0 16px !important;
  padding: 0 0 12px;
  border-bottom: 1px solid #e5edf7;
}
body.page-id-589 #main #content .row.align-equal > .col:first-child .section-title b {
  display: none;
}
body.page-id-589 #main #content .row.align-equal > .col:first-child .section-title .section-title-main {
  color: #153c70 !important;
  font-size: 22px !important;
  font-weight: 800;
  letter-spacing: -.02em;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child {
  grid-column: 1 / -1 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child .box-blog-post {
  border-color: #c8ddf7 !important;
  background: linear-gradient(115deg, #edf6ff, #fff 78%) !important;
  box-shadow: inset 4px 0 #1676e8, 0 5px 18px rgba(22, 91, 169, .08) !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child .box-text {
  padding: 22px 24px 20px 28px !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child .post-title {
  max-width: 760px;
  font-size: 21px !important;
  line-height: 1.35 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .post-meta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 3px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #38618f !important;
  font-size: 11px !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .from_the_blog_excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-image {
  width: 100% !important;
  margin: 0 !important;
  background: #f3f7fc !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-image .image-cover {
  aspect-ratio: 16 / 9 !important;
  padding-top: 0 !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 .box-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child .box-image {
  max-height: 340px;
}
body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child .box-image .image-cover {
  aspect-ratio: 2.2 / 1 !important;
}
@media (max-width: 849px) {
  body.page-id-589 #main #content .row.align-equal > .col > .col-inner { padding: 15px !important; }
  body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child { grid-column: auto !important; }
  body.page-id-589 #main #content .row.align-equal > .col.large-8 .row.large-columns-1 > .post-item:first-child .post-title { font-size: 18px !important; }
}

/* Homepage editorial product rows: align action buttons and remove stock labels. */
body.home .wp-sync-ui.wp-sync-products .wp-sync-product-card {
  display: flex !important;
  height: 100% !important;
  flex-direction: column !important;
}
body.home .wp-sync-ui.wp-sync-products .wp-sync-product-card__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
}
body.home .wp-sync-ui.wp-sync-products .wp-sync-product-card__stock {
  display: none !important;
}
body.home .wp-sync-ui.wp-sync-products .wp-sync-product-card__actions {
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 10px !important;
}
body.home .wp-sync-ui.wp-sync-products .wp-sync-product-card__btn {
  display: flex !important;
  width: 100% !important;
  min-height: 42px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* Keep product-card titles compact and aligned across shop grids. */
body .wp-sync-product-card__title,
body .wpss1-card-title,
body .wpss2-card-body h3,
body .wpss3-card-title,
body .wpss4-card-title,
body .product-small .name {
  display: -webkit-box !important;
  min-height: 2.8em !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.4 !important;
  text-overflow: ellipsis !important;
}

/* Separate the sale price from its discount badge on homepage Tapo cards. */
body.home .wpss1-product-card .wpss1-card-price,
body.home .wpss1-product-card .wpss1-card-price .ttgdw-price-v2138,
body.home .wpss1-product-card .wpss1-card-price .ttgdw-price-v2138__line,
body.home .wpss1-product-card .wpss1-card-price .wps-main-price,
body.home .wpss1-product-card .wpss1-card-price .wpss1-price {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.home .wpss1-product-card .wpss1-card-price .ttgdw-price-v2138__line {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-height: 34px;
  padding: 0 !important;
}
body.home .wpss1-product-card .wpss1-card-price .ttgdw-price-v2138__discount {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 4px 10px !important;
  border: 1px solid #c9def8 !important;
  border-radius: 8px !important;
  background: #edf5ff !important;
  color: #075fc4 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
