/*
Theme Name: Flatsome Child
Template: flatsome
*/
/* Định dạng phần thuộc tính sản phẩm */
.ft-hp .ft-title {
  font-weight: 600;
  text-transform: uppercase;
}
.ft-hp p.ft-link {
  color: black;
  margin-bottom: 10px !important;
}
.ft-hp p.ft-sv {
  text-align: center;
  color: black;
  margin-bottom: 10px !important;
  margin-top: 30px;
}
/* liên hệ */

.cf7-contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.cf7-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -7px;
}

.cf7-field {
  padding: 0 7px 14px;
}

.cf7-half {
  width: 50%;
}

.cf7-full {
  width: 100%;
}

.cf7-contact-form label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #b0171f; /* màu đỏ label */
}

.cf7-contact-form input[type="text"],
.cf7-contact-form input[type="email"],
.cf7-contact-form input[type="tel"],
.cf7-contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 14px;
  border-radius: 0;
  box-sizing: border-box;
}

.cf7-contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

.cf7-submit-wrap input[type="submit"] {
  background: #a70d1a; /* màu nút đỏ */
  color: #fff;
  border: none;
  padding: 10px 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cf7-submit-wrap input[type="submit"]:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .cf7-half {
    width: 100%;
  }
}
.tex-lh h1 {
  text-align: center;
  color: var(--e-global-color-primary);
  font-family: "Lora", Sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  font-style: normal;
  line-height: 30px;
  letter-spacing: 2px;
}
.tex-lh p {
  text-align: justify;
  color: #333;
}
/* header */
.nav > li > a {
  font-size: 16px !important;
  color: #333;
  font-weight: 400 !important;
}

.header-bottom-nav {
  justify-content: space-between !important;
}

#wide-nav div.flex-col.hide-for-medium.flex-left {
  width: 100%;
}
/* store */
/* === Shop & Category WooCommerce full width trong Flatsome === */

/* Shop (cửa hàng) */
.post-type-archive-product .category-page-row,
.post-type-archive-product .category-page-row .row {
  max-width: 100% !important;
}

/* Danh mục sản phẩm */
.tax-product_cat .category-page-row,
.tax-product_cat .category-page-row .row {
  max-width: 100% !important;
}

/* Tag sản phẩm nếu bạn dùng */
.tax-product_tag .category-page-row,
.tax-product_tag .category-page-row .row {
  max-width: 100% !important;
}

/*  */

/* HERO CATEGORY BACKGROUND */
.category-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 110px 0 150px; /* text nằm cao hơn, không giữa màn hình */
  color: #fff;
}

/* lớp phủ tối nền ảnh */
.category-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.55) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* đẩy block nội dung sang bên phải, nằm trên cùng */
.category-hero .container {
  position: relative;
  display: flex;
  justify-content: flex-end; /* sang phải */
}

/* hộp chứa tiêu đề + mô tả */
.hero-content-box {
  max-width: 520px;
  text-align: right;
}

/* tiêu đề "RƯỢU MẠNH" */
.hero-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: #fff;
}

/* đoạn mô tả ngắn */
.hero-top-des {
  font-size: 13px;
  line-height: 1.7;
  color: #f5f5f5;
  opacity: 0.95;
}

.hero-top-des p {
  margin: 0 0 4px;
}

/* Mobile */
@media (max-width: 767px) {
  .category-hero {
    padding: 90px 0 80px;
  }
  .category-hero .container {
    justify-content: flex-start;
  }
  .hero-content-box {
    max-width: 100%;
    text-align: left;
  }
  .hero-title {
    font-size: 20px;
    letter-spacing: 0.12em;
  }
  .hero-top-des {
    font-size: 12px;
  }
}
.opus-price-note {
  margin-top: 15px;
  padding: 6px 10px;
  color: #990d23;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  display: block;
  letter-spacing: 1px;
  font-style: italic;
  font-family: "Lora", Sans-serif;
}
.product-attributes-grid {
  margin-top: 25px;
}

.attr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Desktop: 3 cột */
  gap: 18px 25px;
}

@media (max-width: 767px) {
  .attr-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 cột */
    gap: 15px 18px;
  }
}

.attr-col {
  display: flex;
  flex-direction: column;
}

.attr-label {
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.attr-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.attr-value a {
  color: #ae0c00;
  text-decoration: none;
}

.attr-value a:hover {
  text-decoration: underline;
}

.attr-col[class*="attr-pa_"]::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 4px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Add padding so text không đè lên icon */
.attr-col[class*="attr-pa_"] {
  position: relative;
  padding-left: 28px;
}

.attr-pa_quoc-gia::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/world.png");
}

.attr-pa_loai-vang::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/wine-bottle.png");
}

