/*
 Theme Name:   Ban Huot Cay Me Child
 Template:     astra
 Version:      1.0.1
*/
/* Google Fonts loaded via wp_enqueue_style in functions.php */
/* Google Fonts loaded via wp_enqueue_style in functions.php */
.main-header-menu > .menu-item > .menu-link, #astra-footer-menu > .menu-item > .menu-link
{
    font-size: 0.9em;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7SUc.woff2) format('woff2');
    unicode-range: U +0460 -052F, U +1C80 -1C8A, U +20B4, U +2DE0 -2DFF, U + A640-A69F, U + FE2E-FE2F;
}
:root {
    /* Polished Brand Colors */
    --brand-primary: #016701;   /* Elegant Deep Green */
    --brand-primary-light: #008100;
    --brand-accent: #f39200;    /* Vibrant Orange */
    --brand-accent-hover: #d68100;
    --brand-red: #e63946;       /* Clean Red */
    --text-main: #2d3436;       /* Slate Grey for better readability */
    --text-muted: #636e72;
    --bg-light: #fdfdfd;
    --footer-bg: #1a1a1a;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius-md: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a { 
    color: var(--brand-primary); 
    transition: var(--transition); 
    text-decoration: none; 
}

a:hover { 
    color: var(--brand-accent); 
}
header .custom-logo-link img {
    /* max-width: 115px; */
    width: auto !important;
    max-height: 50px;
}
.ast-site-identity
{
    padding: 0px !important;
}
/* --- HEADER ENHANCEMENTS --- */
/* --- HEADER ENHANCEMENTS --- */
.site-header {
    border-bottom: 1px solid #f0f0f0;
    background: var(--white);
    max-height: 50px;
    box-shadow: var(--shadow-sm);
    padding: 15px 0px;
    transition: all 0.3s ease;
    width: 100%;
    z-index: 999;
}

/* Sticky State */
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: slideDown 0.35s ease-out forwards;
    border-bottom: none;
}

/* Account for admin bar */
.admin-bar .site-header.is-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header.is-sticky {
        top: 46px;
    }
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Prevent layout shift when header becomes fixed */
body.header-sticky-active {
    padding-top: 50px; /* Match header height */
}

.ast-primary-header-bar
{
    border: none !important;
}
.ast-builder-menu .main-navigation>ul
{
    gap:20px;
}
.ast-mobile-header-wrap .ast-primary-header-bar, .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 50px;
    max-height: 50px !important;
}
.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item
{
    line-height: 30px !important;
}
.main-header-menu .menu-link {
    font-weight: 500 !important;
    letter-spacing: 0.5px;
    padding: 0px !important;
}

.main-header-menu .menu-link:hover {
    color: var(--brand-primary) !important;
}

.main-header-menu .menu-link::before {
    /* bottom: -30px; */
}
.main-header-menu .menu-link:hover::before {
    width: 100%;
}
.main-header-menu .menu-link::before {
    position: absolute;
    content: "";
    height: 1px;
    width: 0;
    background: var(--brand-accent);
    right: 0;
    bottom: -5px;
    transition: 0.3s;
}
*, *::after, *::before {
    box-sizing: border-box;
}

/* --- PREMIUM BUTTONS --- */
button, .button, .wp-block-button__link, .added_to_cart {
    background-color: var(--brand-accent);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 28px;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(243, 146, 0, 0.2);
}

button:hover, .button:hover {
    background-color: var(--brand-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 146, 0, 0.3);
}

