:root {
    --primary-gold: #d4af37;
    --secondary-gold: #b48c72;
    --accent-gold: #e5b40b;
    --text-dark: #333;
    --border-light: #ddd;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
    --tb-theme-color: #b48c72;
    --tb-theme-color-hover: #ab856c;
    --tb-header-mobile-bg: #fff;
    --tb-header-mobile-color: #191919;
}

/* Performance optimizations */
* {
    box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
}
body {
    font-family: system-ui, -apple-system, sans-serif;
    /* line-height: 1.6; */
    line-height: 31px;
    font-size: 18px;
    overflow-x: hidden;
}
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
.checkout-wrapper {
    min-height: 70vh;
}

/* ============================== Logo ============================== */
.text-logo {
    font-family: Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary-gold);
    text-shadow: 
        1px 1px 0 #fff8dc,
        2px 2px 1px #b8860b,
        3px 3px 3px #888;
    margin: 0;
}
.logo-img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}
.navbar-brand:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
}

@media (max-width: 991.98px) {
    .logo-img {
    max-height: 50px;
    }
}
@media (max-width: 991.98px) {

}
.ajax-results-desktop {
    position: absolute;
    width: 100%;
    max-width: 300px;
    background: white;
    z-index: 1050;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ajax-results-mobile {
    max-height: 500px;
    overflow-y: auto;
}

.exact_result .image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    vertical-align: middle;
    margin-right: 10px;
}

