/* Minimal local overrides for Highlands Coffee homepage clone */

/* UNI BREW palette — deep tea green, brushed gold, warm cream */
:root {
  --brand-green-950: #061f17;
  --brand-green-900: #0a2e22;
  --brand-green-800: #123d2e;
  --brand-green-700: #1d5741;
  --brand-gold-600: #a97832;
  --brand-gold-500: #c89b52;
  --brand-gold-300: #dfc38c;
  --brand-cream-100: #f7f1e5;
  --brand-cream-50: #fcfaf5;
  --text-color: #17231d;
  --text-secondary-color: #657069;
  --primary-color: #123d2e;
  --secondary-color: #e8d8b9;
  --price-color: #a97832;
  --topbar-bg: #c89b52;
  --topbar-color: #061f17;
  --header-background: #ffffff;
  --header-color: #17231d;
  --subheader-background: #0a2e22;
  --subheader-color: #f7f1e5;
  --label-background: #c89b52;
  --label-color: #061f17;
  --footer-bg: #061f17;
  --footer-color: #f7f1e5;
  --buynow-color: #123d2e;
  --buynow-text-color: #fff;
  --addtocart-color: #c89b52;
  --addtocart-text-color: #061f17;
  --cta-color: #123d2e;
  --coupon-title-color: #17231d;
  --coupon-button-color: #a97832;
  --link-color: #1d5741;
}

body {
  background: var(--brand-cream-50);
  color: var(--text-color);
}

/* Logo UNI BREW do chủ thương hiệu cung cấp */
.logo-wrapper {
  display: inline-flex !important;
  align-items: center;
  text-decoration: none !important;
}

.uni-brand-logo {
  display: block;
  width: auto;
  height: 76px;
  object-fit: contain;
}

.header_sticky .uni-brand-logo {
  height: 48px;
}

.footer .logo-wrapper {
  padding: 0;
  background: transparent;
}

.footer .uni-brand-logo {
  width: 230px;
  height: auto;
}

