/*
 * home.mobile.css - Storefront Home Page (mobile viewport <1024px)
 * Scope: home - class prefix: h-
 * Loaded via: media="(max-width:1023.98px)"
 */

/* Page wrapper */
.h-main {
  background: #F4F5F7;
  padding-bottom: 8px;
}

/* Container */
.h-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 14px;
}

/* Shared buttons */
.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.h-btn--lg  { height: 52px; padding: 14px 26px; font-size: 15px; gap: 10px; }
.h-btn--xl  { height: 58px; padding: 18px 32px; font-size: 16px; gap: 10px; }
.h-btn--full { width: 100%; }

.h-btn--accent {
  background: var(--color-accent);
  color: #1F2937;
  border-color: var(--color-accent);
  box-shadow: 0 1px 2px rgba(245,158,11,.2), 0 4px 12px rgba(245,158,11,.25);
}
.h-btn--accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.h-btn--zalo {
  background: var(--color-zalo);
  color: #fff;
  border-color: var(--color-zalo);
}
.h-btn--zalo:hover { background: #0055cc; }

/* Shared section header */
.h-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.h-section-header--center {
  text-align: center;
  justify-content: center;
}
.h-section-header--center > div {
  flex: 1;
}
.h-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
}
.h-section-sub {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  margin-bottom: 0;
  line-height: 1.5;
}
.h-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.h-section-link:hover { text-decoration: underline; }

/* ── Hero (Commerce Product Hero) — single column ──────────────────── */
.h-hero {
  background: #FFFFFF;
  padding: 20px 0;
  position: relative;
  overflow-x: hidden;
}

.h-hero__inner {
  display: flex;
  flex-direction: column;
}

.h-hero__main {
  display: flex;
  flex-direction: column;
}

/* Eyebrow */
.h-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: #FFFBEB;
  border: 1px solid #FDE7B0;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 16px;
  width: fit-content;
}

/* Title */
.h-hero__title {
  font-size: 35px;
  font-weight: 800;
  color: #10212B;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0 0 10px;
}
.h-hero__title-em {
  color: #C8102E;
}

/* Lede */
.h-hero__lede {
  font-size: 15px;
  color: #5B6673;
  line-height: 1.55;
  margin: 0 0 14px;
}

/* Actions — full width stacked */
.h-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.h-hero__action {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 13px;
}
/* CTA chính — nút đỏ */
.h-hero__action--call {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 1px 2px rgba(200,16,46,.2), 0 6px 16px rgba(200,16,46,.26);
}
.h-hero__action--call:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Trust row */
.h-hero__trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.h-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #5B6673;
}
.h-hero__trust-item strong {
  color: #10212B;
}

/* Aside — product gallery */
.h-hero__aside {
  min-width: 0;
}
.h-hero__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.h-hero__gallery-main {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8EDF2;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(16,33,43,.08);
  overflow: hidden;
}
.h-hero__gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.h-hero__gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.h-hero__gallery-thumb {
  display: block;
  background: #FFFFFF;
  border: 1px solid #E8EDF2;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(16,33,43,.05);
  overflow: hidden;
}
.h-hero__gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Gallery interactive states */
.h-hero__gallery-main img {
  transition: opacity .35s ease;
}
.h-hero__gallery-main.is-fading img {
  opacity: 0;
}
.h-hero__gallery-thumb {
  cursor: pointer;
}
.h-hero__gallery-thumb.is-active {
  border-color: #C8102E;
  box-shadow: 0 0 0 2px rgba(200,16,46,.18);
}

/* Industries */
.h-industries {
  background: transparent;
  padding: 28px 0 16px;
}

.h-industries__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.h-industry-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
}
.h-industry-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow);
}

.h-industry-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.h-industry-card__body { flex: 1; min-width: 0; }
.h-industry-card__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.h-industry-card__desc {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.5;
  display: none;
}
.h-industry-card__link {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  align-items: center;
  gap: 4px;
}

/* Featured products */
.h-products {
  background: transparent;
  padding: 0 0 16px;
}

