/* ==========================================================================
   Sửa Chữa Laptop 34
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-2: #123456;
  --blue: #1677e0;
  --blue-dark: #0f5fb8;
  --blue-soft: #eaf3fe;
  --orange: #f2600c;
  --orange-dark: #d24f05;
  --zalo: #0068ff;
  --zalo-dark: #0052cc;
  --ink: #152536;
  --body: #41505f;
  --muted: #6b7a89;
  --line: #e3e8ef;
  --bg: #f5f7fa;
  --white: #fff;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow: 0 8px 24px rgba(10, 37, 64, .08);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, .14);
  --gutter: 24px;
  --gap: 20px;
  --font: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 170px; }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
figure { margin: 0; }
a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p { margin: 0 0 1em; }
p:empty { display: none; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
hr, .sc-divider { height: 1px; margin: 24px 0; border: 0; background: var(--line); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 8px 14px; background: var(--white); border-radius: var(--radius-sm); }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------- Buttons ---------- */

.btn,
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wpcf7-submit,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover,
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wpcf7-submit:hover,
input[type="submit"]:hover { background: var(--blue-dark); color: var(--white); }

.btn--secondary,
.woocommerce .button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce a.checkout-button,
.woocommerce #place_order { background: var(--orange); color: var(--white); }

.btn--secondary:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.checkout-button:hover,
.woocommerce #place_order:hover { background: var(--orange-dark); color: var(--white); }

.btn--outline { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--outline:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-dark); }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .15s ease;
}

/* ---------- Forms ---------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="password"], input[type="search"], textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 119, 224, .15); outline: 0; }
label { display: inline-block; margin-bottom: 6px; color: var(--ink); font-size: 14px; font-weight: 500; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(10, 37, 64, .12); }
.admin-bar .site-header { top: 32px; }

.site-header__main { background: var(--navy); color: var(--white); }
.site-header__row { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.site-header__toggle { display: none; }
.site-header__toggle:hover, .site-header__account:hover { background: rgba(255, 255, 255, .12); }

.site-logo { display: block; flex: none; }
/* The logo file is a square with wide transparent margins (artwork: x 29-271, y 68-214 of 300).
   Crop to the artwork. Update these values if the logo file changes. */
.site-logo:has(img) { position: relative; width: 132px; height: 80px; overflow: hidden; }
.site-header .site-logo img { position: absolute; top: -46.3%; left: -11.9%; width: 123.5%; max-width: none; height: auto; }
.site-logo__text { color: var(--white); font-size: 18px; font-weight: 800; }

.hotline { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; color: var(--white); }
.hotline:hover { color: var(--white); }
.hotline__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hotline__text { display: flex; flex-direction: column; line-height: 1.25; }
.hotline small { color: #a9bdd3; font-size: 12px; }
.hotline strong { font-size: 17px; font-weight: 700; white-space: nowrap; }

.site-header__search { flex: 0 1 460px; }
.site-search { position: relative; display: flex; width: 100%; }
.site-search input[type="search"] { height: 46px; padding-right: 54px; border: 0; border-radius: var(--radius-sm); }
.site-search button {
  position: absolute; top: 4px; right: 4px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 6px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  transition: background-color .15s ease;
}
.site-search button:hover { background: var(--orange-dark); }
.site-header__account { flex: none; color: var(--white); border: 1px solid rgba(255, 255, 255, .25); }
.site-header__account:hover { color: var(--white); }

/* Navigation */

.site-nav { background: var(--white); border-bottom: 1px solid var(--line); }
.site-nav__row { display: flex; align-items: center; gap: 24px; min-height: 50px; }

.cat-menu { position: relative; flex: none; width: 250px; }
.cat-menu__toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 50px;
  padding: 0 16px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.cat-menu__toggle .icon-down { margin-left: auto; transition: transform .15s ease; }
.cat-menu.is-open .icon-down { transform: rotate(180deg); }

.cat-menu__list {
  position: absolute; top: 100%; left: 0; z-index: 20;
  display: none;
  width: 100%;
  margin: 0; padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  list-style: none;
}
.cat-menu.is-open .cat-menu__list { display: block; }
.cat-menu__list a { display: block; padding: 10px 16px; color: var(--ink); font-size: 14px; font-weight: 500; text-transform: capitalize; }
.cat-menu__list a:hover { background: var(--blue-soft); color: var(--blue-dark); }

.main-menu { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-menu > li { position: relative; }
.main-menu > li > a { display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 14px; color: var(--ink); font-size: 14px; font-weight: 600; text-transform: capitalize; }
.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a,
.main-menu > li.current-menu-ancestor > a { color: var(--blue); }
.main-menu > .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.main-menu .sub-menu {
  position: absolute; top: 100%; left: 0; z-index: 20;
  min-width: 260px;
  margin: 0; padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-menu .sub-menu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: 14px; font-weight: 500; }
.main-menu .sub-menu a:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* Drawer */

.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(10, 37, 64, .55); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); padding: 12px 20px 24px; overflow-y: auto; background: var(--white); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: var(--ink); font-size: 17px; }
.drawer .site-search input[type="search"] { border: 1px solid var(--line); }
.drawer__label { margin: 22px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.drawer__menu { margin: 0; padding: 0; list-style: none; }
.drawer__menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; text-transform: capitalize; }
.drawer__menu .sub-menu { margin: 0; padding: 0 0 0 14px; list-style: none; }
.drawer__menu .sub-menu a { color: var(--body); font-size: 14px; font-weight: 400; }
.drawer__call { width: 100%; margin-top: 24px; }

