/* ============================================================
   SHOWROOM HẰNG HÒA — v2 Design System
   Font: Roboto (matches original WordPress site)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --dark:       #0a0f1e;
  --dark-2:     #141929;
  --blue:       #175e96;
  --blue-hover: #1a70b5;
  --blue-light: #e8f2fb;
  --accent:     #c8102e;
  --white:      #ffffff;
  --gray-50:    #f8f9fb;
  --gray-100:   #f1f3f7;
  --gray-200:   #e2e6ed;
  --gray-400:   #9aa3b0;
  --gray-500:   #7a8494;
  --gray-600:   #5a6478;
  --gray-700:   #3d4558;
  --gray-900:   #1a1f2e;
  --navy:       #1a1f2e;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-disp: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius:     5px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.14);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --header-h:   72px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: var(--font-body); color: var(--gray-900); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
.t-display { font-family: var(--font-disp); font-weight: 600; letter-spacing: -.02em; }
.t-label   { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

/* ── Layout ─────────────────────────────────────────────────── */
.container  { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1440px; }
.section    { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }

/* ── Section Heading ────────────────────────────────────────── */
.section-head { margin-bottom: 48px; }
.section-head__eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.section-head__title { font-family: var(--font-disp); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; color: var(--gray-900); }
.section-head__line { width: 40px; height: 3px; background: var(--blue); margin-top: 16px; border-radius: 2px; }
.section-head--center { text-align: center; }
.section-head--center .section-head__line { margin: 16px auto 0; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: var(--radius); font-size: .875rem; font-weight: 600; border: 1px solid transparent; transition: all var(--transition); white-space: nowrap; }
.btn:empty { display: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(23,94,150,.35); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--dark-2); }
.btn--sm { padding: 7px 16px; font-size: .8rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 100%; }

/* Logo */
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo__img { height: 64px; width: auto; object-fit: contain; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__text { gap: 1px; }
.site-logo__name { font-family: var(--font-disp); font-size: 1.15rem; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.site-logo__sub  { font-size: .75rem; font-weight: 400; color: var(--blue); letter-spacing: 0; white-space: nowrap; }

/* Desktop nav */
.site-nav { display: flex; align-items: center; gap: 2px; height: 100%; }
.site-nav__item { position: relative; height: 100%; display: flex; align-items: center; }
.site-nav__link {
  position: relative;
  display: flex; align-items: center; gap: 5px; height: 100%;
  padding: 0 14px; color: var(--gray-700);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  transition: color var(--transition); white-space: nowrap;
}
.site-nav__link:hover, .site-nav__link.active { color: var(--navy); }
.site-nav__link::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: var(--blue); transition: all var(--transition);
}
.site-nav__link:hover::after { left: 14px; right: 14px; }
.site-nav__link svg { width: 12px; height: 12px; opacity: .6; transition: transform var(--transition); }
.site-nav__item:hover .site-nav__link svg { transform: rotate(180deg); opacity: 1; }

/* Mega menu */
.mega-menu {
  position: fixed; left: 0; right: 0; top: var(--header-h, 64px);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  pointer-events: none;
  z-index: 900;
}
.site-nav__item--mega:hover .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: all; }

.mega-menu__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 32px 24px 36px;
  display: flex; flex-direction: column; gap: 0;
}

/* Brand section */
.mega-section { padding: 20px 0; }
.mega-section + .mega-divider + .mega-section { padding-top: 20px; }
.mega-section__brand {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gray-400);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

/* Groups row */
.mega-section { display: flex; flex-wrap: wrap; gap: 0; align-items: flex-start; }
.mega-section__brand { flex: 0 0 140px; margin-right: 0; padding-right: 24px; border-bottom: none; border-right: 1px solid var(--gray-200); margin-right: 32px; padding-bottom: 0; line-height: 1.4; }
.mega-group { flex: 0 0 160px; margin-bottom: 20px; padding-right: 16px; }
.mega-group__heading {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--navy); margin-bottom: 8px; text-decoration: none;
  transition: color var(--transition);
}
.mega-group__heading:hover { color: var(--blue); }
.mega-group__links { display: flex; flex-direction: column; gap: 0; }
.mega-group__links a {
  font-size: .78rem; color: var(--gray-500);
  text-decoration: none; padding: 3px 0;
  transition: color var(--transition);
}
.mega-group__links a:hover { color: var(--navy); }

/* Divider between TOTO and ARISTON */
.mega-divider { height: 1px; background: var(--gray-200); margin: 0; }