/* Home slider: luôn hiện ảnh active, tránh khoảng trắng khi slick/fade */
.home-slider {
  min-height: 200px;
}
.home-slider .items img,
.home-slider .slick-slide img {
  display: block !important;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.home-slider.slick-initialized .slick-slide.slick-active,
.home-slider.slick-initialized .slick-slide.slick-current {
  opacity: 1 !important;
  z-index: 1;
}
.home-slider:not(.slick-initialized) .items:not(:first-child) {
  display: none;
}

/* Header đồng bộ mọi trang — giống trang chủ Highlands (nền trắng) */
.mid-header {
  background: var(--header-background) !important;
  color: var(--header-color, #000000) !important;
}

.mid-header .header-right a,
.mid-header .header-right .media-body span {
  color: var(--header-color, #000000);
}

.mid-header .header-right a:hover {
  color: var(--primary-color, #af272e) !important;
  opacity: 1;
}

/* Header contact: tránh Roboto 400 (theme) khiến chữ đậm lúc đầu rồi bị nhạt sau khi font swap */
.mid-header .header-right .hotline .media-body,
.mid-header .header-right .service-hours .media-body,
.header_sticky .header-right .hotline .media-body,
.header_sticky .header-right .service-hours .media-body {
  line-height: 1.25;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
}

.mid-header .header-right .hotline .media-body > span,
.mid-header .header-right .service-hours .media-body > span,
.mid-header .header-right .hotline .media-body > a,
.mid-header .header-right .service-hours .media-body > strong,
.mid-header .header-right .service-hours .media-body > a,
.header_sticky .header-right .hotline .media-body > span,
.header_sticky .header-right .service-hours .media-body > span,
.header_sticky .header-right .hotline .media-body > a,
.header_sticky .header-right .service-hours .media-body > strong,
.header_sticky .header-right .service-hours .media-body > a {
  display: block;
  font-family: inherit !important;
  font-weight: 700 !important;
  color: #111111 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #111111 !important;
  text-decoration: none !important;
  line-height: 1.25;
}

.mid-header .header-right .hotline .media-body > span,
.mid-header .header-right .service-hours .media-body > span,
.header_sticky .header-right .hotline .media-body > span,
.header_sticky .header-right .service-hours .media-body > span {
  font-size: 12px;
  font-weight: 400 !important;
  color: #555555 !important;
  -webkit-text-fill-color: #555555 !important;
}

.mid-header .header-right .hotline .media-body > a,
.mid-header .header-right .service-hours .media-body > strong,
.mid-header .header-right .service-hours .media-body > a,
.header_sticky .header-right .hotline .media-body > a,
.header_sticky .header-right .service-hours .media-body > strong,
.header_sticky .header-right .service-hours .media-body > a {
  font-size: 14px;
}

/* Giữ viền nút giỏ hàng, tắt dropdown trắng khi hover */
.mid-header .mini-cart > a.img_hover_cart {
  display: flex;
  align-items: center;
  padding: 8px;
  border: 2px solid var(--subheader-background, #b22a2e);
  border-radius: 6px;
  text-decoration: none;
  color: var(--header-color, #000000);
  background: transparent;
}

.mid-header .mini-cart > a.img_hover_cart:hover,
.mid-header .mini-cart > a.img_hover_cart:focus {
  color: var(--subheader-background, #b22a2e);
  background: var(--subheader-color, #f9f9f6);
  border-color: var(--subheader-background, #b22a2e);
  text-decoration: none;
}

.mid-header .mini-cart > a.img_hover_cart .count_item {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: var(--topbar-bg, #fdd835) !important;
  color: #111 !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1;
}

.mid-header .mini-cart:hover .top-cart-content,
.mid-header .mini-cart .top-cart-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.mid-header .logo-wrapper img {
  display: block;
  max-width: none;
}

.mid-header .toggle-nav .bar {
  background: var(--primary-color, #af272e) !important;
}

/* Search pill: form clip thành viên thuốc — không lộ góc vuông sau nút */
#search-header .custom-input-group.search-bar,
.header-center .custom-input-group.search-bar,
.header .custom-input-group.search-bar,
form.search-bar.custom-input-group {
  position: relative !important;
  border: 0 !important;
  outline: 0 !important;
  background: #f1f1f1 !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  -webkit-clip-path: inset(0 round 9999px);
  clip-path: inset(0 round 9999px);
}

#search-header .custom-input-group.search-bar.suggest-open,
.header-center .custom-input-group.search-bar.suggest-open,
.header .custom-input-group.search-bar.suggest-open,
form.search-bar.custom-input-group.suggest-open {
  overflow: visible !important;
  border-radius: 20px 20px 0 0 !important;
  background: #f1f1f1 !important;
  -webkit-clip-path: none;
  clip-path: none;
}

#search-header .custom-input-group .input-group-field,
.header-center .custom-input-group .input-group-field,
.header .custom-input-group .input-group-field {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-right: 58px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

#search-header .custom-input-group .btn-action,
.header-center .custom-input-group .btn-action,
.header .custom-input-group .btn-action {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  background-color: var(--secondary-color, #dfd5c8) !important;
  border: 0 !important;
  border-color: transparent !important;
  color: var(--text-color, #000000) !important;
  border-radius: 0 9999px 9999px 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  z-index: 2;
  overflow: hidden !important;
}

#search-header .custom-input-group .btn-action .btn,
.header-center .custom-input-group .btn-action .btn,
.header .custom-input-group .btn-action .btn {
  border: 0 !important;
  border-radius: 0 9999px 9999px 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.subheader {
  background: var(--subheader-background, #b22a2e) !important;
  color: var(--subheader-color, #f9f9f6) !important;
}

.subheader .shop-policises .link {
  color: var(--subheader-color, #f9f9f6) !important;
}

.subheader .toogle-nav-wrapper {
  color: var(--subheader-background, #b22a2e) !important;
  background: var(--subheader-color, #f9f9f6) !important;
}

body.menu-open {
  overflow: hidden;
}

#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  z-index: 9999;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#mobile-menu.active {
  transform: translateX(0);
  opacity: 1 !important;
  visibility: visible !important;
}

/* Menu mobile: chỉ giữ danh mục — ẩn giờ phục vụ, chính sách, nút gọi/nhắn tin */
#mobile-menu > .user-menu,
#mobile-menu > .service-hours,
#mobile-menu .shop-policises,
#mobile-menu .mobile-menu-footer {
  display: none !important;
}

#mobile-menu .mobile-menu-body {
  height: 100% !important;
  max-height: 100vh !important;
}

/* Theme main.js chặn event nên #mobile-menu không nhận class .active —
   mở ngăn kéo theo luôn trạng thái body.menu-open của theme (chỉ mobile).
   Theme cũng để opacity:0 mặc định nên phải ép hiện lại. */
@media (max-width: 991.98px) {
  body.menu-open #mobile-menu {
    transform: translateX(0);
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

body.modal-open {
  overflow: hidden;
}

/* Welcome popup poster (MISMATCHES Collection) */
#ega-modal-banner {
  display: none;
}

#ega-modal-banner.show {
  display: block !important;
  z-index: 9997;
}

#ega-modal-banner .modal-dialog {
  max-width: min(480px, 92vw);
  margin: 1.75rem auto;
}

#ega-modal-banner .modal-header {
  position: relative;
  border: none;
  padding: 0;
}

#ega-modal-banner .modal-header a {
  display: block;
  line-height: 0;
}

#ega-modal-banner .modal-header img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

#ega-modal-banner .btn-form-close {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#ega-modal-banner .btn-form-close:hover {
  background: #fff;
}

.modal-backdrop.welcome-popup-backdrop {
  z-index: 9996;
  background: rgba(0, 0, 0, 0.55);
}

#coupon-modal.show {
  display: block !important;
  background: rgba(0, 0, 0, 0.5);
}

.menu-overlay,
.opacity_menu {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  pointer-events: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.menu-overlay.active,
.opacity_menu.active,
.opacity_menu.open_opacity {
  display: none !important;
}

/* Không phủ đen toàn trang khi mở/hover danh mục — tránh flash đen lúc chuyển trang. */
body.menu-is-hover:before,
body.menu-is-hover::before,
body.menu-open:before,
body.menu-open::before {
  display: none !important;
  content: none !important;
  background: transparent !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Mobile: chỉ hiện overlay khi mở menu mobile thật sự */
@media (max-width: 991.98px) {
  body.menu-open .menu-overlay.active,
  body.menu-open .opacity_menu.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

.header_sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Product / cart / account pages */
.hlc-breadcrumb a {
  color: var(--primary-color, #af272e);
}

.swatch-item {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
}

.swatch-item.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.swatch-item input {
  display: none;
}

.input_number_product {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.input_number_product .btn_num {
  border: none;
  background: #f5f5f5;
  padding: 8px 14px;
}

.input_number_product .prd_quantity {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.cart-tbody .item-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.cart-item-info {
  padding: 0 12px;
}

.input_qty_pr {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.input_qty_pr button {
  border: none;
  background: #f5f5f5;
  width: 32px;
  height: 32px;
}

.input_qty_pr .cart-qty-input {
  width: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

/* Account login / register */
.template-account .layout-account {
  padding: 48px 0 72px;
  background: #fafafa;
  min-height: 50vh;
}

.template-account .account-box {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  padding: 36px 32px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.template-account .account-title {
  font-size: 28px;
  font-weight: 600;
  color: #111;
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.3;
}

.template-account .account-subtitle {
  text-align: center;
  color: #555;
  font-size: 15px;
  margin: 0 0 28px;
}

.template-account .account-subtitle a {
  color: var(--primary-color, #af272e);
  font-weight: 500;
}

.template-account .account-form .form-group {
  margin-bottom: 18px;
  width: 100%;
}

.template-account .account-form label {
  display: block;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  margin-bottom: 8px;
}

.template-account .account-form .required {
  color: var(--primary-color, #af272e);
}

.template-account .account-form .form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  color: #222;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 3px;
  box-shadow: none;
}

.template-account .account-form .form-control:focus {
  border-color: var(--primary-color, #af272e);
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 61, 46, 0.14);
}

.template-account .account-form .btn-login,
.template-account .account-box .btn-main {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 8px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.template-account .account-form .btn-login:hover,
.template-account .account-box .btn-main:hover {
  background: var(--brand-green-900);
  border-color: var(--brand-green-900);
  color: #fff;
}

.template-account .account-links {
  margin-top: 24px;
  text-align: center;
}

.template-account .account-links a {
  color: #666;
  font-size: 14px;
}

.template-account .account-links a:hover {
  color: var(--primary-color, #af272e);
}

.template-account .alert {
  font-size: 14px;
  margin-bottom: 16px;
}

@media (max-width: 575px) {
  .template-account .layout-account {
    padding: 28px 0 48px;
  }

  .template-account .account-box {
    padding: 28px 18px 32px;
  }

  .template-account .account-title {
    font-size: 24px;
  }
}

.hlc-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  background: #fff;
  border-left: 4px solid #2eb346;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  max-width: 320px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.hlc-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hlc-toast strong {
  display: block;
  margin-bottom: 4px;
}

.hlc-toast a {
  color: var(--primary-color);
  font-weight: 600;
}

.product-sidebar__title {
  font-size: 1rem;
  color: #fff;
  padding: 10px;
  border-radius: 8px 8px 0 0;
  margin: 0;
  background: var(--primary-color, #af272e);
  margin-bottom: 0.75rem;
}

.product-sidebar__title a {
  color: #fff !important;
}

.template-product .button_actions {
  display: grid;
  gap: 12px;
}

/* Khối mua hàng — gọn, căn trái, không kéo giãn full cột */
.template-product .details-pro .product-vendor {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
}

.template-product .details-pro .title-product {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 6px 0 12px;
}

.template-product .details-pro .group-status {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 8px;
}

.template-product .details-pro .group-status .availabel {
  color: #2eb346;
  font-weight: 600;
}

.template-product .details-pro .form-product {
  max-width: 400px;
  padding-top: 0.5rem !important;
}

.template-product .details-pro #product-variants .swatch {
  margin-bottom: 4px;
}

.template-product .details-pro #product-variants .header {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}

.template-product .details-pro .form_product_content.type1 {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 400px;
}

.template-product .details-pro .soluong.show {
  display: flex !important;
  align-items: center;
  gap: 14px;
  grid-template-columns: unset !important;
  margin-bottom: 0 !important;
}

.template-product .details-pro .soluong label {
  flex: 0 0 auto;
  margin: 0 !important;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.template-product .details-pro .soluong .custom-btn-number,
.template-product .details-pro .soluong .input_number_product {
  display: inline-flex !important;
  width: auto !important;
  max-width: none;
  margin: 0 !important;
  height: 40px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.template-product .details-pro .soluong .btn_num {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: #f7f7f7;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.template-product .details-pro .soluong .btn_num:hover {
  background: #eee;
}

.template-product .details-pro .soluong .prd_quantity {
  width: 48px !important;
  min-width: 48px;
  max-width: 48px;
  height: 40px !important;
  border: none !important;
  border-left: 1px solid #e8e8e8 !important;
  border-right: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
  padding: 0;
  font-weight: 600;
  font-size: 15px;
  color: #222;
  background: #fff;
}

.template-product .details-pro .button_actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  max-width: 400px !important;
  width: 100%;
  margin: 0 !important;
}

.template-product .details-pro .button_actions .btn_base {
  height: 48px;
  line-height: 1.2;
  padding: 0 16px;
  border-radius: 8px !important;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575px) {
  .template-product .details-pro .form-product,
  .template-product .details-pro .form_product_content.type1,
  .template-product .details-pro .button_actions {
    max-width: 100% !important;
  }

  .template-product .details-pro .button_actions {
    grid-template-columns: 1fr !important;
  }
}

.template-product .buynow {
  background: var(--buynow-color, #db0a15) !important;
  color: var(--buynow-text-color, #fff) !important;
  border: none;
}

.template-product .add_to_cart {
  background: var(--addtocart-color, #ff7272) !important;
  color: var(--addtocart-text-color, #fff) !important;
  border: none;
}

.template-product .button_actions .text_1 {
  text-transform: uppercase;
  font-weight: 600;
}

.template-product .swatch-element.S label,
.template-product .swatch-element.M label,
.template-product .swatch-element.L label {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 38px;
  text-align: center;
  padding: 0;
}

.template-product .swatch-element.active label,
.template-product .swatch-element input:checked + label {
  border-color: var(--primary-color, #af272e) !important;
  color: var(--primary-color, #af272e);
  box-shadow: 0 0 0 1px var(--primary-color, #af272e);
}

.template-product .product-sidebar {
  width: 100%;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ececec;
}

.template-product .product-sidebar__title {
  border-radius: 0;
  margin-bottom: 0;
}

.template-product .product-sidebar-title {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  width: 100%;
  margin: 0;
  padding: 10px;
  gap: 10px;
}

.template-product .product-sidebar .item_product_main.product--media {
  flex: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.template-product .product-sidebar .item_product_main.product--media form.variants.product-action {
  display: grid !important;
  grid-template-columns: 33% 1fr !important;
  grid-gap: 8px !important;
  align-items: center !important;
  width: 100%;
  margin: 0;
}

/* Product gallery thumbnails */
.template-product #gallery_02 .item.slick-slide {
  position: relative;
  height: 88px !important;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 5px;
  background: #fff;
}

.template-product #gallery_02 .item.slick-slide.slick-current {
  border-color: var(--primary-color, #af272e);
}

.template-product #gallery_02 .item.slick-slide .thumb {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.template-product #gallery_02 .item.slick-slide img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 2px !important;
  transform: translate(-50%, -50%);
  object-fit: contain;
  object-position: center;
}

/* Main product image: keep full image, no crop */
.template-product .large-image,
.template-product #gallery_1 .item,
.template-product #gallery_1 .embed-responsive {
  overflow: hidden;
  background: #fff;
}

.template-product #gallery_1 .embed-responsive img,
.template-product .large-image img {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transform: translate(-50%, -50%) !important;
  object-fit: contain !important;
  object-position: center !important;
}

.template-product .product-sidebar .product-thumbnail {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.template-product .product-sidebar .product-thumbnail .embed-responsive {
  background: var(--brand-cream-100);
  border-radius: 8px;
  overflow: hidden;
}

.template-product .product-sidebar .product-thumbnail .embed-responsive img {
  object-fit: contain;
}

.template-product .product-sidebar .product-thumbnail > .product-action {
  display: none !important;
}

.template-product .product-sidebar .product-info {
  min-width: 0;
  padding: 0 10px 5px !important;
}

.template-product .product-sidebar .product-name {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-product .product-sidebar .product-name a {
  color: #000;
}

.template-product .product-sidebar .product-item-cta {
  position: relative;
  padding-right: 36px;
  min-height: 30px;
}

.template-product .product-sidebar .product-item-btn {
  position: absolute;
  right: 0;
  top: 0;
}

.template-product .product-sidebar .product-vendor {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 2px;
}

.template-product .product-sidebar .price-box .price {
  color: var(--price-color, #db0a15);
  font-weight: 600;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .template-product .product-sidebar-title {
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }

  .template-product .product-sidebar-title .item_product_main.product--media {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

.template-product .details-pro .price-box .product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--price-color, #db0a15);
}

.template-product .heading-bar__title {
  font-size: 1.125rem;
  font-weight: 700;
}

.template-product .related-product .heading-bar,
.template-product .viewed-product .heading-bar,
.template-collection .viewed-product .heading-bar {
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(200, 155, 82, 0.28);
}

.template-product .related-product .heading-bar__title,
.template-product .viewed-product .heading-bar__title,
.template-collection .viewed-product .heading-bar__title {
  position: relative;
  margin: 0;
  color: var(--brand-green-900, #0a2e22) !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  line-height: 1.25;
  text-transform: uppercase;
}

.template-product .related-product .heading-bar__title::after,
.template-product .viewed-product .heading-bar__title::after,
.template-collection .viewed-product .heading-bar__title::after {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 54px;
  height: 2px;
  content: "";
  background: var(--brand-gold-500, #c89b52) !important;
}

/* Sản phẩm đã xem trên trang danh mục: luôn chỉ một hàng, có thể vuốt ngang. */
.template-collection #viewed-products {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.template-collection #viewed-products::-webkit-scrollbar {
  display: none;
}

.template-collection #viewed-products > .product-col {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  scroll-snap-align: start;
}

@media (max-width: 767px) {
  .template-collection #viewed-products > .product-col {
    flex-basis: 50% !important;
    max-width: 50% !important;
  }
}

.service-hours__icon {
  width: 32px;
  height: 32px;
  color: #9b262c;
  font-size: 30px;
  line-height: 1;
  text-align: center;
  flex: 0 0 32px;
}

.service-hours strong {
  color: inherit;
  font-size: 13px;
  font-weight: 700 !important;
  white-space: nowrap;
}

.service-hours .media-body span {
  font-size: 12px;
  font-weight: 700 !important;
  line-height: 1.2;
}

/* Breadcrumb ngang */
.bread-crumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}

.bread-crumb .breadcrumb li {
  display: inline-flex;
  align-items: center;
}

/* Mô tả trái - sidebar bánh phải */
@media (min-width: 1200px) {
  .template-product .product-desc-row {
    display: grid;
    grid-template-columns: minmax(0, 9fr) minmax(0, 3fr);
    gap: 1.5rem;
    align-items: start;
  }

  .template-product .product-desc-row > .product-content {
    grid-column: 1;
    max-width: 100%;
    flex: none;
    width: auto;
  }

  .template-product .product-desc-row > .product_sidebar {
    grid-column: 2;
    max-width: 100%;
    flex: none;
    width: auto;
    padding-left: 12px;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .cart-tbody .item-cart > div {
    width: 100% !important;
    margin-bottom: 8px;
  }
}

/* Policy / article page */
.template-article .policy-page {
  padding: 28px 0 72px;
  background: #f7f5ef;
}

.template-article .policy-article {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0;
}

.template-article .policy-page__header {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: 34px 40px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 30%, rgba(219, 188, 117, 0.3), transparent 24%),
    linear-gradient(125deg, #062f24 0%, #0d4a37 100%);
  box-shadow: 0 14px 34px rgba(3, 43, 32, 0.12);
}

.template-article .policy-page__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #e4c77e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.template-article .policy-page__title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.template-article .policy-page__updated {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.template-article .policy-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.template-article .policy-toc {
  min-height: 100%;
}

.template-article .policy-toc__inner {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 18px;
  border: 1px solid #e4e0d5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(3, 43, 32, 0.06);
  scrollbar-width: thin;
}

.template-article .policy-toc__nav a.is-active {
  color: #0a3b2c;
  background: #edf4f0;
}

.template-article .policy-toc__nav a.is-active span {
  color: #0a3b2c;
  font-weight: 700;
}

.template-article .policy-toc__title {
  display: block;
  margin: 0 8px 14px;
  color: #123d30;
  font-size: 15px;
}

.template-article .policy-toc__nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.template-article .policy-toc__nav a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 5px;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
  color: #9a7a31;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.template-article .policy-toc__nav a span {
  color: #3d463f;
  font-size: 13px;
  font-weight: 500;
}

.template-article .policy-toc__nav a:hover {
  color: #fff;
  background: #edf4f0;
}

.template-article .policy-toc__nav a:hover span {
  color: #0a3b2c;
}

.template-article .policy-toc__hotline {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 17px;
  padding: 13px 14px;
  border-radius: 10px;
  color: #fff;
  background: #0a3b2c;
  text-decoration: none;
}

.template-article .policy-toc__hotline i {
  color: #e4c77e;
}

.template-article .policy-toc__hotline span {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.template-article .policy-toc__hotline small {
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.template-article .policy-page__content {
  padding: 12px 42px 42px;
  border: 1px solid #e9e5db;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(3, 43, 32, 0.06);
}

.template-article .policy-page__content .policy-section-title {
  margin: 0 -42px 20px;
  padding: 30px 42px 15px;
  border-top: 1px solid #ebe7dc;
  color: #0a3b2c;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  scroll-margin-top: 95px;
}

.template-article .policy-page__content .policy-section-title:first-child {
  border-top: 0;
}

.template-article .policy-page__content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #9a7628;
  margin: 18px 0 10px;
  line-height: 1.5;
}

.template-article .policy-page__content p {
  margin-bottom: 14px;
  color: #424943;
  font-size: 15px;
  line-height: 1.75;
}

.template-article .policy-page__content ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.template-article .policy-page__content li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 32px;
  border-radius: 9px;
  color: #3e463f;
  background: #f7f8f5;
  font-size: 14px;
  line-height: 1.55;
}

.template-article .policy-page__content li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 12px;
  color: #9a7628;
  font-weight: 800;
}

.template-article .policy-page__content a {
  color: #0b674b;
  font-weight: 650;
}

@media (max-width: 991px) {
  .template-article .policy-page {
    padding-top: 18px;
  }

  .template-article .policy-layout {
    display: block;
  }

  .template-article .policy-toc {
    position: sticky;
    top: 64px;
    z-index: 20;
    margin-bottom: 18px;
  }

  .template-article .policy-toc__inner {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 14px 14px 12px;
    box-shadow: 0 10px 28px rgba(3, 43, 32, 0.1);
  }

  .template-article .policy-toc__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-article .policy-toc__hotline {
    display: none;
  }
}

@media (max-width: 575px) {
  .template-article .policy-page__header {
    margin-bottom: 16px;
    padding: 25px 20px;
    border-radius: 12px;
  }

  .template-article .policy-page__title {
    font-size: 27px;
  }

  .template-article .policy-toc__title {
    margin-left: 4px;
  }

  .template-article .policy-toc__nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .template-article .policy-toc__nav a {
    flex: 0 0 190px;
    border: 1px solid #e9e5db;
  }

  .template-article .policy-toc__hotline {
    max-width: none;
  }

  .template-article .policy-page__content {
    padding: 4px 18px 24px;
    border-radius: 12px;
  }

  .template-article .policy-page__content .policy-section-title {
    margin-right: -18px;
    margin-left: -18px;
    padding: 25px 18px 12px;
    font-size: 18px;
    scroll-margin-top: 72px;
  }

  .template-article .policy-page__content ul {
    grid-template-columns: 1fr;
  }
}

.template-article .bread-crumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Contact page */
.template-contact .contact-page {
  padding-bottom: 48px;
}

.template-contact .contact-intro {
  padding: 20px 24px;
  margin-bottom: 24px;
  border: none;
  border-left: 4px solid var(--primary-color, #af272e);
  background: linear-gradient(135deg, #faf8f6 0%, #fff 100%);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.template-contact .contact-intro__brand {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color, #af272e);
}

.template-contact .contact-intro__title {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
}

.template-contact .contact-intro__legal {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  max-width: 900px;
}

.template-contact .contact-intro__legal strong {
  color: #222;
  font-weight: 600;
}

.template-contact .contact-details {
  margin-bottom: 28px;
}

.template-contact .contact-details .single-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.template-contact .contact-details .single-contact i {
  flex: 0 0 20px;
  margin-top: 4px;
  color: var(--primary-color, #af272e);
  font-size: 16px;
}

.template-contact .contact-details .single-contact .content span,
.template-contact .contact-details .single-contact .content {
  color: #333;
}

.template-contact .contact-form-map {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.template-contact .contact-form-map__form,
.template-contact .contact-form-map__map {
  min-width: 0;
  align-self: start;
}

.template-contact .contact-form-wrap {
  margin-top: 0;
}

.template-contact .contact-form__title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  color: #000;
}

.template-contact .contact-form .form-control {
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  color: #333;
  background: #fff;
  box-shadow: none;
}

.template-contact .contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.template-contact .contact-form .form-control:focus {
  border-color: var(--primary-color, #af272e);
  outline: none;
  box-shadow: none;
}

.template-contact .btn-contact-submit {
  background: var(--primary-color, #af272e) !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  margin-top: 4px;
  min-width: 200px;
}

.template-contact .btn-contact-submit:hover,
.template-contact .btn-contact-submit:focus {
  background: var(--brand-green-900) !important;
  color: #fff !important;
}

.template-contact .btn-contact-submit:disabled {
  opacity: 0.7;
}

.template-contact .contact-map {
  width: 100%;
  height: 520px;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8e8e8;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.template-contact .contact-map iframe {
  display: block;
  width: 100%;
  height: 520px;
  min-height: 520px;
  border: 0;
}

.template-contact .bread-crumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 991px) {
  .template-contact .contact-form-map {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .template-contact .contact-map,
  .template-contact .contact-map iframe {
    height: 360px;
    min-height: 360px;
  }
}

/* Collection page */
.template-collection .collection-title {
  font-size: 24px;
  font-weight: 700;
  padding: 8px 0 16px;
}

.template-collection .bread-crumb .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.template-collection #open-filters {
  display: none !important;
}

.template-collection .products-view-grid .product-col {
  margin-bottom: 16px;
}

.template-collection .sort-cate .content_ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.template-collection .sort-cate #sort-by {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 0 !important;
}

.template-collection .sort-cate #sort-by > label.left {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-weight: 600;
  white-space: nowrap;
}

.template-collection .sort-cate #sort-by > ul.ul_col {
  display: flex;
  align-items: center;
  margin: 0 0 0 0.5rem !important;
  padding: 0;
  list-style: none;
}

.template-collection .sort-cate #sort-by > ul > li {
  line-height: 1.5 !important;
  width: auto !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: default;
}

.template-collection .sort-cate #sort-by > ul > li > span,
.template-collection .sort-cate #sort-by > ul > li > .fas {
  display: none !important;
}

.template-collection .sort-cate .content_ul {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  position: static !important;
  visibility: visible !important;
  width: auto !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.template-collection .sort-cate .content_ul li {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
}

.template-collection .sort-cate .content_ul li a {
  padding: 4px 10px !important;
  line-height: 1.4 !important;
  display: inline-flex;
  align-items: center;
}

.template-collection .sort-cate .content_ul li:hover,
.template-collection .sort-cate .content_ul li.active {
  margin-bottom: 0 !important;
}

.template-collection .sort-cate li li {
  margin-bottom: 0;
}

/* Nút sắp xếp đang chọn */
.template-collection .sort-cate .content_ul li.active a {
  color: #fff !important;
  background: var(--brand-green-800) !important;
  border-color: var(--brand-green-800) !important;
}

/* Mobile: nút sắp xếp dạng pill to, dễ bấm, vuốt ngang được */
@media (max-width: 767px) {
  .template-collection .sort-cate #sort-by {
    align-items: flex-start !important;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .template-collection .sort-cate #sort-by > label.left {
    padding-top: 8px;
  }

  .template-collection .sort-cate .content_ul {
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    padding: 2px 2px 6px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .template-collection .sort-cate .content_ul::-webkit-scrollbar {
    display: none;
  }

  .template-collection .sort-cate .content_ul li a {
    min-height: 38px;
    padding: 8px 14px !important;
    border: 1px solid rgba(169, 120, 50, 0.35);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-green-900);
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Sticky footer: tránh khoảng trắng dưới footer khi nội dung ngắn */
html {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#chrome-after,
body > footer.footer {
  margin-top: auto;
  width: 100%;
}

.footer {
  background: var(--footer-bg, #efefef);
}

/* Footer */
.footer .mid-footer {
  padding: 40px 0 20px;
  background: var(--footer-bg, #efefef);
}

.footer .mid-footer > .container > .row {
  margin-left: -12px;
  margin-right: -12px;
}

.footer .mid-footer .footer-click {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 24px;
}

.footer .mid-footer .title-menu {
  font-size: 18px;
  font-weight: 500;
  color: var(--brand-gold-300);
  margin-bottom: 16px;
  padding-bottom: 0;
  border-bottom: none;
}

.footer .footer-about {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 241, 229, 0.82);
  margin-bottom: 12px;
}

.footer .mid-footer .list-menu.toggle-mn {
  display: block !important;
}

.footer .mid-footer .single-contact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.footer .mid-footer .single-contact .fa,
.footer .mid-footer .single-contact .fas {
  flex: 0 0 20px;
  margin-top: 3px;
  color: var(--primary-color, #af272e) !important;
}

.footer .social-footer {
  margin-top: 12px;
}

.footer .mid-footer .follow_option li + li {
  margin-left: 1rem !important;
}

.footer .mid-footer .list-menu .link {
  font-size: 15px;
  color: var(--footer-color, #000) !important;
}

.footer .mid-footer .list-menu .link:hover {
  color: var(--primary-color, #af272e) !important;
  filter: none;
}

.footer .footer-newsletter .newsletter-form {
  display: flex;
  align-items: stretch;
  max-width: 100%;
}

.footer .footer-newsletter .newsletter-form .input-group-field {
  flex: 1;
  min-width: 0;
}

.footer .footer-bct {
  display: inline-block;
  margin-top: 16px;
}

.footer .footer-bct img {
  max-width: 200px;
  height: auto;
}

.footer .bg-footer-bottom {
  background: var(--brand-green-950);
  border-top: 1px solid rgba(223, 195, 140, 0.24);
}

.footer .bg-footer-bottom .wsp {
  font-size: 14px;
  color: rgba(247, 241, 229, 0.72);
}

@media (min-width: 1200px) {
  .footer .mid-footer .footer-click {
    margin-bottom: 0;
  }
}

@media (max-width: 767px) {
  /* Mở/đóng bằng max-height + CSS transition — mượt, không giật như slideToggle */
  .footer .mid-footer .list-menu.toggle-mn {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height 0.28s ease;
  }

  .footer .mid-footer .title-menu.clicked.open + .list-menu.toggle-mn,
  .footer .mid-footer .title-menu.clicked.open_ + .list-menu.toggle-mn {
    max-height: 420px;
  }

  .footer .mid-footer .title-menu.clicked i {
    transition: transform 0.28s ease;
  }

  .footer .mid-footer .title-menu.clicked.open i,
  .footer .mid-footer .title-menu.clicked.open_ i {
    transform: rotate(180deg);
  }
}

/* Search autocomplete suggestions */
#search-header,
.header-center {
  position: relative !important;
  z-index: 1001;
}

/* Chỉ mở overflow khi đang hiện gợi ý — mặc định clip pill */
#search-header .custom-input-group.search-bar:not(.suggest-open),
.header-center .custom-input-group.search-bar:not(.suggest-open) {
  overflow: hidden !important;
}

#search-header.suggest-open,
.header-center.suggest-open,
.has-search-suggest.suggest-open {
  z-index: 1300;
}

.hlc-search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1300;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.hlc-search-suggest[hidden] {
  display: none !important;
}

.hlc-search-suggest__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 360px;
  overflow-y: auto;
}

.hlc-search-suggest__item {
  margin: 0;
}

.hlc-search-suggest__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  color: #222;
  text-decoration: none;
}

.hlc-search-suggest__item:hover .hlc-search-suggest__link,
.hlc-search-suggest__item.is-active .hlc-search-suggest__link {
  background: #f7f7f7;
}

.hlc-search-suggest__thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: #f3f3f3;
}

.hlc-search-suggest__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hlc-search-suggest__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hlc-search-suggest__title {
  font-size: 14px;
  line-height: 1.35;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hlc-search-suggest__price {
  font-size: 14px;
  font-weight: 600;
  color: var(--price-color, #db0a15);
}

.hlc-search-suggest__empty {
  padding: 16px 14px;
  color: #777;
  font-size: 14px;
}

.hlc-search-suggest__more {
  display: block;
  padding: 12px 14px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color, #af272e);
  background: #fafafa;
  text-decoration: none;
}

.hlc-search-suggest__more:hover {
  background: #f3f3f3;
  color: var(--primary-color, #af272e);
}

/* Checkout page */
.template-checkout {
  background: #fafafa;
  min-height: 100vh;
}

.checkout-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 16px 0;
}

.checkout-brand {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
}

.checkout-brand img {
  display: block;
  width: auto;
  height: 48px;
}

.checkout-brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.checkout-main {
  padding: 28px 0 60px;
}

.checkout-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.checkout-alert[hidden] {
  display: none !important;
}

.checkout-alert i {
  margin-top: 2px;
  flex: 0 0 auto;
}

.checkout-alert--error {
  background: #fff5f5;
  border: 1px solid #f5c2c7;
  color: #842029;
}

.checkout-success {
  display: flex;
  justify-content: center;
  padding: 24px 0 40px;
}

.checkout-success[hidden] {
  display: none !important;
}

.checkout-success__card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 40px 28px 32px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.checkout-success__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2eb346, #1f8f34);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 18px rgba(46, 179, 70, 0.28);
}

.checkout-success__title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
}

.checkout-success__desc {
  margin: 0 auto 22px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.55;
  color: #666;
}

.checkout-success__code {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  margin-bottom: 26px;
  padding: 14px 22px;
  border-radius: 8px;
  background: #f7f7f7;
  border: 1px dashed #d9d9d9;
}

.checkout-success__code span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.checkout-success__code strong {
  font-size: 24px;
  color: var(--primary-color, #af272e);
  font-weight: 700;
}

.checkout-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn-success-home,
.btn-success-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.btn-success-home {
  background: var(--primary-color, #af272e);
  border: 1px solid var(--primary-color, #af272e);
  color: #fff;
}

.btn-success-home:hover {
  background: var(--brand-green-900);
  border-color: var(--brand-green-900);
  color: #fff;
  text-decoration: none;
}

.btn-success-cart {
  background: #fff;
  border: 1px solid #d0d0d0;
  color: #333;
}

.btn-success-cart:hover {
  border-color: #999;
  color: #111;
  text-decoration: none;
}

@media (max-width: 575px) {
  .checkout-success__card {
    padding: 32px 18px 24px;
  }

  .btn-success-home,
  .btn-success-cart {
    width: 100%;
  }
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.checkout-block {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 22px 22px 20px;
  margin-bottom: 18px;
}

.checkout-block h2,
.checkout-summary h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  color: #111;
}

.checkout-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-block__head h2 {
  margin: 0;
}

.checkout-login-link {
  color: #2f80ed;
  font-size: 14px;
  white-space: nowrap;
}

.checkout-login-link i {
  margin-right: 4px;
}

.template-checkout .form-group {
  margin-bottom: 14px;
}

.template-checkout .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  margin-bottom: 6px;
}

.template-checkout .optional {
  color: #999;
  font-weight: 400;
}

.template-checkout .form-control {
  height: 44px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  box-shadow: none;
}

.template-checkout textarea.form-control {
  height: auto;
  min-height: 84px;
}

.template-checkout .form-control:focus {
  border-color: #2f80ed;
  box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.12);
}

.checkout-phone {
  display: flex;
  align-items: stretch;
}

.checkout-phone__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  border: 1px solid #d9d9d9;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #f7f7f7;
  font-size: 18px;
}

.checkout-phone .form-control {
  border-radius: 0 4px 4px 0;
}

.checkout-shipping-info {
  background: #eaf4ff;
  border: 1px solid #cfe4ff;
  border-radius: 6px;
  padding: 14px 16px;
  color: #1f4e79;
  font-size: 14px;
}

.checkout-shipping-info.is-ready {
  background: #f3faf4;
  border-color: #c8e6c9;
  color: #1b5e20;
}

.checkout-pay-option {
  display: block;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  margin: 0;
}

.checkout-pay-option.is-active {
  border-color: #2f80ed;
  background: #f5f9ff;
}

.checkout-pay-option input {
  display: none;
}

.checkout-pay-option__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.checkout-pay-option__title {
  font-size: 14px;
  color: #222;
}

.checkout-pay-option__icon {
  color: #2eb346;
  font-size: 18px;
}

.checkout-summary {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 20px;
  position: sticky;
  top: 16px;
}

.checkout-items {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.checkout-item:last-child {
  border-bottom: 0;
}

.checkout-item__thumb {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.checkout-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-item__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2f80ed;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-item__info {
  min-width: 0;
  flex: 1;
}

.checkout-item__title {
  font-size: 14px;
  line-height: 1.35;
  color: #222;
}

.checkout-item__price {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.checkout-coupon {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.checkout-coupon .form-control {
  flex: 1;
}

.btn-coupon {
  white-space: nowrap;
  background: #2f80ed;
  border: 1px solid #2f80ed;
  color: #fff;
  border-radius: 4px;
  padding: 0 14px;
  height: 44px;
  font-weight: 500;
}

.btn-coupon:hover {
  background: #1b6fd1;
  border-color: #1b6fd1;
  color: #fff;
}

.checkout-coupon-msg {
  font-size: 13px;
  margin-bottom: 12px;
}

.checkout-coupon-msg.is-ok {
  color: #2e7d32;
}

.checkout-coupon-msg.is-err {
  color: #c62828;
}

.checkout-totals {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-bottom: 18px;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
}

.checkout-total-row.is-grand {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.checkout-total-row.is-grand span:last-child {
  color: #2f80ed;
  font-size: 22px;
}

.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-back {
  color: #2f80ed;
  font-size: 14px;
  text-decoration: none;
}

.checkout-back:hover {
  text-decoration: underline;
}

.btn-order {
  background: #2f80ed;
  border: 1px solid #2f80ed;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  padding: 12px 22px;
  min-width: 140px;
}

.btn-order:hover {
  background: #1b6fd1;
  border-color: #1b6fd1;
  color: #fff;
}

@media (max-width: 991px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .btn-order {
    width: 100%;
  }
}

/* Cart page layout */
.hlc-cart-page {
  padding-bottom: 24px;
}

.hlc-cart-table {
  width: 100%;
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.hlc-cart-head,
.hlc-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) 1fr 1fr 1fr 48px;
  gap: 12px;
  align-items: center;
}

.hlc-cart-head {
  padding: 14px 16px;
  background: #f7f7f7;
  border-bottom: 1px solid #ececec;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.hlc-cart-head > div:first-child {
  text-align: left;
}

.hlc-cart-item {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.hlc-cart-item:last-child {
  border-bottom: 0;
}

.hlc-cart-item__product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.hlc-cart-item__thumb {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hlc-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hlc-cart-item__noimg {
  font-size: 11px;
  color: #999;
}

.hlc-cart-item__info {
  min-width: 0;
}

.hlc-cart-item__title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #222;
  text-decoration: none;
}

.hlc-cart-item__title:hover {
  color: var(--primary-color, #af272e);
}

.hlc-cart-item__variant {
  margin-top: 4px;
  font-size: 13px;
  color: #888;
}

.hlc-cart-item__price-mobile {
  display: none;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--price-color, #db0a15);
}

.hlc-cart-item__unit,
.hlc-cart-item__line {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--price-color, #db0a15);
}

.hlc-cart-item__qty {
  display: flex;
  justify-content: center;
}

.hlc-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.hlc-qty__btn {
  width: 36px;
  border: 0;
  background: #f5f5f5;
  color: #333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.hlc-qty__btn:hover {
  background: #ebebeb;
}

.hlc-qty__input {
  width: 44px;
  border: 0;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
}

.hlc-cart-item__remove {
  text-align: center;
}

.hlc-cart-item__remove .cart-remove {
  border: 0;
  background: transparent;
  color: #999;
  font-size: 16px;
  padding: 6px;
  cursor: pointer;
}

.hlc-cart-item__remove .cart-remove:hover {
  color: var(--primary-color, #af272e);
}

.hlc-cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hlc-cart-continue {
  color: #555;
  font-size: 14px;
  text-decoration: none;
  padding-top: 8px;
}

.hlc-cart-continue:hover {
  color: var(--primary-color, #af272e);
  text-decoration: none;
}

.hlc-cart-continue i {
  margin-right: 6px;
  font-size: 12px;
}

.hlc-cart-summary {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fafafa;
}

.hlc-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #444;
}

.hlc-cart-summary__row.is-total {
  margin-top: 4px;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e5e5;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.hlc-cart-summary__row.is-total .price {
  font-size: 20px;
  color: var(--price-color, #db0a15);
}

.hlc-cart-summary .btn-main {
  width: 100%;
}

.hlc-cart-summary__note {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #888;
  font-size: 12px;
}

@media (max-width: 767px) {
  .hlc-cart-head {
    display: none;
  }

  .hlc-cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "product remove"
      "qty line";
    gap: 12px;
  }

  .hlc-cart-item__product {
    grid-area: product;
  }

  .hlc-cart-item__unit {
    display: none;
  }

  .hlc-cart-item__price-mobile {
    display: block;
  }

  .hlc-cart-item__qty {
    grid-area: qty;
    justify-content: flex-start;
  }

  .hlc-cart-item__line {
    grid-area: line;
    text-align: right;
  }

  .hlc-cart-item__remove {
    grid-area: remove;
  }

  .hlc-cart-footer {
    flex-direction: column-reverse;
  }

  .hlc-cart-summary {
    max-width: none;
    margin-left: 0;
  }
}

.compare-price {
  margin-left: 0.5rem !important;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================= */
@media (max-width: 767px) {
  /* Banner: hiện full ảnh, không crop mép trên (file đã có padding nội dung) */
  .awe-section-1 .col-xl-80.mt-3,
  .awe-section-1 .col-12.mt-3 {
    margin-top: 8px !important;
  }
  .home-slider,
  .home-slider.slick-initialized {
    min-height: 0 !important;
    height: auto !important;
    align-items: flex-start !important;
    overflow: hidden;
  }
  .home-slider .slick-list,
  .home-slider .slick-track,
  .home-slider .slick-slide,
  .home-slider .items {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
  }
  .home-slider .slick-slide img,
  .home-slider .items img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: top center !important;
    vertical-align: top;
  }
  .header_menu .row, .header_sticky .row {
    flex-wrap: wrap !important;
  }
  .header_menu .header-left, .header_sticky .header-left {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 0 50% !important;
    max-width: 50% !important;
    order: 2;
  }
  /* Sticky mobile: chỉ giữ 1 icon 3 gạch, ẩn khối "Danh mục sản phẩm" dành cho desktop. */
  .header_sticky .header-left.d-none.d-lg-flex,
  .header_sticky .toogle-nav-wrapper {
    display: none !important;
  }
  .header_sticky .header-left.d-lg-none {
    display: flex !important;
    flex: 0 0 25% !important;
    max-width: 25% !important;
    order: 1 !important;
    justify-content: flex-start !important;
  }
  .header_menu .header-left .logo-wrapper img, .header_sticky .header-left .logo-wrapper img {
    max-height: 45px;
    width: auto;
  }
  .header_menu .header-right, .header_sticky .header-left.d-lg-none {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    order: 1;
    display: flex !important;
    justify-content: flex-start !important;
  }
  .header_menu .col-3.col-xl-5, .header_sticky .col-2.col-xl-5 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    order: 3;
    display: flex !important;
    justify-content: flex-end !important;
    padding-right: 20px !important;
  }
  .header_sticky .col-2.col-xl-5 {
    margin-left: auto !important;
  }
  .header_menu .cartgroup,
  .header_sticky .cartgroup {
    margin-right: 0 !important;
  }
  .header_menu .col-3.col-xl-5 > ul.header-right,
  .header_sticky .col-2.col-xl-5 > ul.header-right {
    width: 42px !important;
    flex: 0 0 42px !important;
    max-width: 42px !important;
    float: none !important;
  }
  .header_menu .mini-cart > a.img_hover_cart,
  .header_sticky .mini-cart > a.img_hover_cart {
    width: 42px !important;
    min-width: 42px !important;
    height: 44px !important;
    justify-content: center !important;
    padding: 7px !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
  #search-header {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    order: 4 !important; /* push to bottom row on mobile */
    margin-top: 10px;
    margin-bottom: 5px;
  }
  #search-header .search-bar {
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
    padding: 0 15px;
  }
  #search-header .search-bar input {
    background: transparent;
    border: none;
    box-shadow: none;
    height: 40px;
  }
  #search-header .search-bar button {
    background: transparent;
    color: #666 !important;
  }
  
  /* 2. Tabs pill-shape styling */
  .heading-bar .tabs-title {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
    margin-bottom: 15px;
    width: 100%;
    gap: 8px;
    display: flex;
  }
  .heading-bar .tabs-title .tab-link {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 13px !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    background: #f0f0f0 !important;
    color: #555 !important;
    border: none !important;
    margin: 0 !important;
  }
  .heading-bar .tabs-title .tab-link.current {
    background: var(--primary-color) !important;
    color: var(--brand-cream-100) !important;
  }
  
  /* 3. Product Cards Grid */
  .item_product_main {
    border: none !important;
  }
  .item_product_main .product-info {
    padding: 10px 4px !important;
    text-align: left !important;
  }
  .item_product_main .product-vendor {
    font-size: 10px !important;
    text-transform: uppercase;
    color: #999 !important;
    display: block;
    margin-bottom: 4px;
    text-align: left;
  }
  .item_product_main .product-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    height: auto;
    text-align: left;
  }
  .item_product_main .product-item-cta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px;
    position: relative !important;
    margin-top: 0 !important;
    padding-right: 0 !important;
  }
  .item_product_main .price-box {
    margin-bottom: 0 !important;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .item_product_main .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--price-color) !important;
    line-height: 1.2;
  }
  .item_product_main .compare-price {
    font-size: 12px !important;
    line-height: 1.2;
    margin-left: 0 !important;
    margin-top: 4px !important;
  }
  .item_product_main .product-item-btn {
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    min-width: unset !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    transform: none !important;
    margin: 0 !important;
    background: var(--primary-color) !important;
    color: var(--brand-cream-100) !important;
    border: none !important;
    box-shadow: 0 3px 8px rgba(10, 46, 34, 0.24) !important;
  }
  .item_product_main .product-item-btn svg {
    width: 14px !important;
    height: 14px !important;
    fill: #fff !important;
  }
  
  /* 4. Product Details Page */
  .details-pro .title-product {
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
  }
  .details-pro .first_status .status_name a {
    color: #777 !important;
    font-size: 13px !important;
  }
  .details-pro .price-box .special-price .price {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--price-color) !important;
  }
  
  .details-pro .form_product_content.type1 {
    display: flex;
    flex-direction: column;
  }
  .details-pro .soluong {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
  }
  .details-pro .soluong label {
    margin-bottom: 0;
    margin-right: 15px;
    font-size: 14px;
    font-weight: 600;
  }
  .details-pro .custom-btn-number {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
  }
  .details-pro .custom-btn-number button {
    background: #fff;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 18px;
    color: #666;
  }
  .details-pro .custom-btn-number input {
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    width: 40px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    height: 36px;
  }
  
  .details-pro .button_actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .details-pro .button_actions button {
    border-radius: 24px !important;
    height: 44px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    /* Không dùng --primary-color: theme gán lại biến này thành màu trắng ngay trên .buynow */
    background: var(--brand-green-800, #123d2e) !important;
    color: var(--brand-cream-100) !important;
    border: none !important;
  }
  .details-pro .button_actions .btn_add_cart {
    background: var(--brand-gold-500) !important;
    color: var(--brand-green-950) !important;
  }

  /* 5. Related Products Sidebar in Details */
  .template-product .product-sidebar {
    padding: 0 15px 15px 15px !important;
  }
  .product-sidebar__title {
    background: var(--primary-color) !important;
    color: var(--brand-cream-100) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
    text-align: center;
  }
  .template-product .product-sidebar .item_product_main {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    padding: 0 !important;
  }
  .template-product .product-sidebar .product-thumbnail {
    flex: 0 0 90px !important;
    width: 90px !important;
    margin-right: 15px !important;
  }
  .template-product .product-sidebar .product-info {
    flex: 1 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  .template-product .product-sidebar .product-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
  }
  .template-product .product-sidebar .product-item-cta {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 15px !important;
  }
  .template-product .product-sidebar .product-item-btn {
    margin-left: auto !important; /* Push + button to the right end */
    position: static !important;
  }
}

/* UNI BREW visual language */
.heading-bar__title,
.heading-bar__title a,
.title_module_main,
.product-name a {
  color: var(--brand-green-900);
}

.heading-bar__title::after {
  background: var(--brand-gold-500) !important;
}

.navigation-wrapper .navigation,
.toogle-nav-wrapper .navigation-wrapper {
  background: var(--brand-cream-50);
  border-color: rgba(169, 120, 50, 0.22);
}

.navigation .menu-item__link:hover,
.navigation .menu-item:hover > .menu-item__link {
  color: var(--brand-gold-600) !important;
  background: rgba(200, 155, 82, 0.1);
}

.item_product_main,
.coupon_item,
.checkout-block,
.checkout-summary,
.template-account .account-box {
  border-color: rgba(18, 61, 46, 0.1) !important;
  box-shadow: 0 6px 22px rgba(6, 31, 23, 0.06);
}

.item_product_main:hover {
  border-color: rgba(200, 155, 82, 0.42) !important;
  box-shadow: 0 10px 28px rgba(6, 31, 23, 0.11);
}

.label_product,
.label_product .label_wrapper {
  background: var(--label-background) !important;
  color: var(--label-color) !important;
}

.coupon_item .coupon_copy,
.coupon_item .btn,
.btn-main {
  background: var(--brand-gold-500) !important;
  border-color: var(--brand-gold-500) !important;
  color: var(--brand-green-950) !important;
}

.coupon_item .coupon_copy:hover,
.coupon_item .btn:hover,
.btn-main:hover {
  background: var(--brand-gold-600) !important;
  border-color: var(--brand-gold-600) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand-gold-500) !important;
  box-shadow: 0 0 0 3px rgba(200, 155, 82, 0.15);
}

#search-header .search-bar .form-control:focus,
#search-header .search-bar input:focus,
.header-center .search-bar .form-control:focus,
.header-center .search-bar input:focus {
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

#search-header .custom-input-group.search-bar:focus-within,
.header-center .custom-input-group.search-bar:focus-within,
.header .custom-input-group.search-bar:focus-within {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.slick-dots li.slick-active button {
  background: var(--brand-gold-500) !important;
  border-color: var(--brand-gold-500) !important;
}

.section_flashsale {
  --countdown-background: var(--brand-cream-50) !important;
  --countdown-color: var(--brand-green-800) !important;
  --process-background: #eadfc9 !important;
  --process-color1: var(--brand-gold-500) !important;
  --process-color2: var(--brand-gold-600) !important;
  --stock-color: var(--brand-green-950) !important;
}

.flashsale__countdown-item,
.flashsale__countdown .time {
  background: var(--brand-green-800) !important;
  color: var(--brand-cream-100) !important;
}

/* Flash Sale: khối nền xanh thương hiệu, card trắng, đồng hồ đếm ngược nổi bật */
.section_flashsale .container.card {
  background: linear-gradient(155deg, var(--brand-green-900) 0%, var(--brand-green-800) 55%, var(--brand-green-700) 100%) !important;
  border-radius: 16px;
  padding-top: 18px !important;
  padding-bottom: 18px;
}

.section_flashsale .heading-bar,
.section_flashsale .flashsale__title {
  margin-top: 0 !important;
  transform: none !important;
}

.section_flashsale .flashsale__title,
.section_flashsale .flashsale__title a,
.section_flashsale .heading-bar__title a {
  color: var(--brand-cream-100) !important;
}

.section_flashsale .heading-bar__title::after {
  content: none !important;
}

.section_flashsale .flashsale__countdown-label {
  color: var(--brand-gold-300) !important;
  font-size: 13px;
}

.section_flashsale .flashsale__countdown-wrapper {
  display: flex !important;
}

.section_flashsale .ega-badge-ctd > div:not(.ega-badge-ctd__colon) {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(223, 195, 140, 0.5);
  border-radius: 12px;
  background: var(--brand-cream-50);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.section_flashsale .ega-badge-ctd__item {
  color: var(--brand-green-900) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.section_flashsale .ega-badge-ctd__item + span {
  color: var(--brand-green-700) !important;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section_flashsale .ega-badge-ctd__colon {
  color: var(--brand-gold-300) !important;
}

.section_flashsale .item_product_main {
  overflow: hidden;
  height: 100%;
  border-radius: 12px;
  background: #fff;
}

.section_flashsale .product-info {
  padding: 10px 10px 12px !important;
}

/* Desktop: Bootstrap row không có khoảng cách hàng — ép grid + gap */
@media (min-width: 992px) {
  .section_flashsale [data-section="flashsale-section"] {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 18px 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .section_flashsale [data-section="flashsale-section"] > .product-col {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }
}

@media (max-width: 767px) {
  .section_flashsale .flashsale__header {
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    text-align: center;
  }

  .section_flashsale .flashsale__title {
    margin: 4px 0 2px;
    text-align: center;
  }

  .section_flashsale .flashsale__countdown-label {
    display: block;
    margin: 2px auto 10px;
    text-align: center;
  }

  .section_flashsale .flashsale__countdown-wrapper {
    margin: 0 auto 4px;
  }

  .section_flashsale [data-section="flashsale-section"] {
    margin-top: 4px !important;
  }
}

/* Floating contact: chỉ icon — bỏ nền xanh / trắng */
.addThis_listSharing .addThis_item .addThis_item--icon,
#back-to-top {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

#back-to-top:hover,
.addThis_listSharing .addThis_item .addThis_item--icon:hover {
  background: transparent !important;
  opacity: 0.88;
}

#back-to-top {
  color: var(--brand-green-800) !important;
}

#back-to-top .icon {
  fill: currentColor;
  width: 28px;
  height: 28px;
}

.addThis_listSharing .addThis_item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.addThis_listSharing .addThis_item .addThis_item--icon {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.addThis_listSharing .addThis_item .addThis_item--icon img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

.addThis_listSharing .addThis-zalo,
.addThis_listSharing .addThis-facebook {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (max-width: 575.98px) {
  .addThis_listSharing .addThis_listing {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }
}

.footer .social-footer a,
.footer .mid-footer .single-contact .fa,
.footer .mid-footer .single-contact .fas,
.footer .mid-footer .list-menu .link:hover {
  color: var(--brand-gold-300) !important;
}

.footer .mid-footer .list-menu .link,
.footer .single-contact,
.footer .single-contact a {
  color: rgba(247, 241, 229, 0.82) !important;
}

/* Footer liền một mảng màu, không chia nền cột */
.footer.bg-white,
.footer .mid-footer,
.footer .mid-footer > .container,
.footer .mid-footer > .container > .row,
.footer .mid-footer .footer-click,
.footer .mid-footer .footer-1 {
  background: var(--brand-green-950) !important;
}

.footer .mid-footer .footer-1::before,
.footer .mid-footer .footer-1::after {
  background: var(--brand-green-950) !important;
}

/* UNI BREW voucher gallery */
.awe-section-2 .section_coupons > .container {
  padding: 20px 22px 22px;
  border-radius: 18px;
  background: #f7f5ef;
}

.uni-voucher-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 14px;
}

.uni-voucher-heading span {
  color: var(--brand-gold-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uni-voucher-heading h2 {
  margin: 5px 0 0;
  color: var(--brand-green-950);
  font-size: 24px;
  font-weight: 800;
}

.uni-voucher-heading p {
  margin: 0 0 3px;
  color: #6c736e;
  font-size: 14px;
}

.uni-voucher-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
}

.uni-voucher-col {
  min-width: 0;
}

.uni-voucher-card {
  overflow: hidden;
  border: 1px solid rgba(18, 61, 46, 0.1) !important;
  border-radius: 14px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.uni-voucher-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(6, 31, 23, 0.12);
}

.uni-voucher-card__image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #fff;
  cursor: pointer;
}

.uni-voucher-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.uni-voucher-copy__feedback {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 55, 40, 0.92);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.uni-voucher-copy.is-copied .uni-voucher-copy__feedback {
  opacity: 1;
  transform: translateY(0);
}

.coupon-detail-image {
  display: block;
  width: 100%;
  max-height: 54vh;
  margin-bottom: 16px;
  border-radius: 10px;
  object-fit: contain;
}

@media (min-width: 1200px) {
  .uni-voucher-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .uni-voucher-col {
    grid-column: auto;
  }
}

@media (max-width: 991px) {
  .uni-voucher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .awe-section-2 .section_coupons > .container {
    padding: 20px 14px 22px;
    border-radius: 12px;
  }

  .uni-voucher-heading {
    display: block;
  }

  .uni-voucher-heading h2 {
    font-size: 23px;
  }

  .uni-voucher-heading p {
    margin-top: 6px;
  }

  .uni-voucher-grid {
    display: flex !important;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 1px 10px;
    scroll-snap-type: x mandatory;
  }

  .uni-voucher-col {
    flex: 0 0 72%;
    scroll-snap-align: start;
  }
}

/* Voucher compact strip: ít khoảng trắng, ảnh lớn và dễ đọc hơn */
.awe-section-2 .section_coupons > .container {
  padding: 12px 12px 14px;
}

.uni-voucher-heading {
  margin-bottom: 9px;
}

.uni-voucher-grid {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 9px;
  overflow-x: auto;
  padding: 0 1px 6px;
  scroll-snap-type: x proximity;
}

.uni-voucher-col,
.uni-voucher-col:nth-child(4):nth-last-child(2) {
  flex: 0 0 calc((100% - 27px) / 4);
  grid-column: auto;
  scroll-snap-align: start;
}

@media (min-width: 1200px) {
  .uni-voucher-col,
  .uni-voucher-col:nth-child(4):nth-last-child(2) {
    flex-basis: calc((100% - 36px) / 5);
  }
}

.uni-voucher-card {
  border-radius: 9px;
}

.uni-voucher-card__image img {
  transform: scale(1.04);
}

@media (max-width: 1199px) {
  .uni-voucher-col,
  .uni-voucher-col:nth-child(4):nth-last-child(2) {
    flex-basis: calc((100% - 18px) / 3);
  }
}

@media (max-width: 767px) {
  .awe-section-2 .section_coupons > .container {
    padding: 11px 8px 12px;
  }

  .uni-voucher-col,
  .uni-voucher-col:nth-child(4):nth-last-child(2) {
    flex-basis: 76%;
  }
}

/* Voucher UNI BREW dựng bằng HTML: đồng bộ, gọn và chỉnh được từ admin. */
.uni-voucher-card {
  border: 0 !important;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(5, 42, 31, 0.1);
}

.uni-voucher-design {
  position: relative;
  display: grid;
  grid-template-columns: 38% 62%;
  width: 100%;
  min-height: 148px;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: var(--brand-green-950);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.uni-voucher-design__offer,
.uni-voucher-design__body,
.uni-voucher-design__brand,
.uni-voucher-design__discount,
.uni-voucher-design__meta {
  display: flex;
}

.uni-voucher-design__offer {
  position: relative;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 10px 12px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.18), transparent 25%),
    linear-gradient(145deg, #0b5b40, #063526);
}

.uni-voucher-design__offer::after {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.uni-voucher-design__brand {
  flex-direction: column;
  color: #f4d995;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.uni-voucher-design__brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0;
}

.uni-voucher-design__discount {
  flex-direction: column;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-weight: 800;
}

.uni-voucher-design__discount strong {
  color: #fff;
  font-size: clamp(27px, 2.5vw, 40px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.uni-voucher-design__body {
  min-width: 0;
  flex-direction: column;
  padding: 12px 11px 10px 13px;
}

.uni-voucher-design__eyebrow {
  overflow: hidden;
  color: #a17b2d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uni-voucher-design__label {
  margin-top: 7px;
  color: #6c756f;
  font-size: 8px;
  font-weight: 700;
}

.uni-voucher-design__code {
  color: #073b2c;
  font-size: clamp(19px, 1.7vw, 27px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.uni-voucher-design__desc {
  display: -webkit-box;
  min-height: 30px;
  margin-top: 6px;
  overflow: hidden;
  color: #68706b;
  font-size: 8px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.uni-voucher-design__meta {
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px dashed #d9dedb;
  font-size: 7px;
}

.uni-voucher-design__meta b {
  color: #0a513b;
  white-space: nowrap;
}

.uni-voucher-design__meta em {
  overflow: hidden;
  color: #a17b2d;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uni-voucher-design:hover .uni-voucher-design__code {
  color: #b4862f;
}

.uni-voucher-design:focus-visible {
  outline: 3px solid rgba(200, 155, 82, 0.4);
  outline-offset: -3px;
}

.uni-voucher-design .uni-voucher-copy__feedback {
  right: 8px;
  bottom: 8px;
}

@media (max-width: 575px) {
  .uni-voucher-design {
    min-height: 154px;
  }

  .uni-voucher-design__body {
    padding-right: 13px;
  }

  .uni-voucher-design__discount strong {
    font-size: 36px;
  }

  .uni-voucher-design__code {
    font-size: 25px;
  }

  .uni-voucher-design__desc {
    font-size: 9px;
  }
}

/* Homepage mobile: khóa chiều rộng và dùng grid thật thay vì cột theme tràn ngang. */
@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .awe-section-2 .container,
  .awe-section-3 .container,
  .awe-section-4 .container,
  .awe-section-5 .container,
  .awe-section-6 .container {
    width: 100%;
    max-width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .awe-section-3 .heading-bar {
    display: block !important;
  }

  .awe-section-3 .heading-bar__title {
    margin-bottom: 10px !important;
  }

  .awe-section-3 [data-section="tab-section"],
  .awe-section-4 [data-section="product-tag-section"],
  .awe-section-5 [data-section="hot-section"],
  .section_flashsale [data-section="flashsale-section"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .awe-section-3 [data-section="tab-section"] > .product-col,
  .awe-section-4 [data-section="product-tag-section"] > .product-col,
  .awe-section-5 [data-section="hot-section"] > .product-col,
  .section_flashsale [data-section="flashsale-section"] > .product-col {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }

  .awe-section-3 .item_product_main,
  .awe-section-4 .item_product_main,
  .awe-section-5 .item_product_main,
  .section_flashsale .item_product_main,
  .awe-section-3 .item_product_main form,
  .awe-section-4 .item_product_main form,
  .awe-section-5 .item_product_main form,
  .section_flashsale .item_product_main form {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
  }

  .awe-section-3 .product-thumbnail,
  .awe-section-4 .product-thumbnail,
  .awe-section-5 .product-thumbnail,
  .section_flashsale .product-thumbnail,
  .awe-section-3 .image_thumb,
  .awe-section-4 .image_thumb,
  .awe-section-5 .image_thumb,
  .section_flashsale .image_thumb {
    width: 100% !important;
    min-width: 0;
  }

  .awe-section-3 .product-info,
  .awe-section-4 .product-info,
  .awe-section-5 .product-info,
  .section_flashsale .product-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
  }

  .awe-section-3 .product-name,
  .awe-section-4 .product-name,
  .awe-section-5 .product-name,
  .section_flashsale .product-name {
    display: -webkit-box;
    min-height: 36px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .uni-voucher-grid {
    width: 100%;
    max-width: 100%;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .uni-voucher-grid::-webkit-scrollbar {
    display: none;
  }

  .uni-voucher-col,
  .uni-voucher-col:nth-child(4):nth-last-child(2) {
    flex-basis: 100%;
  }

  .uni-voucher-card {
    padding: 0 !important;
  }

  .uni-voucher-card .uni-voucher-design {
    width: 100% !important;
    margin: 0 !important;
  }

  .home-slider,
  .home-slider img,
  .hlc-section-banner img {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .awe-section-3 [data-section="tab-section"],
  .awe-section-4 [data-section="product-tag-section"],
  .awe-section-5 [data-section="hot-section"],
  .section_flashsale [data-section="flashsale-section"] {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 12px;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .awe-section-3 [data-section="tab-section"] > .product-col,
  .awe-section-4 [data-section="product-tag-section"] > .product-col,
  .awe-section-5 [data-section="hot-section"] > .product-col,
  .section_flashsale [data-section="flashsale-section"] > .product-col {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
  }
}

/* Ô sản phẩm thứ 6 trong tab HOT: chỉ hiện trên mobile/tablet để lưới 2-3 cột luôn chẵn. */
@media (min-width: 992px) {
  .awe-section-3 .mobile-extra-col {
    display: none !important;
  }
}

/* Remove the retired English storefront shortcut. */
.header-right a[title="Tiếng Anh"] {
  display: none !important;
}

/* Voucher v2: giữ đầy đủ nội dung từ admin, logo rõ và chữ dễ đọc. */
.uni-voucher-card.coupon_item {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  filter: none !important;
}

.uni-voucher-card.coupon_item::before,
.uni-voucher-card.coupon_item::after {
  display: none !important;
  content: none !important;
}

.awe-section-2 .section_coupons > .container {
  padding: 16px 16px 18px;
}

.uni-voucher-heading {
  margin-bottom: 12px;
}

.uni-voucher-grid {
  display: flex !important;
  grid-template-columns: none !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 6px !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.uni-voucher-grid::-webkit-scrollbar {
  display: none;
}

.uni-voucher-col,
.uni-voucher-col:nth-child(4):nth-last-child(2) {
  min-width: 0;
  display: flex;
  flex: 0 0 calc((100% - 24px) / 3) !important;
  scroll-snap-align: start;
}

.uni-voucher-card {
  height: 100%;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(8, 63, 45, 0.14) !important;
  border-radius: 16px !important;
  background: #fff;
  box-shadow: 0 8px 24px rgba(5, 42, 31, 0.09);
}

.uni-voucher-design {
  display: grid;
  grid-template-columns: 31% 69%;
  width: 100% !important;
  min-height: 205px;
  height: 100%;
  margin: 0 !important;
  border: 0;
  border-radius: inherit !important;
  background: #fff;
}

.uni-voucher-design__offer {
  position: relative;
  justify-content: space-between;
  padding: 14px 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 12%, rgba(243, 208, 127, 0.2), transparent 28%),
    linear-gradient(155deg, #0c6849 0%, #063526 72%);
}

.uni-voucher-design__offer::after {
  display: none;
}

.uni-voucher-design__mini-brand {
  display: inline-flex;
  width: fit-content;
  flex-direction: column;
  padding: 5px 7px;
  border: 1px solid rgba(241, 210, 137, 0.55);
  border-radius: 8px;
  color: #f4d68f;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.uni-voucher-design__mini-brand small {
  margin-top: 3px;
  color: #fff;
  font-family: inherit;
  font-size: 9px;
  letter-spacing: 0.2em;
}

.uni-voucher-design__discount {
  align-items: flex-start;
}

.uni-voucher-design__discount small {
  color: #f1d89d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.uni-voucher-design__discount strong {
  margin: 3px 0 2px;
  color: #fff;
  font-size: clamp(36px, 3.5vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.uni-voucher-design__discount b {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.uni-voucher-design__perforation {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  border-right: 2px dashed rgba(255, 255, 255, 0.55);
}

.uni-voucher-design__body {
  min-width: 0;
  padding: 13px 14px 12px 16px;
}

.uni-voucher-design__logo {
  display: block;
  width: 125px;
  max-width: 84%;
  height: auto;
  margin-bottom: 8px;
}

.uni-voucher-design__title {
  color: #073b2c;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.uni-voucher-design__desc {
  display: block;
  min-height: 0;
  margin-top: 5px;
  overflow: visible;
  color: #273c34;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: unset;
}

.uni-voucher-design__conditions {
  display: block;
  margin-top: 5px;
  color: #66736d;
  font-size: 11px;
  line-height: 1.35;
}

.uni-voucher-design__conditions b {
  color: #46554e;
}

/* Thu gọn khoảng cách giữa HOT HOT HOT và Nước mát ngày hè. */
.awe-section-3 {
  margin-bottom: 36px !important;
}

.uni-voucher-design__meta {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #ced8d3;
  font-size: 12px;
}

.uni-voucher-design__meta span {
  color: #52615a;
}

.uni-voucher-design__meta b {
  display: block;
  margin-top: 2px;
  color: #0a513b;
  font-size: 13px;
}

.uni-voucher-design__meta em {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: #0a513b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.uni-voucher-design .uni-voucher-copy__feedback {
  z-index: 3;
  right: 10px;
  bottom: 10px;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .uni-voucher-col,
  .uni-voucher-col:nth-child(4):nth-last-child(2) {
    flex-basis: calc((100% - 12px) / 2) !important;
  }
}

@media (max-width: 767px) {
  .awe-section-2 .section_coupons > .container {
    padding: 14px 10px 16px;
  }

  .uni-voucher-grid {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto;
    padding: 2px 1px 10px !important;
    scroll-snap-type: x mandatory;
  }

  .uni-voucher-col,
  .uni-voucher-col:nth-child(4):nth-last-child(2) {
    flex: 0 0 80% !important;
    scroll-snap-align: start;
  }

  .uni-voucher-design {
    grid-template-columns: 30% 70%;
    min-height: 190px;
  }

  .uni-voucher-design__offer {
    padding: 11px 8px;
  }

  .uni-voucher-design__discount strong {
    font-size: 34px;
  }

  .uni-voucher-design__body {
    padding: 11px 10px 9px 12px;
  }

  .uni-voucher-design__logo {
    width: 105px;
    margin-bottom: 6px;
  }

  .uni-voucher-design__title {
    font-size: 15px;
  }

  .uni-voucher-design__desc {
    font-size: 11.5px;
  }

  .uni-voucher-design__conditions {
    font-size: 10px;
  }
}

/* Search suggestion: nối liền và bo theo đúng khung tìm kiếm. */
form.search-bar.has-search-suggest {
  position: relative !important;
}

form.search-bar.has-search-suggest:not(.suggest-open) {
  overflow: hidden !important;
  border-radius: 9999px !important;
  -webkit-clip-path: inset(0 round 9999px);
  clip-path: inset(0 round 9999px);
}

form.search-bar.has-search-suggest.suggest-open {
  overflow: visible !important;
  border-radius: 20px 20px 0 0 !important;
  z-index: 1400;
  background: #f1f1f1;
  -webkit-clip-path: none;
  clip-path: none;
}

form.search-bar.has-search-suggest.suggest-open .input-group-field {
  border-radius: 0 !important;
  background: transparent !important;
}

form.search-bar.has-search-suggest.suggest-open .btn-action,
form.search-bar.has-search-suggest.suggest-open .btn-action .btn {
  border-radius: 0 !important;
}

form.search-bar.has-search-suggest > .hlc-search-suggest {
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  width: 100%;
  border: 1px solid #dedfdc;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 14px 28px rgba(5, 42, 31, 0.16);
  background: #fff;
}

form.search-bar.has-search-suggest > .hlc-search-suggest .hlc-search-suggest__more {
  border-radius: 0 0 15px 15px;
}

/* Tắt overlay tối của theme — làm search trông như bị tách khỏi header */
.search-overlay,
.search-overlay.active {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mid-header,
.header_menu .mid-header,
.header_sticky .mid-header {
  position: relative;
  z-index: 1100;
}

/* Theme Highlands: ellipse trắng dưới header mobile cắt banner hình vòm — tắt hẳn. */
@media (max-width: 767px) {
  .mid-header::after,
  .header_menu .mid-header::after,
  .header_sticky .mid-header::after {
    content: none !important;
    display: none !important;
    height: 0 !important;
    clip-path: none !important;
    background: none !important;
  }
}

.header:not(.header_sticky) #search-header,
.header:not(.header_sticky) .header-center,
.header_sticky #search-header,
.header_sticky .header-center {
  position: relative !important;
  z-index: 1200;
}

/* Mobile: chỉ mở overflow khi đang gợi ý */
@media (max-width: 991.98px) {
  #search-header .search-bar.suggest-open,
  #search-header .search-bar.has-search-suggest.suggest-open {
    overflow: visible !important;
  }
}

/* Thẻ ưu đãi dạng poster combo — dùng ảnh quảng cáo gốc */
.uni-voucher-col--poster {
  flex: 0 0 min(280px, 78vw) !important;
}

.uni-voucher-card--poster {
  background: var(--brand-cream-50, #fcfaf5) !important;
}

.uni-voucher-poster {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 320px;
}

.uni-voucher-poster__media {
  display: block;
  flex: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #efe8d8;
  cursor: zoom-in;
  text-align: left;
}

.uni-voucher-poster__media img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.uni-voucher-poster__media:hover img {
  transform: scale(1.03);
}

.uni-voucher-poster__bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 14px;
  border-top: 1px solid rgba(18, 61, 46, 0.1);
  background: #fff;
}

.uni-voucher-poster__info {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.uni-voucher-poster__info strong {
  overflow: hidden;
  color: var(--brand-green-900, #0a2e22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uni-voucher-poster__info span {
  display: -webkit-box;
  overflow: hidden;
  color: #5a6a62;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.uni-voucher-poster__copy {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-green-800, #123d2e);
  color: #fff;
  cursor: pointer;
}

.uni-voucher-poster__copy em {
  color: var(--brand-gold-300, #dfc38c);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.uni-voucher-poster__copy b {
  font-size: 12px;
  font-weight: 700;
}

.uni-voucher-poster__copy .uni-voucher-copy__feedback {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  left: 0;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(6, 31, 23, 0.92);
  color: #fff;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.uni-voucher-poster__copy.is-copied .uni-voucher-copy__feedback,
.uni-voucher-card.is-copied .uni-voucher-copy__feedback {
  opacity: 1;
}

@media (min-width: 992px) {
  .uni-voucher-col--poster {
    flex: 0 0 calc((100% - 24px) / 3) !important;
  }

  .uni-voucher-poster {
    min-height: 360px;
  }

  .uni-voucher-poster__media img {
    height: 280px;
  }
}

@media (max-width: 767px) {
  .uni-voucher-poster {
    min-height: 290px;
  }

  .uni-voucher-poster__media img {
    height: 210px;
  }
}

/* Trang Thẻ quà tặng: lưới poster wrap, không carousel */
.collection-coupons--gift .section_coupons > .container {
  padding: 18px 16px 22px;
}

.uni-voucher-grid--posters {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  flex-wrap: unset !important;
  gap: 16px !important;
  overflow: visible !important;
  scroll-snap-type: none !important;
}

.uni-voucher-grid--posters .uni-voucher-col,
.uni-voucher-grid--posters .uni-voucher-col--poster,
.uni-voucher-grid--posters .uni-voucher-col:nth-child(4):nth-last-child(2) {
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  scroll-snap-align: unset;
}

@media (max-width: 991.98px) {
  .uni-voucher-grid--posters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 575.98px) {
  .uni-voucher-grid--posters {
    grid-template-columns: 1fr !important;
  }
}
