/* ===================================================================
   Đô Si La Mi — Cottagecore / patchwork warm-cream theme
   =================================================================== */

:root {
  --cream: #faf5ee;
  --cream-soft: #f3eade;
  --cream-card: #fffdf9;
  --tan: #c9a97e;
  --tan-dark: #a9825a;
  --brown: #6b5842;
  --brown-dark: #4a3a2a;
  --rose: #a85d5d;
  --rose-dark: #8a4747;
  --olive: #8a8a5c;
  --text: #4a3f35;
  --text-light: #7a6d5d;
  --border: #e7dcc9;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(107, 88, 66, 0.12);
  --shadow-sm: 0 2px 10px rgba(107, 88, 66, 0.08);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .nav-cta, .btn {
  font-family: 'Baloo 2', 'Be Vietnam Pro', sans-serif;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section-tight { padding: 40px 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin: 0 0 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

.eyebrow {
  display: block;
  text-align: center;
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--rose);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--rose-dark); box-shadow: var(--shadow); }

.btn-secondary {
  background: #fff;
  color: var(--brown-dark);
  border-color: var(--tan);
}
.btn-secondary:hover { background: var(--cream); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 238, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span { color: var(--rose); }
.logo img { height: 34px; width: auto; display: block; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--rose);
  border-color: var(--rose);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.icon-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 1.1rem;
  transition: background 0.15s, transform 0.15s;
}
.icon-link:hover { background: var(--cream); transform: translateY(-2px); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-media {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(74,58,42,0.62) 0%, rgba(74,58,42,0.25) 55%, rgba(74,58,42,0.05) 100%);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 560px;
  padding: 0 24px 0 44px;
  color: #fff;
}

.hero-content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-content p {
  font-size: 1.05rem;
  margin: 0 0 26px;
  opacity: 0.95;
}

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===================== TRUST BADGES ===================== */
.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 26px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text);
}
.trust-item .ic {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.trust-item b { display: block; color: var(--brown-dark); font-size: 0.92rem; }

/* ===================== PRODUCT GRID ===================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  background: var(--cream-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tan);
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.product-info { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-info h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--brown-dark);
}
.product-info p {
  margin: 0 0 14px;
  font-size: 0.86rem;
  color: var(--text-light);
  flex: 1;
}
.product-price {
  font-weight: 700;
  color: var(--rose);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

/* Style category pills */
.pill-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pill {
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover, .pill.active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

/* ===================== ABOUT / STORE ===================== */
.about-section {
  background: #fff;
}
.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-text h2 {
  font-size: 1.9rem;
  color: var(--brown-dark);
  margin: 0 0 18px;
}
.about-text p {
  color: var(--text-light);
  margin: 0 0 16px;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.about-gallery img:nth-child(1) { aspect-ratio: 1/1.15; }
.about-gallery img:nth-child(2) { margin-top: 26px; aspect-ratio: 1/1.15; }

.about-badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin-top: 24px; max-width: 360px; }
.about-badge { text-align: left; }
.about-badge strong { display: block; font-size: 1.5rem; color: var(--rose); font-family: 'Baloo 2', sans-serif; }
.about-badge span { font-size: 0.8rem; color: var(--text-light); }

/* ===================== TESTIMONIALS ===================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testimonial-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  border: 1px solid var(--border);
}
.testimonial-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.testimonial-card figcaption {
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
}

/* ===================== ACCESSORY / CALLOUT STRIP ===================== */
.callout-strip {
  background: var(--brown-dark);
  color: #fff;
}
.callout-flex {
  display: flex;
  align-items: center;
  gap: 40px;
}
.callout-flex img {
  width: 220px;
  height: 293px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.callout-text h3 {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: #f3e8d8;
}
.callout-text p {
  color: #e3d7c4;
  margin: 0 0 18px;
  max-width: 520px;
}

/* ===================== CTA BAND ===================== */
.cta-band {
  background: linear-gradient(135deg, var(--rose) 0%, var(--tan-dark) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: 1.8rem; margin: 0 0 12px; }
.cta-band p { color: #fbe9e5; margin: 0 0 26px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cta-band .btn-secondary { background: #fff; border-color: #fff; color: var(--rose-dark); }
.contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
  font-size: 0.92rem;
  color: #fff;
}
.contact-info a { color: #fff; text-decoration: underline; }
.contact-info span { margin-right: 4px; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: #3d3024;
  color: #d9cbb8;
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-logo {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
}
.footer-col a, .footer-col p {
  display: block;
  color: #c9baa4;
  font-size: 0.88rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  color: #a5967f;
}

/* ===================== FLOATING CHAT BUTTONS ===================== */
.float-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 200;
}
.float-chat a {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.15s ease;
}
.float-chat a:hover { transform: scale(1.08); }
.float-chat .zalo { background: #0068ff; color: #fff; }
.float-chat .messenger { background: linear-gradient(135deg,#00c6ff,#7b2ff7); color: #fff; }
.float-chat .instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; font-size: 1.4rem; }
.float-chat .tiktok { background: #010101; color: #fff; font-size: 1.4rem; }

/* ===================== PAGE HEADER (san-pham.html) ===================== */
.page-header {
  background: var(--tan);
  background-image: linear-gradient(rgba(74,58,42,0.35), rgba(74,58,42,0.35));
  color: #fff;
  text-align: center;
  padding: 60px 20px 50px;
}
.page-header h1 { font-size: 2.2rem; margin: 0 0 10px; }
.page-header p { opacity: 0.95; max-width: 560px; margin: 0 auto; }

.filter-note {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin: -20px auto 30px;
  max-width: 620px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-flex { grid-template-columns: 1fr; gap: 30px; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .callout-flex { flex-direction: column; text-align: center; }
  .callout-flex img { width: 180px; height: 240px; }
  .hero-content { padding: 0 20px; max-width: 100%; }
  .hero-content h1 { font-size: 1.7rem; }
  .hero-overlay { background: linear-gradient(180deg, rgba(74,58,42,0.35) 0%, rgba(74,58,42,0.75) 100%); align-items: flex-end; padding-bottom: 30px; }
  .hero-media { aspect-ratio: 4/5; }
}

@media (max-width: 900px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.55rem; }
}