.mega-section--ariston .mega-group { flex: 0 0 220px; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Search wrapper + live dropdown */
.header-search-wrap { position: relative; }
.search-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 1001; display: none; overflow: hidden; }
.search-dropdown.open { display: block; }
.search-dropdown__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.search-dropdown__item:last-of-type { border-bottom: none; }
.search-dropdown__item:hover, .search-dropdown__item--active { background: var(--gray-50); }
.search-dropdown__item img, .search-dropdown__img-ph { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: var(--gray-100); }
.search-dropdown__info { flex: 1; min-width: 0; }
.search-dropdown__name { display: block; font-size: .82rem; font-weight: 500; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown__code { display: block; font-size: .72rem; color: var(--gray-500); margin-top: 1px; font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.search-dropdown__price { display: block; font-size: .75rem; font-weight: 600; color: var(--blue); margin-top: 3px; }
.search-dropdown__more { display: block; padding: 10px 14px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--blue); border-top: 1px solid var(--gray-100); transition: background var(--transition); }
.search-dropdown__more:hover { background: var(--gray-50); }
.search-dropdown__empty { padding: 20px 14px; text-align: center; font-size: .82rem; color: var(--gray-400); }
.header-search { display: flex; align-items: center; gap: 0; background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 6px; overflow: hidden; transition: all var(--transition); }
.header-search:focus-within { background: var(--white); border-color: var(--blue); }
.header-search input { background: transparent; border: none; outline: none; color: var(--gray-700); font-size: .82rem; padding: 8px 12px; width: 140px; }
.header-search input::placeholder { color: var(--gray-400); }
.header-search button { background: transparent; border: none; padding: 8px 10px; color: var(--gray-500); display: flex; align-items: center; transition: color var(--transition); }
.header-search button:hover { color: var(--blue); }
.header-search button svg { width: 16px; height: 16px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; background: transparent; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-900); border-radius: 2px; transition: all 300ms ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed; inset: 0; z-index: 999;
  background: var(--dark);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 24px) 24px 40px;
  transform: translateX(100%); transition: transform 380ms cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__link { display: block; color: rgba(255,255,255,.85); font-size: 1.1rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); transition: color var(--transition); }
.mobile-nav__link:hover { color: var(--white); }
.mobile-nav__sub { padding-left: 16px; }
.mobile-nav__sub a { display: block; color: rgba(255,255,255,.55); font-size: .9rem; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); transition: color var(--transition); }
.mobile-nav__sub a:hover { color: rgba(255,255,255,.9); }
.mobile-nav__search { margin-top: 28px; }
.mobile-nav__search input { width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 12px 16px; color: var(--white); font-size: .95rem; outline: none; }
.mobile-nav__search input::placeholder { color: rgba(255,255,255,.35); }
.mobile-nav__group { margin-bottom: 4px; }
.mobile-nav__toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: none; color: rgba(255,255,255,.85); font-size: 1.1rem; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; }
.mobile-nav__toggle svg { width: 16px; height: 16px; transition: transform 300ms; }
.mobile-nav__group.open .mobile-nav__toggle svg { transform: rotate(180deg); }
.mobile-nav__group.open .mobile-nav__sub { display: block; }
.mobile-nav__sub { display: none; }

/* ── Hero Carousel — Split layout, smooth slide transition ───── */
.hero { background: var(--dark); position: relative; }

/* Track clips the sliding strip */
.hero__track {
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  min-height: 460px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

/* Strip — JS sets width to n×100% */
.hero__slides {
  display: flex;
  height: 100%;
  transition: transform 750ms cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* Each slide — JS sets width to 100%/n */
.hero__slide {
  flex-shrink: 0;
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 460px;
  overflow: hidden;
}

/* Gradient overlay cho text dễ đọc */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.68) 35%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.05) 100%);
  z-index: 1;
}
/* Slide chỉ có ảnh — không phủ màu */
.hero__slide--img-only::after { display: none; }

.hero__text-col {
  position: relative;
  z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  padding: 64px 48px 64px clamp(32px, 4vw, 72px);
  width: 52%;
  height: 100%;
  box-sizing: border-box;
}

/* Image full-bleed */
.hero__img-col {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__img-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 750ms cubic-bezier(0.65, 0, 0.35, 1);
}

