/* =========================================================
   GC PRO SHOP – Nước ion kiềm
   Thuần HTML + CSS (hiệu ứng hover & cuộn trang bằng CSS)
   ========================================================= */

:root {
  --primary: #0b4fb8;
  --primary-2: #1a73e8;
  --navy: #0a2f7a;
  --title: #0d3d99;
  --text: #4a5673;
  --light: #eef5ff;
  --light-2: #f6faff;
  --border: #dbe7fb;
  --shadow: 0 10px 30px rgba(13, 61, 153, .12);
  --shadow-lg: 0 20px 45px rgba(13, 61, 153, .22);
  --radius: 14px;
  --ease: cubic-bezier(.22, .8, .3, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --std: cubic-bezier(.4, 0, .2, 1);            /* đường cong chuẩn cho hover (như Tailwind) */
  --sec: clamp(40px, 4.6vw, 58px);              /* khoảng đệm dọc chuẩn của section */
  --header-h: 74px;
  --container: 1160px;                          /* một đường lề trái/phải cho toàn trang */
  --smooth: cubic-bezier(.22, 1, .36, 1);       /* ease-out-quint: vào nhanh, dừng rất êm */
  --reveal-dur: .7s;                            /* hiện dần 0.7s, dừng êm bằng ease-out-quint */
  --reveal-dist: 24px;
  --hover-dur: .3s;                             /* giống bidpro.vn: 300ms, nhấc 4px, bóng vừa */
  --card-shadow-hover: 0 12px 28px rgba(13, 61, 153, .14);
  --zoom-slow: 1.43;                            /* hiệu ứng zoom chậm hơn 30%: thời gian ÷ 0.7 */
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

svg {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

/* ---------- Thanh tiến trình cuộn ---------- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, #36c3ff, var(--primary));
  transform-origin: left; transform: scaleX(0);
  will-change: transform;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Thành phần dùng chung ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(11, 79, 184, .08);
}
.badge svg { font-size: 14px; }
.badge--solid { background: var(--primary); color: #fff; border-color: var(--primary); }

.title {
  margin: 12px 0 10px;
  font-size: clamp(20px, 1.6vw, 24px);
  text-wrap: balance;
  font-weight: 800;
  line-height: 1.22;
  text-transform: uppercase;
  color: var(--title);
}
.title--sm { font-size: clamp(16px, 1.3vw, 19px); }

.section { position: relative; padding: var(--sec) 0; overflow: hidden; }
.section-text p { max-width: 430px; margin-bottom: 20px; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 26px;
  font-weight: 600; font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 50px;
  box-shadow: 0 8px 20px rgba(11, 79, 184, .3);
  transition: transform .3s var(--std), box-shadow .3s var(--std);
}
.btn svg { font-size: 17px; transition: transform .3s var(--std); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 79, 184, .3); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(-1px) scale(.97); transition-duration: .12s; }
:where(a, button, label, [tabindex]):focus-visible { outline: 2px solid var(--primary-2); outline-offset: 3px; border-radius: 6px; }

.btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 16px;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50px;
  transition: background-color .3s var(--std), color .3s var(--std);
}
.btn-sm svg { transition: transform .3s var(--ease); }
.btn-sm:hover { background: var(--primary); color: #fff; }
.btn-sm:hover svg { transform: translateX(4px); }

/* Lá cây trang trí – đung đưa nhẹ */
.leaf {
  position: absolute; z-index: 1; pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 2px 18px rgba(13, 61, 153, .08);
  transition: transform .5s var(--ease-out), box-shadow .4s;
  will-change: transform;
}
/* Cuộn xuống: header trượt lên để trả lại diện tích màn hình; cuộn lên: hiện lại */
.header.is-scrolled { box-shadow: 0 6px 24px rgba(13, 61, 153, .12); }
.header.is-hidden { transform: translateY(-100%); box-shadow: none; }
.header__inner { display: flex; align-items: center; gap: 30px; height: var(--header-h); }
.logo img { height: 52px; width: auto; transition: transform .3s var(--std); transform-origin: left center; }
.header.is-scrolled .logo img { transform: scale(.88); }

.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: 14px; font-weight: 500; color: #1d2b4f;
  transition: color .35s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav a:hover,
.nav a.active { color: var(--primary); }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); transform-origin: left; }

.btn-phone {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 20px; padding: 10px 22px;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 50px;
  box-shadow: 0 6px 16px rgba(11, 79, 184, .3);
  transition: transform .3s var(--std), box-shadow .3s var(--std);
}
.btn-phone svg { font-size: 16px; }
.btn-phone:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(11, 79, 184, .4); }
.menu-toggle, .burger { display: none; }

