/* =====================================================
   damcuoi.store — Homepage Redesign v3 (CLEAN)
   Editorial / refined / Vietnamese wedding magazine vibe
   ===================================================== */

/* ===== Typography enhancements ===== */
body {
  font-family: 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2B2520;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.section-title,
.hero-h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #2B2520;
}

/* ===== Header redesign — gọn, nav inline ===== */
body.home .site-header,
body.home .inside-header {
  padding: 1.5rem 3rem !important;
  background: #ffffff;
}

body.home .site-branding {
  text-align: center;
  margin-bottom: .5rem;
}

body.home .main-title,
body.home .main-title a {
  font-family: 'Lora', serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  color: #5A4235 !important;
  white-space: nowrap;
}

/* Nav menu compact + center */
body.home .main-navigation,
body.home .main-navigation .inside-navigation {
  background: transparent !important;
  border-top: 1px solid #ede7df;
  border-bottom: 1px solid #ede7df;
  padding: .5rem 0;
}

body.home .main-navigation .main-nav ul {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: .25rem;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .main-navigation .main-nav ul li a {
  font-size: .82rem !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .5rem .9rem !important;
  color: #5A4235 !important;
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home .main-navigation .main-nav ul li a:hover {
  color: #B8956A !important;
}

/* ===== Hero — magazine vibe ===== */
body.home .dchd-hero {
  padding: 5rem 0 4rem !important;
  background: #FAF6EF !important;
  text-align: center;
}

body.home .dchd-hero .hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

body.home .hero-eyebrow {
  font-size: .75rem !important;
  letter-spacing: .15em !important;
  text-transform: uppercase;
  color: #B8956A !important;
  margin-bottom: 1.25rem !important;
  font-weight: 600;
}

body.home .hero-h1 {
  font-size: 2.5rem !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
  color: #2B2520 !important;
}

body.home .hero-h1 strong {
  color: #B8956A !important;
  font-weight: 700 !important;
}

body.home .hero-desc {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #5a544c !important;
  max-width: 580px !important;
  margin: 0 auto 2rem !important;
}

body.home .hero-ctas {
  justify-content: center !important;
  gap: 1rem !important;
}

body.home .decor-cta-btn,
body.home .hero-cta-primary,
body.home .hero-cta-secondary {
  padding: .85rem 1.75rem !important;
  font-size: .95rem !important;
  letter-spacing: .02em;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: all .25s ease;
}

body.home .hero-cta-primary {
  background: #5A4235 !important;
  color: #fff !important;
  border: 1.5px solid #5A4235 !important;
}

body.home .hero-cta-primary:hover {
  background: #2B2520 !important;
  border-color: #2B2520 !important;
}

body.home .hero-cta-secondary {
  background: transparent !important;
  border: 1.5px solid #5A4235 !important;
  color: #5A4235 !important;
}

body.home .hero-cta-secondary:hover {
  background: #5A4235 !important;
  color: #fff !important;
}

/* ===== Section title chung — center, eyebrow style ===== */
body.home .dchd-intent-nav .section-title,
body.home .dchd-top-products .section-title,
body.home .dchd-categories .section-title,
body.home .dchd-compare-preview .section-title,
body.home .dchd-faq .section-title,
body.home .dchd-about-teaser .section-title,
body.home .dchd-intent-nav h2,
body.home .dchd-top-products h2,
body.home .dchd-categories h2,
body.home .dchd-compare-preview h2,
body.home .dchd-faq h2,
body.home .dchd-about-teaser h2 {
  text-align: center !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-bottom: .5rem !important;
  color: #2B2520 !important;
  position: relative;
}

body.home .dchd-intent-nav .section-title::after,
body.home .dchd-top-products .section-title::after,
body.home .dchd-categories .section-title::after,
body.home .dchd-compare-preview .section-title::after,
body.home .dchd-faq .section-title::after,
body.home .dchd-about-teaser .section-title::after,
body.home .dchd-intent-nav h2::after,
body.home .dchd-top-products h2::after,
body.home .dchd-categories h2::after,
body.home .dchd-compare-preview h2::after,
body.home .dchd-faq h2::after,
body.home .dchd-about-teaser h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: #B8956A;
  margin: 1rem auto 1.5rem;
}

body.home .section-desc {
  text-align: center !important;
  font-size: 1rem !important;
  color: #6b655d !important;
  max-width: 580px;
  margin: 0 auto 2.5rem !important;
}

/* ===== Section spacing thoáng hơn ===== */
body.home .dchd-intent-nav,
body.home .dchd-top-products,
body.home .dchd-categories,
body.home .dchd-compare-preview,
body.home .dchd-faq,
body.home .dchd-about-teaser {
  padding: 5rem 0 !important;
}

/* ===== Calculator section ===== */
body.home .dchd-calculator-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.25rem !important;
  background: #fff !important;
}