.ajax-results li.exact_result {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.ajax-results li.exact_result:last-child {
    border-bottom: none;
}

.ajax-results li.exact_result:hover {
    background-color: #f5f5f5;
}

.exact_result a {
    width: 100%;
    text-decoration: none;
}

.exact_result a:hover {
    color: var(--accent-gold);
}

.list_item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.list_item .image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.list_item .label {
    flex: 1;
    font-weight: 500;
    color: #333;
}
@media (max-width: 991.98px) {
    .ajax-results-desktop {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .ajax-results-mobile {
        display: none !important;
    }
}
/* ============================== Logo ============================== */

/* ============================== switch color ============================== */
/* ============================== Navbar optimized ============================== */
.dropdown-item.active, .dropdown-item:active {
    background-color: transparent !important;
}
/*  brown and gold */
.navbar .custom-nav-brown {
    position: relative;
    color: #333;
    transition: color 0.3s ease;
}

.navbar .custom-nav-brown::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    /* background-color: #00bcd4; */
    background-color: #e5b40b;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar .custom-nav-brown:hover,
.navbar .custom-nav-brown.active,
.navbar-nav .custom-nav-brown:focus {
    color: #b48c72;
}

.navbar .custom-nav-brown:hover::after,
.navbar .custom-nav-brown.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .custom-nav-brown {
    padding-bottom: 8px;
}

.offcanvas .custom-nav-brown {
    color: #333;
}

.offcanvas .custom-nav-brown:hover,
.offcanvas .custom-nav-brown.active {
    color: #b48c72;
}
.navbar-nav .dropdown-item.active .custom-nav-brown,
.navbar-nav .dropdown-item:active .custom-nav-brown{
    color: #b48c72 !important;
    background-color: transparent !important;
    text-decoration: none !important;
}
/* ligh blue */
.navbar .custom-nav-blue {
    position: relative;
    color: #333;
    transition: color 0.3s ease;
}

.navbar .custom-nav-blue::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #3ac2cc;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar .custom-nav-blue:hover,
.navbar .custom-nav-blue.active,
.navbar-nav .custom-nav-blue:focus {
    color: rgb(13 202 240);
}

.navbar .custom-nav-blue:hover::after,
.navbar .custom-nav-blue.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .custom-nav {
    padding-bottom: 8px;
}

.offcanvas .custom-nav-blue {
    color: #333;
}

.offcanvas .custom-nav-blue:hover,
.offcanvas .custom-nav-blue.active {
    color: rgb(13 202 240);
}

.navbar-nav .custom-nav-blue .dropdown-item.active,
.navbar-nav .custom-nav-blue .dropdown-item:active {
    color: rgb(13 202 240) !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

/* orange */
.navbar .custom-nav-orange {
    position: relative;
    color: #333;
    transition: color 0.3s ease;
}

.navbar .custom-nav-orange::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #F55F1E;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar .custom-nav-orange:hover,
.navbar .custom-nav-orange.active,
.navbar-nav .custom-nav-orange:focus {
    color: #e85a1c;
}

.navbar .custom-nav-orange:hover::after,
.navbar .custom-nav-orange.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-nav .custom-nav {
    padding-bottom: 8px;
}

.offcanvas .custom-nav-orange {
    color: #333;
}

.offcanvas .custom-nav-orange:hover,
.offcanvas .custom-nav-orange.active {
    color: #F55F1E;
}

.navbar-nav .custom-nav-orange .dropdown-item.active,
.navbar-nav .custom-nav-orange .dropdown-item:active {
    color: #F55F1E !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

/* dropdown */
.navbar-nav .dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  min-width: 200px;
  background-color: white;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Hover mở dropdown */
.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(5px);
}

/* Link bên trong */
.dropdown-menu .dropdown-item {
  padding: 0.5rem 0.75rem;
  transition: background 0.2s ease;
  font-weight: 500;
}

/* ============================== Navbar optimized ============================== */
/* ============================== Product Image Hover Effect ============================== */
@media (max-width: 767px) {
  .hover-img {
    display: none !important;
  }
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (min-width: 768px) {
  .product-image:hover .hover-img {
    opacity: 1;
  }
  .product-image:hover .default-img {
    opacity: 0;
  }
}
/* ============================== Product Image Hover Effect ============================== */

/* bagde sp-cart */
/*  blue */
.cart-link-blue:hover {
  color: #0dcaf0 !important; /* đổi màu chữ và icon khi hover */
  transition: all 0.3s ease;
}
.cart-link-blue:hover i {
  transform: scale(1.2); /* phóng to icon giỏ hàng */
}
.cart-link-blue i {
  transition: transform 0.3s ease;
}
.bg-st-blue {
    background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
}
/* brown */
.cart-link-brown:hover {
  color: var(--secondary-gold) !important; /* đổi màu chữ và icon khi hover */
  transition: all 0.3s ease;
}
.cart-link-brown:hover i {
  transform: scale(1.2); /* phóng to icon giỏ hàng */
}
.cart-link-brown i {
  transition: transform 0.3s ease;
}
.bg-st-brown {
    background-color: var(--tb-theme-color) !important;
}
/* orange */
.cart-link-orange:hover {
  color: #e85a1c !important; /* đổi màu chữ và icon khi hover */
  transition: all 0.3s ease;
}
.cart-link-orange:hover i {
  transform: scale(1.2); /* phóng to icon giỏ hàng */
}
.cart-link-orange i {
  transition: transform 0.3s ease;
}
.bg-st-orange {
    background-color: #F55F1E !important;
}
/* sp-cart */
.discount-badge-blue {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #b7ebf9;
    color: #007c91;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 50%;
    z-index: 2;
}
.discount-badge-brown {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--tb-theme-color-hover);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 50%;
    z-index: 2;
}
.discount-badge-orange {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #F55F1E;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 50%;
    z-index: 2;
}
/* show blue button cate menu color */
/* ============================== switch color ============================== */

/* cart mobile */
#cart-dropdown-mobile {
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  width: 90vw !important;
  z-index: 1050;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
#cart-items-mobile {
    max-height: 80vh;
    overflow-y: auto;
}
#cart-dropdown-mobile.fullscreen {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1050;
  overflow-y: auto;
  padding: 20px;
}
#cart-dropdown {
    transition: all 0.2s ease-in-out;
}
.sticky-menu {
  transition: transform 0.3s ease-in-out;
  /* will-change: transform; */
}

