:root {
    --accent-color: #d4a373;
    --accent-hover: #b58556;
    --dark-bg: #111827;
    --light-gray: #f9fafb;
    --text-color: #374151;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Be Vietnam Pro', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-cinzel {
    font-family: var(--font-heading);
}

.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

.ls-3 {
    letter-spacing: 3px;
}

.fs-7 {
    font-size: 0.85rem;
}

.btn-accent {
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-dark {
    border-color: var(--dark-bg);
    color: var(--dark-bg);
}

.btn-outline-dark:hover {
    background-color: var(--dark-bg);
    color: #fff;
}

.navbar-nav .nav-link {
    color: var(--dark-bg);
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.hover-accent:hover {
    color: var(--accent-color) !important;
    transition: 0.3s;
}

.hero-slider {
    height: 80vh;
    min-height: 600px;
}

.hero-slider .swiper {
    height: 100%;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 6s ease;
}

.swiper-slide-active .slide-bg {
    transform: scale(1.1);
}

.overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    z-index: 1;
}

.banner-box {
    cursor: pointer;
}

.hero-slider .swiper-button-next {
    right: 50px;
}

.hero-slider .swiper-button-prev {
    left: 50px;
}

.overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    z-index: 1;
}

.transition-transform {
    transition: transform 0.6s ease;
}

.group-hover:hover .transition-transform {
    transform: scale(1.05);
}

.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s;
}

.banner-box:hover .link-underline::after {
    width: 100%;
}

.object-fit-cover {
    object-fit: cover;
}

.product-card {
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.product-img-wrap {
    height: 300px;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.product-card:hover .img-hover {
    opacity: 1;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-actions {
    opacity: 1 !important;
    bottom: 20px !important;
}

.product-title a:hover {
    color: var(--accent-color) !important;
    transition: 0.3s;
}

.badge-custom {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
    text-transform: uppercase;
}

.badge-sale {
    background-color: #ef4444;
    color: white;
}

.badge-new {
    background-color: var(--accent-color);
    color: white;
}

.product-card .btn {
    background-color: rgba(255, 255, 255, 0.9);
    transition: background 0.3s;
}

.product-card .btn:hover {
    background-color: #fff;
    color: var(--accent-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent-color) !important;
}

@media (max-width: 768px) {
    .promo-section {
        background-attachment: scroll !important;
        background-position: center center !important;
        background-size: cover !important;
    }
}

@media (max-width: 991px) {

    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }

    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }

    .hero-slider .display-3 {
        font-size: 2.5rem;
    }

    .banner-box[style*="height: 540px"],
    .col-12[style*="height: 260px"] {
        height: 300px !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand .fs-3 {
        font-size: 1.5rem !important;
    }

    .hero-slider {
        height: 50vh;
        min-height: 350px;
    }

    .hero-slider .display-3 {
        font-size: 2rem;
    }

    .hero-slider .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }

    .hero-slider .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem;
    }

    .usp-item {
        margin-bottom: 20px;
    }

    .section-padding {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .banner-box[style*="height: 540px"],
    .col-12[style*="height: 260px"] {
        height: 250px !important;
    }

    .banner-content {
        padding: 1.5rem !important;
    }

    .banner-content h3,
    .banner-content h4 {
        font-size: 1.5rem;
    }

    .product-img-wrap {
        height: 240px;
    }

    .promo-section {
        height: auto !important;
        padding: 60px 0;
        text-align: center;
    }

    .promo-section h2 {
        font-size: 2.5rem;
    }

    #countdown .display-6 {
        font-size: 2rem;
    }

    footer {
        text-align: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    .social-icons {
        margin-bottom: 2rem;
        justify-content: center;
        display: flex;
    }
}

/* --- BRAND SLIDER --- */
.brandSwiper .swiper-slide {
    padding-top: 20px;
    padding-bottom: 20px;
}


.brand-logo {
    max-height: 50px;
    max-width: 140px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.4s ease;
    cursor: pointer;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* --- MAGAZINE NEWS STYLE --- */
.news-hero {
    min-height: 400px;
    border-radius: 2px;
}

.overlay-gradient-bottom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hover-text-accent:hover {
    color: var(--accent-color) !important;
    transition: 0.3s;
}

.news-item-side {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-right: 3px solid transparent;
}

.news-item-side:hover {
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-right-color: var(--accent-color);
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 300px;
        margin-bottom: 20px;
    }
}

/* --- SEARCH DROPDOWN ANIMATION --- */
.search-wrapper {
    position: relative;
}

.search-input {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;

    width: 300px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.search-input::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    transform: rotate(45deg);
}

.search-wrapper.active .search-input {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input:focus {
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
    outline: none;
}

@media (max-width: 768px) {
    .search-input {
        width: 260px;
        right: -50px;
    }

    .search-input::before {
        right: 60px;
    }
}

.dropdown-item:active,
.dropdown-item.active {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(212, 163, 115, 0.1);
    color: var(--accent-color) !important;
}

/* --- BLOG GRID STYLE --- */
.blog-item:hover .transition-transform {
    transform: scale(1.05);
}

.page-link {
    color: var(--text-color);
    padding: 6px 14px;
    font-size: 0.85rem;
    margin: 0 12px;
    background: transparent;
    border: 1px solid transparent;
    font-weight: 600;
}

.page-link:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.03);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);
}