/* --- HOMEPAGE CLONE COMPONENTS --- */
.home #primary
{
    margin: 0px !important;
}
/* Hero Banner */
.home-hero {
    background: url('https://banhuotcayme.vn/wp-content/uploads/2026/02/hinhcuahang-cayme.jpg') center/cover no-repeat;
    height: calc(100vh - 80px); /* Approx height from visual */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- HERO SLIDER STYLES --- */
.bhcm-hero-section {
    width: 100%; /* Full width */
    height: 100%; /* Inherit height from .home-hero */
    position: relative;
    overflow: hidden;
}

.bhcm-hero-slider {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-position: center center; /* Revert to Center Center */
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
    position: relative;
    width: 100%;
    height: 100%;
}

/* Category Filter Bar */
.home-cat-bar {
    background-color: var(--brand-primary);
    padding: 10px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-cat-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.bhcm-slide-content {
    position: absolute; /* Force absolute centering */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
    max-width: 1200px; /* Ensure it stays boxed */
    padding: 0 20px;
}

/* Hide Title as requested */
.slide-title {
    display: none; 
}

/* Button: Visible by default with Brand Style */
.slide-btn {
    display: inline-block;
    padding: 12px 35px;
    background: var(--brand-accent, #f39200) !important; /* Orange Default */
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    border-radius: 5px; /* Slight rounded corners */
    font-size: 16px;
    letter-spacing: 0.5px;
    
    /* Animation defaults */
    opacity: 0; /* Hidden before animation */
    visibility: visible;
    transform: translate3d(0, 40px, 0); /* Start position */
}

/* Trigger animation only when slide is active (Swiper) */
.swiper-slide-active .slide-btn,
.swiper-slide-duplicate-active .slide-btn {
    animation-name: fadeInUp;
    animation-duration: 1.3s;
    animation-delay: 0.3s; /* Requested delay */
    animation-fill-mode: both;
}

.slide-btn:hover {
    background: var(--brand-primary, #016701) !important; /* Green Hover */
    color: #fff !important;
    transform: translateY(-2px); /* Slight lift */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Keyframes for fadeInUp (Mimic Animate.css) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Ensure .wow class triggers it if JS is missing, though we force it on .slide-btn above */
.fadeInUp {
    animation-name: fadeInUp;
}

/* Ensure arrows are always visible */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    opacity: 0.6; 
    transition: opacity 0.3s;
}

.bhcm-hero-section:hover .swiper-button-next,
.bhcm-hero-section:hover .swiper-button-prev {
    opacity: 1;
}

.home-cat-bar li a {
    color: #fff;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 4px;
    display: block;
    text-transform: uppercase;
}
.home 
{
    background: #fefeff;
}
.home-cat-bar li a:hover,
.home-cat-bar li.active a {
    background-color: var(--brand-accent);
    color: #fff;
}
.swiper-backface-hidden .swiper-slide
{
    background-position: top;
    background-size: cover;
}
/* Product Grid */
.woocommerce ul.products {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.woocommerce ul.products li.product {
    text-align: center;
    border: 1px solid #f0f0f0;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: var(--white);
    margin-bottom: 0 !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
    border-color: var(--brand-primary-light);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 15px 0 10px;
}

.woocommerce ul.products li.product .price {
    color: var(--brand-red) !important;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 20px;
    display: block;
}

.woocommerce ul.products li.product .button {
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
}

/* Status Badges */
.onsale {
    background-color: var(--brand-red) !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.75rem !important;
    padding: 4px 12px !important;
    min-height: auto !important;
    line-height: 1.5 !important;
}

/* Footer (Simple Clone) */
.site-footer {
    background-color: var(--footer-bg);
    color: #fff;
}
.site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.site-footer a { color: #ccc; }

/* Modal styles moved to plugin assets/css/style.css */

/* --- HOMEPAGE ABOUT SECTION (Cloned from Live Site) --- */
.intro-section {
    padding: 70px 0;
    background-image: url('https://banhuotcayme.vn/wp-content/uploads/2026/02/story.png'); /* Hotlinked */
    background-size: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: color;
    background-repeat: no-repeat;
    background-position: bottom left;
    margin-top: 40px;
}

.intro-wrap {
    text-align: center;
    font-weight: 400;
    font-size: 15px;
}

.intro-logo {
    margin-bottom: 20px;
}

.intro-logo img {
    max-height: 50px;
    width: auto;
}

.intro-title {
    color: var(--brand-primary); /* #016701 */
    font-weight: 700;
    font-size: 1.8em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.intro-subtitle {
    color: #999;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-style: italic;
}

.intro-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.intro-section video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}


/* Generic Category Grid Layout */
.bhcm-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.bhcm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.bhcm-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bhcm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bhcm-thumbnail {
    position: relative;
    overflow: hidden;
    /* Remove fixed aspect ratio to show full image */
    padding-top: 0; 
    height: auto;
}

.bhcm-thumbnail img {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: contain; /* Ensure full image is seen */
    display: block;
    transition: transform 0.5s ease;
}

.bhcm-card:hover .bhcm-thumbnail img {
    transform: scale(1.1);
}

.bhcm-grid-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bhcm-grid-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.bhcm-grid-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bhcm-grid-title a:hover {
    color: #e74c3c; /* Primary color */
}

.bhcm-grid-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.bhcm-grid-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bhcm-grid-read-more {
    margin-top: auto;
}

.btn-bhcm-grid {
    display: inline-block;
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-bhcm-grid:hover {
    color: #c0392b;
    padding-left: 5px;
}



/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .bhcm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .bhcm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bhcm-grid {
        grid-template-columns: 1fr;
    }
}

/* Cheerful No Results State */
.bhcm-no-results {
    padding: 60px 0;
    text-align: center;
}

.bhcm-no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.bhcm-no-results-icon {
    font-size: 80px;
    color: var(--brand-accent, #f39200); /* Orange like the brand */
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.bhcm-no-results-message {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main, #2d3436);
    margin-bottom: 10px;
}

.bhcm-no-results p {
    font-size: 16px;
    color: var(--text-muted, #666);
    margin-bottom: 30px;
}

/* Float animation for the cheerful icon */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}



/* Responsive adjustments for clone */
@media (max-width: 768px) {
    .intro-section {
        padding: 40px 0;
        background-size: cover;
    }
    .intro-title {
        font-size: 24px;
    }
    /* Mobile: Stack columns */
    .intro-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Grid System Simulation (if Bootstrap is missing) */
.intro-section .container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.intro-section .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}
.intro-section .col-12 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}
@media (min-width: 768px) {
    .intro-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        position: relative;
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }
}

/* --- HOMEPAGE & ABOUT PAGE PARENT CONTAINER RESET (The Nuclear Option) --- */
.home.ast-separate-container .ast-article-post, 
.home.ast-separate-container .ast-article-single,
.home .entry-content,
.home #primary,
.home #main,
.home .site-content,
.home #content,
.home .ast-container,
.page-template-page-gioi-thieu.ast-separate-container .ast-article-post, 
.page-template-page-gioi-thieu.ast-separate-container .ast-article-single,
.page-template-page-gioi-thieu .entry-content,
.page-template-page-gioi-thieu #primary,
.page-template-page-gioi-thieu #main,
.page-template-page-gioi-thieu .site-content,
.page-template-page-gioi-thieu #content,
.page-template-page-gioi-thieu .ast-container {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
}

/* Restore Boxed Layout only where specifically needed */
.home .home-cat-bar .ast-container,
.home .home-products .ast-container,
.intro-section .ast-container,
.bhcm-slide-content.container,
.site-header .ast-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    width: 100% !important;
}

/* Make Hero Full Width (100vw Breakout) */
.home-hero, .bhcm-hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    margin-top: 0 !important;
    display: block;
}

/* Make About Section Full Width (100vw Breakout) */
.intro-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 70px 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block;
}

/* Make Products Section Full Width (100vw Breakout) */
.home-products {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: block;
}

/* Banner Section for Posts and Categories */
.page-banner-section {
    width: 100%;
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-banner-section.post-category-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner-section .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.banner-content-container {
    position: relative;
    z-index: 2;
}

.post-category-banner .entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.banner-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.banner-meta span i {
    margin-right: 5px;
}

.banner-meta a {
    color: #fff;
    text-decoration: underline;
}

.page-banner-section .container {
    position: relative;
    z-index: 2;
}

.page-banner-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner-section .banner-description {
    margin-top: 15px;
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

@media (max-width: 768px) {
    .page-banner-section {
        padding: 40px 20px;
    }
    
    .page-banner-section.post-category-banner {
        min-height: 200px;
    }
    
    .page-banner-section h1 {
        font-size: 1.8rem;
    }
    
    .page-banner-section .banner-description {
        font-size: 1rem;
    }
}

/* ==========================================================================
   BLOG SINGLE POST & ARCHIVE STYLES
   ========================================================================== */

/* Post Single Banner */
.post-single-banner {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #024d02 100%);
    color: #fff;
    padding: 60px 0 40px;
    margin-bottom: 0;
}

.post-single-banner .banner-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.post-single-banner .banner-breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.post-single-banner .banner-breadcrumb a:hover {
    opacity: 0.7;
}

.post-single-banner .banner-breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.6;
}

.post-single-banner .banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-single-banner .banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
}

.post-single-banner .banner-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.95;
}

.post-single-banner .banner-meta i {
    color: var(--brand-accent);
}

.post-single-banner .banner-meta a {
    color: #fff;
    text-decoration: none;
}

.post-single-banner .banner-meta a:hover {
    text-decoration: underline;
}

/* Single Post Container */
.single-post-container,
.category-archive-container,
.archive-container {
    padding: 40px 0;
}

/* Single Post Article */
.single-post-container article {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Entry Header */
.entry-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Entry Meta */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.entry-meta i {
    color: var(--brand-accent);
}

.entry-meta a {
    color: #666;
}

.entry-meta a:hover {
    color: var(--brand-primary);
}

/* Post Thumbnail */
.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Entry Content */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--brand-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.entry-content h2 {
    font-size: 1.8rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.3rem;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--brand-accent);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

/* Entry Footer */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background: var(--brand-primary);
    color: #fff;
}

.post-navigation .nav-previous:hover a,
.post-navigation .nav-next:hover a {
    color: #fff;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 5px;
}

/* --- HEADER CART ICON --- */
.bhcm-menu-cart-icon a {
    display: flex !important;
    align-items: center;
    padding: 0 15px !important;
}

.cart-icon-wrap {
    position: relative;
    display: inline-block;
    color: var(--brand-primary); /* Green Icon */
}

.cart-icon-wrap svg {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
}

.bhcm-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--brand-accent); /* Orange Badge */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bhcm-menu-cart-icon:hover .cart-icon-wrap {
    color: var(--brand-accent);
}

.bhcm-menu-cart-icon:hover .bhcm-cart-count {
    background-color: var(--brand-primary);
}

.post-navigation .nav-title {
    font-weight: 600;
    color: var(--brand-primary);
}

.post-navigation .nav-previous:hover .nav-title,
.post-navigation .nav-next:hover .nav-title {
    color: #fff;
}

/* Page Links (Multi-page posts) */
.page-links {
    clear: both;
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ==========================================================================
   ARCHIVE & CATEGORY PAGES
   ========================================================================== */

/* Page Header */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--brand-primary);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 15px;
}