.hero__eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.hero__title { font-family: var(--font-disp); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 600; color: var(--white); line-height: 1.1; }
.hero__sub { font-size: .95rem; color: rgba(255,255,255,.6); line-height: 1.7; max-width: 420px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

.hero__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,.07);
}
.hero__dots { display: flex; gap: 8px; position: absolute; bottom: 32px; left: clamp(32px, 4vw, 72px); z-index: 10; }
.hero__dot { width: 28px; height: 5px; background: rgba(255,255,255,.2); border-radius: 2px; cursor: pointer; transition: all var(--transition); border: none; }
.hero__dot.active { background: var(--white); width: 48px; }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow { width: 36px; height: 36px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all var(--transition); }
.hero__arrow:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); }
.hero__arrow svg { width: 16px; height: 16px; }
.hero__scroll-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: color var(--transition); padding: 4px 0; }
.hero__scroll-btn:hover { color: var(--white); }
.hero__scroll-btn svg { animation: bounce-down 1.6s ease-in-out infinite; }
@keyframes bounce-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 768px) {
  .hero__track, .hero__slide { height: auto; min-height: clamp(220px, 56vw, 480px); }
  .hero__text-col { width: 75%; padding: 48px 24px; border-right: none; }
}

/* ── Category Grid ──────────────────────────────────────────── */
.cat-grid-scroll { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; scroll-snap-type: x proximity; will-change: scroll-position; }
.cat-grid-scroll::-webkit-scrollbar { display: none; }
.cat-grid { display: flex; gap: 16px; padding: 10px 2px; }
@media (max-width: 600px) { .cat-grid { gap: 12px; } }

.cat-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; cursor: pointer; flex: 0 0 calc((100% - 5 * 16px) / 6.5); min-width: 120px; transition: transform 350ms ease, box-shadow 350ms ease; scroll-snap-align: start; }
.cat-card:hover { transform: scale(1.06); box-shadow: 0 20px 48px rgba(0,0,0,.28); z-index: 1; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.cat-card:hover img { transform: scale(1.05); }
.cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,15,30,.85) 0%, rgba(10,15,30,.1) 60%); transition: background var(--transition); }
.cat-card:hover .cat-card__overlay { background: linear-gradient(to top, rgba(23,94,150,.8) 0%, rgba(10,15,30,.15) 60%); }
.cat-card__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 16px; }
.cat-card__count { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.cat-card__name { font-family: var(--font-disp); font-size: 1.05rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.cat-card__arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .72rem; font-weight: 600; color: rgba(255,255,255,.7); letter-spacing: .06em; text-transform: uppercase; transition: gap var(--transition); }
.cat-card:hover .cat-card__arrow { gap: 10px; color: var(--white); }

/* ── Product Grid & Cards ───────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.product-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-50); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--blue); color: var(--white); font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-card__code { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); }
.product-card__name { font-size: .9rem; font-weight: 600; color: var(--gray-900); line-height: 1.35; flex: 1; }
.product-card__code { font-size: .78rem; font-style: italic; color: var(--gray-400); margin-top: 2px; margin-bottom: 6px; }
.product-card__price { font-size: .95rem; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.product-card__price--contact { color: var(--gray-400); font-weight: 500; font-size: .82rem; }
.product-card__footer { padding: 0 16px 16px; }
.product-card__footer .btn { width: 100%; }

/* ── Product Detail ─────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; padding: 60px 0; }
.gallery { display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 24px); }
.gallery__main { aspect-ratio: 1; background: var(--gray-50); border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 32px; transition: transform 400ms ease; }
.gallery__main:hover img { transform: scale(1.05); }
.gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery__thumb { width: 72px; height: 72px; border-radius: 8px; border: 1px solid var(--gray-200); overflow: hidden; cursor: pointer; background: var(--gray-50); transition: border-color var(--transition); flex-shrink: 0; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.gallery__thumb.active, .gallery__thumb:hover { border-color: var(--blue); }

.product-info { display: flex; flex-direction: column; gap: 24px; }
.product-info__breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--gray-400); flex-wrap: wrap; }
.product-info__breadcrumb a:hover { color: var(--blue); }
.product-info__breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }
.product-info__cat { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.product-info__title { font-family: var(--font-disp); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--gray-900); line-height: 1.15; }
.product-info__price { font-size: 1.6rem; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.product-info__price--contact { font-size: 1.1rem; font-weight: 500; color: var(--gray-500); }
.product-info__short { font-size: .9rem; color: var(--gray-600); line-height: 1.7; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.product-info__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.product-info__cta .btn { flex: 1; min-width: 140px; justify-content: center; }
.product-info__contact { display: flex; align-items: center; gap: 10px; background: var(--gray-50); border-radius: var(--radius); padding: 14px 18px; }
.product-info__contact svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.product-info__contact span { font-size: .82rem; color: var(--gray-600); }
.product-info__contact a { font-weight: 700; color: var(--gray-900); }

/* Tabs */
.tabs { border-bottom: 1px solid var(--gray-200); display: flex; gap: 0; }
.tab-btn { padding: 10px 20px; font-size: .82rem; font-weight: 600; color: var(--gray-400); background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: all var(--transition); letter-spacing: .03em; }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }
.tab-btn:hover:not(.active) { color: var(--gray-900); }
.tab-panel { display: none; padding: 24px 0; font-size: .9rem; color: var(--gray-600); line-height: 1.8; }
.tab-panel.active { display: block; }
.tab-panel p { margin-bottom: 12px; }
.tab-panel strong { color: var(--gray-900); }

