﻿/* =========================================
   TiniPC - Main Stylesheet
   Brand color: #00a651
   ========================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #00a651;
  --green-dark: #007a3b;
  --green-light: #e6f7ee;
  --text: #1a1a2e;
  --text-muted: #666;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --border: #e8e8e8;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn--primary:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn--outline:hover { background: var(--green); color: #fff; }
.btn--white { background: #fff; color: var(--green); border-color: #fff; }
.btn--white:hover { background: var(--green-light); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn--lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 10px; }

/* ── SECTION HEADER ── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section-header--light h2 { color: #fff; }
.section-header--light p { color: rgba(255,255,255,.8); }

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__img-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.logo__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.logo__name { font-size: 1.3rem; font-weight: 700; color: var(--green); }
.logo__tagline { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav__link:hover, .nav__link--active { color: var(--green); background: var(--green-light); }
.nav__link--shopee {
  background: #ee4d2d;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
}
.nav__link--shopee:hover { background: #d73b1e; }

.shopee-icon { width: 16px; height: 16px; }

.header__phone {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--green);
  font-size: 0.9rem;
  white-space: nowrap;
}
.header__phone:hover { color: var(--green-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #f0fdf6 0%, #ffffff 50%, #f0f4ff 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.hero__title span { color: var(--green); }

.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__stats {
  display: flex;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.stat span { font-size: 0.8rem; color: var(--text-muted); }

/* Hero Graphic */
.hero__graphic {
  position: relative;
  height: 400px;
}
.hero__circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 0 20px rgba(0,166,81,.1), 0 0 0 40px rgba(0,166,81,.05);
}
.hero__circle small { font-size: 0.7rem; font-weight: 400; opacity: .8; }

.product-card-float {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}
.product-card-float span { font-size: 1.5rem; }
.product-card-float p { margin: 0; }
.product-card-float .price { color: var(--green); font-weight: 700; }

.product-card-float--1 { top: 30px; left: 0; animation-delay: 0s; }
.product-card-float--2 { top: 40%; right: 0; animation-delay: 1s; }
.product-card-float--3 { bottom: 30px; left: 20px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =========================================
   USP BAR
   ========================================= */
.usp-bar {
  background: var(--text);
  padding: 32px 0;
}
.usp-bar__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.usp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
}
.usp-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.usp-item strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.usp-item p { font-size: 0.78rem; color: rgba(255,255,255,.65); line-height: 1.4; }

/* =========================================
   PRODUCTS
   ========================================= */
