.float-right {
  float: right !important;
}

.tc-black {
  color: #000
}

.collection-banner-container {
  margin: 2rem 0 2rem 0;
}

.collection-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  display: block;
}

.collection-banner-container .aspect-ratio-col-16-9 {
  aspect-ratio: 16 / 9; /* hoặc 16/9, 3/2 tùy bạn */
  overflow: hidden;
}

.collection-banner-container .collection-banner-content {
  padding: 0rem 2rem 0rem 2rem;
}

.collection-banner-content .collection-banner-title {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #000
}

.collection-banner-content .collection-banner-description {
  color: #000;
}

.collection-banner-content .collection-banner-benefit {
  margin-top: 4rem; 
}

.divider-vertical {
 position: relative;
}

.divider-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.2),
    transparent
  );
}

.divider-vertical::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 0, 0, 0.2),
    transparent
  );
}

@media (max-width: 767px) {
  .collection-banner-container {
     margin: 0rem;
  }

  .collection-banner-content .collection-banner-title {
    margin: 0rem 1.2rem 0.8rem 1.2rem;
  }
  
  .collection-banner-content .collection-banner-description {
    margin: 0 1.2rem 0 1.2rem;
  }
}

/* =========================
   SORT BOX
========================= */

.collection-option-container{
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    width: 100%;
    justify-content: end;
}

/* =========================
   LABEL
========================= */

.collection-option-label{
    margin: 0;

    font-size: 14px;
    font-weight: 600;

    color: #374151;

    white-space: nowrap;
}

/* =========================
   SELECT WRAPPER
========================= */

.collection-option-select-container{
    position: relative;
    width: 50%;
}

@media (max-width: 768px){
    .collection-option-select-container{
        width: 100%;
    }
}

/* Custom Arrow */

.collection-option-select-container::after{
    content: "˅";
    position: absolute;
    top: 55%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: bold;
    color: #6b7280;
    pointer-events: none;
}

/* =========================
   SELECT
========================= */

.collection-option-select{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    min-width: 190px;
    height: 35px;

    padding: 0 42px 0 16px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: linear-gradient(
        135deg,
        #ffffff,
        #f9fafb
    );

    font-size: 14px;
    font-weight: 500;

    color: #111827;

    cursor: pointer;

    transition: all .25s ease;
}

/* Hover */

.collection-option-select:hover{
    border-color: #3b82f6;

    background: #ffffff;

    box-shadow:
        0 4px 12px rgba(59,130,246,0.12);
}

/* Focus */

.collection-option-select:focus{
    outline: none;

    border-color: #2563eb;

    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(37,99,235,0.15),
        0 8px 20px rgba(0,0,0,0.06);
}

/* Option */

.collection-option-select option{
    background: #ffffff;
    color: #111827;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px){
    .collection-option-container{
        width: 100%;
        flex-direction: row;
        align-items: center;
    }

    .collection-option-select{
        width: 100%;
        min-width: unset;
    }
}

/* =========================
   product-loop-container
========================= */

.product-loop-container {
    border: 1.3px solid #50400514;
    border-radius: 5px;
    background: #FDFFF0;
    padding: 5px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
  .product-loop-container {
    flex-direction: row;
    overflow-x: hidden;
    gap: 10px;
  }

  .product-loop-container > a {
    flex: 0 0 auto;
    width: 40%;
    position: relative;
  }
}

.product-loop-image-container > .row{
  margin: 0px !important;
  border-radius: 5px;
  gap: 10px;
  background-color: #FDFFF0;
}

.product-loop-image-container > .row > .col-sm-6 {
  padding: 2.5px !important;
}

.product-loop-image {
  border-radius: 5px;
  aspect-ratio: 1 / 1;
}

@media (max-width: 768px){
  .product-loop-image {
    aspect-ratio: 1 / 1;
  }
}

.product-loop-container .product-detail > *:not(:first-child) {
  margin-top: 1px;
}

.product-loop-container .box-pro-detail .box-pro-prices {
  margin-top: 1px;
}

