/*
Theme Name: Flatsome Nixon
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
/* Khai báo font Inter 600 tải từ host */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('./fonts/inter-v20-latin_vietnamese-600.woff2') format('woff2');
  font-display: swap;
}

/* Khai báo font Inter 700 tải từ host */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/inter-v20-latin_vietnamese-700.woff2') format('woff2');
  font-display: swap;
}

/* 1. Dùng Font hệ thống cho toàn bộ nội dung body (Tốc độ tối đa) */
body, p, span, a, li, div {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

/* 2. Dùng Font Inter local cho các thẻ Tiêu đề, Menu, Nút bấm */
h1, h2, h3, h4, h5, h6, 
.nav-top-link, .nav-uppercase, .uppercase, .is-large, button, .button {
    font-family: 'Inter', sans-serif !important;
}
.topbar-wrap {
  width: 100%;
  background: #1a1a1a;
  height: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 9999;
  user-select: none;
}

.topbar-btn {
  flex-shrink: 0;
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  cursor: pointer;
  color: #c9a96e;
  font-size: 18px;
  line-height: 1;
  transition: background 0.2s ease;
  padding: 0;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.topbar-btn:active {
  background: rgba(255, 255, 255, 0.22);
}

.topbar-viewport {
  flex: 1;
  overflow: hidden;
  height: 100%;
}

.topbar-slider {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.topbar-slide {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: #f0ece4;
  letter-spacing: 0.04em;
  font-family: 'Georgia', serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-slide .topbar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c9a96e;
  flex-shrink: 0;
}

.topbar-slide em {
  color: #c9a96e;
  font-style: italic;
  font-weight: bold;
}

/* Responsive: thu nhỏ font trên mobile */
@media (max-width: 480px) {
  .topbar-slide {
    font-size: 11.5px;
    gap: 7px;
  }
  .topbar-btn {
    width: 30px;
    font-size: 15px;
  }
}
/* Bỏ background vì topbar Flatsome đã có nền đen sẵn */
.topbar-wrap {
  background: transparent;
  height: 40px;
}

/* Chữ trắng hoàn toàn, bỏ font Georgia */
.topbar-slide {
  color: #ffffff;
  font-family: inherit; /* dùng font của Flatsome */
  font-size: 13px;
  letter-spacing: 0.05em;
}

/* Bỏ màu vàng của em, đổi sang trắng */
.topbar-slide em {
  color: #ffffff;
  font-style: normal;
  font-weight: normal;
}

/* Bỏ chấm tròn vàng */
.topbar-dot {
  display: none;
}

/* Nút hai bên trắng */
.topbar-btn {
  color: #ffffff;
  background: transparent;
  font-size: 18px;
  margin:0px;
}

.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
#top-bar .flex-left, 
#top-bar .flex-right {
    display: none !important; 
}

/* 2. Ép cột giữa của riêng Top Bar bung rộng 100% */
#top-bar .flex-center {
    flex: 1 1 100% !important; 
    max-width: 100% !important;
     padding: 0 !important;
}
#top-bar .flex-center li {
  width: 100%;
  margin: 0;
  padding: 0;
}
/* 1. KHÓA CHẶT HỘP MẸ: Xóa padding đáy và thu hẹp chiều cao */
.header-main .searchform .flex-row {
    display: flex !important;
    flex-direction: row-reverse !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    border-bottom: 1.5px solid #adadad !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important; /* Ép sát viền đáy 100% */
    height: 32px !important; /* Thu nhỏ chiều cao tổng thể */
    padding-left: 5px;
    max-width: 200px !important;
}

