/* ==========================================================================
   SUPER-CONTRAST DESIGN SYSTEM 60 - 30 - 10 (ABSOLUTE READABILITY)
   Áp dụng tuyệt đối cho: index.html, store.html, about.html, contact.html,
   privacy-policy.html, terms-of-service.html, products.html.
   ========================================================================== */

/* 1. NỀN TOÀN CỤC (60% Nền Sáng Be Ấm) */
body, html {
  background-color: #FAF7F2 !important;
  color: #1A110B !important;
}

/* 2. HEADER & LOGO */
header, .navbar, .site-header, nav {
  background-color: rgba(250, 247, 242, 0.98) !important;
  border-bottom: 1px solid #DFD1C2 !important;
}

.brand-logo-text {
  color: #1A110B !important;
  font-weight: 900 !important;
  font-size: 17px !important;
}

.brand-logo-text span {
  color: #C58940 !important;
}

/* 3. NỀN SÁNG -> CHỮ PHẢI MÀU NÂU ĐẬM HOẶC ĐEN SẪM */
h1, h2, h3, h4, h5, h6,
.hero-main-title,
.section-title,
.carousel-title,
.page-title {
  color: #1A110B !important;
  font-weight: 800 !important;
}

p, span, li, dd, dt,
.hero-lead-text,
.section-desc,
.sub-text,
.desc,
.intro-text {
  color: #2C1D11 !important;
  font-weight: 500 !important;
  opacity: 1 !important;
}

/* Các nhãn phân đoạn trên nền sáng */
.section-tag,
.badge,
.category-badge {
  color: #8C5E1E !important;
  background: rgba(197, 137, 64, 0.12) !important;
  border: 1px solid rgba(197, 137, 64, 0.35) !important;
  font-weight: 800 !important;
}

/* 4. NỀN ĐẬM -> CHỮ PHẢI MÀU SÁNG RÕ NÉT (TRẮNG & BE SÁNG & VÀNG ĐỒNG) */
/* Áp dụng cho mọi thẻ tối màu: section-card, company-meta, feature-card,
   pillar-card, timeline-card, trust-card, store-hero-banner, book-card,
   store-story-box, quote-box... */
.section-card,
.company-meta,
.feature-card,
.pillar-card,
.timeline-card,
.trust-card,
.store-hero-banner,
.store-story-box,
.book-card,
.product-card-story,
.highlight-box,
.info-item,
div[style*="background: #221A15"],
div[style*="background: #0F0C0A"],
div[style*="background:#0F0C0A"],
div[style*="background: #111"],
div[style*="background: #191411"],
div[style*="background: linear-gradient"] {
  background: #1A130E !important;
  border-color: #382A21 !important;
}

/* Tiêu đề trong các khối nền tối */
.section-card h2,
.section-card h3,
.section-card h4,
.company-meta h2,
.company-meta h3,
.feature-card h3,
.feature-title,
.pillar-card h3,
.trust-card h3,
.trust-card h4,
.trust-title,
.store-hero-banner h1,
.store-hero-banner h2,
.store-hero-banner h3,
.book-card h3,
.book-card h4,
.book-title,
div[style*="background: #221A15"] div[style*="font-weight: 700"],
div[style*="background: #0F0C0A"] h4,
div[style*="background: #1A130E"] h4 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

/* Nhãn bước & Số thứ tự màu Vàng Đồng Sáng */
.pillar-num,
.timeline-time-badge,
.highlight-step,
div[style*="background: #221A15"] div[style*="font-size: 18px"],
.section-card .badge,
.info-label {
  color: #E5A855 !important;
  font-weight: 800 !important;
}

/* Nội dung văn bản, mô tả, bullet point trong các khối nền tối */
.section-card p,
.section-card li,
.company-meta div,
.company-meta p,
.company-meta li,
.feature-card p,
.feature-card li,
.tech-checklist li,
.tech-checklist li strong,
.pillar-desc,
.pillar-card p,
.trust-desc,
.trust-card p,
.timeline-card p,
.timeline-quote,
.store-hero-banner p,
.book-card p,
.book-desc,
.book-author,
.highlight-box p,
.highlight-box div,
.highlight-box span,
div[style*="background: #221A15"] p,
div[style*="background: #0F0C0A"] p,
div[style*="background: #1A130E"] p {
  color: #FAF7F2 !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  opacity: 1 !important;
}

/* Các nhãn mạnh mẽ bên trong thẻ tối */
.section-card strong,
.company-meta b,
.company-meta strong,
.feature-card strong,
.highlight-box b,
.highlight-box strong {
  color: #E5A855 !important;
  font-weight: 700 !important;
}

/* 5. NÚT VÀ GIÁ */
.btn-primary, .btn-story-primary, .cta-btn {
  background: #C58940 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
}

.price, .book-price, .price-current {
  color: #E5A855 !important;
  font-weight: 800 !important;
}

/* 6. CHÂN TRANG FOOTER */
footer, .site-footer {
  background-color: #120D0A !important;
  color: #FAF7F2 !important;
  border-top: 3px solid #C58940 !important;
}

footer h1, footer h2, footer h3, footer h4, footer strong {
  color: #FFFFFF !important;
}

