/* ==========================================================================
   HANH SPICES - BỘ MÀU NHẬN DIỆN THƯƠNG HIỆU THEO LOGO NÔNG SẢN
   - Màu chủ đạo 1: #733d16 (Nâu gia vị đất / Spices Cinnamon & Earth Brown)
   - Màu chủ đạo 2: #e58300 (Vàng cam nghệ tươi / Turmeric Amber Gold)
   - Màu nhấn thảo mộc: #528220 (Xanh lá thảo mộc / Herb Green)
   - Tông nền nhẹ ấm áp: #fff9f2 / #fbf5ee / #f8efe4
   ========================================================================== */

:root {
    /* Brand Colors từ logo Hanh Spices */
    --brand-primary: #733d16;          /* Nâu gia vị chính */
    --brand-primary-hover: #582d0e;    /* Nâu sẫm khi hover */
    --brand-primary-light: #8e4c1d;    /* Nâu sáng ấm */
    --brand-primary-soft: #fbf5ee;     /* Nền be nâu ấm nhạt */
    
    --brand-secondary: #e58300;        /* Vàng cam củ nghệ */
    --brand-secondary-hover: #cc7400;  /* Vàng cam đậm khi hover */
    --brand-secondary-light: #f59e0b;  /* Vàng cam tươi */
    --brand-secondary-soft: #fff9f0;   /* Nền vàng cam rất nhạt */

    --brand-accent-green: #528220;     /* Xanh thảo mộc tự nhiên */
    --brand-accent-green-soft: #f4f8ed;

    --brand-dark: #3a200f;             /* Nâu đen cho tiêu đề */
    --brand-text: #55483d;             /* Màu chữ nội dung */
    --brand-text-light: #837466;       /* Chữ phụ / chú thích */
    --brand-border: #ebdcc9;           /* Viền mềm mại tông ấm */
    --brand-border-light: #f5ece1;
    --brand-shadow: 0 4px 16px rgba(115, 61, 22, 0.08);
    --brand-shadow-hover: 0 8px 24px rgba(115, 61, 22, 0.14);
}

* {
    box-sizing: border-box;
}

::selection {
    background-color: var(--brand-secondary);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--brand-secondary);
    color: #ffffff;
}

body {
    padding: 0;
    margin: 0;
    float: left;
    width: 100%;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    line-height: 1.6;
    color: var(--brand-text);
    transition: all 0.3s ease 0s;
    font-weight: 400;
}

table {
    width: 100%;
    border-collapse: collapse;
}

button,
input,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="telephone"] {
    border-radius: 4px;
    border: solid 1px var(--brand-border);
    background-color: #fff;
    padding: 10px 14px;
    outline: none;
    color: var(--brand-dark);
    font-family: 'Josefin Sans', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 3px rgba(229, 131, 0, 0.18) !important;
    opacity: 1 !important;
    outline: 0;
    color: var(--brand-dark);
    background-color: #fff;
}

.kwbutton:hover, 
.button:hover,
input[type="submit"]:hover, 
input[type="reset"]:hover,
input[type="button"]:hover {
    outline: none;
    opacity: 1;
    color: #fff;
}

a {
    text-decoration: none;
    color: var(--brand-primary);
    transition: all 0.3s ease-in-out 0s;
}

a:hover {
    color: var(--brand-secondary);
}

p {
    margin: 0 0 11px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.4;
    color: var(--brand-dark);
}

h4, .h4, h5, .h5, h6, .h6 {
    margin-top: 11px;
    margin-bottom: 11px;
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 22px;
    margin-bottom: 12px;
}

.inner-container {
    max-width: 1240px;
    margin: auto;
    box-sizing: border-box;
    padding: 0 10px;
    width: 100%;
}

iframe {
    max-width: 100%;
}

.flex-class-center {
    align-items: center;
}

.flex-class-between {
    justify-content: space-between;
}

.flex-class {
    display: flex;
    flex-wrap: wrap;
}

.row {
    margin-right: -10px;
    margin-left: -10px;
}

.row::after,    
.inner-container::after {
    clear: both;
}

.inner-container::before,
.inner-container::after,
.row::after,
.row::before {
    display: table;
    content: " ";
}

.col-lg-1,
.col-lg-2,
.col-lg-2-5,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-10,
.col-lg-9,
.col-lg-12 {
    position: relative;
    min-height: 1px;
    padding-right: 10px;
    padding-left: 10px;
}