.navbar-fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease-in-out;
  will-change: transform;
  z-index: 1030;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* .sticky-hidden {
  transform: translateY(-100%);
} */

/* GT LH */
.post_title {
    text-align: center;
    justify-items: center;
    align-items: center;
    width: 100%;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    margin-bottom: 0px;
    padding: 50px 0px 50px 0px;
}
.post_title-brown {
    background-color: #B48C72;
    color: white;
}
.post_title-blue {
    background-color: #2dc0c4;
    color: white;
}
.post_title-orange {
    background-color: #e85a1c;
    color: white;
}
.post_title h3 {
    text-align: center;
}
.post_title .title {
    font-size: 32px;
    text-transform: uppercase;
    line-height: 51px;
    color: #FFFFFF;
    margin-bottom: 36px;
    font-family: Work Sans;
    font-variant: lining-nums;
    font-weight: 600;
}
.post_title .post_name {
    display: flex;
    flex-direction: column;
}
.post_title .post_name i {
    justify-content: center;
    font-size: 175px;
    line-height: 22px;
    color: #FFFFFF;
}
/* LH */
.post_content {
    padding: 0px 0px 50px 0px;
}
.contact {
    text-align: center;
}
.post_content-brown i {
    color: #B48C72 !important;
}

.post_content-blue i {
    color: #2dc0c4 !important;
}
.post_content-orange i {
    color: #e85a1c !important;
}

.address {
    margin-top: 38px;
    margin-bottom: 38px;
}

.store-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.store-card .bi {
    font-size: 1.1rem;
    vertical-align: middle;
}

.map iframe {
    border-radius: 10px;
    width: 100%;
    height: 200px;
}

.btn-brown {
    background-color: #B48C72 !important;
    border: solid 1px #B48C72 !important;
    color: white !important;
    padding: 10px !important;
}
.btn-blue {
    background-color: #2dc0c4 !important;
    border: solid 1px #2dc0c4 !important;
    color: white !important;
    padding: 10px !important;
}
.btn-orange {
    background-color: #e85a1c !important;
    border: solid 1px #e85a1c !important;
    color: white !important;
    padding: 10px !important;
}
.btn-brown:hover, .btn-brown:focus {
    background-color: transparent !important;
    color: #B48C72 !important;
}
.btn-blue:hover, .btn-blue:focus {
    background-color: transparent !important;
    color: #2dc0c4 !important;
}
.btn-orange:hover, .btn-orange:focus {
    background-color: transparent !important;
    color: #e85a1c !important;
}
/* GT LH */

footer a {
    text-decoration: none;
}

/* tuvan */
#sticky-castfish-container {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#form-toggle-bar {
  background-color: #2f5359;
  color: white;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  height: 42px;
  line-height: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#castfish-form-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  width: 260px;
  position: relative;
  transition: all 0.3s ease;
}

#castfish-form-wrapper.hidden {
  display: none;
}

#castfish-form {
    display: flex;
     flex-direction: column;
    gap: 10px;
}

#castfish-form input,
#castfish-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

#castfish-form button.ladi-button {
  background-color: #2f5359;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#castfish-form button.ladi-button:hover {
  background-color: #3d6d74;
}
/* hotline */
#hotline-button {
  position: fixed;
  bottom: 70px;
  right: 10px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transition: bottom 0.3s ease;
}

.hotline-icon {
  background-color: white;
  border-radius: 50px;
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: width 0.4s ease;
  cursor: pointer;
  animation: shake 1.2s infinite;
  position: relative;
  white-space: nowrap;
}

.hotline-icon img {
  width: 30px;
  height: 30px;
}

.hotline-brown .hotline-icon {
    border: 2px solid #B48C72;
}
.hotline-blue .hotline-icon {
    border: 2px solid #2dc0c4;
}
.hotline-orange .hotline-icon {
    border: 2px solid #e85a1c;
}