.page-link:focus {
    box-shadow: none;
}

.blog-img-grid {
    height: 240px;
    width: 100%;
    background: #f8f9fa;
}

.blog-grid-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: transparent !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination,
.page-numbers {
    display: flex;
    justify-content: center;
    padding-left: 0;
    list-style: none;
    margin-top: 3rem; /* Matches your mt-5 utility */
}

/* Target the items (LI or direct A/SPAN) */
.page-item,
ul.page-numbers li {
    margin: 0 5px;
}

/* General Link Style (Covers both Bootstrap .page-link and WP .page-numbers) */
.page-link,
a.page-numbers,
span.page-numbers {
    display: block;
    padding: 8px 16px; /* Increased padding for better click area */
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: transparent;
    border: 1px solid transparent; /* Keeps layout stable on hover */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 0 !important; /* Forces square corners as requested */
}

/* Hover State */
.page-link:hover,
a.page-numbers:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.03);
    border-color: transparent;
}

/* Active State (Current Page) */
.page-item.active .page-link,
span.page-numbers.current {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.4);
    cursor: default;
}

/* Disabled State (if you use it) */
.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
    background-color: transparent;
    border-color: transparent;
}

.page-item.active .page-link {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important; /* Force white text on active */
}

.page-item.active .page-link {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important; /* Chữ màu trắng */
    z-index: 1;
}

/* Link bình thường */
.page-link {
    color: var(--text-color); /* Màu đen xám */
    box-shadow: none !important; /* Bỏ viền xanh mặc định khi click */
}

/* Hover */
.page-link:hover {
    color: var(--accent-color);
    background-color: #f8f9fa;
}
/* --- CONTACT PAGE --- */
.contact-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.list-unstyled li:hover .contact-icon {
    background-color: var(--accent-color) !important;
    color: #fff !important;
}

.contact-form .form-control,
.checkout-form .form-control {
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.checkout-form .form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 2px var(--accent-color) !important;
}

.contact-form .btn-accent:hover {
    background-color: var(--dark-bg);
    border-color: var(--dark-bg);
}

/* --- CUSTOM TABS FOR CONTACT PAGE --- */
.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-color);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--text-color);
    background: transparent;
    border-bottom: 2px solid var(--accent-color);
}

/* --- MOBILE MENU ACTIVE STATE --- */
#mobileMenu .nav-link.active {
    color: var(--accent-color) !important;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px !important;
    transition: all 0.3s ease;
}

#mobileMenu .nav-link:active {
    background-color: rgba(212, 163, 115, 0.2);
}

/* --- ABOUT US PAGE --- */
.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Độ mờ cho nền dark */
.opacity-75 {
    opacity: 0.85 !important;
}

.mw-800 {
    max-width: 800px;
}

.entry-content h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

.entry-content .drop-cap {
    float: left;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 0.8;
    margin-right: 12px;
    margin-top: 5px;
    font-weight: bold;
    color: var(--accent-color);
}