.attr-pa_loai-ruou::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/drink.png");
}

.attr-pa_giong-nho::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/grape.png");
}

.attr-pa_nong-do::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/percent.png");
}

.attr-pa_nha-san-xuat::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/brand-image.png");
}

.attr-pa_chieu-cao::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/height.png");
}

.attr-pa_chieu-dai::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/length.png");
}

.attr-pa_hinh-dang::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/shapes.png");
}

.attr-pa_qua::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/gift.png");
}

.attr-pa_ring::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/vaginal.png");
}

.attr-pa_hop::before {
  background-image: url("/wp-content/themes/flatsome-child/assets/icons/supplies.png");
}

.wc-tabs,
.product-tabs,
.tabs {
    display: none !important;
}
.hp-faq-section {
  margin-top: 40px;
}

.hp-faq-section .section-title {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ae0c00;
  margin-bottom: 20px;
}
.product-attr-note {
  background: #f5f5f5;
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-attr-note ul {
  margin: 0;
  padding-left: 18px;
}

.product-attr-note li {
  margin-bottom: 6px;
}

.product-attr-note li:last-child {
  margin-bottom: 0;
}
.product-price-after-note {
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 15px;
}
.product-price-after-note span.amount {
  color: #990d23;
}

.hp-contact-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.hp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 45px;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none !important;
  font-size: 20px;
}

/* Nút từng mạng */
.hp-call {
  background: #ae0c00; /* đỏ thương hiệu */
}

.hp-facebook {
  background: #1877f2;
}

.hp-zalo {
  background: #1da1f2; /* màu xanh Zalo */
}

.hp-tiktok {
  background: #000;
}

.hp-btn:hover {
  opacity: 0.85;
}
.hp-contact-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

.hp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  color: #fff;
  font-size: 20px;
  border-radius: 6px;
  text-decoration: none;
  width: 100%; /* quan trọng */
}

/* màu từng nút */
.hp-call {
  background: #ae0c00;
}
.hp-facebook {
  background: #1877f2;
}
.hp-zalo {
  background: #1da1f2;
}
.hp-tiktok {
  background: #000;
}

.hp-btn:hover {
  opacity: 0.85;
}
.product-title {
  color: #481116;
  font-family: "Lora", Sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  font-style: normal;
  line-height: 36px;
  letter-spacing: 2px;
}
.shop-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.toolbar-left {
  flex-shrink: 0; /* không co lại */
}

.toolbar-right {
  margin-left: auto; /* đẩy dropdown qua phải */
}

.toolbar-right .woocommerce-ordering {
  margin: 0 !important;
  float: none !important;
}

/* MOBILE */
@media (max-width: 768px) {

  /* hiện nút filter */
  .toolbar-filter-btn {
    display: inline-flex;
  }

  /* ẩn result count */
  .toolbar-left {
    display: none;
  }

  .toolbar-right select.orderby {
    max-width: 180px;
    height: 36px;
  }
}
.mobile-filter-button-wrapper {
    background: rgba(174, 12, 0, 0.05); /* đỏ vang mờ 5% */
    border: 1px solid rgba(174, 12, 0, 0.15);
    padding: 8px 6px;
    border-radius: 6px;
    height: auto; /* thay vì 36px */
}


.shop-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
/*  */
/* Khối widget filter */
/* Widget filter attribute */
.woocommerce-widget-layered-nav {
    margin-bottom: 20px;
}

/* Tiêu đề có icon caret để toggle */
.woocommerce-widget-layered-nav .widget-title {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 18px;
    text-transform: uppercase;
}

.woocommerce-widget-layered-nav .widget-title::after {
    content: '▾';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.woocommerce-widget-layered-nav.open .widget-title::after {
    content: '▴';
}

/* Wrapper dùng để animate height */
.woocommerce-widget-layered-nav .form-wrapper {
    overflow: hidden;
    height: 0;
    transition: height .25s ease;
}

/* Form checkbox */
.woocommerce-widget-layered-nav-checkboxes {
    margin-top: 8px;
}

/* Danh sách checkbox (scroll nếu dài) */
.checkbox-list-wrapper {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkbox-list-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checkbox-list-wrapper li {
    margin-bottom: 6px;
}

.checkbox-list-wrapper label {
    display: flex;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-list-wrapper input[type="checkbox"] {
    margin-right: 8px;
}

.checkbox-list-wrapper .term-name {
    flex: 1;
}

.checkbox-list-wrapper .count {
    font-size: 12px;
    color: #888;
}

/* Scrollbar nhẹ */
.checkbox-list-wrapper::-webkit-scrollbar {
    width: 4px;
}
.checkbox-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.15);
    border-radius: 4px;
}

.widget .is-divider {
display: none;
}