.hotline-brown {
    color: #B48C72;
}
.hotline-blue {
    color: #2dc0c4;
}
.hotline-orange {
    color: #e85a1c;
}

.hotline-brown .hotline-number,
.hotline-brown .hotline-icon i {
    color: #B48C72;
}
.hotline-blue .hotline-number,
.hotline-blue .hotline-icon i {
    color: #2dc0c4;
}
.hotline-orange .hotline-number,
.hotline-orange .hotline-icon i {
    color: #e85a1c;
}

.hotline-number {
  font-weight: bold;
  margin-left: 10px;
  white-space: nowrap;
  font-family: sans-serif;
  font-size: 15px;
  display: none;
}

.hotline-icon:hover {
  width: 180px;
  padding-left: 10px;
  justify-content: flex-start;
}

.hotline-icon:hover .hotline-number {
  display: inline;
}

/* 🔁 Hiệu ứng rung */
@keyframes shake {
  0% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0); }
}

/* 🌊 Hiệu ứng sóng */
@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 0.6;
  }
  70% {
    transform: translateY(-50%) scale(1.8);
    opacity: 0;
  }
  100% {
    transform: translateY(-50%) scale(2);
    opacity: 0;
  }
}

.hotline-icon i {
    font-size: 30px;
}
/* move tu van */
#hotline-button.move-up {
  bottom: 400px;
}
/* mov back to top */
#hotline-button.move-up-backtop {
    bottom: 120px;
}
/* tư vấn + back to top */
#hotline-button.move-tuvan.move-backtop {
  bottom: 420px;
}
#backToTopBtn {
  position: fixed;
  bottom: 70px;
  right: 10px;
  height: 45px;
  width: 45px;
  z-index: 9999;
  font-size: 22px;
  background-color: #333;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
#backToTopBtn:hover {
  background-color: #555;
}
/* back to top */
/* toast */
.toast-success {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: #e6f9ec;
  color: #2e7d32;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 9999;
  font-size: 16px;
}

.toast-icon {
  font-size: 24px;
}

.toast-success.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* toast */

/* breadcrumb */
.banner-breadcrumb {
  position: relative;
  background-image: url('/media/img/bg-category.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Overlay nền đen mờ */
.banner-breadcrumb .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(109, 108, 108, 0.55);
  z-index: 1;
}

/* Nội dung chính */
.banner-breadcrumb .breadcrumb-content {
  z-index: 2;
}

/* Tiêu đề */
.banner-breadcrumb .banner-title {
  color: #fff;
  font-weight: 600;
  font-size: 2.25rem; /* tương đương display-5 */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

/* Link breadcrumb */
.banner-breadcrumb .breadcrumb-link {
  color: #fff !important;
  text-decoration: none;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
  font-size: 1.5rem;
}

/* Responsive mobile */
@media (max-width: 576px) {
  .banner-breadcrumb {
    height: 225px;
  }

  .banner-breadcrumb .banner-title {
    font-size: 1.5rem;
  }

  .banner-breadcrumb .breadcrumb-link {
    font-size: 0.9rem;
  }
  .breadcrumb {
    align-items: center;
  }
}
.banner-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}
/* breadcrumb */
/* bottom nav */
@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}
@media (max-width: 991px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  .bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    position: relative;
  }

  .bottom-nav .nav-item i {
    font-size: 20px;
  }

  .bottom-nav .nav-item .badge {
    position: absolute;
    top: 0;
    right: 5px;
    background: #b87b3f;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
  }

  .bottom-nav .nav-item.active {
    color: #b87b3f;
  }
  .btn-castfish {
    display: none;
  }
}
/* bottom nav */
/* product-price */
.product-price {
    font-size: 18px;
    font-weight: bold;
    /* color: #d90000; */
    color: rgb(196 140 70);
}

.product-old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
    margin-right: 5px;
}

/* product-price */