body.home .dchd-calculator-inner .section-title {
  text-align: center !important;
}

body.home .dchd-calc-form,
body.home .dchd-calculator-inner > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Intent cards ===== */
body.home .intent-cards {
  gap: 1.5rem !important;
  margin-top: 2rem !important;
}

body.home .intent-card {
  padding: 2rem 1.5rem !important;
  border: 1px solid #e8e0d8 !important;
  border-radius: 4px !important;
  text-align: center;
  background: #fff;
  transition: all .3s ease;
}

body.home .intent-card:hover {
  border-color: #B8956A !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(90, 66, 53, .08) !important;
}

body.home .intent-icon {
  font-size: 2.2rem !important;
  margin-bottom: 1rem !important;
}

body.home .intent-card h3 {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  margin-bottom: .75rem !important;
  color: #2B2520 !important;
}

body.home .intent-card p {
  font-size: .9rem !important;
  line-height: 1.6 !important;
  color: #6b655d !important;
}

/* ===== Top 3 SP — Product cards flex ===== */
body.home .product-cards-grid {
  align-items: stretch;
}
body.home .product-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
body.home .product-card .product-title,
body.home .product-card .product-info {
  flex-grow: 0;
}
body.home .product-card .product-cta,
body.home .product-card .decor-cta-btn,
body.home .product-card a[href*="shopee"],
body.home .product-card a.btn,
body.home .product-card a[class*="cta"] {
  margin-top: auto !important;
}

/* ===== About teaser — elegant dark center ===== */
body.home .dchd-about-teaser {
  background: #2B2520 !important;
  color: #FAF6EF !important;
  text-align: center !important;
}

body.home .dchd-about-teaser .dchd-container,
body.home .dchd-about-teaser > div,
body.home .dchd-about-teaser-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center !important;
}

body.home .dchd-about-teaser h2,
body.home .dchd-about-teaser .section-title,
body.home .dchd-about-teaser p,
body.home .dchd-about-teaser .btn,
body.home .dchd-about-teaser .decor-cta-btn {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

body.home .dchd-about-teaser .section-title,
body.home .dchd-about-teaser h2 {
  color: #FAF6EF !important;
}

body.home .dchd-about-teaser .section-title::after,
body.home .dchd-about-teaser h2::after {
  background: #B8956A !important;
}

body.home .dchd-about-teaser p {
  color: rgba(250, 246, 239, .85) !important;
  display: block;
  max-width: 580px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ===== FAQ accordion — refined ===== */
body.home .faq-accordion {
  max-width: 720px;
  margin: 0 auto;
}

body.home .faq-item {
  border-bottom: 1px solid #e8e0d8 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.home .faq-question {
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  padding: 1.25rem 0 !important;
  color: #2B2520 !important;
}

/* ===== Compare table — magazine style ===== */
body.home .compare-table {
  font-size: .9rem !important;
}

body.home .compare-table th {
  background: #2B2520 !important;
  color: #FAF6EF !important;
  font-weight: 500 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .8rem;
  padding: 1rem .9rem !important;
}

body.home .compare-table td {
  padding: 1rem .9rem !important;
  border-bottom: 1px solid #f0ebe3 !important;
}

/* ===================================================================
   HEADER STYLE — apply toàn site (không chỉ home)
   =================================================================== */
.site-header,
.inside-header {
  padding: 1.5rem 3rem !important;
  background: #ffffff !important;
}

.site-branding {
  text-align: left !important;
}

.main-title,
.main-title a {
  font-family: 'Lora', serif !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.01em;
  color: #5A4235 !important;
  white-space: nowrap;
  text-decoration: none !important;
}

.inside-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 1.5rem 5rem !important;
}

.main-navigation {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  flex-shrink: 0;
}

.main-navigation .inside-navigation {
  padding: 0 !important;
  background: transparent !important;
}

.main-navigation .main-nav ul {
  display: flex !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 0;
  padding: 0 !important;
  margin: 0 !important;
}

.main-navigation .main-nav ul li a {
  font-family: 'Be Vietnam Pro', sans-serif !important;
  font-size: .95rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: .5rem 1rem !important;
  color: #2B2520 !important;
  font-weight: 400 !important;
}

.main-navigation .main-nav ul li.current-menu-item a,
.main-navigation .main-nav ul li.current_page_item a {
  color: #B8956A !important;
}

.main-navigation .main-nav ul li a:hover {
  color: #B8956A !important;
}

/* ===================================================================
   TEXT LOGO "ĐámCưới.Store"
   =================================================================== */
.site-logo-text a {
    text-decoration: none !important;
    display: inline-block;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -0.01em;
    transition: opacity .25s ease;
}

.site-logo-text a:hover {
    opacity: .85;
}

.site-logo-text .logo-main {
    color: #5A4235;
}

.site-logo-text .logo-dot {
    color: #B8956A;
    margin: 0 1px;
}

.site-logo-text .logo-tld {
    color: #B8956A;
    font-style: italic;
    font-weight: 600;
}

/* Ẩn img logo cũ nếu CSS .site-logo bị inherit */
.site-logo,
.site-branding > img,
.header-image.is-logo-image {
    display: none !important;
}

/* ===================================================================
   SECTION "Tìm theo danh mục" — Option C list + icon + meta
   =================================================================== */
.cat-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cat-post-item {
  border-bottom: 1px solid #f0ebe3;
}

.cat-post-item:last-child {
  border-bottom: none;
}

.cat-post-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  text-decoration: none;
  color: #2B2520;
  transition: padding-left .25s ease, background-color .25s ease;
}