.h-products__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.h-products__tabs::-webkit-scrollbar { display: none; }

.h-products__tab {
  padding: 6px 12px;
  height: auto;
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.h-products__tab.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.h-products__tab:hover:not(.is-active) { border-color: var(--color-primary); color: var(--color-primary); }

.h-products__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.h-products__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-text-muted, #6b7280);
  font-size: 13px;
  margin: 0;
}

/* Process */
.h-process {
  background: transparent;
  padding: 0 0 16px;
  position: relative;
}

.h-process .h-container {
  background: transparent;
  border: none;
  padding-top: 8px;
  padding-bottom: 8px;
}

.h-process__bg-dots {
  display: none;
}

.h-process__header {
  margin-bottom: 18px;
}

.h-process__eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.h-process__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 0;
  color: var(--color-text);
}

.h-process__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* Process connector line - hidden (higher specificity avoids !important) */
.h-process__grid .h-process__line { display: none; }

.h-process__step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.h-process__step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FDE8EC;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.h-process__step-icon svg { color: var(--color-primary); }

.h-process__step-label {
  font-size: 10px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
}

.h-process__step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin: 2px 0 0;
  line-height: 1.3;
}

.h-process__step-desc {
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 4px 0 0;
  line-height: 1.5;
}

/* Why us */
.h-why {
  background: transparent;
  padding: 0 0 16px;
}

.h-why .h-container {
  background: transparent;
  border: none;
  padding-top: 8px;
  padding-bottom: 8px;
}

.h-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.h-why-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.h-why-card__bg {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.h-why-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.h-why-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
}

.h-why-card__desc {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Stats row */
.h-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.h-stat {
  background: var(--color-bg-warm);
  padding: 14px 8px;
  text-align: center;
}

.h-stat__n {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}

.h-stat__l {
  font-size: 10px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Big CTA */
.h-cta {
  background: transparent;
  padding: 0 0 16px;
  position: relative;
}

.h-cta__inner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-16);
  color: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.h-cta__main {
  display: flex;
  flex-direction: column;
  position: relative;
}

.h-cta__deco {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  opacity: 0.15;
  pointer-events: none;
}
.h-cta__deco::after {
  content: '';
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
}

.h-cta__eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.h-cta__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin: 0;
  color: #fff;
}

.h-cta__lede {
  font-size: 12px;
  opacity: 0.9;
  margin: 8px 0 0;
  line-height: 1.5;
  color: #fff;
}

.h-cta__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.h-cta__form {
  background: rgba(0,0,0,0.18);
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-cta__form-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.h-cta__form input,
.h-cta__form textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
}
.h-cta__form textarea {
  height: auto;
  padding: 12px 14px;
  resize: none;
}

/* Blog */
.h-blog {
  background: transparent;
  padding: 0 0 24px;
}

.h-blog__grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.h-blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  transition: all var(--transition);
}
.h-blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.h-blog-card__cover {
  width: 110px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-radius: 8px;
  overflow: hidden;
}
.h-blog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.h-blog-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}
.h-blog-card__badge--primary { background: #FDE8EC; color: var(--color-primary); }
.h-blog-card__badge--accent  { background: #FEF3C7; color: #92400E; }
.h-blog-card__badge--info    { background: var(--color-info-bg); color: var(--color-info); }

.h-blog-card__body {
  padding: 12px;
  flex: 1;
}

.h-blog-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 6px 0 0;
}

/* FAQ */
.h-faq { background: transparent; padding: 0 0 16px; }
.h-faq__list { display: flex; flex-direction: column; gap: 10px; }
.h-faq__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.h-faq__item[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.h-faq__q {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.45;
  color: var(--color-text);
  padding: 14px 44px 14px 16px;
  position: relative;
}
.h-faq__q::-webkit-details-marker { display: none; }
.h-faq__q::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--color-primary);
}
.h-faq__item[open] .h-faq__q::after { content: "\2212"; }
.h-faq__a { padding: 0 16px 16px; color: var(--color-text-muted); font-size: 14px; line-height: 1.65; }
.h-faq__a p { margin: 0; }