.col-lg-1 { width: 14.285714%; }
.col-lg-2 { width: 16.666667%; }
.col-lg-2-5 { width: 20%; }
.col-lg-3 { width: 25%; }
.col-lg-4 { width: 33.333333%; }
.col-lg-5 { width: 41.666667%; }
.col-lg-6 { width: 50%; }
.col-lg-7 { width: 58.33333333%; }
.col-lg-8 { width: 66.66666667%; }
.col-lg-9 { width: 75%; }
.col-lg-10 { width: 83.33333333%; }
.col-lg-11 { width: 91.66666667%; }
.col-lg-12 { width: 100%; }

select {
    border: 1px solid var(--brand-border);
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    background-image: url('../css/images/ico-select.png');
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-color: transparent;
    padding-right: 28px;
    text-indent: .01px;
    text-overflow: '';
    cursor: pointer;
}

.full-row {
    float: left;
    width: 100%;
}

.full-white {
    background-color: #fff;
    padding-bottom: 20px;
}

.full-content {
    min-height: 600px;
    padding: 30px 0;
}

img {
    max-width: 100%;
    height: auto;
}

.one-sidebar-pro,
main#main.one-sidebar {
    width: 74%;
    float: left;
}

.sidebar-one {
    float: right;
    width: 24%;
    margin-left: 2%;
}

.error_404 {
    color: var(--brand-primary);
    text-align: center;
    margin-top: 120px;
}

.error_404 .fa {
    font-size: 140px;
    color: var(--brand-secondary);
}

@media only screen and (max-width: 990px) {
    .one-sidebar-pro,
    main#main.two-sidebar,
    main#main.one-sidebar {
        width: 100%;
    }
}

@media only screen and (max-width: 991px) {
    .inner-container {
        padding: 0 10px !important;
    }
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    .inner-container,
    .col-lg-1,
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-9,
    .col-lg-10,
    .col-lg-12 {
        padding-right: 10px;
        padding-left: 10px;
    }
    .col-lg-2-5 {
        width: 25%;
    }
}

@media only screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }
    .full-content {
        padding: 20px 0;
    }
}

@media only screen and (max-width: 400px) {
    .col-lg-1,
    .col-lg-2,
    .col-lg-2-5,
    .col-lg-3,
    .col-lg-4,
    .col-lg-5,
    .col-lg-6,
    .col-lg-7,
    .col-lg-8,
    .col-lg-10,
    .col-lg-9,
    .col-lg-12 {
        width: 100% !important;
    }
    .full-content {
        padding: 15px 0;
    }
}

/* ==========================================================================
   HỆ THỐNG MÀU SẮC ĐỒNG BỘ TOÀN TRANG THEO LOGO HANH SPICES
   ========================================================================== */

/* 1. Header & Menu Navigation */
.full-header {
    border-bottom: 1px solid var(--brand-border-light);
}

.main-menu ul li a {
    color: var(--brand-dark);
    font-weight: 600;
    transition: color 0.25s ease;
}

.main-menu ul li:hover > a,
.main-menu ul li.current-menu-item > a,
.main-menu ul li.current_page_item > a,
.main-menu ul li.current-menu-ancestor > a {
    color: var(--brand-secondary) !important;
}

/* Header Search */
.header-search form input {
    background-color: var(--brand-primary-soft) !important;
    border: 1px solid var(--brand-border) !important;
    color: var(--brand-dark) !important;
}

.header-search form input:focus {
    border-color: var(--brand-secondary) !important;
    box-shadow: 0 0 0 3px rgba(229, 131, 0, 0.15) !important;
}

.header-search form .btn {
    color: var(--brand-primary) !important;
    transition: color 0.25s ease;
}

.header-search form .btn:hover {
    color: var(--brand-secondary) !important;
}

/* Header Mini Cart */
.btn-show-cart {
    color: var(--brand-primary) !important;
    font-weight: 600;
    transition: color 0.25s ease;
}

.btn-show-cart:hover {
    color: var(--brand-secondary) !important;
}

.btn-show-cart b.cart-count {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    font-weight: bold;
}

.cart-header .cart {
    border: 1px solid var(--brand-border) !important;
    box-shadow: var(--brand-shadow) !important;
    border-radius: 8px;
}