/* ---------- Grid (page builder content) ---------- */

.sc-section { padding-block: 24px; }
.sc-section--dark, .sc-section--dark h1, .sc-section--dark h2, .sc-section--dark h3, .sc-section--dark h4 { color: var(--white); }
.sc-section--bg { position: relative; padding-block: 90px; background-color: var(--navy); background-position: center; background-size: cover; }
.sc-section--bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10, 37, 64, .92), rgba(10, 37, 64, .62)); }
.sc-section--bg > * { position: relative; }

.sc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.sc-row--middle { align-items: center; }
.sc-row--center { display: flex; justify-content: center; }
.sc-row--center > .sc-col { width: calc(var(--span) / 12 * 100%); }
.sc-col { grid-column: span var(--span); min-width: 0; }
.sc-col > :last-child { margin-bottom: 0; }

.sc-row--cards > .sc-col { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.sc-col--panel { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }

.sc-image img { width: 100%; }
.sc-html iframe { display: block; width: 100%; border-radius: var(--radius-lg); }

.sc-feature { display: flex; gap: 16px; }
.sc-feature--center { flex-direction: column; align-items: center; text-align: center; }
.sc-feature--top { flex-direction: column; }
.sc-feature__icon { flex: none; width: 56px; height: 56px; object-fit: contain; }

.sc-share { display: flex; gap: 8px; margin-top: 12px; }
.sc-share a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--white); transition: background-color .15s ease; }
.sc-share a:hover { background: var(--blue); color: var(--white); }

/* Section titles */

.sc-col > h2,
.section-heading__title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
}
.section2 .sc-col > h2, .section8 .sc-col > h2 { margin-bottom: 18px; }
.sc-section--dark .sc-col > h2 { margin-bottom: 12px; color: var(--white); line-height: 1.25; }
.sc-section--dark:not(.footer-section) { color: #dbe5f0; }
.sc-section--dark strong { color: var(--white); }

.section-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 16px; }
.section-heading__cats { display: flex; flex: 1 1 auto; gap: 8px; min-width: 0; margin: 0; padding: 0; overflow-x: auto; list-style: none; scrollbar-width: none; }
.section-heading__cats::-webkit-scrollbar { display: none; }
.section-heading__cats a {
  display: block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.section-heading__cats a:hover { border-color: var(--blue); color: var(--blue); }
.section-heading__more { display: inline-flex; flex: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.section-heading__more .icon { width: 16px; height: 16px; }

/* ---------- Homepage ---------- */

/* The hero is responsive on its own, so it replaces the old small-screen variant. */
.section1.hide-for-medium { display: block; }
.section1.show-for-small { display: none; }

.section1 { padding-block: 20px 8px; }
.section1 > .sc-row { align-items: stretch; }
.cot1 { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cot1 .sc-image { position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius); transition: box-shadow .2s ease; }
.cot1 .sc-image:hover { box-shadow: var(--shadow); }
.cot1 .sc-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.section3 { padding-block: 8px 0; }
.section3 .sc-image { overflow: hidden; border-radius: var(--radius); }
.section3 .sc-image img, .cat-card__media img, .post-card__media img { transition: transform .35s ease; }
.section3 .sc-image:hover img { transform: scale(1.03); }

.section4 { padding-block: 16px 0; }
.section4 .sc-image { overflow: hidden; border-radius: var(--radius); }

.section8 { padding-block: 40px 16px; }

/* Slider */

.sc-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); }
.sc-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sc-slider__track::-webkit-scrollbar { display: none; }
.sc-slider__track > * { flex: 0 0 100%; scroll-snap-align: start; }
.sc-slider__track img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.sc-slider__arrow {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-top: -22px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background-color .15s ease;
}
.sc-slider:hover .sc-slider__arrow, .sc-slider__arrow:focus-visible { opacity: 1; }
.sc-slider__arrow:hover { background: var(--white); }
.sc-slider__arrow--prev { left: 16px; }
.sc-slider__arrow--next { right: 16px; }