.product-loop-container .review-summary{
	display: flex;
	width: 100%;
	text-transform: capitalize;
	font-size: 13px;
	font-weight: 500;
  flex-wrap: wrap;
}

.product-loop-container .review-summary .review-item.review-star {
  display: flex;
  justify-content: flex-start;
  transform: scale(0.9);
  margin-left: -5px;
}

.product-loop-container .review-summary .review-item.review-count {
	width: 32%;
}

.product-loop-container .review-summary .review-item.sold-count {
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 50%;
    text-align: right;
    word-break: break-word;
    color: #000;
}

.product-loop-container .review-summary .review-item.sold-count.wrap {
    flex: 0 0 100%;
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left;
}

.product-loop-container .review-summary .review-star span.number {
    color: red;
    font-weight: bold;
}

.product-loop-container .review-summary .review-star > .number-sub {
    font-size: 15px;
    font-weight: bold;
}

.product-loop-container .review-summary .review-star span.number-sub {
    color: #888;
    margin-left: 5px;
}

.product-loop-container .review-summary .review-star .rateit {
    display: flex;
    align-items: center;
    padding-bottom: 2px;
}

.product-loop-container .review-summary .review-star .rateit .rateit-range {
    background: url(//fode.kirei.vn/images/webapp/review_star_2.png);
    height: 16px;
    width: 80px;
    overflow: hidden;
    outline: none;
}

.product-loop-container .review-summary .review-star .rateit .rateit-preset {
    background: url(//fode.kirei.vn/images/webapp/review_star_2.png) left -48px;
    height: 16px;
}

.product-loop-container .review-summary span.number {
    line-height: 1;
		margin-right: 2px;
}

.product-loop-container .review-summary .review-star span.number{
    margin-left: 6px;
    font-weight: 600;
    font-size: 1.5rem;
}

.product-loop-container .review-summary .review-item{
	// display: inline-flex;
	align-items: center;
	justify-content: flex-end;
}


.product-loop-container .review-summary .review-item:not(.review-star) span.number {
    color: #000000;
}

@media (max-width: 768px){
  .product-loop-container .product-detail {
    padding: 0px 0px 0px 15px !important;
    justify-content: space-evenly;
    height: 100%;
  }

  .product-loop-container .product-detail > *:not(:first-child) {
    margin-top: 5px;
  }

  .product-loop-container .box-pro-detail .box-pro-prices {
    margin-top: 5px;
  }
  
  .product-detail-main .description-desktop{
    display: none;
  }
  .product-detail-main {
    margin-bottom: 0;
  }
  .product-loop-container .review-summary .review-star span.number {
      margin-left: 3px;
  }
  .product-loop-container .review-summary .review-item.review-star {
    margin-left: -6px;
  }
}

.product-loop-container .product-detail {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 153px;
}

.wishlist-btn {
  position: absolute;
  top: 5px;
  right: 10px;

  width: 25px;
  height: 25px;

  border-radius: 50%;
  border: none;

  background: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0px 5px rgba(0,0,0,0.5);

  cursor: pointer;
  z-index: 10;

  padding: 0;
}

.wishlist-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 768px){
  .wishlist-btn {
    top: -3px;
    right: -3px;
  }

  .sidebar-filter-container {
    padding: 7px 15px !important;
    width: 100%;
  }

  .sidebar-filter-container .sidebar-filter-title {
    padding: 10px 0px;
    font-size: 16px;
    font-weight: bold;
  }
}

.sidebar-filter-container {
  padding: 15px;
  border: 1.3px solid #50400514;
  border-radius: 5px;
}

.sidebar-filter-container .sidebar-filter-title {
  color: #000;
}

.sidebar-filter-container > hr {
  margin-top: 10px;
  margin-bottom: 5px;
}

.justify-content-between {
  justify-content: space-between;
}

.text-bold {
  font-weight: bold;
}

.tc-black {
  color: #000;
}

.wrap-filter {
  margin-top: 20px;
}

.irs {
  height: 20px !important;
} 

/* Track nền */
.irs-line {
  height: 1px !important;
  background: #ddd !important;
  border: none !important;
}

/* phần active giữa 2 nút */
.irs-bar {
  height: 3px !important;
  background: #8d0015 !important;
  border-top: #8d0015 !important;
  border-bottom: #8d0015 !important;
  top: 0px !important;
}

.irs-line {
  top: 0px !important;
}

.irs--flat .irs-handle {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50px !important;
    background-color: #8d0015 !important;
}

.irs--flat .irs-handle>i:first-child {
    background-color: #8d0015 !important;
}

.irs-slider {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  top: -6px !important;
}

/* QUAN TRỌNG: màu nằm ở pseudo element */
.irs-slider:before {
  content: "" !important;
  position: absolute;
  width: 14px;
  height: 14px;
  background: #8d0015 !important;
  border-radius: 50%;
  top: 0;
  left: 0;
}

/* fix luôn nút active */
.irs-slider.state_hover:before,
.irs-slider:hover:before {
  background: #8d0015 !important;
}

/* bỏ tooltip nếu có */
.irs-from, .irs-to, .irs-single {
  display: none !important;
}

.price-slice, .price-slice-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

/* input chung */
.price-slice input, .price-slice-mobile input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  text-align: center;
}