/* Hiệu ứng tải trang của header – giống ptahome.vn */
.logo      { animation: fadeLeft .6s ease-out backwards; }
.nav a     { animation: fadeUp .5s ease-out backwards; }
.nav a:nth-child(1) { animation-delay: .1s; }
.nav a:nth-child(2) { animation-delay: .15s; }
.nav a:nth-child(3) { animation-delay: .2s; }
.nav a:nth-child(4) { animation-delay: .25s; }
.nav a:nth-child(5) { animation-delay: .3s; }
.nav a:nth-child(6) { animation-delay: .35s; }
.btn-phone { animation: fadeRight .6s .35s ease-out backwards; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(560px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
  background: #dcebfb;
}
/* Ảnh nền tách riêng để zoom/parallax bằng transform (GPU) thay vì background-position */
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("images/hero.webp") 62% center / cover no-repeat;
  animation: heroBgIn calc(1.4s * var(--zoom-slow)) ease-out both;
}
@keyframes heroBgIn { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.hero::before {                      /* lớp phủ sáng bên trái để chữ nổi */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 30%, rgba(255,255,255,0) 55%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 700px; padding: clamp(28px, 5vh, 52px) 0; }

.hero__title {
  margin: 14px 0 4px;
  font-size: clamp(28px, 2.6vw, 38px);
  white-space: nowrap;
  font-weight: 900; line-height: 1.14;
  text-transform: uppercase;
  color: var(--navy);
}
/* Mỗi dòng tiêu đề hiện ra riêng: mờ → nét, trượt lên */
.hero__title .line {
  display: block;
  background: linear-gradient(180deg, #0b4fb8, #0a2f7a);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: fadeUp .7s ease-out both;
}
.hero__title .line:nth-child(1) { animation-delay: .3s; }
.hero__title .line:nth-child(2) { animation-delay: .4s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(.8em) scale(.96); }
  to   { opacity: 1; transform: none; }
}
.hero__slogan {
  display: flex; align-items: center; gap: 12px;
  font-family: "Dancing Script", cursive;
  font-size: clamp(24px, 2.6vw, 34px); font-weight: 700;
  color: var(--primary);
}
.hero__slogan svg { width: 60px; height: 12px; stroke-width: 1.5; }
.hero__slogan svg path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1.2s .9s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__desc { max-width: 440px; margin: 10px 0 18px; color: #2d3b5c; }

.hero__features { display: flex; margin-bottom: 24px; }
.hero__features li {
  display: flex; align-items: center; gap: 10px;
  padding: 0 22px; font-size: 13px; line-height: 1.35; color: #1d2b4f;
  border-left: 1px solid #b9cdef;
}
.hero__features li:first-child { padding-left: 0; border-left: 0; }
.hero__features svg { font-size: 30px; color: var(--primary); }

.hero__sign {
  position: absolute; right: 5%; bottom: 34px; z-index: 2;
  font-family: "Dancing Script", cursive;
  font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; color: #fff;
  text-shadow: 0 3px 12px rgba(10, 47, 122, .5);
  transform: rotate(-6deg);
  animation: signIn 1.4s 1.1s var(--ease-out) both;
}
@keyframes signIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 -10% 0 0); } }

.leaf--hero-tl { width: 190px; top: -40px; left: -50px; }
.leaf--hero-bl { width: 230px; bottom: -60px; left: -70px; }

/* Hiệu ứng xuất hiện khi tải trang */
.hero-anim { animation: fadeUp .7s ease-out backwards; }  /* backwards: xong thì trả transform cho hover */
.d1 { animation-delay: .2s; } .d2 { animation-delay: .3s; } .d3 { animation-delay: .5s; }
.d4 { animation-delay: .6s; } .d5 { animation-delay: .7s; } .d6 { animation-delay: .8s; }