.sc-slider__dots { position: absolute; right: 0; bottom: 8px; left: 0; display: flex; justify-content: center; }
.sc-slider__dots button { width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.sc-slider__dots button::before { content: ""; display: block; width: 24px; height: 4px; margin: auto; border-radius: 2px; background: rgba(255, 255, 255, .55); transition: background-color .15s ease; }
.sc-slider__dots button.is-active::before { background: var(--white); }

/* Category cards */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: center;
  transition: border-color .15s ease, box-shadow .2s ease;
}
.cat-card:hover { border-color: var(--blue); box-shadow: var(--shadow); color: var(--blue-dark); }
.cat-card__media { display: block; width: 88px; height: 88px; }
.cat-card__media img { width: 100%; height: 100%; object-fit: contain; }
.cat-card:hover .cat-card__media img { transform: scale(1.05); }
.cat-card__name { font-size: 14px; font-weight: 600; line-height: 1.35; }

/* ---------- Product cards ---------- */

.woocommerce ul.products,
ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product.product-card {
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .15s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product.product-card:hover { border-color: #c9d8ea; box-shadow: var(--shadow); }

.product-card__media { position: relative; display: block; padding: 16px; background: var(--white); }
.woocommerce ul.products li.product .product-card__media img { width: 100%; height: auto; margin: 0; aspect-ratio: 1; object-fit: contain; transition: transform .3s ease; }
.woocommerce ul.products li.product:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 3px 10px; border-radius: 999px; background: var(--orange); color: var(--white); font-size: 12px; font-weight: 600; }

.product-card__body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.product-card__cat { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.product-card__title { display: -webkit-box; flex: none; height: 2.8em; margin: 0 0 8px; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.woocommerce ul.products li.product h3.product-card__title { margin: 0 0 8px; padding: 0; font-size: 14px; }
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--blue); }
.product-card__price { margin-top: auto; color: var(--orange); font-size: 17px; font-weight: 700; }
.product-card__price del { color: var(--muted); font-size: 13px; font-weight: 400; }
.product-card__price ins { text-decoration: none; }

.container-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.woocommerce .container-rating .star-rating { flex: none; float: none; margin: 0; font-size: 12px; color: #f5a623; }
.count-rating { white-space: nowrap; }

/* ---------- Posts ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.post-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: box-shadow .2s ease; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--blue-soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__empty { display: grid; place-items: center; height: 100%; color: var(--blue-dark); font-weight: 600; }
.post-card__body { padding: 14px 16px 18px; }
.post-card__date { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.post-card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: 0; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--blue); }

/* ---------- Page heads and layouts ---------- */

.page-head { padding-block: 28px 8px; }
.page-head__title { margin: 0; font-size: 28px; }
.page-head__desc:empty { display: none; }
.page-head__desc { margin-top: 10px; color: var(--muted); }
.page-head__desc > :last-child { margin-bottom: 0; }

.breadcrumbs { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs__sep { margin-inline: 8px; color: #b6c1cd; }

.page-body { margin-block: 16px 40px; }
.page-body--text { padding: 36px 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-block: 16px 48px; }
.content-layout__main { min-width: 0; }
.content-layout--article { padding-top: 28px; }

.article { padding: 36px 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.article__title { font-size: 30px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.entry-content { color: var(--body); font-size: 16px; line-height: 1.75; word-break: break-word; }
.entry-content h2 { margin-top: 1.6em; font-size: 23px; }
.entry-content h3 { margin-top: 1.4em; font-size: 19px; }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content table:not(.shop_table) { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content table:not(.shop_table) th, .entry-content table:not(.shop_table) td { padding: 10px 12px; border: 1px solid var(--line); }
.entry-content table:not(.shop_table) th { background: var(--bg); color: var(--ink); }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .wp-caption-text { margin-top: 6px; color: var(--muted); font-size: 13px; text-align: center; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--blue-soft); }

.post-navigation { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation small { display: block; color: var(--muted); font-size: 12px; }
.post-navigation span { color: var(--ink); font-weight: 600; font-size: 14px; }
.post-navigation .nav-next { grid-column: 2; text-align: right; }

/* Sidebar */

.content-layout__side { display: flex; flex-direction: column; gap: 20px; }
.widget { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.widget-title { margin: 0 0 12px; font-size: 16px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget ul li a { color: var(--body); text-transform: capitalize; }
.widget ul li a:hover { color: var(--blue); }
.widget .children { padding-left: 12px; }
.recent-posts li a { display: flex; align-items: flex-start; gap: 12px; text-transform: none !important; }
.recent-posts img { flex: none; width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.recent-posts span { display: -webkit-box; overflow: hidden; font-weight: 500; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.widget .product_list_widget li { display: flow-root; }
.widget .product_list_widget img { float: left; width: 56px; margin-right: 12px; border-radius: var(--radius-sm); }
.widget .product-title { display: block; color: var(--ink); font-weight: 500; line-height: 1.4; text-transform: none; }
.widget .amount { color: var(--orange); font-weight: 600; }

/* Pagination */

.woocommerce nav.woocommerce-pagination, .pagination { margin-top: 28px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.nav-links { display: flex; justify-content: center; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.pagination .page-numbers {
  display: grid; place-items: center;
  min-width: 40px; height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .pagination a.page-numbers:hover { border-color: var(--blue); background: var(--white); color: var(--blue); }
.woocommerce nav.woocommerce-pagination ul li span.current, .pagination .page-numbers.current { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* Empty states */

.empty-state { max-width: 560px; margin: 40px auto 64px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); text-align: center; }
.empty-state .site-search { margin-bottom: 18px; }
.empty-state .site-search input[type="search"] { border: 1px solid var(--line); }
.empty-state__code { margin: 0; color: var(--blue); font-size: 64px; font-weight: 800; line-height: 1; }

/* ---------- Shop ---------- */

.shop-layout { padding-block: 12px 48px; }
.shop-banner { margin-bottom: 16px; overflow: hidden; border-radius: var(--radius); }
.shop-banner img { width: 100%; }

.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.woocommerce .shop-toolbar .woocommerce-result-count, .woocommerce .shop-toolbar .woocommerce-ordering { float: none; margin: 0; color: var(--muted); font-size: 14px; }
.shop-toolbar select { width: auto; min-width: 200px; }

.shop-filter:empty { display: none; }
.shop-filter { margin-bottom: 16px; }
.shop-filter .yith-wcan-filters { margin: 0; padding: 0; background: none; }
.shop-filter .yith-wcan-filter { margin: 0; }

/* ---------- Product page ---------- */

.product-page { padding-block: 20px 48px; }

.product-page__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.woocommerce .product-page__gallery div.product-gallery, .woocommerce div.product div.images { float: none; width: 100%; margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--radius); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { float: none; width: auto; }
.woocommerce div.product div.images .flex-control-thumbs img { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 12px; right: 12px; background: var(--white); box-shadow: var(--shadow); }

.woocommerce div.product .product-page__summary.summary { float: none; width: 100%; margin: 0; }
.product-page__summary .product_title { margin-bottom: 12px; font-size: 26px; }
.product-page__summary .woocommerce-product-rating { margin-bottom: 12px; }

.product-page__price { display: inline-block; margin-bottom: 20px; }
.woocommerce div.product .product-page__price p.price { margin: 0; color: var(--orange); font-size: 30px; font-weight: 800; line-height: 1.2; }
.woocommerce div.product .product-page__price p.price ins { text-decoration: none; }
.woocommerce div.product .product-page__price p.price del { color: var(--muted); font-size: 18px; font-weight: 400; }

.woocommerce-product-details__short-description { margin-bottom: 24px; padding: 18px 22px; border-radius: var(--radius); background: var(--bg); font-size: 14px; line-height: 1.6; }
.woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.woocommerce-product-details__short-description p { margin-bottom: .45em; }
.woocommerce-product-details__short-description ul { margin: 0 0 .45em; padding: 0; list-style: none; }
.woocommerce-product-details__short-description ul ul { margin-top: .45em; padding-left: 22px; }
.woocommerce-product-details__short-description li { position: relative; margin-bottom: .45em; padding-left: 22px; }
.woocommerce-product-details__short-description li::before {
  content: ""; position: absolute; top: .45em; left: 2px;
  width: 11px; height: 6px;
  border-bottom: 2px solid var(--blue); border-left: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.woocommerce-product-details__short-description li > p { margin: 0; }

.product-page__cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.product-page__cta .btn { padding-inline: 14px; }
.btn--zalo { background: var(--zalo); color: var(--white); }
.btn--zalo:hover { background: var(--zalo-dark); color: var(--white); }

.product-page__details { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; margin-top: 24px; }
.product-page__tabs { min-width: 0; padding: 12px 32px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }

.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 24px; margin: 0 0 22px; padding: 0; border-bottom: 1px solid var(--line); overflow: visible; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--blue); color: var(--ink); }
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--blue); }

.woocommerce div.product .woocommerce-tabs .panel { margin: 0; color: var(--body); font-size: 15px; line-height: 1.75; }
.woocommerce-Tabs-panel h2 { margin-top: 1.4em; font-size: 21px; }
.woocommerce-Tabs-panel h2:first-child { margin-top: 0; }
.woocommerce-Tabs-panel h3 { margin-top: 1.2em; font-size: 18px; }
.woocommerce-Tabs-panel img { border-radius: var(--radius-sm); }
.woocommerce-Tabs-panel table { width: 100%; border-collapse: collapse; }
.woocommerce-Tabs-panel th, .woocommerce-Tabs-panel td { padding: 10px 12px; border: 1px solid var(--line); }

#tab-description { position: relative; }
#tab-description.is-collapsed { max-height: 900px; overflow: hidden; padding-bottom: 80px; }
#tab-description.is-collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 160px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%); pointer-events: none; }
.read-more { display: flex; margin: 16px auto 0; }
#tab-description.is-collapsed .read-more { position: absolute; bottom: 12px; left: 50%; z-index: 1; margin: 0; transform: translateX(-50%); }

.specs { position: sticky; top: 170px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.specs__title { margin-bottom: 14px; font-size: 18px; }
.specs__body { position: relative; max-height: 340px; overflow: hidden; font-size: 14px; line-height: 1.6; }
.specs__body p { margin-bottom: .5em; }
.specs__body ul { margin-bottom: .5em; padding-left: 18px; }
.specs__body table { width: 100%; border-collapse: collapse; }
.specs__body td, .specs__body th { padding: 7px 8px; border: 1px solid var(--line); }
.specs__more { width: 100%; margin-top: 16px; }

.specs-dialog { width: min(720px, calc(100vw - 32px)); max-height: 85vh; padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.specs-dialog::backdrop { background: rgba(10, 37, 64, .55); }
.specs-dialog__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.specs-dialog__head h2 { margin: 0; font-size: 18px; }
.specs-dialog__head .icon-btn:hover { background: var(--bg); }
.specs-dialog__body { padding: 20px 24px 28px; font-size: 15px; }

.woocommerce .related.products { margin-top: 36px; }
.woocommerce .related.products > h2 { margin-bottom: 16px; font-size: 22px; }

/* Reviews */

.woocommerce #reviews #comments ol.commentlist { padding: 0; }
.woocommerce #reviews #comments ol.commentlist li .comment-text { border-color: var(--line); border-radius: var(--radius); }
.woocommerce #review_form #respond textarea { min-height: 120px; }

/* ---------- Cart, checkout, account ---------- */

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-info, .woocommerce-message { margin: 0 0 18px; border-top-width: 0; border-left: 4px solid var(--blue); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); color: var(--ink); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--blue); }
.woocommerce-message { border-left-color: #16a34a; }
.woocommerce-message::before { color: #16a34a; }
.woocommerce-error { border-left-color: #dc2626; }

.page-body--shop .woocommerce { padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: var(--radius); border-collapse: separate; }
.woocommerce table.shop_table th { color: var(--ink); }
.woocommerce table.shop_table td { border-color: var(--line); }
.woocommerce-cart table.cart img { width: 72px; border-radius: var(--radius-sm); }
.woocommerce .quantity .qty { width: 70px; }
.woocommerce-cart table.cart td.actions .coupon .input-text { width: 180px; min-height: 44px; margin-right: 8px; border-color: var(--line); border-radius: var(--radius-sm); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { border-color: var(--line); }
.woocommerce-checkout #payment, #add_payment_method #payment { border-radius: var(--radius); background: var(--bg); }
.woocommerce-checkout #payment div.payment_box { border-radius: var(--radius-sm); background: var(--white); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--white); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.woocommerce-account .woocommerce-MyAccount-navigation a:hover, .woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--blue-soft); color: var(--blue-dark); }

/* Contact form */

.wpcf7 form p { margin-bottom: 14px; }
.wpcf7 label { width: 100%; }
.wpcf7-not-valid-tip { font-size: 13px; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 32px; background: var(--navy); color: #bdcbdb; font-size: 14px; }
.site-footer > .sc-section:first-child { padding: 0; }
.site-footer > .sc-section:first-child .sc-html iframe { height: 300px; border-radius: 0; }
.footer-section { padding-block: 52px 32px; }
.footer-section h4 { margin-bottom: 14px; color: var(--white); font-size: 16px; }
.footer-section .sc-image { max-width: 150px; margin-bottom: 16px; }
.footer-section .sc-col:nth-child(2) .sc-image { max-width: 140px; }
.footer-section .sc-text strong { color: var(--white); }
.footer-section .sc-text p { margin-bottom: .6em; }
.sc-menu { margin: 0; padding: 0; list-style: none; }
.sc-menu li { padding: 5px 0; }
.sc-menu a { color: #bdcbdb; }
.sc-menu a:hover { color: var(--white); }
.site-footer__bottom { padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fa3b8; font-size: 13px; text-align: center; }

/* Floating Zalo / phone buttons */
.float-cta { position: fixed; right: 20px; bottom: 24px; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.float-cta__btn { display: flex; align-items: center; height: 56px; border-radius: 999px; color: var(--white); box-shadow: 0 8px 22px rgba(10, 37, 64, .3); font-weight: 700; }
.float-cta__btn:hover { color: var(--white); }
.float-cta__btn--zalo { background: var(--zalo); }
.float-cta__btn--phone { background: var(--orange); }
.float-cta__icon { display: grid; flex: none; place-items: center; width: 56px; height: 56px; font-size: 14px; font-weight: 800; }
.float-cta__icon .icon { width: 24px; height: 24px; }
.float-cta__label { max-width: 0; overflow: hidden; font-size: 14px; white-space: nowrap; transition: max-width .2s ease, padding .2s ease; }
.float-cta__btn:hover .float-cta__label, .float-cta__btn:focus-visible .float-cta__label { max-width: 180px; padding-right: 20px; }
.float-cta__btn--phone .float-cta__icon { position: relative; }
.float-cta__btn--phone .float-cta__icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(242, 96, 12, .55); animation: cta-pulse 2s infinite; }
@keyframes cta-pulse { to { box-shadow: 0 0 0 16px rgba(242, 96, 12, 0); } }

.back-to-top {
  position: fixed; right: 26px; bottom: 164px; z-index: 90;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.back-to-top[hidden] { display: none; }

/* Floating call buttons plugin */
.pk-sms-messenger.style-for-position-br { display: block !important; }
.pk-sms-messenger { position: fixed; bottom: 20px; z-index: 95; display: block; width: 40px; text-align: center; }

/* ---------- Responsive ---------- */

/* Visibility classes used in the saved page content */
.show-for-small, .show-for-medium { display: none; }
@media (max-width: 849px) {
  .hide-for-medium { display: none; }
  .show-for-medium { display: block; }
}
@media (max-width: 549px) {
  .hide-for-small { display: none; }
  .show-for-small { display: block; }
}

@media (max-width: 1100px) {
  .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hotline__text small { display: none; }
  .product-page__details { grid-template-columns: minmax(0, 1fr) 300px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 849px) {
  :root { --gutter: 16px; --gap: 14px; }

  .admin-bar .site-header { top: 0; }
  .site-header { position: sticky; }
  .site-header__row { flex-wrap: wrap; gap: 8px 10px; min-height: 0; padding-block: 8px 10px; }
  .site-header__toggle { display: inline-flex; color: var(--white); }
  .site-logo { margin-right: auto; }
  .site-logo:has(img) { width: 89px; height: 54px; }
  .hotline { order: 2; margin: 0; }
  .hotline__text { display: none; }
  .hotline__icon { width: 44px; height: 44px; background: transparent; }
  .site-header__account { order: 3; border: 0; }
  .site-header__search { flex: 1 0 100%; order: 4; }
  .site-search input[type="search"] { height: 42px; }
  .site-search button { width: 34px; height: 34px; }
  .site-nav { display: none; }

  .sc-col { grid-column: span var(--span-md); }
  .sc-row--center > .sc-col { width: calc(var(--span-md) / 12 * 100%); }
  .cot1 { order: 2; grid-column: span 12; grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cot2 { grid-column: span 12; }
  .section1 .hide-for-small { display: grid; }
  .cot1 .sc-image { aspect-ratio: 950 / 510; }

  .woocommerce ul.products, ul.products, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

  .section-heading { margin-top: 24px; }
  .section-heading__cats { order: 3; flex-basis: 100%; }
  .section-heading__more { margin-left: auto; }

  .content-layout, .product-page__details { grid-template-columns: minmax(0, 1fr); }
  .product-page__top { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 18px; }
  .product-page__tabs { padding: 8px 18px 24px; }
  .specs { position: static; }
  .product-page__cta { max-width: none; }

  /* Zalo and phone become a fixed bar along the bottom edge */
  body { padding-bottom: 56px; }
  .float-cta { right: 0; bottom: 0; left: 0; flex-direction: row; gap: 0; box-shadow: 0 -4px 16px rgba(10, 37, 64, .16); }
  .float-cta__btn { flex: 1 1 0; justify-content: center; border-radius: 0; box-shadow: none; }
  .float-cta__icon { width: auto; padding-right: 8px; }
  .float-cta__btn--zalo .float-cta__icon { display: none; }
  .float-cta__label, .float-cta__btn:hover .float-cta__label, .float-cta__btn:focus-visible .float-cta__label { max-width: none; padding: 0; }
  .float-cta__btn--phone .float-cta__icon::after { display: none; }
  .back-to-top { right: 14px; bottom: 70px; }

  .article, .page-body--text { padding: 22px 18px; }
  .page-body--shop .woocommerce { padding: 18px; }
  .article__title, .page-head__title { font-size: 24px; }
  .sc-row--cards > .sc-col { padding: 22px 18px; }
  .sc-section--bg { padding-block: 56px; }
  .sc-slider__arrow { display: none; }
}

@media (max-width: 549px) {
  body { font-size: 14px; }

  .sc-col { grid-column: span var(--span-sm); }
  .sc-row--center > .sc-col { width: calc(var(--span-sm) / 12 * 100%); }
  .cot1 { grid-column: span 12; gap: 8px; }
  .cot2 { grid-column: span 12; }

  .product-card__media { padding: 10px; }
  .product-card__body { padding: 10px 12px 14px; }
  .woocommerce ul.products li.product h3.product-card__title { font-size: 13px; }
  .product-card__price { font-size: 15px; }
  .container-rating .count-rating { display: none; }

  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card__body { padding: 10px 12px 14px; }
  .post-card__title { font-size: 13px; }

  .sc-col > h2, .section-heading__title { font-size: 19px; }
  .product-page__summary .product_title { font-size: 21px; }
  .woocommerce div.product .product-page__price p.price { font-size: 25px; }
  .product-page__cta { grid-template-columns: minmax(0, 1fr); }
  .shop-toolbar select { width: 100%; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: 1; text-align: left; }
  .footer-section { padding-block: 36px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