/* hover */
.price-slice input:hover, .price-slice-mobile input:hover {
  border-color: #8d0015;
}

/* focus */
.price-slice input:focus, .price-slice-mobile input:focus {
  border-color: #8d0015;
  box-shadow: 0 0 0 2px rgba(141, 0, 21, 0.1);
}

/* placeholder */
.price-slice input::placeholder, .price-slice-mobile input::placeholder {
  color: #999;
}

/* tách 2 ô đẹp hơn trên mobile */
@media (max-width: 768px) {
  .price-slice, .price-slice-mobile {
    flex-direction: column;
  }
}

.filter-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.tag-item {
  background: #8d0015;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.tag-clear-all {
  background: #333;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}

.tag-item i {
  margin-left: 6px;
  font-style: normal;
  font-weight: bold;
}

.p-static {
  position: static !important;
}

.tc-filter {
  color: #000;
}

@media (max-width: 768px) {
  .tc-filter {
    color: #8d0015;
  }

  .filter-tag {
    margin-top: 0px;
    margin-bottom: 10px;
  }
}

.ml-sm-auto {
  margin-left: 0px !important; 
}

.fab-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

/* FAB button */
.fab-btn {
    width: 55px;
    height: 55px;
    background: rgba(16, 144, 17, 0.85);
    border-radius: 50%;
    position: fixed;
    right: 20px;
    bottom: 80px;
    cursor: pointer;
}

/* dấu + bằng pseudo element */
.fab-btn::before {
    content: "+";
    color: #fff;
    font-size: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: 0.3s ease;
}

/* trạng thái active → xoay thành × */
.fab-btn.active::before {
    content: "+";
    transform: translate(-50%, -50%) rotate(135deg);
}

/* Menu */
.fab-menu {
    position: absolute;
    bottom: 130px;
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: 0.3s;
}

.fab-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* item */
.fab-item {
    background: #fff;
    color: #000;
    font-weight: bold;
    padding: 6px 8px;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    cursor: pointer;
    width: 145px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.fab-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 9998;
    visibility: hidden;
    transition: .25s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bottom-sheet {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: #fff;
    border-radius: 12px;
    transform: translateY(120%);
    transition: 0.3s;
    z-index: 9999;

    display: flex;
    flex-direction: column;

    max-height: 70vh; /* quan trọng */
    overflow: hidden;
}

.bottom-sheet.active {
    transform: translateY(0);
}

.option-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.option-item .check {
    display: none;
    color: green;
}

.option-item.active .check {
    display: inline;
}

.sheet-content {
    overflow-y: auto;
    flex: 1;              /* chiếm toàn bộ phần giữa */
    max-height: 100%;
    -webkit-overflow-scrolling: touch;
}

.sheet-title {
    text-align: center;
    font-weight: bold;
    padding: 10px 0;
    flex-shrink: 0;
}

.sheet-footer {
    padding-top: 10px;
    flex-shrink: 0;
    background: #fff;
}
.sheet-close {
    width: 100%;
    padding: 10px;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
}

.sheet-content::-webkit-scrollbar {
    width: 4px;
}

.sheet-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.view-toggle {
    display: none;
    gap: 15px;
    align-items: center;
}

.view-toggle i {
    font-size: 20px;
    cursor: pointer;
    color: #888;
    transition: 0.2s;
}

.view-toggle i.active {
    color: #8d0015;
}

@media (max-width: 768px) {
    .view-toggle div:first-child {
        margin-left: auto;
    }
    
    .view-toggle {
        // display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .view-toggle .view-icon:first-child {
        font-size: 34px;
        cursor: pointer;
        color: #888;
        line-height: 1;
        user-select: none;
        transition: 0.2s;
    }

    .view-toggle .view-icon:last-child {
        font-size: 30px;
        line-height: normal !important;
        cursor: pointer;
        color: #888;
        line-height: 1;
        user-select: none;
        transition: 0.2s;
    }
    
    .view-icon.active {
        color: #8d0015 !important;
    }

    /* GRID VIEW */
    .product-loop-container.mobile-grid {
        flex-direction: column;
        overflow-x: hidden;
        gap: 10px;
    }

    .product-loop-container.mobile-grid > a {
        flex: 0 0 auto;
        width: 100%;
        position: relative;
    }

    /* LIST VIEW */
    .product-loop-container.mobile-list {
        flex-direction: row;
        overflow-x: hidden;
        gap: 10px;
        // flex-wrap: wrap;
    }

    .product-loop-container.mobile-list > a {
        flex: 0 0 auto;
        width: 40%;
        position: relative;
    }
}

/* Ẩn mặc định */
.hidden {
    display: none;
}

/* Overlay full màn hình */
#filter-popup-overlay {
    position: fixed;
    inset: 0;
    top: 0px !important;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
}

/* Popup */
.filter-popup {
    width: 100vw;
    height: 60vh;
    background: #fff;

    display: flex;
    flex-direction: column;
}

/* Header */
.popup-header {
    padding: 16px;
    border-bottom: 1px solid #ddd;

    display: flex;
    justify-content: space-between;
    align-items: center;

    flex-shrink: 0;
}

/* Content scroll */
.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;

    -webkit-overflow-scrolling: touch;
}