.cart-header .cart .button.wc-forward,
.woocommerce .cart-header .cart .button.wc-forward {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

.cart-header .cart .button.wc-forward:hover,
.woocommerce .cart-header .cart .button.wc-forward:hover {
    background-color: var(--brand-primary-hover) !important;
    color: #ffffff !important;
}

.cart-header .cart .button.checkout.wc-forward,
.woocommerce .cart-header .cart .button.checkout.wc-forward {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

.cart-header .cart .button.checkout.wc-forward:hover,
.woocommerce .cart-header .cart .button.checkout.wc-forward:hover {
    background-color: var(--brand-secondary-hover) !important;
    color: #ffffff !important;
}

.cart-header .amount {
    color: var(--brand-secondary) !important;
    font-weight: bold;
}

/* Language Selector Dropdown */
.custom-lang-selector .current-lang {
    border-color: var(--brand-border) !important;
    color: var(--brand-dark) !important;
}

.custom-lang-selector .current-lang i {
    color: var(--brand-primary) !important;
}

.custom-lang-dropdown-wrapper .lang-list {
    border-color: var(--brand-border) !important;
    box-shadow: var(--brand-shadow) !important;
}

.custom-lang-dropdown-wrapper .lang-item:hover,
.custom-lang-dropdown-wrapper .lang-item.active {
    background-color: var(--brand-secondary-soft) !important;
    color: var(--brand-primary) !important;
}

/* 2. Trang chủ (Homepage) */
.row-title h2,
.home-gt-title,
.home-boxpro-title,
.home-row-title,
h2.home-boxpro-title,
.home-gt h2 {
    color: var(--brand-primary) !important;
}

.row-title p::after {
    background-color: var(--brand-secondary) !important;
}

.btn-home {
    color: var(--brand-primary) !important;
    border: 2px solid var(--brand-primary) !important;
    background-color: transparent !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary) !important;
    box-shadow: 0 4px 12px rgba(115, 61, 22, 0.25);
}

.main-sp {
    border: 1.5px dashed var(--brand-secondary) !important;
    background-color: rgba(255, 249, 240, 0.4);
}

div.swiper-button-next:hover,
div.swiper-button-prev:hover {
    color: var(--brand-secondary) !important;
}

.rowbox-item h3 {
    color: var(--brand-primary) !important;
}

.review-content .review-icon {
    color: var(--brand-secondary) !important;
}

.post_date {
    color: var(--brand-primary) !important;
}

.item_post:hover .post_date {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
}

.home .item-post .item-post-content h3 a:hover,
.item_post:hover h3 a {
    color: var(--brand-secondary) !important;
}

/* 3. Sản phẩm WooCommerce & Danh mục (Products & Catalog) */
.woocommerce ul.products li.product {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--brand-shadow-hover) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--brand-dark);
    transition: color 0.25s ease;
}

.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: var(--brand-secondary) !important;
}

/* Giá sản phẩm (Price) */
.woocommerce div.product .summary .price,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product span.price,
.sidebar-one .price,
.woocommerce div.product .summary .price .amount,
.woocommerce ul.products li.product .price .amount,
.woocommerce div.product p.price,
.woocommerce div.product p.price ins,
.woocommerce div.product p.price .amount,
.woocommerce div.product .summary .price ins,
.woocommerce ul.products li.product .price ins {
    color: var(--brand-secondary) !important;
    font-weight: 700 !important;
}

.woocommerce div.product .summary .price del,
.woocommerce ul.products li.product .price del,
.woocommerce div.product .summary .price del .amount,
.woocommerce ul.products li.product .price del .amount,
.sidebar-one .price del,
.sidebar-one .price del .amount {
    color: var(--brand-text-light) !important;
    font-weight: normal !important;
}

/* Nhãn giảm giá & sale bubble */
.woocommerce ul.products li.product .onsale,
.woocommerce span.onsale {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light)) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(229, 131, 0, 0.3);
}

.devvn_percentage_bubble {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

/* Nút thêm vào giỏ trong danh sách */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

/* 4. Trang chi tiết sản phẩm (Single Product) */
.woocommerce div.product .product_title,
h1.single-heading {
    color: var(--brand-primary) !important;
}

.single-product .breadcrumb-title > p,
.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
    color: var(--brand-primary) !important;
}

.single-product .breadcrumb-title > p a:hover,
.woocommerce-breadcrumb a:hover {
    color: var(--brand-secondary) !important;
}

/* Nút mua ngay & thêm vào giỏ hàng chi tiết */
.woocommerce div.product form.cart .button,
.single-product .button.single_add_to_cart_button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce div.product form.cart .button:hover,
.single-product .button.single_add_to_cart_button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

.woocommerce div.product .stock.in-stock {
    color: var(--brand-accent-green) !important;
    font-weight: 600;
}

/* Box liên hệ dưới sản phẩm */
.product-contact-boxes {
    margin-top: 15px;
}

.product-contact-boxes .contact-item {
    border: 1px solid var(--brand-border) !important;
    background-color: var(--brand-secondary-soft) !important;
    border-radius: 8px;
}

