/* ============================================================
   Trang chủ Hàn Cắt Mạnh Hùng — child theme vinasite-hancat
   Bảng màu kế thừa theme: nâu #4a2c17 + vàng đồng #d99a1c
   ============================================================ */
.hc-home{
  --hc-primary: var(--dragon-primary, #4a2c17);
  --hc-primary-dark: var(--dragon-primary-dark, #35200f);
  --hc-accent: var(--dragon-accent, #d99a1c);
  --hc-accent-hover: var(--dragon-accent-hover, #b97f12);
  --hc-ink: #1c1a17;
  --hc-muted: #6b6257;
  --hc-line: #ece7df;
  --hc-bg-alt: #faf7f2;
  --hc-radius: 16px;
  --hc-shadow: 0 6px 24px rgba(53,32,15,.08);
  color: var(--hc-ink);
}
.hc-home *{ box-sizing: border-box; }
.hc-home img{ max-width: 100%; height: auto; }
.hc-home .dragon-container{ width: min(1200px, 92vw); margin-inline: auto; }

/* ---------- Buttons ---------- */
.hc-btn{
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 700;
  font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.hc-btn:hover{ transform: translateY(-2px); }
.hc-btn--primary{ background: var(--hc-accent); color: #2a1a0b; box-shadow: 0 8px 20px rgba(217,154,28,.35); }
.hc-btn--primary:hover{ background: var(--hc-accent-hover); color: #2a1a0b; }
.hc-btn--ghost{ background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hc-btn--ghost:hover{ background: rgba(255,255,255,.12); color:#fff; }
.hc-btn--light{ background:#fff; color: var(--hc-primary); box-shadow: var(--hc-shadow); white-space: nowrap; }
.hc-btn--light:hover{ background:#fff8ec; }

/* ---------- Hero ---------- */
.hc-hero{
  position: relative; overflow: hidden; color:#fff;
  background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-primary-dark) 62%, #00294a 100%);
}
.hc-hero, .hc-hero *{ }
.hc-hero__content, .hc-hero__desc, .hc-hero__points li{ color:#fff; }
.hc-hero__deco{
  position:absolute; inset:0; pointer-events:none; opacity:.6;
  background:
    radial-gradient(520px 320px at 88% -10%, rgba(217,154,28,.28), transparent 60%),
    radial-gradient(420px 300px at -8% 110%, rgba(217,154,28,.16), transparent 60%);
}
.hc-hero__inner{
  position: relative; display: grid; grid-template-columns: 1.35fr .9fr; gap: 2.5rem;
  align-items: center; padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}
.hc-eyebrow{
  display:inline-block; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  font-size:.8rem; color: var(--hc-accent); margin-bottom:.9rem;
}
.hc-hero__title{ font-size: clamp(1.9rem, 3.4vw, 3rem); line-height:1.12; margin:0 0 1rem; font-weight:800; color:#fff !important; }
.hc-hero__title strong{ color: var(--hc-accent) !important; }
.hc-eyebrow{ color: var(--hc-accent) !important; }
.hc-hero__desc{ font-size: clamp(1rem,1.3vw,1.15rem); line-height:1.6; color: rgba(255,255,255,.86); margin:0 0 1.6rem; max-width: 42ch; }
.hc-hero__cta{ display:flex; flex-wrap:wrap; gap:.9rem; margin-bottom:1.6rem; }
.hc-hero__points{ list-style:none; margin:0; padding:0; display:grid; gap:.55rem; }
.hc-hero__points li{ position:relative; padding-left:1.7rem; color:rgba(255,255,255,.9); font-size:.98rem; }
.hc-hero__points li::before{
  content:""; position:absolute; left:0; top:.15em; width:1.1rem; height:1.1rem; border-radius:50%;
  background: var(--hc-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/70% no-repeat;
}
.hc-hero__stats{
  display:grid; grid-template-columns: repeat(2,1fr); gap:1px; background: rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.16); border-radius: var(--hc-radius); overflow:hidden; backdrop-filter: blur(2px);
}
.hc-stat{ background: rgba(0,0,0,.16); padding:1.4rem 1.2rem; text-align:center; }
.hc-stat b{ display:block; font-size:1.7rem; line-height:1; color:#fff; }
.hc-stat span{ display:block; margin-top:.4rem; font-size:.85rem; color:rgba(255,255,255,.8); }

/* ---------- Trust strip ---------- */
.hc-trust{ background:#fff; border-bottom:1px solid var(--hc-line); }
.hc-trust__grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:1.2rem; padding:1.6rem 0; }
.hc-trust__item{ display:flex; gap:.85rem; align-items:center; }
.hc-trust__ico{
  flex:none; width:46px; height:46px; border-radius:12px; display:grid; place-items:center;
  background: #fbf1dc; color: var(--hc-accent-hover);
}
.hc-trust__ico svg{ width:24px; height:24px; }
.hc-trust__item strong{ display:block; font-size:.98rem; color:var(--hc-ink); }
.hc-trust__item span{ display:block; font-size:.82rem; color:var(--hc-muted); }

/* ---------- Sections ---------- */
.hc-section{ padding: clamp(2.2rem,4vw,3.4rem) 0; }
.hc-section--alt{ background: var(--hc-bg-alt); }
.hc-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:1.6rem; flex-wrap:wrap; }
.hc-head__title{
  position:relative; font-size: clamp(1.35rem,2.4vw,1.9rem); font-weight:800; margin:0; padding-left:.85rem; color:var(--hc-primary);
}
.hc-head__title::before{ content:""; position:absolute; left:0; top:.15em; bottom:.15em; width:5px; border-radius:3px; background: var(--hc-accent); }
.hc-head__sub{ margin:.3rem 0 0; color:var(--hc-muted); width:100%; padding-left:.85rem; font-size:.95rem; }
.hc-head__more{ color:var(--hc-accent-hover); font-weight:700; text-decoration:none; white-space:nowrap; }
.hc-head__more:hover{ text-decoration:underline; }

/* ---------- Category grid ---------- */
.hc-cats__grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:1.1rem; }
.hc-cat{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:.6rem;
  padding:1.3rem 1rem; background:#fff; border:1px solid var(--hc-line); border-radius: var(--hc-radius);
  text-decoration:none; color:var(--hc-ink); box-shadow: var(--hc-shadow); transition: transform .15s ease, border-color .2s ease;
}
.hc-cat:hover{ transform: translateY(-4px); border-color: var(--hc-accent); }
.hc-cat__thumb{ width:96px; height:96px; display:grid; place-items:center; }
.hc-cat__thumb img{ width:96px; height:96px; object-fit:contain; }
.hc-cat__ph{ width:72px; height:72px; border-radius:12px; background: linear-gradient(135deg,#e8f2fc,#d7e9fb); }
.hc-cat__icon{ width:78px; height:78px; border-radius:20px; display:grid; place-items:center; background: linear-gradient(135deg,#e8f2fc,#d3e6fb); color: var(--hc-primary); transition: background .2s ease; }
.hc-cat__icon svg{ width:42px; height:42px; }
.hc-cat:hover .hc-cat__icon{ background: linear-gradient(135deg,#dcecfc,#c3ddf8); }
.hc-cat__name{ font-weight:700; font-size:1rem; line-height:1.25; }
.hc-cat__count{ font-size:.82rem; color:var(--hc-muted); }

/* ---------- Lightweight product grid ---------- */
.hc-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:1.1rem; }
.hc-card{
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--hc-line);
  border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding:.9rem;
  text-decoration:none; color:var(--hc-ink); transition: transform .15s ease, border-color .2s ease;
}
.hc-card:hover{ transform: translateY(-4px); border-color: var(--hc-accent); }
.hc-card__img{ display:block; margin-bottom:.7rem; }
.hc-card__img img{ width:100%; aspect-ratio:1/1; object-fit:contain; background:#fff; border-radius:10px; }
.hc-card__ph{ display:block; width:100%; aspect-ratio:1/1; border-radius:10px; background: linear-gradient(135deg,#fbf1dc,#f3e6cf); }
.hc-card__title{ font-size:.95rem; line-height:1.35; font-weight:600; color:var(--hc-ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em; }
.hc-card__price{ margin-top:.5rem; color:var(--hc-primary); font-weight:800; }
.hc-card__price del{ color:var(--hc-muted); font-weight:500; margin-right:.35rem; }
.hc-card__price ins{ text-decoration:none; }

/* ---------- CTA ---------- */
.hc-cta{ background: linear-gradient(135deg, var(--hc-primary), var(--hc-primary-dark)); color:#fff; }
.hc-cta__inner{ display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding: clamp(2rem,4vw,3rem) 0; flex-wrap:wrap; }
.hc-cta__title{ margin:0 0 .4rem; font-size: clamp(1.3rem,2.2vw,1.8rem); font-weight:800; }
.hc-cta__desc{ margin:0; color:rgba(255,255,255,.85); max-width:60ch; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hc-hero__inner{ grid-template-columns: 1fr; }
  .hc-hero__stats{ max-width: 420px; }
  .hc-trust__grid{ grid-template-columns: repeat(2,1fr); }
  .hc-cats__grid{ grid-template-columns: repeat(3,1fr); }
  .hc-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px){
  .hc-cats__grid{ grid-template-columns: repeat(2,1fr); }
  .hc-grid{ grid-template-columns: repeat(2,1fr); }
  .hc-trust__grid{ grid-template-columns: 1fr; }
  .hc-cta__inner{ flex-direction:column; align-items:flex-start; }
}