/* ── Category Page Layout ───────────────────────────────────── */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0 80px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.sidebar__block { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.sidebar__title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 14px; }
.cat-tree { display: flex; flex-direction: column; gap: 2px; }
.cat-tree__item a { display: block; padding: 7px 10px; border-radius: 6px; font-size: .85rem; color: var(--gray-600); font-weight: 500; transition: all var(--transition); }
.cat-tree__item a:hover, .cat-tree__item.active > a { background: var(--blue-light); color: var(--blue); font-weight: 600; }
.cat-tree__sub { padding-left: 16px; margin-top: 2px; display: none; }
.cat-tree__item.open .cat-tree__sub,
.cat-tree__item.active .cat-tree__sub { display: block; }
.cat-tree__sub a { font-size: .82rem; font-weight: 400; }
.sort-btn { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: .85rem; color: var(--gray-600); background: transparent; border: none; cursor: pointer; transition: all var(--transition); font-weight: 500; font-family: inherit; }
.sort-btn:hover, .sort-btn.active { background: var(--blue-light); color: var(--blue); font-weight: 600; }

.catalog-main__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.catalog-main__count { font-size: .82rem; color: var(--gray-400); }
.catalog-main__count strong { color: var(--gray-900); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 48px; }
.page-btn { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .85rem; font-weight: 600; border: 1px solid var(--gray-200); background: var(--white); color: var(--gray-600); cursor: pointer; transition: all var(--transition); }
.page-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.page-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.page-btn:disabled { opacity: .35; cursor: default; }
.page-ellipsis { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; color: var(--gray-400); font-size: .85rem; }

/* ── Search Page ────────────────────────────────────────────── */
.search-hero { background: linear-gradient(135deg, var(--dark) 0%, #0d1e3a 100%); padding: 72px 0 60px; text-align: center; }
.search-hero__inner { max-width: 700px; margin: 0 auto; }
.search-hero__title { font-family: var(--font-disp); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; color: var(--white); margin-bottom: 12px; }
.search-hero__sub { font-size: .85rem; color: rgba(255,255,255,.4); margin-bottom: 36px; letter-spacing: .04em; }
.search-bar { display: flex; align-items: center; background: var(--white); border-radius: 50px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,.35); max-width: 660px; margin: 0 auto; padding: 5px 5px 5px 20px; gap: 0; }
.search-bar__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--gray-400); }
.search-bar input { flex: 1; padding: 13px 12px; font-size: .95rem; border: none; outline: none; background: transparent; color: var(--gray-900); min-width: 0; }
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar button { padding: 12px 26px; background: var(--blue); color: var(--white); border: none; font-size: .875rem; font-weight: 600; border-radius: 50px; cursor: pointer; transition: background var(--transition); white-space: nowrap; flex-shrink: 0; }
.search-bar button:hover { background: var(--blue-hover); }
/* Quick-search tags */
.search-hero__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.search-hero__tags-label { font-size: .75rem; color: rgba(255,255,255,.35); letter-spacing: .08em; text-transform: uppercase; }
.search-tag { display: inline-block; padding: 5px 14px; border-radius: 50px; border: 1px solid rgba(255,255,255,.15); font-size: .78rem; color: rgba(255,255,255,.65); background: rgba(255,255,255,.05); transition: all var(--transition); }
.search-tag:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: var(--white); }
#search-status { margin-top: 18px; font-size: .82rem; color: rgba(255,255,255,.4); }
/* Empty / init states */
.search-empty { text-align: center; padding: 80px 20px; color: var(--gray-400); }
.search-empty svg { width: 48px; height: 48px; margin: 0 auto 16px; opacity: .3; }