@keyframes fadeUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }
@keyframes fadeRight{ from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes zoomIn   { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   HOVER KIỂU PTAHOME.VN
   - thẻ nhấc lên 8–10px + bóng lớn mềm
   - vạch màu 4px chạy từ trái sang ở mép trên thẻ
   - ảnh bên trong phóng to 110% (khung giữ overflow: hidden)
   ========================================================= */
.product, .benefit, .cert-doc div, .g-item div, .about__points li, .certs__labels li {
  position: relative;
  transition: transform var(--hover-dur) var(--std), box-shadow var(--hover-dur) var(--std),
              border-color var(--hover-dur) var(--std), background-color var(--hover-dur) var(--std);
}
.product, .benefit { overflow: hidden; }
.product::before, .benefit::before, .g-item div::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 3;
  background: linear-gradient(90deg, var(--navy), var(--primary-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--hover-dur) var(--std);
}
.product:hover::before, .benefit:hover::before, .g-item:hover div::before { transform: scaleX(1); }

.product:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); background: #fff; }
.cert-doc:hover div { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.g-item:hover div { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

/* Ảnh phóng to trong khung */
.g-item img, .cert-doc img, .about__img img, .slider__track img, .slider__thumbs > label img, .p-main, .p-mid, .p-machine, .p-side {
  transition: transform calc(.6s * var(--zoom-slow)) var(--std);
}
.g-item:hover img, .cert-doc:hover img, .about__img:hover img, .slider__view:hover .slider__track img { transform: scale(1.05); }
.slider__thumbs > label:hover img { transform: scale(1.05); }

/* Dòng thông tin nhích sang phải (như link footer ptahome) */
.about__points li:hover, .certs__labels li:hover { transform: translateX(4px); }
.certs__labels svg { transition: background-color .3s var(--std), color .3s var(--std); }
.certs__labels li:hover svg { background: var(--primary); color: #fff; }

/* =========================================================
   HIỆU ỨNG KHI CUỘN – chỉ opacity + dịch chuyển (GPU), chạy 1 lần.
   JS gỡ data-reveal khi xong để hover của phần tử hoạt động lại bình thường.
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  translate: 0 var(--reveal-dist);
  transition: opacity var(--reveal-dur) var(--smooth) var(--d, 0ms),
              translate var(--reveal-dur) var(--smooth) var(--d, 0ms),
              scale calc(var(--reveal-dur) * var(--zoom-slow)) var(--smooth) var(--d, 0ms);
}
.js [data-reveal="left"]  { translate: calc(var(--reveal-dist) * -1) 0; }
.js [data-reveal="right"] { translate: var(--reveal-dist) 0; }
.js [data-reveal="zoom"]  { translate: 0 0; scale: .96; }
.js [data-reveal].is-in   { opacity: 1; translate: 0 0; scale: 1; }

/* =========================================================
   NHÀ MÁY SẢN XUẤT
   ========================================================= */
.factory { background: linear-gradient(180deg, #fff, var(--light-2)); padding-bottom: calc(var(--sec) * .55); }
.factory__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 40px; align-items: center;
}
.leaf--factory-r { width: 130px; right: -30px; top: 10px; }

/* Slider thuần CSS */
.slider input { display: none; }
.slider__view {
  overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 2.1 / 1;
}
.slider__track {
  display: flex; width: 500%; height: 100%;
  transition: transform .9s var(--smooth);
  will-change: transform;                     /* luôn nằm trên lớp GPU, không vẽ lại khi trượt */
}
.slider__view { position: relative; touch-action: pan-y; cursor: grab; }
.slider__view:active { cursor: grabbing; }
.slider__track img {
  width: 20%; height: 100%; object-fit: cover;
  user-select: none; -webkit-user-drag: none;
}
#s2:checked ~ .slider__view .slider__track { transform: translateX(-20%); }
#s3:checked ~ .slider__view .slider__track { transform: translateX(-40%); }
#s4:checked ~ .slider__view .slider__track { transform: translateX(-60%); }
#s5:checked ~ .slider__view .slider__track { transform: translateX(-80%); }

.slider__thumbs {
  position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  margin-top: 12px; padding: 0 34px;
}
.slider__thumbs > label {
  position: relative;
  cursor: pointer; overflow: hidden;
  border-radius: 8px; border: 2px solid transparent;
  aspect-ratio: 16 / 9;
  opacity: .65;
  transition: opacity .3s var(--std), border-color .3s var(--std);
}
.slider__thumbs > label img { width: 100%; height: 100%; object-fit: cover; }
.slider__thumbs > label:hover { opacity: 1; }

#s1:checked ~ .slider__thumbs .t1,
#s2:checked ~ .slider__thumbs .t2,
#s3:checked ~ .slider__thumbs .t3,
#s4:checked ~ .slider__thumbs .t4,
#s5:checked ~ .slider__thumbs .t5 { opacity: 1; border-color: var(--primary); box-shadow: 0 6px 14px rgba(11, 79, 184, .3); }

/* Tự chạy: vạch tiến trình trên thumbnail đang chọn, hết vạch thì JS chuyển ảnh */
.slider__thumbs > label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #36c3ff, var(--primary-2));
  transform: scaleX(0); transform-origin: left;
}
.slider.is-auto #s1:checked ~ .slider__thumbs .t1::after,
.slider.is-auto #s2:checked ~ .slider__thumbs .t2::after,
.slider.is-auto #s3:checked ~ .slider__thumbs .t3::after,
.slider.is-auto #s4:checked ~ .slider__thumbs .t4::after,
.slider.is-auto #s5:checked ~ .slider__thumbs .t5::after { animation: slideTimer 5.5s linear forwards; }
.slider.is-paused .slider__thumbs > label::after { animation-play-state: paused !important; }
@keyframes slideTimer { to { transform: scaleX(1); } }

.slider__arrows { position: absolute; inset: 0; pointer-events: none; }
.arw label { pointer-events: auto; }
.arw { display: none; }
#s1:checked ~ .slider__thumbs .a1,
#s2:checked ~ .slider__thumbs .a2,
#s3:checked ~ .slider__thumbs .a3,
#s4:checked ~ .slider__thumbs .a4,
#s5:checked ~ .slider__thumbs .a5 { display: block; }
.arw label {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--navy);
  background: #fff; box-shadow: 0 3px 10px rgba(13, 61, 153, .18);
  transition: background-color .3s var(--std), color .3s var(--std);
}
.arw .prev { left: 0; }
.arw .next { right: 0; }
.arw label:hover { background: var(--primary); color: #fff; }

/* =========================================================
   CHỨNG NHẬN
   ========================================================= */
.certs {
  padding-top: calc(var(--sec) * .55);
  background:
    radial-gradient(circle at 15% 50%, #e3efff 0, transparent 45%),
    linear-gradient(180deg, var(--light-2), var(--light));
}
.certs__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 40px; align-items: center; }
.leaf--cert-l { width: 120px; left: -30px; top: 30px; }

.certs__box {
  padding: 24px 24px 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
/* Ảnh thật của giấy chứng nhận, bằng khen – bấm để xem lớn trong lightbox */
.certs__docs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cert-doc div {
  position: relative; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 1 / 1.414;                      /* khổ A4 đứng */
  padding: 5px; border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(13, 61, 153, .14);
}
.cert-doc--wide { grid-column: span 2; }
.cert-doc--wide div { aspect-ratio: auto; height: 100%; }
.cert-doc img { width: 100%; height: 100%; object-fit: contain; }
.cert-doc figcaption {                          /* chỉ dùng làm chú thích trong lightbox */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.cert-doc div:focus-visible { outline: 3px solid var(--primary-2); outline-offset: 2px; }

.certs__labels {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
}
.certs__labels li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.35; color: #1d2b4f; }
.certs__labels svg {
  font-size: 34px; padding: 7px; border-radius: 50%;
  color: var(--primary); background: var(--light);
}

/* =========================================================
   ƯU ĐIỂM VƯỢT TRỘI
   ========================================================= */
.benefits {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 24% 1fr 30%; align-items: center;
  min-height: 360px;
  background: linear-gradient(90deg, #dff0ff, #f4f9ff 40%, #eaf6e6);
}
.benefits__h2o { align-self: stretch; }
.benefits__h2o img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent);
          mask-image: linear-gradient(90deg, #000 60%, transparent);
}

.benefits__content { position: relative; z-index: 2; padding: calc(var(--sec) * .8) 10px; }
.benefits__content > div > p { max-width: 460px; margin-bottom: 18px; }
.benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.benefit {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .85);
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(13, 61, 153, .08);
}
.benefit p { font-size: 13px; font-weight: 600; line-height: 1.35; color: #1d2b4f; }
.benefit small { font-size: 12.5px; font-weight: 500; }
.benefit__icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  font-size: 22px; color: var(--primary);
  border: 1.5px solid #bcd3f5;
  transition: background-color .3s var(--std), color .3s var(--std), border-color .3s var(--std);
}
.benefit:hover .benefit__icon { background: var(--primary); color: #fff; border-color: var(--primary); }

.benefits__woman { align-self: stretch; }
.benefits__woman img {
  width: 100%; height: 100%; object-fit: cover; object-position: 40% center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%);
          mask-image: linear-gradient(90deg, transparent, #000 30%);
}

/* =========================================================
   SẢN PHẨM
   ========================================================= */
.products { background: #fff; }
.products__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 36px; align-items: center; }
.products__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.product {
  padding: 20px 16px 18px;
  text-align: center;
  background: linear-gradient(180deg, var(--light-2), #fff 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.product__img {
  display: flex; justify-content: center; align-items: flex-end; gap: 4px;
  height: 150px; margin-bottom: 14px;
}
.p-main    { height: 100%; }
.p-mid     { height: 92%; }
.p-side    { height: 58%; }
.p-machine { height: 100%; }
.product h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.product p  { margin-bottom: 12px; font-size: 13px; }

.product:hover { border-color: #b7cff5; }
.product:hover .p-main,
.product:hover .p-mid,
.product:hover .p-machine { transform: scale(1.05); }
.product:hover .p-side:first-child { transform: translateX(-4px) rotate(-5deg); }
.product:hover .p-side:last-child  { transform: translateX(4px) rotate(5deg); }

/* =========================================================
   VỀ CHÚNG TÔI
   ========================================================= */
.about {
  display: grid; align-items: center;
  grid-template-columns:
    calc(max(16px, (100% - var(--container)) / 2) + 420px)
    minmax(0, 1fr) 240px
    max(16px, (100% - var(--container)) / 2);
  background: linear-gradient(90deg, #fff 40%, var(--light) 100%);
  overflow: hidden;
}
.about__img { align-self: stretch; overflow: hidden; }
.about__img img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }

.about__content { padding: 30px 32px; }
.about__content p { margin-bottom: 18px; }

.about__points { padding: 24px 0; }
.about__points li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed #c6d7f3;
}
.about__points li:last-child { border-bottom: 0; }
.about__points p { font-size: 12.5px; line-height: 1.4; }
.about__points b { display: block; font-size: 14px; color: var(--navy); }
.about__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px;
  font-size: 22px; color: var(--primary);
  background: #fff; box-shadow: 0 4px 12px rgba(13, 61, 153, .1);
  transition: background-color .3s var(--std), color .3s var(--std);
}
.about__points li:hover .about__icon { background: var(--primary); color: #fff; }

/* =========================================================
   HÌNH ẢNH THỰC TẾ
   ========================================================= */
.gallery .title { margin-bottom: 18px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 16px; align-items: stretch; }

.g-item div {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4 / 3; cursor: zoom-in;
  box-shadow: 0 6px 16px rgba(13, 61, 153, .1);
}
.g-item div::after {                  /* biểu tượng phóng to khi hover */
  content: ""; position: absolute; inset: 0;
  background: rgba(10, 47, 122, .28) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 34px no-repeat;
  opacity: 0; transition: opacity .3s var(--std);
}
.g-item:hover div::after, .g-item div:focus-visible::after { opacity: 1; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption { margin-top: 8px; font-size: 12.5px; font-weight: 500; color: #1d2b4f; transition: color .3s var(--std); }
.g-item:hover figcaption { color: var(--primary); }

.g-quote {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  border-radius: 12px 0 0 12px;
  background: linear-gradient(135deg, #0a3d9e, #1a73e8);
  box-shadow: 0 0 0 100vmax #1a73e8;          /* kéo nền ra tới mép màn hình */
  clip-path: inset(0 -100vmax 0 0 round 12px 0 0 12px);
}
.g-quote p {
  position: relative; z-index: 2;
  font-family: "Dancing Script", cursive;
  font-size: 23px; font-weight: 700; line-height: 1.25; text-align: center;
  color: #fff; transform: rotate(-5deg);
}
.g-quote__leaf {
  position: absolute; right: -40px; top: -20px; width: 150px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative; overflow: hidden;
  color: #e3edff;
  background: linear-gradient(135deg, #07318a 0%, #0b4fb8 55%, #1a73e8 100%);
}
.leaf--foot-l { width: 140px; left: -40px; bottom: -30px; opacity: .9; }
.leaf--foot-r { width: 170px; right: -50px; bottom: -40px; opacity: .9; }

.footer__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 40px; align-items: center;
  padding: 32px 0 24px;
}
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand img { width: 130px; }
.footer__brand p { font-size: 12px; font-weight: 600; text-transform: uppercase; line-height: 1.5; }
.footer__brand b { display: block; font-size: 15px; color: #fff; }

.footer__contact {
  display: grid; grid-template-columns: auto auto auto; gap: 12px 26px;
  padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px;
}
.footer__contact a,
.footer__contact p { display: flex; align-items: flex-start; gap: 8px; transition: color .3s var(--std), transform .3s var(--std); }
.footer__contact svg {
  font-size: 26px; padding: 5px; margin-top: -3px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  transition: background-color .3s var(--std), color .3s var(--std);
}
.footer__contact a:hover { color: #fff; transform: translateX(4px); }
.footer__contact a:hover svg { background: #fff; color: var(--primary); }
.footer__contact .addr { grid-column: 1 / -1; }
.footer__contact a { white-space: nowrap; }

.footer__qr { text-align: center; font-size: 11px; line-height: 1.4; }
.footer__qr img {
  width: 86px; margin: 0 auto 6px; padding: 5px;
  background: #fff; border-radius: 8px;
}

.footer__bottom {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 12px 0 14px;
  font-size: 12px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.footer__bottom a { transition: color .3s var(--std); }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* Nút lên đầu trang – hiện khi đã cuộn, viền tròn thể hiện % đã đọc */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(11, 79, 184, .35);
  transition: transform .3s var(--std), opacity .3s, visibility .3s;
}
.to-top::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(var(--primary-2) calc(var(--p, 0) * 1turn), rgba(11, 79, 184, .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.to-top:hover { transform: translateY(-2px); }
.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; transform: translateY(20px) scale(.8); }

/* Lightbox xem ảnh thực tế */
.lightbox {
  width: min(1000px, 92vw); max-width: none; max-height: 90vh;
  margin: auto; padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox[open] { animation: lbIn calc(.5s * var(--zoom-slow)) var(--ease-out); }
.lightbox.is-closing { animation: lbOut .25s ease-in forwards; }
.lightbox::backdrop { background: rgba(6, 26, 70, .85); animation: fadeIn .4s; }
.lightbox.is-closing::backdrop { animation: fadeIn .25s reverse forwards; }
@keyframes lbIn  { from { opacity: 0; transform: scale(.94) translateY(12px); } }
@keyframes lbOut { to   { opacity: 0; transform: scale(.96); } }
.lightbox figure { margin: 0; }
.lightbox img {
  width: auto; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  transition: opacity .3s;
}
.lightbox img.is-swapping { opacity: 0; }
.lightbox figcaption { margin-top: 12px; text-align: center; color: #fff; font-weight: 500; }
.lightbox button {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  font-family: inherit; font-size: 28px; line-height: 1; color: var(--navy); background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform calc(.3s * var(--zoom-slow)) var(--ease), background .3s, color .3s;
}
.lightbox button:hover { background: var(--primary); color: #fff; transform: scale(1.05); }
.lightbox__close { top: -18px; right: -18px; }
.lightbox__prev  { left: -22px; top: 40%; }
.lightbox__next  { right: -22px; top: 40%; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .btn-phone { margin-left: 0; }
  .benefits { grid-template-columns: 1fr 1.6fr; }
  .benefits__h2o { display: none; }
  .benefits__content { padding: calc(var(--sec) * .8) 20px calc(var(--sec) * .8) 30px; }
  .about { grid-template-columns: 38% minmax(0, 1fr); }
  .about__points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 16px 28px; width: min(var(--container), 100% - 32px); margin-inline: auto; }
  .about__points li { border-bottom: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; order: 3; padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .burger {
    display: flex; flex-direction: column; gap: 5px;
    margin-left: auto; padding: 8px; cursor: pointer;
  }
  .burger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: #fff; box-shadow: 0 12px 20px rgba(13, 61, 153, .1);
    max-height: 0; overflow: hidden;
    transition: max-height .45s var(--ease);
  }
  .nav a { padding: 14px 24px; border-top: 1px solid #eef2f9; }
  .nav a::after { display: none; }
  .menu-toggle:checked ~ .nav { max-height: 420px; }
  .menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .btn-phone { padding: 9px 14px; font-size: 13px; }

  .factory__inner, .certs__inner, .products__inner { grid-template-columns: 1fr; gap: 24px; }
  .section-text p { max-width: none; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .g-quote { grid-column: 1 / -1; min-height: 110px; border-radius: 12px; box-shadow: none; clip-path: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; --sec: 36px; }
  body { font-size: 14px; }
  .header__inner { gap: 12px; }
  .nav { top: var(--header-h); }
  .logo img { height: 40px; }
  .btn-phone { display: none; }
  .title { margin: 10px 0 8px; }
  .section-text p { margin-bottom: 16px; }

  .hero { min-height: auto; }
  .hero__bg { background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(255,255,255,.93) 0%, rgba(255,255,255,.8) 60%, rgba(255,255,255,.2) 100%); }
  .hero__content { padding: 28px 0 72px; }
  .hero__title { white-space: normal; }
  .hero__slogan { font-size: 23px; gap: 8px; }
  .hero__slogan svg { width: 34px; }
  .hero__sign { bottom: 18px; }
  .leaf--cert-l, .leaf--factory-r { display: none; }
  .hero__features { margin-bottom: 20px; }
  .hero__features li { padding: 0 10px; font-size: 12px; gap: 6px; }
  .hero__features svg { font-size: 22px; }

  .slider__thumbs { gap: 6px; padding: 0 30px; margin-top: 10px; }
  .certs__box { padding: 16px 14px 12px; }
  .certs__docs { grid-template-columns: repeat(2, 1fr); gap: 10px; grid-auto-flow: dense; }
  .certs__labels { grid-template-columns: repeat(2, 1fr); margin-top: 14px; padding-top: 12px; }

  .benefits { grid-template-columns: 1fr; min-height: 0; }
  .benefits__content { padding: var(--sec) 16px 16px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .benefit { padding: 10px; gap: 8px; }
  .benefit__icon { width: 36px; height: 36px; font-size: 19px; }
  .benefit p { font-size: 12.5px; }
  .benefit small { font-size: 12px; }
  .benefits__woman img { height: 200px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }

  /* Sản phẩm: chuyển sang băng trượt ngang (vuốt), thay vì xếp 3 thẻ dọc */
  .products__list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%;
    gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 6px 16px 14px;
    scrollbar-width: none;
  }
  .products__list::-webkit-scrollbar { display: none; }
  .product { scroll-snap-align: start; }
  .product__img { height: 130px; }

  .about { grid-template-columns: 1fr; }
  .about__img img { min-height: 0; height: 190px; }
  .about__content { padding: 24px 16px 8px; }
  .about__points { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 16px 28px; }
  .about__points li { flex-direction: column; text-align: center; gap: 6px; padding: 0; border-bottom: 0; }
  .about__points p { font-size: 11.5px; }
  .about__points b { font-size: 12.5px; }

  .gallery__grid { gap: 10px; }
  .g-item figcaption { margin-top: 6px; font-size: 12px; }
  .g-quote p { font-size: 22px; }

  .footer__inner { grid-template-columns: 1fr auto; gap: 18px 16px; padding: 26px 0 18px; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__brand img { width: 110px; }
  .footer__contact { grid-template-columns: 1fr; gap: 8px; }
  .footer__qr img { width: 76px; }
  .footer__bottom { flex-direction: column; gap: 2px; }

  .lightbox__prev { left: 4px; } .lightbox__next { right: 4px; } .lightbox__close { right: 4px; top: -54px; }
}

/* Tôn trọng người dùng muốn giảm chuyển động */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