/* Footer luôn ở cuối */
.popup-footer {
    padding: 16px;
    border-top: 1px solid #ddd;
    background: #fff;

    display: flex;
    gap: 12px;

    flex-shrink: 0;
}

/* Button */
.popup-footer button {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

.btn-clear {
    background: #f1f1f1;
}

.btn-apply {
    background: #000;
    color: #fff;
}

/* Demo item */
.filter-item {
    padding: 20px;
    margin-bottom: 12px;
    background: #f7f7f7;
    border-radius: 8px;
}

#close-popup {
  font-size: 20px;
  font-weight: bold;
  height: 100%;
  min-width: 5%;
}

.mb-1 {
  margin-bottom: 1rem !important;
}

.mb-2 {
  margin-bottom: 2rem !important;
}

.mt-n-1 {
  margin-top: -1rem !important;
}


.mt-0 {
  margin-top: 0px !important;
}

.pt-0 {
  padding-top: 0px !important;
}

#goog-gt-tt {
  display: none !important;
}

.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-tooltip {
    display: none !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

iframe.goog-te-banner-frame {
    display: none !important;
}

.goog-te-balloon-frame {
    display: none !important;
}

#filter-loading{
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    z-index: 99999;

    display: none;

    align-items: center;
    justify-content: center;
}

.filter-spinner{
    width: 42px;
    height: 42px;
    border: 4px solid #e5e5e5;
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin{
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}