.wp-caption {
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 8px;
}

/* --- BLOG DETAIL PAGE --- */

.mw-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.drop-cap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    margin-right: 10px;
    margin-top: 5px;
    font-weight: bold;
}

.blockquote {
    background-color: #f9fafb;
}

.blockquote p {
    font-size: 1.15rem;
    color: var(--dark-bg);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* --- SHOP / CATEGORY PAGE --- */

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.product-categories a {
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.product-categories a:hover {
    color: var(--accent-color) !important;
    padding-left: 5px;
}

.product-categories a.active {
    font-weight: 600;
    color: var(--accent-color) !important;
}

.form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 163, 115, 0.25);
    border-color: var(--accent-color);
}

@media (max-width: 991px) {
    #shopFilter .offcanvas-header {
        display: flex;
    }

    #shopFilter .offcanvas-body {
        padding: 20px !important;
    }
}

@media (min-width: 992px) {
    #shopFilter .offcanvas-header {
        display: none;
    }

    .offcanvas-lg {
        position: static;
        z-index: auto;
        flex-grow: 1;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        background-color: transparent !important;
        border: 0 !important;
        transform: none !important;
        transition: none;
    }
}

/* --- PRODUCT DETAIL PAGE --- */
.main-image-container {
    height: 500px;
    background-color: #f8f9fa;
}

.thumb-box {
    height: 100px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-box:hover,
.thumb-box.active {
    opacity: 1;
    border-color: var(--accent-color) !important;
}

.cursor-pointer {
    cursor: pointer;
}

.quantity-control {
    width: 120px;
}

.quantity-control input:focus {
    box-shadow: none;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: rgba(0, 0, 0, 0.02);
}

.table th {
    color: var(--text-color);
    font-weight: 600;
}

#productTab .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
}

#productTab .nav-link:hover {
    color: var(--accent-color);
}

#productTab .nav-link.active {
    color: var(--text-color);
    border-bottom-color: var(--accent-color);
    background: transparent;
}

@media (max-width: 768px) {
    .main-image-container {
        height: 350px;
    }

    .thumb-box {
        height: 80px;
    }
}

/* --- PRODUCT GALLERY SLIDER --- */
.galleryMain {
    height: 500px;
    width: 100%;
}

.galleryThumbs {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
}

.galleryThumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s;
}

.galleryThumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.galleryThumbs .swiper-slide-thumb-active .thumb-box {
    border-color: var(--accent-color) !important;
    border-width: 2px !important;
}

@media (max-width: 768px) {
    .galleryMain {
        height: 350px;
    }

    .galleryThumbs {
        height: 80px;
    }
}

/* --- CART PAGE --- */
.cart-table th {
    font-size: 0.8rem;
    color: #555;
    background-color: #f8f9fa;
}

.cart-table .img-fluid {
    max-width: none;
}

/* Nút xóa item */
.remove-item:hover {
    color: #dc3545 !important;
}

@media (max-width: 768px) {

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .cart-table {
        min-width: 600px;
    }
}

.payment-option-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.payment-option-card:hover {
    border-color: var(--accent-color);
}

.payment-option-card input:checked+.card-body {
    background-color: rgba(212, 163, 115, 0.05);
    border: 1px solid var(--accent-color);
}

#qr-container img {
    max-width: 250px;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
}