/* 2. ÉP CỘT CHỨA Ô CHỮ */
.header-main .searchform .flex-row .flex-col.flex-grow {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 3. ÉP CỘT CHỨA KÍNH LÚP */
.header-main .searchform .flex-row .flex-col:not(.flex-grow) {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* 4. Ô nhập chữ: Lùn xuống cho khớp viền */
.header-main .searchform input.search-field {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 0 0 12px !important;
    margin: 0 !important;
    height: 32px !important; /* Bằng đúng chiều cao hộp mẹ */
    line-height: 32px !important; /* Giúp chữ luôn nằm chính giữa chiều dọc */
	color:rgb(20, 19, 19) !important;
}

/* 5. Nút kính lúp: Lùn xuống cho khớp viền */
.header-main .searchform button.submit-button {
    background: transparent !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 8px 0 0 !important;
    margin: 0 !important;
    height: 32px !important; /* Bằng đúng chiều cao hộp mẹ */
    position: static !important;
    min-width: unset !important;
}
/* 6. Đổi màu chữ gợi ý (Placeholder) thành xám đen */
.header-main .searchform input.search-field::placeholder {
    color: #555555 !important; /* Mã màu xám đen */
    opacity: 1 !important; /* Ép trình duyệt hiển thị rõ màu 100%, không bị làm mờ thêm */
    font-weight: 400 !important; /* Độ dày của chữ vừa phải */
}

/* Hỗ trợ thêm cho các trình duyệt cũ (Safari, Chrome bản cũ trên điện thoại) */
.header-main .searchform input.search-field::-webkit-input-placeholder {
    color: #555555 !important;
    opacity: 1 !important;
}
.toki-mega-row {
    max-width: 1200px !important; /* Đảm bảo độ rộng khung an toàn */
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: flex !important; /* Giúp căn giữa các cột bên trong tốt hơn */
    align-items: center; /* Căn giữa nội dung theo chiều dọc */
    padding:10px 15px;
}
.menu-view-all > a {
    color: #cc0000 !important; /* Màu đỏ thương hiệu của bạn */
    font-weight: bold;
    font-size: 14px;
}

.menu-view-all > a:hover {
    color: #c0392b !important;
}
.mobile-sidebar ul.children li a, 
.mobile-sidebar ul.sub-menu li a {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    font-size: 15px; /* Tăng cỡ chữ lên một chút cho dễ đọc */
    color: #444; /* Màu xám than sang trọng hơn màu xám nhạt */
}
/* 3. Thêm một đường gạch mờ giữa các mục con để phân cực rõ ràng (tùy chọn) */
.mobile-sidebar ul.sub-menu li {
    border-bottom: 1px solid #f1f1f1;
}
/* Đồng bộ hóa màu nền và độ bóng để trông lì hơn */
.header-wrapper.stuck {
    background-color: #fff !important; /* Hoặc màu bạn đang dùng cho Header */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important; /* Đổ bóng cực nhẹ cho sang */
}
/* Tinh chỉnh dải Cam kết Thương hiệu Toki Time */
.section-cam-ket-toki {
    background-color: #ffffff !important; /* Đảm bảo nền trắng sạch */
    border-top: 1px solid #eeeeee;       /* Đường kẻ trên mảnh như sợi tóc */
    border-bottom: 1px solid #eeeeee;    /* Đường kẻ dưới phân cách với phần thân */
    padding-top: 15px !important;        /* Khoảng cách trên vừa phải */
    padding-bottom: 15px !important;     /* Khoảng cách dưới vừa phải */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* Đổ bóng cực mờ để tạo khối 3D nhẹ */
}

/* Làm cho các Icon và Chữ bên trong chuyên nghiệp hơn */
.section-cam-ket-toki .icon-box-text h3, 
.section-cam-ket-toki .icon-box-text p {
    margin-bottom: 0 !important;         /* Loại bỏ khoảng trống thừa dưới chữ */
    font-size: 0.9em;                    /* Chữ nhỏ lại một chút nhìn sẽ sang hơn */
    color: #333;                         /* Màu chữ xám đậm dễ đọc */
}

/* Hiệu ứng di chuột cho các khối icon */
.section-cam-ket-toki .icon-box:hover {
    transform: translateY(-2px);         /* Nhích nhẹ lên khi khách rà chuột vào */
    transition: all 0.3s ease;
}
@media (max-width: 760px) {
    .category-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
    .category-scroll .col {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
}
.toki-intro-text {
    max-width: 850px; /* Giới hạn độ rộng để chữ không bị dàn quá ngang */
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Tạo bóng mờ nhẹ để chữ nổi bật trên ảnh */
}

/* Tùy chỉnh dòng Headline (Tiêu đề lớn) */
.toki-intro-text h3, 
.toki-intro-text .headline {
    font-family: "Playfair Display", serif; /* Font có chân sang trọng, hoài cổ */
    font-size: 2.2em !important;
    color: #ffffff;
    text-transform: none;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

/* Tùy chỉnh đoạn văn bản (Sứ mệnh) */
.toki-intro-text p, 
.toki-intro-text .description {
    font-family: "Montserrat", sans-serif; /* Font không chân hiện đại, dễ đọc */
    font-size: 1.1em !important;
    line-height: 1.8 !important; /* Dãn dòng thưa cho sang */
    color: #f1f1f1 !important; /* Màu trắng hơi dịu để không bị chói */
    font-weight: 400;
}

/* Tinh chỉnh cho điện thoại (Mobile) */
@media (max-width: 549px) {
    .toki-intro-text {
        padding: 0 15px;
    }
    .toki-intro-text h2, 
    .toki-intro-text .headline {
        font-size: 1.4em !important; /* Giảm cỡ chữ trên mobile để không bị nhảy quá nhiều dòng */
    }
    .toki-intro-text p {
        font-size: 0.95em !important;
        line-height: 1.6 !important;
    }
}
#footer .social-icons a {
    margin-right: 10px; /* Khoảng cách giữa các icon */
    margin-left: 10px;  /* Khoảng cách đều hai bên */
    margin-bottom: 0px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hiệu ứng khi di chuột vào (Hover) */
#footer .social-icons a:hover {
    transform: translateY(-3px); /* Nhảy nhẹ lên trên */
    color: #e1b941 !important;    /* Đổi sang màu vàng gỗ/đồng của Toki */
}

/* Xóa khoảng cách thừa của icon cuối cùng */
#footer .social-icons a:last-child {
    margin-right: 0;
}
.custom-category-header { margin-bottom: 0px; padding-top:15px; padding-left: 5px; padding-right: 5px;}
.custom-breadcrumb, .woocommerce-breadcrumb { font-size: 13px; color: #666; margin-bottom: 10px; }
.custom-breadcrumb a { color: #333; text-decoration: none; }
.custom-breadcrumb .sep { margin: 0 5px; color: #999; }

.cat-title { font-size: 28px; font-weight: bold; margin-bottom: 8px; color: #222; }
.cat-short-desc { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 15px; }

.tag-pills-container {
    margin: 15px 0 25px 0; /* Tạo khoảng cách thoáng giữa mô tả và danh sách sản phẩm */
}
.product-page-title .page-title-inner {
    padding-top: 15px;
    padding-left: 5px;
    padding-right: 5px;
}
/* Thêm dòng này vào phần CSS của bạn */
.tag-pills-container {
    margin-bottom: 0 !important; /* Ép buộc không có margin dưới */
    padding-bottom: 0 !important;
}
.tag-pills-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0; /* Tránh bị cắt mất bóng đổ hoặc viền khi trượt */
}

.tag-pills-scroll::-webkit-scrollbar { display: none; }

.pill { 
    display: inline-block;
    padding: 7px 18px;
    background: #ffffff; /* Nền trắng cho sạch sẽ */
    border-radius: 30px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    border: 1px solid #ddd; /* Viền mảnh màu xám nhạt */
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.pill:hover {
    border-color: #000; /* Khi di chuột vào thì viền đen */
    color: #000;
    background: #f9f9f9;
}
.toki-tag-label {
    padding: 7px 0px;
    font-size: 0.8rem;
    color: #999;
}
/* Thêm gạch ngang dưới toàn bộ Header */
#header {
    border-bottom: 1px solid #f5f6f6;
}
.toki_head_description {
padding: 0px;
}
.archive .page-title-inner {
    padding-top: 0px;
    min-height: 0;
}
/* Tùy chỉnh hộp chọn sắp xếp */
.orderby {
    font-size: 13px !important;
    border: 1px solid #f1f1f1 !important;
    border-radius: 5px !important;
    color: #666 !important;
    padding: 5px 10px !important;
}
.pill:hover { background: #333; color: #fff; border-color: #333; }
.name.product-title a {
    font-size: 15px; /* Tăng nhẹ cỡ chữ */
    font-weight: 600; /* Làm đậm tên */
    color: #222; /* Màu đen sâu hơn để nổi bật */
    line-height: 1.4;
}
.price-wrapper .price {
    font-size: 16px;
    font-weight: bold;
    color: #111; /* Màu giá tiền chính */
}
/* Tùy chỉnh cho giá đang giảm (sale) */
.price del .amount {
    font-weight: normal;
    opacity: 0.5; /* Làm mờ giá cũ */
    font-size: 0.9em;
    margin-right: 5px;
}
.woocommerce-Price-currencySymbol {
    font-weight: normal;
    font-size: 0.8rem;
}
.product-small:hover .name.product-title a {
    color: #888; /* Màu sẽ đổi khi hover vào card sản phẩm */
}
/* Đưa nút Mua Ngay xuống hàng riêng và dãn hết cỡ */
.ux-buy-now-button, .single_add_to_cart_button {
    flex: 1 1 100% !important;
    margin-top: 10px; /* Tạo khoảng cách với hàng trên */
    display: block;
    width: 100%;
}

/* Đảm bảo khung chứa bao quát được các nút */
.cart {
    display: flex;
    flex-wrap: wrap;
}
.toki-zalo-consult {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.toki-zalo-consult a {
    color: #0068ff;
    text-decoration: none;
}
.mini-icon .icon-box-img {
    margin: 0px auto;
}
/* Tinh chỉnh dải Cam kết Thương hiệu Toki Time */
.section-cam-ket-mini {
    background-color: #ffffff !important; /* Đảm bảo nền trắng sạch */
    border-top: 1px solid #eeeeee;       /* Đường kẻ trên mảnh như sợi tóc */
    border-bottom: 1px solid #eeeeee;    /* Đường kẻ dưới phân cách với phần thân */
    padding-top: 5px !important;        /* Khoảng cách trên vừa phải */
    padding-bottom: 5px !important;     /* Khoảng cách dưới vừa phải */
    box-shadow: 0 2px 5px rgba(0,0,0,0.03); /* Đổ bóng cực mờ để tạo khối 3D nhẹ */
}

/* Làm cho các Icon và Chữ bên trong chuyên nghiệp hơn */
.section-cam-ket-mini .icon-box-text h3, 
.section-cam-ket-mini .icon-box-text p {
    margin-bottom: 0 !important;         /* Loại bỏ khoảng trống thừa dưới chữ */
    font-size: 0.8em;                    /* Chữ nhỏ lại một chút nhìn sẽ sang hơn */
    color: #333;                         /* Màu chữ xám đậm dễ đọc */
    line-height: normal;
}

/* Hiệu ứng di chuột cho các khối icon */
.section-cam-ket-mini .icon-box:hover {
    transform: translateY(-2px);         /* Nhích nhẹ lên khi khách rà chuột vào */
    transition: all 0.3s ease;
}
.menu-product, .menu-product .col {
    padding-bottom: 0px;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}