/* =========================================
   RESPONSIVE FONT SYSTEM
   ========================================= */
:root {
    --font-extra-large: clamp(40px, 5vw, 72px);
    --font-h1: clamp(28px, 3.3vw, 48px);
    --font-middle-large: clamp(24px, 2.8vw, 42px);
    --font-h2: clamp(22px, 2.4vw, 36px);
    --font-center: clamp(20px, 2vw, 30px);
    --font-h3: clamp(18px, 1.8vw, 24px);
    --font-body-large: clamp(16px, 1.4vw, 20px);
    --font-body: clamp(14px, 1.2vw, 16px);
    --font-small: clamp(12px, 1vw, 14px);

    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --bg-muted: #f2f2f2;
    --bg-accent: #fff5f5;

    --radius: 10px;
    --transition: 0.25s ease;
}

h1 { font-size: var(--font-h1) !important; }
h2 { font-size: var(--font-h2) !important; }
h3 { font-size: var(--font-h3) !important; }
body { font-size: var(--font-body); line-height: 1.6; scroll-behavior: smooth;}
html {scroll-behavior: smooth;}

/* =========================================
   HEADER
   ========================================= */
/* header#header {
  position: fixed !important;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
} */

/* ----- Topbar ----- */
.header-wrapper .html_topbar_left.custom {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-wrapper .html_topbar_left.custom a {
  color: #fff;
  font-size: var(--font-small);
  font-weight: 600;
  display: flex;
  align-items: center;
}
.header-wrapper .html_topbar_left.custom div{
  display: flex;
  align-items: center;
}
.header-wrapper .html_topbar_left.custom .hotline-top-header:before {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  margin-right: 5px;
}

.header-wrapper .html_topbar_left.custom .email-top-header:before {
  content: "\f0e0";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #fff;
  margin-right: 5px;
}

/* ----- Header Search ----- */
.header-search-form-wrapper .searchform-wrapper form{
  width:100%;
}

.header-search-form-wrapper .searchform-wrapper {
  display: flex;
  align-items: stretch; /* hoặc center nếu bạn muốn */
  width: 100%;
}

.header-search-form-wrapper .searchform-wrapper input {
  flex: 1;
  border-radius: 5px 0 0 5px;
  padding: 0 20px;
  border: 1px solid #ddd;
  font-size: 16px;
  height: 50px;
  width: 100%;
  box-sizing: border-box;
}

.header-search-form-wrapper .searchform-wrapper button {
  border-radius: 0 5px 5px 0;
  width: 60px; /* hoặc auto nếu bạn muốn rộng theo nội dung */
  background: var(--fs-color-primary);
  border: 1px solid var(--fs-color-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 50px;
}
.header-search-form-wrapper .searchform-wrapper button:hover {
  background: var(--fs-color-secondary);
}

/* ----- Header Navigation ----- */
.header-wrapper .header-nav>li.menu-item{
  padding: 0 20px;
}
.header-wrapper .header-nav>li.menu-item>a.nav-top-link{
  position: relative;
}
.header-wrapper .header-nav>li.menu-item>a.nav-top-link:before{
  content:"";
  height: 2px;
  width: 0;
  position: absolute;
  background: var(--fs-color-secondary);
  bottom:0;
  transition: .3s ease;
}
.header-wrapper .header-nav>li.menu-item>a.nav-top-link:hover,
.header-wrapper .header-nav>li.menu-item.active>a.nav-top-link{
  color: var(--fs-color-secondary);
}
.header-wrapper .header-nav>li.menu-item>a.nav-top-link:hover:before,
.header-wrapper .header-nav>li.menu-item.active>a.nav-top-link:before
{
  width:100%;
}

/* =========================================
  FOOTER
   ========================================= */
   
.section-footer .col-large-left .col-information .box-no-image .box-text{
  padding:0 0 25px;
}
.section-footer .col-large-left .col-information .company-name{
  font-size: var(--font-center);
}
.section-footer .col-large-left .col-information .stack-list-icon-box div.text p{
  margin:0;
}
.section-footer .col-large-left .col-subscription .social-icons a{
  margin-right:20px;
}
.section-footer .col-large-left .col-subscription input.ff-el-form-control{
  background: #ffffff90;
  color:#fff;
}
.section-footer .col-right hr.line-separate{
  border: 1px solid var(--fs-color-primary);
  margin:5px 0 10px;
  opacity: .7;
}
.section-footer .col-right p:not(.text-heading){
  margin:0;
}
.section-footer .text-heading{
  font-weight: 600;
}
.section-footer .col-map-iframe iframe{
  border-radius: 16px;
}
.absolute-footer{
  border-top:.3px solid #fff;
}
.absolute-footer .payment-icons{
  display:none;
}
.absolute-footer .footer-secondary .block-list-policy{
  display:flex;
  gap:30px;
  color: #ffffff90;
}
.absolute-footer .footer-primary {
  padding:7.5px 0;
}
.absolute-footer .footer-primary .copyright-footer{
  color:#fff;
  display:flex;
  flex-direction:column;
}
.section-footer .stack-social-icon .icon-box img{
  filter: grayscale(1);
  transition: .3s ease;
}
.section-footer .stack-social-icon .icon-box:hover img{
  filter: grayscale(0);
}
.section-footer a{
  color:#fff;
}
.section-footer a:hover{
  color: var(--fs-color-primary);
}

@media (max-width:991px) {
  .section-footer .frm-fluent-form .ff-column-container{
    display:flex;
    flex-direction: column;
  }
}
/* =========================================
   BUTTONS
   ========================================= */
.button.button-cta {
  display: inline-block;
  border-radius: 10px;
  padding: 10px 30px;
  border: none;
  background: var(--fs-color-primary);
  color: #fff;
  font-weight: 600;
  font-size: var(--font-body);
  transition: all 0.3s ease;
}
.button.button-cta:hover {
  background: var(--fs-color-secondary);
  transform: translateY(-2px);
}

/* =========================================
   UTILITIES
   ========================================= */
.pdb-0 { padding-bottom: 0 !important; }
.m-0 { margin: 0 !important; }

.text-primary { color: var(--fs-color-primary) !important; }
.text-secondary { color: var(--fs-color-secondary) !important; }
.text-white { color: #fff !important; }

.text-body-large{ font-size:var(--font-body-large) !important; }
.text-center{ font-size:var(--font-center) !important; }
.text-small{ font-size:var(--font-small) !important; }

.capitalize { text-transform: capitalize !important; }
.uppercase { text-transform: uppercase !important; }
.bold { font-weight: 700 !important; }

.bg-light { background: var(--bg-light) !important; }
.bg-muted { background: var(--bg-muted) !important; }
.bg-gradient-primary { background: linear-gradient(to left, var(--fs-color-primary), var(--fs-color-secondary)) }
input:focus, textarea:focus{
  border-color: var(--fs-color-primary) !important;
}

img{
  border-radius: 10px;
}
/* product */

.product-small.has-hover .hover-slide-in.image-tools.grid-tools{
  top:50%;
  left:50%;
  transform: translate(-50%, -50%) !important;
  width: fit-content;
  height: fit-content;
}

.product-small .image-tools.grid-tools a.quick-view{
  width: 50px;
  height: 50px;
  font-size: var(--font-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: var(--fs-color-secondary);
  background: rgba(255,255,255,0.6);
}
.product-small .image-tools.grid-tools a.quick-view:hover{
  background: var(--fs-color-secondary);
  color:#fff;
  border-color: var(--fs-color-secondary);
}
/* =========================================
   RESPONSIVE FIXES
   ========================================= */
@media (max-width: 767px) {
  header#header {
    position: relative;
  }
  .header-search-form-wrapper .searchform-wrapper input {
    padding: 10px;
  }
}


/* =============== LIGHTBOX OVERLAY =============== */
div.custom-lightbox-content {
    position: fixed;
    top:0;
    left: 0;
    z-index: 999;
    max-width:100%;
    height:100%;
    width:100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display:none;
    align-items: center;
    justify-content: center;
}
div.custom-lightbox-content.active{
  display: flex;
}
div.custom-lightbox-content .light-box-modal{
  background: #fff;
  border-radius:16px;
}
div.custom-lightbox-content .light-box-modal .modal-header{ 
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background: var(--fs-color-primary);
    color:#fff;
    padding:10px 20px;
    border-radius:16px 16px 0 0;
}
div.custom-lightbox-content .light-box-modal .modal-header p.modal-title{
  margin:0;
  font-size: var(--font-h3);
  font-weight: bold;
}
div.custom-lightbox-content .light-box-modal .modal-header button{
  margin: 0;
}
div.custom-lightbox-content .light-box-modal .modal-header button span{
  font-size: var(--font-h3);
}
div.custom-lightbox-content .light-box-modal .modal-body{
  padding:20px;
}

/* filter product */
#shop-sidebar aside{
  box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
  background: var(--bg-light);
  border-radius: 16px;
}
#shop-sidebar aside .is-divider{
  display:none;
}
#shop-sidebar aside form{
  margin:0;
}
#shop-sidebar aside{
  padding: 20px 15px;
}
#shop-sidebar .widget_custom_html .widget-title.shop-sidebar:before{
  content:"\f0b0";
  font-family:"Font Awesome 6 Free";
  font-weight: 900;
  font-size: var(--font-h3);
  margin-right:10px;
}
#shop-sidebar .widget_custom_html .widget-title.shop-sidebar:after{
  content:"\f0dd";
  font-family:"Font Awesome 6 Free";
  font-weight: 900;
  font-size: var(--font-h3);
  margin-right:10px;
  position: absolute;
  top:50%;
  right:0;
  transform: translateY(-50%);
}
#shop-sidebar .widget-title.shop-sidebar{
  color: var(--fs-color-secondary);
  font-size: var(--font-h3);
  display:block;
  margin-bottom:15px;
  position: relative;
}
.wget-filter-product .nav-cat-product { list-style: none; margin: 0; padding-left: 15px; }
/* .wget-filter-product .filter-header{ background:rgba(58, 181, 74, 0.05); color:var(--fs-color-secondary); } */
.wget-filter-product .filter-header p{margin-bottom:15px; color: var(--fs-color-secondary);}
.wget-filter-product .category-filter > ul{padding-left:0}
.wget-filter-product .category-filter > ul >li.cat-filter-item{margin-left:0}
.wget-filter-product .category-filter > ul >li.cat-filter-item li{margin-left:5px}
.wget-filter-product .cat-filter-item { margin-bottom: 6px; }
.wget-filter-product .item-cat-name { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.wget-filter-product  a{ color:#000; }
.wget-filter-product .cat-filter-item.active>.item-cat-name a{ color:var(--fs-color-primary); }
.wget-filter-product .expand-icon { margin-left: 6px; transition: transform .3s ease; }
.wget-filter-product .expand-icon.active { transform: rotate(180deg); }
.wget-filter-product .nav-cat-product ul { display: none; margin-top: 4px; border-left: 1px dashed #ddd; padding-left: 12px; }
.wget-filter-product .nav-cat-product ul.open { display: block; }
.wget-filter-product .filter-cat-title { color: var(--primary-color, #222); text-decoration: none; }
.wget-filter-product .filter-cat-title:hover { color: var(--fs-color-secondary, #0066cc); }
.wget-filter-product input{margin:0}
.wget-filter-product input[type=checkbox] {margin-right:10px;}

/* Khi đang loading */
.products.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6; /* mờ sản phẩm */
}

/* Overlay trắng */
.products.loading::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.6);
    z-index: 10;
}

/* Spinner */
.products.loading::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 4px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    z-index: 11;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.shop-page-title{
  display:none;
}

/* Product Box */
.product-small .col-inner{
  padding:0 10px;
  height: 100%;
}
.product-small{
  margin-bottom:20px;
}
.product-box{
  border-radius:10px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-box .product-text-information .product-cats span{
  background: rgba(58, 181, 74,0.3);
  color: var(--fs-color-secondary);
  padding: 2px 5px;
  font-size: var(--font-small);
  border-radius:50px;
  margin-bottom:5px;
}
.product-box .product-text-information .button{
  margin:0;
  background:none;
  border:none;
  color: var(--fs-color-secondary);
  box-shadow: none;
  text-transform: none;
  padding:0;
}

.product-box .product-text-information .product-sub-data {
  font-size: var(--font-small);
}
.product-box .product-text-information .product-title{
  line-height:1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-box .product-text-information h3 a{
  color :var(--fs-color-secondary);
  font-size: var(--font-body-large);
}
.product-box a:hover{
  color :var(--fs-color-primary) !important;
}
.product-box .product-text-information .product-sub-data p{
  display:inline-block;
  margin:0;
}
.product-box img{
  border-radius:10px 10px 0 0;
}
.product-box .product-text-information {
    padding: 20px 10px 10px;
    display: flex;
    flex-direction: column;
    height: 220px;
    justify-content: space-between;
}
.related-products-wrapper .has-equal-box-heights .flickity-viewport .col-inner{
  padding-bottom:20px;
}
@media (max-width:850px) {
  #shop-sidebar .widget-title.shop-sidebar{
    cursor: pointer;
  }
  #shop-sidebar .wget-filter-product{
    display:none;
  }
}
.custom-summary-data {
    background: #fff;
    padding: 30px 25px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
    font-family: var(--font-body);
    color: #333;
}

/* Title sản phẩm */
.custom-summary-data .csd-product-title {
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Brand & Type */
.custom-summary-data .csd-brand-type {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-size: 14px;
    margin-bottom: 12px;
    gap: 6px;
}

.custom-summary-data .csd-brand-type {
    background: var(--bg-muted);
    padding: 4px 10px;
    border-radius: 12px;
    color: var(--fs-color-primary);
    font-weight: 500;
    font-size:var(--font-body);
    width: fit-content;
}

.custom-summary-data .csd-brand-type .separator-connect {
    margin: 0 6px;
    color: #999;
}

/* Categories */
.custom-summary-data .csd-categories {
    font-size: 14px;
    margin-bottom: 15px;
}

.custom-summary-data .csd-categories strong {
    font-weight: 600;
    margin-right: 5px;
}

/* Short description */
.custom-summary-data .csd-short-desc {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #555;
}

/* Button stack */
.custom-summary-data .stack.stack-button {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-direction: column;
    margin-bottom:30px;
}

.custom-summary-data .stack.stack-button .button {
    padding: 2px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.custom-summary-data .stack.stack-button .button{
  margin:0;
}
.custom-summary-data .csd-short-desc,
.custom-summary-data .csd-categories{
  font-size: var(--font-body);
}
.custom-summary-data .csd-share-buttons{
  margin-top:10px;
}
.custom-summary-data .csd-share-buttons a{
  margin-right:10px;
}
main#main .blog-wrapper.blog-archive.page-wrapper{
  padding-top:0
}
.product-lightbox.lightbox-content{
  border-radius:16px;
  height:70vh;
  width: 90vw;
  max-width:none;
}
.product-lightbox.lightbox-content .product-quick-view-container{
  height:100%;
  display:flex;
  flex-direction: column;
  justify-content: center;
}
/* .product-lightbox.lightbox-content .product-quick-view-container > .product.type-product{
  height:100%;
} */
.product-lightbox .custom-summary-data{
  padding:0;
  box-shadow: none;
}
/* .product-lightbox .product-quick-view-container .product-gallery *:not(.dot, .flickity-page-dots, .flickity-button.grid-news-block > *, .flickity-button){
  height:100%;
} */
.product-lightbox .product-quick-view-container .product-gallery img{
  border-radius:16px 0 0 16px;
}
@media (max-width: 849px) {
  main#main .blog-wrapper.blog-archive.page-wrapper>div.row.row-large{
    flex-direction: column-reverse;
  }
}
/* Responsive */
@media (max-width: 767px) {
    .custom-summary-data .custom-summary-data {
        padding: 20px 15px;
    }

    .custom-summary-data .csd-product-title {
        font-size: 22px;
    }

    .custom-summary-data .stack.stack-button {
        flex-direction: column;
    }

    .custom-summary-data .stack.stack-button .button {
        width: 100%;
    }
}
img.header_logo{
  border-radius: 0;
}
.woocommerce-breadcrumb, .woocommerce-breadcrumb a{
  text-transform: none !important;
}
.woocommerce-breadcrumb a:hover{
  text-decoration: underline;
}
/* Container pagination */
.pagination-custom-page.pagination-container {
    text-align: center;
    margin-top: 30px;
}

/* Danh sách trang */
.pagination-custom-page.pagination-container .page-numbers{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 8px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: var(--font-small);
   
}
/* Trang hiện tại */
.pagination-custom-page.pagination-container .page-numbers.current {
    background-color: var(--fs-color-secondary);
    color: #fff;
    border-color: var(--fs-color-secondary);
    font-weight: bold;
}

/* Hover effect */
.pagination-custom-page.pagination-container .page-numbers:hover:not(.current) {
    background-color: #e6f1e8;
    border-color: var(--fs-color-secondary);
    color: var(--fs-color-secondary);
}

/* Prev / Next */
.pagination-custom-page.pagination-container .prev,
.pagination-custom-page.pagination-container .next {
    font-weight: bold;
}

/* Responsive cho mobile */
@media screen and (max-width: 767px) {
    .pagination-custom-page.pagination-container .page-numbers {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/*  */
.woocommerce-pagination .page-number{
  font-size: var(--font-body);
}
.woocommerce-pagination .page-number:hover{
  background-color: #e6f1e8;
  color:var(--fs-color-primary)
}
/* single blog */
section.section-banner .banner-single:before{
  content:"";
  position: absolute;
  top:0;
  left:0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.5), transparent);
  z-index: 1;
}
section.section-banner .banner-single .text-box-banner{
   z-index: 9;
}
section.section-banner .banner-single .text-box-banner .post-meta{
  display:flex;
  gap:30px;
}
section.section-banner .banner-single .text-box-banner .post-meta .text-meta{
  margin-left:5px;
}
.article-inner .blog-share.text-center{
  font-size: var(--font-body) !important;
}
.article-inner .blog-share.text-center .social-icons a{
  margin: 0 10px;
}
.autocomplete-suggestions .autocomplete-suggestion{
  cursor: pointer;
}
.autocomplete-suggestions .autocomplete-suggestion:hover{
  color:var(--fs-color-primary);
}
.product-main .product-gallery .product-thumbnails a{
  padding:5px;
  border: none;
}
@media (min-width:767px){
  .col-md-6{
    width:50% !important;
  }
}
.btn.btn-default.btn-primary{
  background: var(--fs-color-secondary);
  padding:10px 20px;
}
/* header-search */
/* ===== Search header ===== */
.header-nav-main .html.custom{
  width: 100%;
}
.group-header-search-type {
    width: 90%;
    margin: 0 auto;
}

.group-header-search-type form {
    width: 100%;
}

.group-header-search-type .flex-row {
    display: flex;
    align-items: center;
    border:1px solid #eee;
    border-radius: 8px;
}

/* Select + Input */
.group-header-search-type select,
.group-header-search-type input[type="text"] {
    height: 40px;
    border: none;
    outline: none;
    padding: 0 10px;
    font-size: var(--font-body);
    background: transparent;
}

.group-header-search-type select {
    min-width: 140px;
    border-right: 1px solid #eee;
    background: var(--fs-color-secondary);
    border-radius:8px 0 0 8px;
    color:#fff;
    position: relative;
}
.group-header-search-type select:focus{
  background: var(--fs-color-secondary);
  color:#fff;
}
.group-header-search-type .select-wrapper{
  position: relative;
}
.group-header-search-type .flex-col-full-w{
  width: 100%;
}
.group-header-search-type .select-wrapper:after{
  content:"\f0dd";
  font-family: "Font Awesome 6 Free";
  color:#fff;
  position: absolute;
  right:10px;
  left: auto;
  top:50%;
  transform: translateY(-50%);
  font-weight: 900;
}
.group-header-search-type input[type="text"] {
    width: 100%;
}

/* Button */
.group-header-search-type .submit-button {
    height: 40px;
    width: 50px;
    padding: 0 14px;
    color: #fff;
    border-radius: 0 8px 8px 0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
    margin:0 !important;
}

.group-header-search-type .submit-button i {
    font-size: 16px;
}

/* Responsive */
@media (max-width: 849px) {
  .group-header-search-type,
  .group-header-search-type .select-wrapper{
    width: 100%;
  }
  .group-header-search-type .flex-row {
      flex-wrap: wrap;
      gap:10px;
      border: none;
  }

  .group-header-search-type select,
  .group-header-search-type input {
      width: 100%;
      border-right: none;
  }
  .group-header-search-type select{
    border-radius: 8px;
  }

  .group-header-search-type .submit-button {
      width: 100%;
      margin-top: 6px;
  }
}
.live-search-results-full{
    background: #fff;
    position: absolute;
    z-index: 99;
    width: 100%;
    display: none;
    left:0;
}
.live-search-results-full .autocomplete-suggestions{
    height:500px;
    overflow-y: scroll;
}
div.header-main {
  background :#fff;
}