.products {
  padding: 80px 0;
  background: var(--bg-light);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card--featured {
  border: 2px solid var(--green);
}
.product-card--featured::before {
  content: 'Phổ biến nhất';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 3px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-card__icon { font-size: 2.5rem; display:flex; align-items:center; justify-content:center; min-height:60px; }
.product-card__icon svg { width:68px; height:auto; }
.product-card__photo-wrap { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.product-card__photo { width: 100%; height: 100%; object-fit: cover; }
.product-card__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: #fff3cd;
  color: #856404;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.product-card__badge--hot { background: #fde8e8; color: #c0392b; }
.product-card__badge--new { background: var(--green-light); color: var(--green-dark); }
.product-card__badge--sale { background: #fff1ec; color: #ee4d2d; }
.product-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.product-card__desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.product-card__specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-card__specs span {
  font-size: 0.8rem;
  background: var(--bg-light);
  padding: 3px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  display: inline-block;
}
.product-card__brands { font-size: 0.78rem; color: var(--text-muted); font-style: italic; }
.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.price-label { font-size: 0.8rem; color: var(--text-muted); }
.price-value { font-size: 1.4rem; font-weight: 700; color: var(--green); }
.price-value--old { font-size: 1rem; font-weight: 500; color: var(--text-muted); text-decoration: line-through; }

.products__cta { text-align: center; margin-top: 40px; }

/* =========================================
   WHY US
   ========================================= */
.why-us {
  padding: 80px 0;
  background: linear-gradient(135deg, #00a651 0%, #007a3b 100%);
}
.why-us__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  transition: background .3s;
}
.why-card:hover { background: rgba(255,255,255,.18); }
.why-card__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  margin-bottom: 12px;
  line-height: 1;
}
.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: #fff; line-height: 1.6; }

/* =========================================
   REVIEWS
   ========================================= */
.reviews {
  padding: 80px 0;
  background: #fff;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow .3s;
}
.review-card:hover { box-shadow: var(--shadow); }
.review-card__stars { font-size: 1.1rem; margin-bottom: 12px; }
.review-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; font-style: italic; }
.review-card__author { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-card__author strong { display: block; font-size: 0.9rem; }
.review-card__author small { color: var(--text-muted); font-size: 0.8rem; }
.reviews__cta { text-align: center; margin-top: 32px; }

/* =========================================
   LATEST POSTS (Trang Chủ)
   ========================================= */
.latest-posts { background: #f8f9fa; padding-top: 80px; }
.latest-posts__card { display: flex; flex-direction: column; gap: 12px; }
.latest-posts__thumb { width: 100%; border-radius: 8px; }
.latest-posts__title { font-size: 1rem; font-weight: 700; }
.latest-posts__title a { color: var(--text); }
.latest-posts__excerpt { font-style: normal; }
.latest-posts__link { align-self: flex-start; font-size: .85rem; padding: 8px 16px; }

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  padding: 64px 0;
  background: linear-gradient(135deg, #1a1a2e, #2d2d54);
}
.cta-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-section__inner h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.cta-section__inner p { color: rgba(255,255,255,.7); font-size: 0.95rem; }
.cta-section__buttons { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #0d0d1a;
  color: rgba(255,255,255,.8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 20px 40px;
}
.footer__brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  margin-top: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.footer__links h4, .footer__contact h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.footer__links ul, .footer__contact ul { list-style: none; }
.footer__links li, .footer__contact li { margin-bottom: 10px; }
.footer__links a, .footer__contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer__links a:hover, .footer__contact a:hover { color: var(--green); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 0.82rem; color: rgba(255,255,255,.4); }
.footer__bottom a { color: var(--green); }

/* =========================================
   FLOATING BUTTONS
   ========================================= */
.fab {
  position: fixed;
  right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  z-index: 999;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.1); }
.fab--phone  { bottom: 24px;  background: var(--green); }
.fab--zalo   { bottom: 84px;  background: #0068ff; }
.fab--shopee { bottom: 144px; background: #ee4d2d; }

/* =========================================
   ĐẶT HÀNG PAGE
   ========================================= */
.dh-hero { background: linear-gradient(135deg,#f0fdf6,#e6f7ee); padding: 120px 0 60px; text-align: center; }
.dh-section { padding: 60px 0 80px; }
.dh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.dh-form-box { background:#fff; border-radius:20px; padding:32px; box-shadow:0 4px 20px rgba(0,0,0,.08); }
.dh-name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dh-input { width:100%; padding:11px 14px; border:1.5px solid #e8e8e8; border-radius:8px; font-family:inherit; font-size:.9rem; box-sizing:border-box; }
.dh-input:focus { outline: none; border-color: var(--green); }
.dh-label { display:block; font-weight:600; font-size:.88rem; margin-bottom:6px; }
.dh-shopee-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.dh-shopee-item { background:#fff; border:2px solid var(--border); border-radius:16px; padding:16px 20px; display:flex; align-items:center; justify-content:space-between; gap:16px; transition:border-color .2s,box-shadow .2s; text-decoration:none; color:inherit; }
.dh-shopee-item:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(0,166,81,.15); }
.dh-shopee-item__icon { font-size:1.8rem; flex-shrink:0; line-height:1; display:inline-flex; align-items:center; justify-content:center; width:2.2rem; height:2.2rem; align-self:center; font-variant-ligatures:none; font-feature-settings:"liga" 0,"calt" 0; vertical-align:middle; }
.dh-shopee-item__icon--svg svg { width:100%; height:100%; display:block; }
.dh-shopee-item__body { line-height:1.5; font-variant-ligatures:none; padding-top:2px; }
.dh-shopee-item__body { min-width:0; flex:1; }
.dh-shopee-item__title { font-weight:700; margin:0 0 3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dh-shopee-item__desc { font-size:.82rem; color:var(--text-muted); margin:0; }
.dh-shopee-item__arrow { pointer-events:none; font-size:.85rem; padding:6px 14px; flex-shrink:0; }
.dh-title { font-size:clamp(1.8rem,4vw,2.8rem); font-weight:800; margin-bottom:12px; }
.dh-subtitle { color:var(--text-muted); font-size:1.05rem; margin-bottom:0; }
.dh-section-title { font-size:1.4rem; font-weight:800; margin-bottom:8px; }
.dh-section-sub { color:var(--text-muted); font-size:.9rem; margin-bottom:20px; }
.dh-form-title { font-size:1.3rem; font-weight:800; margin-bottom:6px; }
.dh-form-sub { font-size:.88rem; color:var(--text-muted); margin-bottom:24px; }
.dh-form-row { margin-bottom:16px; }
.dh-help-box { background:var(--green-light); border-radius:12px; padding:16px 20px; }
.dh-help-box__title { color:var(--green-dark); font-weight:700; margin-bottom:4px; }
.dh-help-box__text { font-size:.88rem; color:var(--text-muted); margin-bottom:0; }
.dh-help-box__phone { color:var(--green); font-weight:700; text-decoration:none; }
.dh-error { display:none; background:#fee2e2; color:#dc2626; border-radius:8px; padding:12px 16px; margin-bottom:16px; font-size:.88rem; }
.dh-submit { width:100%; justify-content:center; }
.dh-note { font-size:.78rem; color:var(--text-muted); margin-top:10px; text-align:center; margin-bottom:0; }
.dh-success { display:none; text-align:center; padding:24px; }
.dh-success__icon { font-size:3rem; margin-bottom:12px; line-height:1; }
.dh-success__title { color:var(--green); margin-bottom:8px; font-weight:800; }
.dh-success__text { color:var(--text-muted); margin-bottom:0; }
.dh-success__cta { margin-top:16px; }
.dh-btn-submit[disabled] { opacity:.7; cursor:not-allowed; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .usp-bar__grid { grid-template-columns: repeat(3, 1fr); }
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    transform: translateY(-110%);
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { justify-content: flex-start; }
  .header__contact { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__image { display: none; }
  .hero { padding: 100px 0 60px; }

  .usp-bar__grid { grid-template-columns: 1fr 1fr; }

  .products__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .why-us__grid { grid-template-columns: 1fr; }

  .cta-section__inner { flex-direction: column; text-align: center; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 20px 32px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }

  .dh-hero { padding: 100px 0 36px; }
  .dh-section { padding: 36px 0 52px; }
  .dh-grid { grid-template-columns: 1fr; gap: 28px; }
  .dh-form-box { padding: 20px; border-radius: 16px; }
  .dh-name-grid { grid-template-columns: 1fr; gap: 12px; }
  .dh-shopee-item { padding: 14px 16px; }
}

@media (max-width: 480px) {
  .usp-bar__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__stats { gap: 20px; }
  .cta-section__buttons { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-section__buttons .btn { justify-content: center; }

  .dh-form-box { padding: 16px; }
  .dh-shopee-item { gap: 10px; }

  .fab { right: 16px; width: 46px; height: 46px; font-size: 1.2rem; }
  .fab--phone  { bottom: 16px; }
  .fab--zalo   { bottom: 68px; }
  .fab--shopee { bottom: 120px; }
}

/* =========================================
   WORDPRESS NAV COMPATIBILITY
   ========================================= */
.nav__list li { list-style: none; }
.nav__list li a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.nav__list li a:hover,
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--green); background: var(--green-light); }
.nav__list .menu-item-shopee > a,
.nav__list li a.nav__link--shopee {
  background: #ee4d2d; color: #fff !important; font-weight: 600; border-radius: 8px;
}
.nav__list .menu-item-shopee > a:hover { background: #d73b1e; }

/* Post pagination */
.posts-navigation, .pagination { text-align: center; margin-top: 40px; }
.posts-navigation a, .page-numbers {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  border: 2px solid var(--green); color: var(--green);
  margin: 0 4px; font-weight: 600; transition: all .2s;
}
.posts-navigation a:hover, .page-numbers.current { background: var(--green); color: #fff; }