/* ── Page Banner ────────────────────────────────────────────── */
.page-banner { background: var(--dark); padding: 48px 0; margin-bottom: 0; background-size: cover; background-position: center; position: relative; }
.page-banner--has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.72) 45%, rgba(0,0,0,.35)); }
.page-banner .container { position: relative; z-index: 1; }
.page-banner__eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.page-banner__title { font-family: var(--font-disp); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; color: var(--white); }

/* ── Loading / Empty States ─────────────────────────────────── */
.loading-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.skeleton { background: var(--gray-100); border-radius: var(--radius-lg); animation: pulse 1.5s ease-in-out infinite; }
.skeleton--card { aspect-ratio: .9; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.empty-state { text-align: center; padding: 80px 24px; }
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; opacity: .25; }
.empty-state p { color: var(--gray-400); font-size: .9rem; margin-top: 8px; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox__img { max-width: 90vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox__close { position: absolute; top: 20px; right: 24px; color: var(--white); font-size: 1.8rem; cursor: pointer; background: rgba(255,255,255,.1); border: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1); border: none; color: var(--white); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background var(--transition); }
.lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

/* ── About / Features Strip ─────────────────────────────────── */
.features { background: var(--dark); padding: 64px 0; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.feature { text-align: center; color: rgba(255,255,255,.75); }
.feature__icon { width: 48px; height: 48px; margin: 0 auto 16px; background: rgba(23,94,150,.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.feature__icon svg { width: 24px; height: 24px; color: #5aade8; }
.feature__title { font-size: .95rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.feature__desc { font-size: .8rem; line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: #f4f6f8; border-top: 1px solid var(--gray-200); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--gray-200); }
.footer-col__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-col__logo img { height: 60px; }
.footer-col__desc { font-size: .82rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 20px; }
.footer-col__social { display: flex; gap: 8px; }
.footer-col__social a { width: 34px; height: 34px; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: all var(--transition); }
.footer-col__social a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }
.footer-col__social svg { width: 16px; height: 16px; }
.footer-col__title { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); margin-bottom: 16px; }
.footer-col__links { display: flex; flex-direction: column; gap: 8px; }
.footer-col__links a { font-size: .82rem; color: var(--gray-600); transition: color var(--transition); }
.footer-col__links a:hover { color: var(--gray-900); }
.footer-col__contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 10px; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .82rem; color: var(--gray-600); line-height: 1.6; }
.footer-contact-item a { color: var(--gray-900); font-weight: 500; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.footer-bottom__copy { font-size: .78rem; color: var(--gray-400); }
.footer-bottom__links { display: flex; gap: 24px; }
.footer-bottom__links a { font-size: .78rem; color: var(--gray-400); transition: color var(--transition); }
.footer-bottom__links a:hover { color: var(--gray-700); }

/* ── Contact Widget ─────────────────────────────────────────── */
.contact-widget {
  position: fixed; right: 20px; bottom: 80px; z-index: 900;
  display: flex; flex-direction: column; gap: 10px;
}
.contact-widget__btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.28);
  transition: transform .18s, box-shadow .18s;
  position: relative;
}
.contact-widget__btn:hover { transform: scale(1.12); box-shadow: 0 6px 18px rgba(0,0,0,.32); color: #fff; }
.contact-widget__btn svg { width: 24px; height: 24px; }
.contact-widget__btn--zalo      { background: #0068ff; }
.contact-widget__btn--messenger { background: #0084ff; }
.contact-widget__btn--hotline   { background: #22c55e; }
.contact-widget__tooltip {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%);
  background: rgba(30,30,30,.82); color: #fff;
  font-size: .72rem; white-space: nowrap;
  padding: 4px 10px; border-radius: 5px;
  pointer-events: none; opacity: 0; transition: opacity .18s;
}
.contact-widget__btn:hover .contact-widget__tooltip { opacity: 1; }

/* ── Utility ────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.price-tag { display: inline-block; font-size: .75rem; font-weight: 600; background: var(--blue-light); color: var(--blue); padding: 3px 10px; border-radius: 20px; }

/* ── Responsive ─────────────────────────────────────────────── */

/* ≤1199px — tablet landscape / small desktop */
@media (max-width: 1199px) {
  /* Header */
  .site-nav, .header-search { display: none; }
  .hamburger { display: flex; }

  /* Catalog */
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .catalog-main__header { flex-wrap: wrap; gap: 8px; }

  /* Footer — 3 cols top (Logo | Sản phẩm | Thông tin), Liên hệ full-width bottom */
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 36px 28px; }
  .footer-grid > *:last-child { grid-column: 1 / -1; border-top: 1px solid var(--gray-200); padding-top: 28px; }
  .footer-grid > *:last-child .footer-col__contact { flex-direction: row; flex-wrap: wrap; gap: 12px 40px; }

  /* Features */
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  /* About section (homepage 2-col grid) */
  .about-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* ≤900px — tablet portrait */
@media (max-width: 900px) {
  /* Product detail */
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .gallery { position: static; }
  .gallery__main { max-height: 380px; }

  /* Hero text slightly smaller */
  .hero__title { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .hero__text-col { padding: 48px 32px; }
}

/* ≤768px — mobile landscape */
@media (max-width: 768px) {
  /* Spacing */
  .section { padding: 48px 0; }
  .section--sm { padding: 32px 0; }

  /* Hero — full-width text, hide bg image on text slides, keep on img-only */
  .hero__track, .hero__slide { height: auto; min-height: clamp(220px, 56vw, 480px); }
  .hero__text-col { width: 100%; }
  .hero__img-col { display: none !important; }
  .hero__slide--img-only .hero__img-col { display: block !important; }
  .hero__text-col { padding: 40px 24px; border-right: none; gap: 16px; }
  .hero__scroll-btn { display: none; }
  .hero__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__footer { padding: 12px 24px; }

  /* Products */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .loading-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card__body { padding: 12px; gap: 4px; }
  .product-card__footer { padding: 0 12px 12px; }

  /* Features */
  .features { padding: 48px 0; }
  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .feature { text-align: left; display: flex; align-items: flex-start; gap: 14px; }
  .feature__icon { flex-shrink: 0; margin: 0; }

  /* Category grid */
  .section-head { margin-bottom: 28px; }

  /* Footer — logo & contact full-width, middle 2 cols side-by-side */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 36px; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }
  .footer-grid > *:last-child  { grid-column: 1 / -1; }
  .footer-col__desc { margin-bottom: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-bottom__links { justify-content: center; }
  .site-footer { padding-top: 40px; }

  /* Product detail gallery */
  .gallery__thumbs { gap: 8px; }
  .gallery__thumb { width: 60px; height: 60px; }
  .product-info__title { font-size: clamp(1.6rem, 5vw, 2rem); }
  .product-info__cta { flex-direction: column; }
  .product-info__cta .btn { width: 100%; }

  /* Catalog page sidebar — show as horizontal pill filters on mobile */
  .sidebar__block:first-child { overflow-x: auto; }
  .cat-tree { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .cat-tree__item a { padding: 6px 14px; border: 1px solid var(--gray-200); border-radius: 20px; white-space: nowrap; }
  .cat-tree__item.active > a { background: var(--blue); color: var(--white); border-color: var(--blue); }
  .cat-tree__sub { display: none !important; }

  /* Page banner */
  .page-banner { padding: 32px 0; }
  .page-banner__title { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Search */
  .search-hero { padding: 32px 0 28px; }
  .search-bar input { font-size: .9rem; padding: 13px 16px; }

  /* Tabs */
  .tab-btn { padding: 10px 14px; font-size: .78rem; }
}

/* ≤480px — mobile portrait */
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }

  /* Typography scale down */
  .section-head__title { font-size: 1.5rem; }
  .hero__title { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  /* Header logo text hide on very small */
  .site-logo__sub { display: none; }

  /* Features 1 per row */
  .features__grid { grid-template-columns: 1fr; gap: 20px; }
  .feature { flex-direction: row; text-align: left; }

  /* Product cards */
  .product-grid { gap: 10px; }
  .product-card__name { font-size: .82rem; }
  .product-card__price { font-size: .85rem; }
  .product-card__img img { padding: 0; }

  /* Buttons */
  .btn--lg { padding: 11px 20px; font-size: .875rem; }
  .btn { font-size: .82rem; }

  /* Footer */
  .footer-col__social a { width: 30px; height: 30px; }

  /* About stats grid */
  .about-stats { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }

  /* Pagination */
  .page-btn { width: 32px; height: 32px; font-size: .8rem; }
}

/* ── Page entry animation ───────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 500ms ease forwards; }
.fade-up--1 { animation-delay: 80ms; opacity: 0; }
.fade-up--2 { animation-delay: 160ms; opacity: 0; }
.fade-up--3 { animation-delay: 240ms; opacity: 0; }
.fade-up--4 { animation-delay: 320ms; opacity: 0; }
