/* ── category-page.css — Họp Nguyễn category pages ── */

/* ══════════════════════════════════════
   STICKY CATEGORY NAV BAR
══════════════════════════════════════ */
.cat-nav-bar {
  position: sticky;
  top: 0;                      /* sticks right below browser top, overlapping header on scroll */
  z-index: 90;
  background: #1a1209;
  border-bottom: 1px solid rgba(196,149,106,.2);
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
}

/* Push below the site header when header is visible */
body:not(.header-hidden) .cat-nav-bar {
  top: var(--header-h, 56px);
}

.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE/Edge */
  white-space: nowrap;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

/* Scroll Indicators styling */
.cat-nav-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C4956A;
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: auto;
  opacity: 0;
  visibility: hidden;
}

.cat-nav-indicator.left {
  left: 0;
  background: linear-gradient(to right, #1a1209 60%, transparent);
  padding-right: 8px;
}

.cat-nav-indicator.right {
  right: 0;
  background: linear-gradient(to left, #1a1209 60%, transparent);
  padding-left: 8px;
  animation: pulse-arrow 2s infinite ease-in-out;
}

/* Toggle visibility via JS classes */
.cat-nav-bar.has-left-scroll .cat-nav-indicator.left {
  opacity: 1;
  visibility: visible;
}

.cat-nav-bar.has-right-scroll .cat-nav-indicator.right {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* Centering logic when all items fit dynamically */
.cat-nav-bar.nav-centered .cat-nav-indicator {
  display: none !important;
}
.cat-nav-bar.nav-centered .cat-nav-inner {
  justify-content: center;
  overflow-x: visible;
}

.cat-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  letter-spacing: .04em;
  border-bottom: 2.5px solid transparent;
  transition: color .2s, border-color .2s;
  flex-shrink: 0;
}
.cat-nav-link:hover {
  color: #fff;
  border-bottom-color: rgba(196,149,106,.5);
}
.cat-nav-link.active {
  color: #C4956A;
  border-bottom-color: #C4956A;
  font-weight: 600;
}
.cat-nav-home {
  color: rgba(255,255,255,.5);
  padding-left: 8px;
}
.cat-nav-home:hover { color: #fff; border-bottom-color: transparent; }

.cat-nav-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  margin: 0 8px;
}

/* Mobile: slightly smaller text */
@media (max-width: 480px) {
  .cat-nav-link { padding: 12px 12px; font-size: 0.78rem; }
  .cat-nav-inner { padding: 0 12px; }
}

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: #fff; }

/* ══════════════════════════════════════
   CATEGORY HERO
══════════════════════════════════════ */
.cat-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0208;
  padding-top: var(--header-h, 56px);
}
.cat-hero-img-wrap {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}
.cat-hero-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 8s ease;
}
.cat-hero:hover .cat-hero-img { transform: scale(1.04); }
.cat-info-section {
  background: #faf6f0; /* Soft luxury cream matching branding */
  padding: 2.5rem 24px;
  text-align: center;
  border-bottom: 1px solid rgba(196,149,106,0.15);
}
.cat-info-section .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #8a7568;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cat-info-section .breadcrumb a {
  color: #8a7568;
  text-decoration: none;
  transition: color .2s;
}
.cat-info-section .breadcrumb a:hover {
  color: #C4956A;
}
.cat-info-section .cat-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C4956A;
  margin-bottom: 10px;
}
.cat-info-section .cat-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #1a1209;
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 600;
}
.cat-info-section .cat-hero-sub {
  font-family: 'Inter', sans-serif;
  color: #5a4f47;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}
.cat-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   QUALITY SECTION
══════════════════════════════════════ */
.quality-section { background: #fdfbf8; }

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) { .quality-grid { grid-template-columns: 1fr; gap: 40px; } }

.quality-intro {
  font-size: 1.05rem;
  color: #5a4f47;
  line-height: 1.8;
  margin-bottom: 36px;
  font-weight: 400;
}

.quality-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.quality-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.qp-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: rgba(196,149,106,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quality-point strong {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1209;
  display: block;
  margin-bottom: 6px;
}
.quality-point p {
  font-size: 0.9rem;
  color: #6b5e54;
  line-height: 1.7;
  margin: 0;
}

/* ── Owner Card ───────────────────── */
.quality-aside { display: flex; flex-direction: column; gap: 28px; }

.owner-card {
  background: linear-gradient(135deg, #1a1209 0%, #2c1f0e 100%);
  border-radius: 20px;
  padding: 36px 32px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10,8,6,.25);
}
.owner-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(196,149,106,.25) 0%, transparent 70%);
  border-radius: 50%;
}
.owner-quote-icon {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: #C4956A;
  line-height: 1;
  margin-bottom: 8px;
  opacity: .7;
}
.owner-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.88);
  line-height: 1.8;
  margin: 0 0 24px;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.owner-sig {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid rgba(196,149,106,.3);
  padding-top: 18px;
  position: relative;
  z-index: 1;
}
.owner-sig strong {
  color: #C4956A;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}
.owner-sig span {
  color: rgba(255,255,255,.5);
  font-size: 0.8rem;
  font-weight: 300;
}

/* ── Trust mini grid ─────────────── */
.trust-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.trust-mini {
  background: #fff;
  border: 1px solid rgba(196,149,106,.2);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}
.trust-mini:hover {
  box-shadow: 0 8px 24px rgba(196,149,106,.15);
  transform: translateY(-2px);
}
.trust-mini-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #C4956A;
  margin-bottom: 4px;
}
.trust-mini-label {
  font-size: 0.75rem;
  color: #8a7568;
  font-weight: 500;
  line-height: 1.3;
}

/* ══════════════════════════════════════
   OTHER CATEGORIES
══════════════════════════════════════ */
.other-cats { background: #fff; }

/* ══════════════════════════════════════
   CONTACT CTA
══════════════════════════════════════ */
.cat-cta { background: #fdfbf8; }
.cat-cta-box {
  background: linear-gradient(135deg, #1a1209 0%, #2c1f0e 100%);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cat-cta-box::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(196,149,106,.18) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.cat-cta-eyebrow {
  font-size: 0.78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C4956A;
  font-weight: 500;
  margin-bottom: 14px;
}
.cat-cta-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.3;
}
.cat-cta-box h2 em { color: #C4956A; font-style: italic; }
.cat-cta-box > p {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 32px;
}
.cat-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cat-cta-hours {
  color: rgba(255,255,255,.45);
  font-size: 0.82rem;
  margin: 0;
  letter-spacing: .03em;
}

/* ── btn-secondary for CTA ── */
.btn-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(6px);
  border-radius: 50px;
  padding: 13px 28px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background .25s, border-color .25s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.5);
}
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .cat-hero-content { padding: 40px 20px 48px; }
  .cat-hero-title { font-size: 2.2rem; }
  .cat-hero-btns { flex-direction: column; gap: 10px; }
  .cat-cta-btns { flex-direction: column; align-items: center; }
  .quality-point { flex-direction: column; gap: 10px; }
  .qp-icon { width: 36px; height: 36px; font-size: 1.2rem; }
  .owner-card { padding: 28px 22px; }
  .trust-mini-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