.cat-post-link:hover {
  background-color: rgba(184, 149, 106, .04);
  padding-left: .75rem;
}

.cat-post-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF6EF;
  border-radius: 50%;
}

.cat-post-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.cat-post-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #2B2520;
  line-height: 1.4;
}

.cat-post-meta {
  font-size: .82rem;
  color: #8a847c;
  font-weight: 400;
}

.cat-post-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #B8956A;
  transition: transform .25s ease;
}

.cat-post-link:hover .cat-post-arrow {
  transform: translateX(4px);
}

.cat-empty {
  color: #8a847c;
  font-style: italic;
  text-align: center;
  padding: 2rem 0;
}

.cat-empty a {
  color: #5A4235;
  text-decoration: underline;
}

/* ===================================================================
   FOOTER 3-cột
   =================================================================== */
.dchd-site-footer {
  background: #2B2520;
  color: #FAF6EF;
  padding: 4rem 0 0;
  margin-top: 4rem;
}

.dchd-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.dchd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 246, 239, .1);
}

.dchd-footer-brand-title {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #FAF6EF;
}

.dchd-footer-tagline {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(250, 246, 239, .7);
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.dchd-footer-social {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.dchd-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(250, 246, 239, .08);
  color: #FAF6EF;
  transition: all .25s ease;
}

.dchd-footer-social a:hover {
  background: #B8956A;
  color: #fff;
}

.dchd-zalo-icon {
  font-size: .7rem;
  font-weight: 600;
}

.dchd-footer-col-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #B8956A;
  margin-bottom: 1.25rem;
}

.dchd-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.dchd-footer-col ul li a {
  font-size: .92rem;
  color: rgba(250, 246, 239, .75);
  text-decoration: none;
  transition: color .25s ease;
}

.dchd-footer-col ul li a:hover {
  color: #B8956A;
}

.dchd-footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
}

.dchd-footer-bottom p {
  margin: 0;
  font-size: .85rem;
  color: rgba(250, 246, 239, .5);
}

/* Hide GeneratePress default footer */
.site-info {
  display: none !important;
}

/* ===================================================================
   PAGE + POST: H1 + SIDEBAR FULL-STACK
   =================================================================== */
body.single .entry-title,
body.page:not(.home) .entry-title,
body.single h1.entry-title,
body.page:not(.home) h1.entry-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 2rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    color: #2B2520 !important;
}

body.single .sidebar.widget-area,
body.page:not(.home) .sidebar.widget-area {
    background: transparent !important;
    padding: 0 !important;
}

body.single .sidebar.widget-area .widget,
body.page:not(.home) .sidebar.widget-area .widget {
    display: none !important;
}

.dchd-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
}

.dchd-widget {
    background: #fff;
    border: 1px solid #f0ebe3;
    border-radius: 4px;
    padding: 1.25rem;
}

.dchd-widget-title {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2B2520;
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #B8956A;
    letter-spacing: .02em;
}

/* Widget 1: TOC (NOT sticky) */
.dchd-widget-toc {
    position: static;
}

.dchd-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dchd-toc-item.dchd-toc-h3 {
    padding-left: 1rem;
}

