/* =========================================================
   BẢNG MÀU & BIẾN DÙNG CHUNG (CSS variables)
   Muốn đổi tông màu cả trang, chỉ cần sửa ở đây.
========================================================= */
:root {
  --cream:        #FFFBF2;
  --cream-alt:    #FFF3DD;
  --ink:          #2E2A24;
  --ink-soft:     #6B6255;
  --leaf:         #5B8C5A;
  --leaf-dark:    #3F6B3F;
  --coral:        #F2765A;
  --sky:          #7FC8D6;
  --yellow:       #F5C84C;
  --rope:         #C7B79A;
  --card-shadow:  0 6px 18px rgba(46, 42, 36, 0.08);
  --radius-lg:    28px;
  --radius-sm:    14px;
  --font-display: 'Baloo 2', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; color: var(--ink); }

a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   HEADER
========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 251, 242, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(46,42,36,0.08);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  display: flex; align-items: center; gap: 6px;
}
.header-contact { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: 0.92rem; }
.header-fb {
  background: var(--leaf); color: #fff; padding: 8px 16px; border-radius: 999px;
  transition: transform 0.15s ease;
}
.header-fb:hover { transform: translateY(-2px); }

/* =========================================================
   HERO + DÂY PHƠI ĐỒ (điểm nhấn chính của trang)
========================================================= */
.hero {
  max-width: 1120px; margin: 0 auto;
  padding: 56px 24px 20px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  font-weight: 800; color: var(--coral); letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.12;
  margin-bottom: 18px;
}
.hero-sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; margin-bottom: 26px; }

.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  padding: 14px 30px; border-radius: 999px; font-size: 1.02rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px rgba(242,118,90,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(242,118,90,0.42); }

.clothesline { position: relative; height: 220px; }
.clothesline .rope { position: absolute; top: 30px; left: 0; width: 100%; height: 40px; }
.hanging-item {
  position: absolute; top: 55px; font-size: 2.6rem;
  transform-origin: top center;
  animation: swing 3.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 10px rgba(46,42,36,0.15));
}
.item-1 { left: 2%;  animation-delay: 0s; }
.item-2 { left: 24%; top: 42px; font-size: 3.2rem; animation-delay: 0.4s; }
.item-3 { left: 48%; animation-delay: 0.9s; }
.item-4 { left: 68%; top: 46px; font-size: 3rem; animation-delay: 0.2s; }
.item-5 { left: 88%; animation-delay: 0.6s; }
@keyframes swing {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

/* =========================================================
   BỘ LỌC DANH MỤC — dạng "kẹp phơi đồ" trên dây
========================================================= */
.filter-section { max-width: 1120px; margin: 30px auto 0; padding: 0 24px; }
.filter-rope {
  position: relative; padding-top: 22px; border-top: 3px dashed var(--rope);
}
.filter-line { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.chip {
  position: relative; background: #fff; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; color: var(--ink-soft);
  padding: 10px 20px 10px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip::before {
  /* mô phỏng đầu kẹp phơi đồ chạm vào dây */
  content: ""; position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 22px; background: var(--yellow); border-radius: 3px;
}
.chip:hover { transform: translateY(-3px); }
.chip.active { background: var(--leaf); color: #fff; }
.result-count { text-align: center; color: var(--ink-soft); font-size: 0.9rem; margin: 18px 0 0; }

/* =========================================================
   LƯỚI SẢN PHẨM
========================================================= */
.catalog {
  max-width: 1120px; margin: 0 auto; padding: 20px 24px 10px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px;
}
.product-card {
  background: #fff; border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--card-shadow); position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 14px 26px rgba(46,42,36,0.14); }

/* Vết cắt nhãn quần áo - notch ở góc trên phải thẻ sản phẩm */
.tag-notch {
  position: absolute; top: 16px; right: 16px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(46,42,36,0.12);
}
.product-badge {
  position: absolute; top: 16px; left: 16px; background: var(--yellow); color: var(--ink);
  font-size: 0.72rem; font-weight: 800; padding: 5px 10px; border-radius: 999px;
}
.product-illustration {
  width: 100%; height: 130px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 3.4rem;
  margin-bottom: 14px;
}
.product-photo {
  width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-sm);
  margin-bottom: 14px; display: block; background: var(--cream-alt);
}
.product-name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.product-meta { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 10px; }
.product-price { font-weight: 800; color: var(--coral); font-size: 1.15rem; margin-bottom: 14px; }
.product-actions { display: flex; gap: 8px; }
.order-btn {
  flex: 1; text-align: center; padding: 10px 8px; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer;
}
.order-btn.zalo { background: var(--sky); color: var(--ink); }
.order-btn.fb { background: var(--cream-alt); color: var(--ink); }
.order-btn:hover { filter: brightness(0.95); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--ink-soft);
}

/* =========================================================
   TRUST SECTION
========================================================= */
.trust {
  max-width: 1120px; margin: 70px auto 0; padding: 0 24px 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.trust-item { text-align: center; padding: 20px; }
.trust-icon { font-size: 2.2rem; }
.trust-item h3 { margin: 12px 0 8px; font-size: 1.1rem; }
.trust-item p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
  margin-top: 60px; background: var(--leaf-dark); color: #fff; padding: 40px 24px 20px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.18);
}
.footer-logo { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; }
.footer-inner p { margin: 4px 0; opacity: 0.9; font-size: 0.92rem; }
.footer-contact a { text-decoration: underline; }
.footer-note {
  max-width: 1120px; margin: 16px auto 0; opacity: 0.7; font-size: 0.8rem; text-align: center;
}

/* =========================================================
   NÚT ZALO NỔI
========================================================= */
.floating-zalo {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px;
  background: var(--sky); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 10px 24px rgba(46,42,36,0.22); z-index: 60;
  transition: transform 0.15s ease;
}
.floating-zalo:hover { transform: scale(1.08); }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .clothesline { height: 160px; }
  .trust { grid-template-columns: 1fr; }
  .header-contact-item.header-contact-phone { display: none; }
}

/* Focus rõ ràng cho điều hướng bàn phím (accessibility) */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 2px;
}