.product-contact-boxes .contact-item i {
    color: var(--brand-secondary) !important;
}

.product-contact-boxes .contact-item .contact-title {
    color: var(--brand-primary) !important;
}

/* Tabs thông tin sản phẩm */
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-top: 3px solid var(--brand-primary) !important;
    color: var(--brand-primary) !important;
    font-weight: bold;
}

.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--brand-secondary) !important;
}

.single-product.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    border: 1px solid var(--brand-border) !important;
    border-top: 0 !important;
    border-radius: 0 0 8px 8px;
}

.single-product .related > h2 {
    color: var(--brand-primary) !important;
}

/* 5. Cột bên (Sidebar & Filters) */
.heading_box,
.widgettitle,
.heading_filter {
    color: var(--brand-primary) !important;
}

.heading_box::after,
.widgettitle::after,
.heading_filter::after {
    background-color: var(--brand-secondary) !important;
}

ul#menu-sidebar li a:hover,
.sidebar-menu li a:hover,
.category-post ul li a:hover {
    color: var(--brand-secondary) !important;
}

/* Giới hạn danh mục và nút xem thêm sidebar */
.menu-product-sidebar > li.cat-item.cat-item-hidden {
    display: none !important;
}

.sidebar-cat-toggle-wrap {
    margin: 5px 0 20px;
    text-align: center;
}

.btn-toggle-sidebar-cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: var(--brand-primary-soft, #fbf5ee);
    color: var(--brand-primary, #733d16);
    border: 1px solid var(--brand-border, #ebdcc9);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
    font-family: inherit;
}

.btn-toggle-sidebar-cat:hover,
.btn-toggle-sidebar-cat.active {
    background-color: var(--brand-secondary, #e58300);
    color: #ffffff;
    border-color: var(--brand-secondary, #e58300);
    box-shadow: 0 4px 12px rgba(229, 131, 0, 0.25);
}

.btn-toggle-sidebar-cat i {
    font-size: 13px;
    transition: transform 0.25s ease;
}

/* Price Filter Widget */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--brand-secondary) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--brand-primary) !important;
    border: 2px solid #ffffff !important;
}

.woocommerce .widget_price_filter .price_slider_amount .button {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

.woocommerce .widget_price_filter .price_slider_amount .button:hover {
    background-color: var(--brand-secondary) !important;
}

/* 6. Giỏ hàng & Thanh toán (Cart & Checkout) */
.woocommerce table.shop_table th {
    background-color: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    border-bottom: 2px solid var(--brand-border) !important;
}

.woocommerce table.shop_table td.product-name a:hover {
    color: var(--brand-secondary) !important;
}

.billing_bottom button,
.woocommerce .button.apply_input_coupon,
.woocommerce #place_order {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.billing_bottom button:hover,
.woocommerce .button.apply_input_coupon:hover,
.woocommerce #place_order:hover {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

/* Thông báo WooCommerce */
.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--brand-primary) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--brand-secondary) !important;
}

/* Phân trang (Pagination) */
.woocommerce-pagination ul.page-numbers li span.current {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 4px;
}

.woocommerce-pagination ul.page-numbers li a:hover {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

/* 7. Chân trang (Footer) */
.dki-left h2 {
    color: var(--brand-primary) !important;
}

.dki-right input.wpcf7-form-control.wpcf7-submit {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.dki-right input.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--brand-secondary-hover) !important;
    box-shadow: 0 4px 12px rgba(204, 116, 0, 0.35);
}

.footer-box h2 {
    color: var(--brand-primary) !important;
}

.footer-box-1 i {
    color: var(--brand-secondary) !important;
}

.footer-box ul li a:hover,
.footer-box a:hover {
    color: var(--brand-secondary) !important;
}

.full-footer-bottom {
    border-top: 1px solid var(--brand-border-light);
}

.full-footer-bottom a.design-by:hover {
    color: var(--brand-secondary) !important;
}

/* 8. Nút Back to top & Tiện ích nổi */
#bttop {
    background-color: var(--brand-primary) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#bttop:hover {
    background-color: var(--brand-secondary) !important;
    box-shadow: 0 4px 14px rgba(229, 131, 0, 0.4);
}

/* Form liên hệ (Contact Form 7) */
.contact-form-lh input.wpcf7-submit,
input.wpcf7-form-control.wpcf7-submit {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.contact-form-lh input.wpcf7-submit:hover,
input.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--brand-secondary) !important;
    color: #ffffff !important;
}

.breadcrumbs-page .page-title h1,
.breadcrumbs-page h1,
.content-lienhe h2,
.content-lienhe h3 {
    color: var(--brand-primary) !important;
}