.category-description,
.archive-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Blog Posts Grid */
.blog-posts-grid {
    display: grid;
    gap: 30px;
}

.blog-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.blog-post-item:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.blog-post-item .post-thumbnail {
    width: 280px;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.blog-post-item .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-item .post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.blog-post-item .entry-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-post-item .entry-title a {
    color: var(--brand-primary);
    text-decoration: none;
}

.blog-post-item .entry-title a:hover {
    color: var(--brand-accent);
}

.blog-post-item .entry-meta {
    margin-bottom: 15px;
}

.blog-post-item .entry-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.blog-post-item .read-more {
    margin-top: auto;
}

.blog-post-item .read-more .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-results .page-title {
    border: none;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-numbers {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid var(--brand-primary);
    border-radius: 5px;
    color: var(--brand-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--brand-primary);
    color: #fff;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */

.blog-sidebar {
    position: sticky;
    top: 100px;
}

.blog-sidebar .widget {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.blog-sidebar .widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--brand-accent);
}

.blog-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar .widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.blog-sidebar .widget ul li:last-child {
    border-bottom: none;
}

.blog-sidebar .widget ul li a {
    color: #666;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s ease;
}

.blog-sidebar .widget ul li a:hover {
    color: var(--brand-primary);
    padding-left: 5px;
}

/* Search Widget */
.blog-sidebar .search-form {
    display: flex;
    gap: 10px;
}

.blog-sidebar .search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 5px;
    font-size: 0.95rem;
}

.blog-sidebar .search-form button {
    padding: 10px 20px;
    background: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.blog-sidebar .search-form button:hover {
    background: var(--brand-accent);
}

/* Tag Cloud */
.blog-sidebar .tagcloud a {
    display: inline-block;
    padding: 5px 12px;
    margin: 5px 5px 5px 0;
    background: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 0.85rem !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-sidebar .tagcloud a:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Recent Posts Widget */
.blog-sidebar .widget_recent_entries ul li {
    display: flex;
    gap: 15px;
}

.blog-sidebar .widget_recent_entries .post-date {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 991px) {
    .blog-post-item {
        grid-template-columns: 1fr;
    }
    
    .blog-post-item .post-thumbnail {
        width: 100%;
        height: 250px;
    }
    
    .entry-title {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .post-single-banner .banner-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .single-post-container article {
        padding: 20px;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .entry-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
    
    .post-single-banner {
        padding: 40px 0 30px;
    }
    
    .post-single-banner .banner-title {
        font-size: 1.5rem;
    }
    
    .post-single-banner .banner-meta {
        gap: 15px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ABOUT PAGE (GIỚI THIỆU) - MATCHING REFERENCE SITE
   ========================================================================== */

/* About Banner Section */
.page-template-page-gioi-thieu .page-banner-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #024d02 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-template-page-gioi-thieu .page-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://banhuotcayme.vn/public/upload/images/banner/banner-gioi-thieu.jpg') center/cover no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.page-template-page-gioi-thieu .page-banner-section .container {
    position: relative;
    z-index: 1;
}

.page-template-page-gioi-thieu .page-banner-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About Content Container */
.page-template-page-gioi-thieu .entry-content {
    background: #fff;
}

.page-template-page-gioi-thieu .ast-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 60px 15px !important;
}

/* About Section Styling */
.page-template-page-gioi-thieu .entry-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin-top: 50px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--brand-accent);
    position: relative;
    text-transform: uppercase;
}

.page-template-page-gioi-thieu .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--brand-accent);
    box-shadow: 0 0 10px rgba(243, 146, 0, 0.5);
}

.page-template-page-gioi-thieu .entry-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-top: 35px;
    margin-bottom: 20px;
}