.dchd-toc-link {
    display: block;
    padding: .35rem 0;
    color: #5a544c;
    font-size: .88rem;
    line-height: 1.4;
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: .65rem;
    transition: color .2s, border-left-color .2s;
}

.dchd-toc-link:hover,
.dchd-toc-link.is-active {
    color: #B8956A;
    border-left-color: #B8956A;
}

.dchd-toc-loading {
    color: #aaa;
    font-style: italic;
    font-size: .85rem;
}

/* Widget 2: Top SP */
.dchd-sidebar-products {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dchd-sidebar-product {
    border-bottom: 1px solid #f5f1ea;
    padding-bottom: .75rem;
}

.dchd-sidebar-product:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dchd-sidebar-product-link {
    display: flex;
    gap: .75rem;
    text-decoration: none;
    color: #2B2520;
    transition: opacity .2s;
}

.dchd-sidebar-product-link:hover {
    opacity: .8;
}

.dchd-sidebar-product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.dchd-sidebar-product-info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex-grow: 1;
}

.dchd-sidebar-product-name {
    font-size: .82rem;
    line-height: 1.4;
    color: #2B2520;
    font-weight: 500;
}

.dchd-sidebar-product-price {
    color: #B8956A;
    font-weight: 600;
    font-size: .88rem;
}

.dchd-sidebar-product-cta {
    color: #5A4235;
    font-size: .75rem;
    font-weight: 500;
    text-decoration: underline;
}

/* Widget 3: Recent Posts */
.dchd-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.dchd-recent-item {
    border-bottom: 1px solid #f5f1ea;
    padding-bottom: .65rem;
}

.dchd-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.dchd-recent-link {
    color: #2B2520;
    text-decoration: none;
    font-size: .88rem;
    line-height: 1.5;
    transition: color .2s;
}

.dchd-recent-link:hover {
    color: #B8956A;
}

/* Widget 4: Categories */
.dchd-cats-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.dchd-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .75rem;
    background: #FAF6EF;
    border-radius: 4px;
    text-decoration: none;
    color: #2B2520;
    font-size: .88rem;
    transition: background .2s;
}

.dchd-cat-link:hover {
    background: #B8956A;
    color: #fff;
}

.dchd-cat-count {
    background: #fff;
    color: #5A4235;
    border-radius: 12px;
    padding: 0 .5rem;
    font-size: .75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.dchd-cat-link:hover .dchd-cat-count {
    background: #fff;
    color: #B8956A;
}

/* Sidebar layout 65/33 */
body.single .content-area,
body.page:not(.home) .content-area {
    width: 65% !important;
    float: left;
}

body.single .widget-area,
body.page:not(.home) .widget-area {
    width: 33% !important;
    float: right;
}

/* ===================================================================
   MOBILE RESPONSIVE — TẤT CẢ trong 1 block @media duy nhất (CLEAN)
   =================================================================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
    }
    
    /* === Section spacing mobile === */
    body.home .hero-h1 {
        font-size: 1.8rem !important;
    }
    
    body.home .dchd-intent-nav .section-title,
    body.home .dchd-top-products .section-title,
    body.home .dchd-categories .section-title,
    body.home .dchd-compare-preview .section-title,
    body.home .dchd-faq .section-title,
    body.home .dchd-about-teaser .section-title {
        font-size: 1.5rem !important;
    }
    
    body.home .dchd-intent-nav,
    body.home .dchd-top-products,
    body.home .dchd-categories,
    body.home .dchd-compare-preview,
    body.home .dchd-faq,
    body.home .dchd-about-teaser {
        padding: 3rem 0 !important;
    }
    
    /* === Header mobile: logo trái + hamburger phải === */
    .site-header,
    .inside-header {
        max-width: 100% !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .inside-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem !important;
        gap: 1rem !important;
    }
    
    .site-logo-text {
        flex: 1 1 auto !important;
        min-width: auto !important;
        overflow: visible !important;
    }
    
    .site-logo-text a {
        font-size: 1.1rem !important;
        white-space: nowrap;
    }

    /* === Page + Post: H1 + sidebar mobile === */
    body.single .entry-title,
    body.page:not(.home) .entry-title {
        font-size: 1.6rem !important;
    }

    body.single .content-area,
    body.page:not(.home) .content-area,
    body.single .widget-area,
    body.page:not(.home) .widget-area {
        width: 100% !important;
        float: none !important;
    }

    /* === Footer 1 cột mobile === */
    .dchd-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