.order-summary-box {
    background: #fdfdfd;
    border: 1px dashed var(--accent-color);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4b5563;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.entry-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content h4 {
    font-size: 1.25rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.entry-content ul li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.entry-content ol {
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

.entry-content ol li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.entry-content figure {
    margin: 0 0 2rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-color);
    background-color: #f9fafb;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--dark-bg);
}

.entry-content hr {
    margin: 3rem 0;
    border-color: var(--accent-color);
    opacity: 0.3;
}

.entry-content a {
    color: var(--accent-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.3s;
}

.entry-content a:hover {
    color: var(--dark-bg);
}

/* --- Sidebar Menu Style --- */
.policy-menu .list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding-left: 20px;
    transition: all 0.3s;
}

.policy-menu .list-group-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.policy-menu .list-group-item:not(.active):hover {
    background-color: #f8f9fa;
    padding-left: 25px;
    color: var(--accent-color);
}

.map-container {
    background-color: #f8f9fa;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    filter: grayscale(100%);
    opacity: 0.9;
    transition: all 0.6s ease;
    display: block;
}

.map-container:hover iframe {
    filter: none;
    opacity: 1;
}

/* =========================================
   LEGAL / POLICY PAGE RESPONSIVE
   ========================================= */

@media (max-width: 991px) {

    .policy-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        border-bottom: 1px solid #eee;
    }

    .policy-menu .list-group-item {
        border: 1px solid #eee;
        margin-right: 10px;
        border-radius: 4px;
        padding: 10px 15px;
        background-color: #fff;
    }

    .policy-menu .list-group-item.active {
        background-color: var(--accent-color);
        border-color: var(--accent-color);
        color: #fff;
    }

    .card-header {
        display: none !important;
    }
    
    .card.shadow-sm {
        box-shadow: none !important;
        background: transparent;
    }

    .entry-content {
        font-size: 1rem;
        padding: 0 5px;
    }

    .entry-content h2 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }

    .entry-content h3 {
        font-size: 1.2rem;
    }

    .entry-content blockquote {
        padding: 15px 20px;
        font-size: 1.1rem;
        margin: 20px 0;
    }
}

.wpcf7-form-control-wrap {
    display: block;
    height: 100%;
}

.wpcf7-form-control-wrap input {
    height: 100% !important;
}

.error-number {
    font-size: 10rem;
    line-height: 1;
    background: -webkit-linear-gradient(#111827, #d4a373);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .error-number {
        font-size: 6rem;
    }
}

.wpcf7-form.submitting .cf7-loading-icon {
    display: inline-block !important;
}

.wpcf7-form.submitting button[type="submit"] {
    opacity: 0.7;      
    cursor: not-allowed;   
    pointer-events: none;  
}

.wpcf7-spinner {
    display: none !important;
}


.galleryMain .swiper-slide {
    overflow: hidden; 
    border-radius: 4px; 
    cursor: zoom-in; 
}

.galleryMain .swiper-slide img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform; 
}


.galleryMain .swiper-slide:hover img {
    transform: scale(1.1); 
}

.product-img-wrap {
    overflow: hidden;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Màu đen mờ */
    z-index: 0; /* Đảm bảo nó thấp hơn nội dung (z-1) */
}

/* --- Toast Notification (Thông báo thêm giỏ hàng) --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast-item {
    background: #fff;
    border-left: 4px solid #28a745; /* Màu xanh lá */
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 4px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    min-width: 300px;
}

.toast-item.show {
    transform: translateX(0);
}

.toast-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.toast-content h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.toast-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* --- Hiệu ứng nảy số giỏ hàng --- */
@keyframes cart-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.cart-bounce {
    animation: cart-bounce 0.3s ease;
}

/* --- CUSTOM ALERT MODAL --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Màu nền mờ */
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.custom-modal-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 4px; /* Bo góc nhẹ giống theme */
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.custom-modal-overlay.show .custom-modal-box {
    transform: translateY(0);
}

.custom-modal-icon {
    font-size: 3rem;
    color: var(--accent-color); /* Màu vàng đồng chủ đạo */
    margin-bottom: 20px;
}

.custom-modal-title {
    font-family: var(--font-heading); /* Font tiêu đề Playfair Display */
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.custom-modal-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.custom-modal-btn {
    padding: 10px 25px;
    border: 1px solid transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    border-radius: 0; /* Vuông góc giống nút theme */
}

/* Nút Confirm (Đồng ý) */
.custom-modal-btn.confirm {
    background-color: var(--accent-color);
    color: #fff;
}

.custom-modal-btn.confirm:hover {
    background-color: var(--accent-hover);
}

/* Nút Cancel (Hủy) */
.custom-modal-btn.cancel {
    background-color: transparent;
    border-color: #ddd;
    color: #666;
}

.custom-modal-btn.cancel:hover {
    background-color: #f8f9fa;
    color: var(--dark-bg);
    border-color: var(--dark-bg);
}