.page-template-page-gioi-thieu .entry-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 25px;
    text-align: justify;
}

.page-template-page-gioi-thieu .entry-content ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-template-page-gioi-thieu .entry-content ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
}

.page-template-page-gioi-thieu .entry-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--brand-accent);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Mission, Vision, Core Values Cards */
.page-template-page-gioi-thieu .entry-content > div {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    margin: 40px 0;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--brand-accent);
}

/* Blockquote Styling */
.page-template-page-gioi-thieu .entry-content blockquote {
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    border-left: 5px solid var(--brand-accent);
    padding: 30px 40px;
    margin: 40px 0;
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
}

.page-template-page-gioi-thieu .entry-content blockquote p {
    margin-bottom: 0;
}

/* Image Styling */
.page-template-page-gioi-thieu .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

/* Values Grid (if needed) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--brand-accent);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.value-card h3 {
    color: var(--brand-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.value-card p {
    color: #666;
    line-height: 1.7;
}

/* Section Divider */
.page-template-page-gioi-thieu .entry-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--brand-accent), transparent);
    margin: 50px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .page-template-page-gioi-thieu .page-banner-section {
        padding: 50px 0;
    }
    
    .page-template-page-gioi-thieu .page-banner-section h1 {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .page-template-page-gioi-thieu .ast-container {
        padding: 40px 20px !important;
    }
    
    .page-template-page-gioi-thieu .entry-content h2 {
        font-size: 1.6rem;
        margin-top: 30px;
    }
    
    .page-template-page-gioi-thieu .entry-content h3 {
        font-size: 1.3rem;
    }
    
    .page-template-page-gioi-thieu .entry-content p,
    .page-template-page-gioi-thieu .entry-content ul li {
        font-size: 1rem;
        text-align: left;
    }
    
    .page-template-page-gioi-thieu .entry-content > div {
        padding: 25px;
    }
    
    .page-template-page-gioi-thieu .entry-content blockquote {
        padding: 20px 25px;
        font-size: 1rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   ABOUT PAGE (GIỚI THIỆU) — CUSTOM TEMPLATE STYLES
   Merged from inline <style> in page-gioi-thieu.php
   ========================================================================== */

/* About Page Hero Banner Override */
.page-template-page-gioi-thieu .page-banner-section {
    background-image: url('https://banhuotcayme.vn/public/upload/banner/breadcrumb-image.jpg');
    background-size: cover;
    background-position: top center;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    margin: 0;
    left: auto;
    right: auto;
    clear: both;
}

.page-template-page-gioi-thieu .page-banner-section h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* About Layout Container */
.bhcm-about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Inter', 'Open Sans', sans-serif;
}

/* About Intro */
.bhcm-intro-text {
    text-align: center;
    margin-bottom: 60px;
}

.bhcm-intro-title {
    color: var(--brand-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.bhcm-intro-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--brand-accent);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.bhcm-slogan {
    font-size: 18px;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 30px;
}

.bhcm-mission-box {
    background: #fff;
    border-left: 5px solid var(--brand-primary);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* About Core Values Grid */
.bhcm-values-section {
    text-align: center;
    padding: 40px 0;
}

.bhcm-values-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-main);
}

.bhcm-values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    justify-content: center;
}

.bhcm-value-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bhcm-value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top-color: var(--brand-accent);
}

.bhcm-value-icon {
    width: 60px;
    height: 60px;
    background: rgba(1, 103, 1, 0.1);
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: background 0.3s, color 0.3s;
}

.bhcm-value-card:hover .bhcm-value-icon {
    background: var(--brand-primary);
    color: #fff;
}

.bhcm-value-text {
    font-weight: 600;
    font-size: 16px;
    color: #333;
}

/* About Store Image */
.bhcm-store-image-section {
    margin-top: 60px;
    text-align: center;
}

.bhcm-store-img {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* About Page Responsive */
@media (max-width: 992px) {
    .bhcm-values-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-template-page-gioi-thieu .page-banner-section {
        height: 250px;
    }
    .page-template-page-gioi-thieu .page-banner-section h1 {
        font-size: 28px;
    }
    .bhcm-about-container {
        padding: 30px 15px;
    }
    .bhcm-intro-title {
        font-size: 24px;
    }
}