footer p, footer span, footer div, footer li {
  color: #D5C7BC !important;
}

footer a {
  color: #FAF7F2 !important;
}


/* ==========================================================================
   EXPLICIT OVERRIDES FOR HOMEPAGE (INDEX.HTML) 8 AUDIT POINTS
   ========================================================================== */

/* 1, 4, 8: Nút phụ trên nền sáng -> Chữ màu tối, viền đậm rõ nét */
.btn-story-secondary {
  background: rgba(44, 29, 17, 0.05) !important;
  border: 1.5px solid #2C1D11 !important;
  color: #1A110B !important;
  font-weight: 800 !important;
}
.btn-story-secondary:hover {
  background: #2C1D11 !important;
  color: #FAF7F2 !important;
  border-color: #2C1D11 !important;
}

/* 2: Hộp Slogan trên nền tối -> Chữ sáng màu */
.hero-slogan-box {
  background: #1A130E !important;
  border-left: 4px solid #C58940 !important;
}
.hero-slogan-brand {
  color: #E5A855 !important;
  font-weight: 900 !important;
}
.hero-slogan-text,
.hero-slogan-box p,
.hero-slogan-box .hero-slogan-text {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

/* 3: Nhãn badge trong các thẻ trụ cột tối màu -> Chữ sáng màu */
.pillar-card .p-badge,
.pillar-badges .p-badge,
.p-badge {
  color: #FAF7F2 !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(229, 168, 85, 0.45) !important;
  font-weight: 700 !important;
}

/* 5: Thẻ sản phẩm -> Chữ sáng màu */
.product-card-story {
  background: #1A130E !important;
  border: 1px solid #382A21 !important;
}
.product-card-story .p-card-tag {
  color: #E5A855 !important;
  font-weight: 800 !important;
}
.product-card-story .p-card-name {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
.product-card-story .p-card-desc,
.product-card-story p {
  color: #FAF7F2 !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}
.product-card-story .btn-card-link {
  color: #E5A855 !important;
  font-weight: 700 !important;
}

/* 6: Mô tả Tủ sách & Thẻ Móc Khóa -> Chữ sáng màu */
.store-story-box {
  background: #1A130E !important;
  border: 1px solid #382A21 !important;
}
.store-story-box h3 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
.store-story-box p,
.store-story-box div p {
  color: #FAF7F2 !important;
  font-weight: 500 !important;
}
.store-story-box .store-cat-item {
  color: #FAF7F2 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(229, 168, 85, 0.35) !important;
  font-weight: 600 !important;
}
.store-story-box .store-cat-item i {
  color: #E5A855 !important;
}
.store-story-box span,
div[style*="background: #0F0C0A"] span {
  color: #FAF7F2 !important;
  font-weight: 700 !important;
}

/* 7: 4 thẻ linh kiện phần cứng -> Chữ sáng màu */
.spec-mini-item {
  background: #1A130E !important;
  border: 1px solid #382A21 !important;
}
.spec-mini-item b {
  color: #E5A855 !important;
  font-weight: 800 !important;
}
.spec-mini-item span {
  color: #FAF7F2 !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   EXPLICIT OVERRIDES FOR STORE PAGE (STORE.HTML)
   ========================================================================== */

/* Banner dau trang Cua Hang */
.store-hero-banner {
  background: #1A130E !important;
  border: 1px solid #382A21 !important;
}
.store-hero-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
.store-hero-desc {
  color: #FAF7F2 !important;
  font-weight: 500 !important;
}

/* The sach (Book Card Items tren nen toi) */
.book-card-item {
  background: #1A130E !important;
  border: 1px solid #382A21 !important;
}
.book-card-item div {
  color: #FAF7F2 !important;
}
.book-card-item span {
  color: #FAF7F2 !important;
}
.book-card-item [style*="color: #FFFFFF"] {
  color: #FFFFFF !important;
}
.book-card-item [style*="color: #94A3B8"] {
  color: #FAF7F2 !important;
}
.book-card-item [style*="color: #64748B"] {
  color: #D5C7BC !important;
}

/* Khoi Quy Trinh 3 Buoc (Tu Moc Khoa Den Giong Doc Loa) */
section[style*="background: #191411"] {
  background: #1A130E !important;
  border: 1px solid #382A21 !important;
}
section[style*="background: #191411"] h3 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}
div[style*="background: #221A15"] {
  background: #231B15 !important;
  border: 1px solid #3E2F24 !important;
}
div[style*="background: #221A15"] div[style*="color: #D4AF37"] {
  color: #E5A855 !important;
  font-weight: 800 !important;
}
div[style*="background: #221A15"] div[style*="color: #FFFFFF"] {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}
div[style*="background: #221A15"] p {
  color: #FAF7F2 !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
}

/* Chip danh muc */
.cat-chip {
  background: #231B15 !important;
  border: 1px solid #3E2F24 !important;
  color: #FAF7F2 !important;
}
.cat-chip.active, .cat-chip:hover {
  background: #C58940 !important;
  color: #FFFFFF !important;
  border-color: #C58940 !important;
}
.cat-chip.resale-chip {
  background: rgba(197, 137, 64, 0.15) !important;
  border-color: #C58940 !important;
  color: #E5A855 !important;
}
