/**
 * Theme Name:     K-Tech
 * Author:         K-Tech
 * Template:       flatsome
 * Text Domain:	   k-tech
 * Description:    Theme Build by Dai
 * Theme URI:      https://k-tech.net.vn/
 * Author URI:     https://k-tech.net.vn/
 * Version:        20250916
 * License:        2NRJM-B46WR-K6VQR-Y4T3D-QRWPX
 * License URI:    https://k-tech.net.vn/
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

body, html {
  font-family: 'Inter', sans-serif !important;
}

/* Prices should use Space Grotesk font */
.price, .price *, .amount, .amount *, .woocommerce-Price-amount, .woocommerce-Price-amount *, .old-price, .old-price *, .new-price, .new-price * {
  font-family: 'Space Grotesk', sans-serif !important;
}

/* Normalize Add to Cart button size across all pages without using important */
.category-product-card .product-card-footer .product-add-to-cart-btn {
  padding: 0 15px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: none;
  min-height: 42px;
  height: 42px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/*************** ADD CUSTOM CSS HERE.   ***************/



.single-product .box_shadown {
  padding: 0;
  box-shadow: none;
  background: transparent;
}


.menu_footer .menu-item .ux-menu-link__link {
  padding: 0;
  min-height: auto;
}

.menu_footer .menu-item .ux-menu-link__link .ux-menu-link__text {
  font-size: 15px;
  color: #959595;
  margin-bottom: 5px;
}


.home-hero {
  padding: 0;
}

svg.swiper-navigation-icon {
  width: 20px;
  height: 18px;
}


.hero-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  /* Có thể dùng gap nếu không xài class col của Grid System */
}

/* Tuỳ chỉnh lại padding giữa các cột nếu bạn dùng Flatsome hoặc Bootstrap */
.home-hero .col {
  padding: 0 10px;
}

/* -- SLIDER BÊN TRÁI -- */
.hero-slider {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.hero-slide-inner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 12px;
}

.bg-blue {
  background: linear-gradient(to right, #082142, #2974ca);
}

.bg-dark {
  background: linear-gradient(to right, #1a1a2e, #16213e);
}

.hero-slide__content {
  position: relative;
  z-index: 3;
  flex: 1;
  color: #fff;
  padding-right: 20px;
}

.hero-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide__content h2 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn {
  background: #fff;
  color: #b81d33;
  /* Màu chữ đỏ như ảnh */
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background: #f0f0f0;
}

/* Animations when slide is active (each element transitions sequentially without bugging the hover effect delay) */
.swiper-slide-active .hero-tag {
  opacity: 0.8;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.swiper-slide-active .hero-slide__content h2 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.swiper-slide-active .hero-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s, background 0.3s ease, color 0.3s ease;
}

.hero-slide__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Premium gradient overlay (darker on left for desktop) */
.hero-slide__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 2;
}

.hero-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Zoom effect when active */
.swiper-slide-active .hero-slide__image img {
  transform: scale(1);
}

/* -- TUỲ CHỈNH SWIPER (Mũi tên & Dấu chấm) -- */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
  background: rgba(255, 255, 255, 0.4);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
  font-size: 14px;
  /* Thu nhỏ icon mũi tên */
}

.hero-slider .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.4;
  width: 8px;
  height: 8px;
  transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  opacity: 1;
  width: 24px;
  /* Làm cho dấu chấm đang active dài ra giống ảnh */
  border-radius: 4px;
}

/* -- 2 BANNER BÊN PHẢI -- */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* Khoảng cách giữa 2 banner */
  height: 100%;
}

.hero-box {
  flex: 1;
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-box:hover {
  transform: translateY(-3px);
  /* Hiệu ứng hover nhẹ */
}

.hero-box__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-box__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lớp phủ tối mờ (dark overlay) chỉ hiển thị khi banner có chữ để làm nổi bật chữ */
.hero-box--has-text .hero-box__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 2;
}

.hero-box__content {
  position: relative;
  z-index: 3;
}

.hero-box-img {
  padding: 0;
  overflow: hidden;
  background: none;
}

.hero-box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.bg-red {
  background: linear-gradient(135deg, #c71b30, #9f1222);
}

.bg-green {
  background: linear-gradient(135deg, #186a48, #0f4a31);
}

.hero-box__content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 5px;
  line-height: 1.2;
  color: #fff;
}

.hero-box__content p {
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.hero-box-btn {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 18px;
  border-radius: 20px;
  /* Nút bo tròn hoàn toàn */
  font-size: 13px;
  display: inline-block;
  width: max-content;
  transition: background 0.3s;
}

.hero-box:hover .hero-box-btn {
  background: rgba(255, 255, 255, 0.2);
}




.flash-sale .row .col {
  padding-bottom: 0;
}

.flash-sale .row .col .flash-sale-wrap {
  background: #fff;
  border: 1px solid #efc5cb;
  border-radius: 18px;
  overflow: hidden;
}

.flash-sale .slider_product_home {
    @media only screen and (max-width: 768px) {
      padding: 10px;
    }
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-icon {
  font-size: 20px;
  color: #fff;
  background: #c50f2f;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
  width: max-content;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left span:not(.flash-sale-icon) {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-countdown b {
  color: #3b82f6;
  font-size: 16px;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-countdown .flash-sale-time {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #1e293b;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid #334155;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

.flash-sale-item.category-product-card {
  border: 1px solid #ebedf0;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.product-card-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 8px;
}

.product-card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 8px;
}

.product-card-meta-row .product-card-rating {
  margin-bottom: 0;
}

.product-card-meta-row .product-stock-status {
  margin-bottom: 0;
}

.product-card-meta-row .product-stock-status .stock-text {
  font-size: 11px;
  color: #10b981;
}

.product-card-meta-row .product-stock-status .stock-dot {
  background-color: #10b981;
  width: 6px;
  height: 6px;
}

.flash-sale-progress-wrapper {
  margin-top: 8px;
  margin-bottom: 12px;
}

.flash-sale-progress-bar {
  background: #f1f5f9;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.flash-sale-progress-fill {
  background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
  height: 100%;
  border-radius: 3px;
}

.flash-sale-sold-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  font-weight: 500;
}

.flash-sale-item .product-add-to-cart-btn {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #fff !important;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color) !important;
  box-shadow: none;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 5px 14px !important;
  font-size: 14px !important;
  text-transform: none !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}

.flash-sale-item .product-add-to-cart-btn:hover {
  background: var(--primary-color) !important;
  color: #fff !important;
  border-color: var(--primary-color) !important;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #d9163b;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-thumb {
  display: block;
  padding: 18px;
  background: #fff;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  transition: .3s;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product:hover .flash-sale-thumb img {
  transform: scale(1.05);
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-name {
  display: -webkit-box;
  margin: 0 16px;
  color: #222;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  min-height: 48px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-name:hover {
  color: #c50f2f;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px 18px;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-price strong {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.flash-sale .row .col .flash-sale-wrap .flash-sale-products .flash-sale-product .flash-sale-price del {
  color: #999;
  font-size: 15px;
  line-height: 1;
}

@media(max-width:1200px) {

  .flash-sale .row .col .flash-sale-wrap .flash-sale-products {
    grid-template-columns: repeat(4, 1fr);
  }

}

@media(max-width:992px) {

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-products {
    grid-template-columns: repeat(3, 1fr);
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-title h2 {
    font-size: 34px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-title span {
    font-size: 18px;
  }

}

@media(max-width:768px) {

  .flash-sale .row .col .flash-sale-wrap .flash-sale-products {
    grid-template-columns: repeat(2, 1fr);
    padding: 12px;
    gap: 12px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left {
    flex-wrap: wrap;
    gap: 10px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left h2 {
    font-size: 20px;
  }

}

@media(max-width:549px) {

  .flash-sale .row .col .flash-sale-wrap .flash-sale-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header {
    padding: 12px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left {
    justify-content: center;
    gap: 8px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left h2 {
    font-size: 18px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-header-left span:not(.flash-sale-icon) {
    font-size: 12px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-icon {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .flash-sale .row .col .flash-sale-wrap .flash-sale-header .flash-sale-countdown {
    justify-content: center;
    width: 100%;
  }

  /* Card specific styles for mobile 2 columns */
  .flash-sale-item.category-product-card {
    padding: 8px;
    border-radius: 12px;
  }

  .flash-sale-item.category-product-card .product-card-title {
    font-size: 12px;
    height: 34px;
    line-height: 1.4;
    margin-bottom: 8px;
  }

  .flash-sale-item.category-product-card .product-card-rating {
    font-size: 11px;
    gap: 2px;
  }

  .flash-sale-item.category-product-card .product-card-rating .star-rating {
    font-size: 10px;
  }

  .flash-sale-item.category-product-card .product-stock-status .stock-text {
    font-size: 10px;
  }

  .flash-sale-item.category-product-card .new-price {
    font-size: 14px;
  }

  .flash-sale-item.category-product-card .old-price {
    font-size: 11px;
  }

  .flash-sale-item.category-product-card .discount-percent {
    font-size: 10px;
    padding: 1px 4px;
  }

  .flash-sale-item.category-product-card .flash-sale-sold-text {
    font-size: 11px;
  }

  .flash-sale-item.category-product-card .product-add-to-cart-btn {
    padding: 6px 8px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    gap: 4px;
  }

  .flash-sale-item.category-product-card .product-add-to-cart-btn svg {
    width: 14px;
    height: 14px;
  }

}





.build-pc-main-row .box_shadown.summary-card {
  padding: 0;
}

.summary-card-header {
  margin-bottom: 20px;
}

.build-pc-main-row .box_shadown.summary-card .summary-card-body,
.build-pc-main-row .box_shadown.summary-card .summary-card-footer {
  padding: 0 15px;
}


.product-add-to-cart-btn {
  font-size: 14px !important;
  font-weight: 400;
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
  text-transform: none;
  padding: 5px 10px;
}

.header-right .header-box:first-child {
  background: linear-gradient(90deg, #c8102e 0%, #8f0c20 100%) !important;
}

.header-right .header-box:first-child span {
  color: #fff;
}

.header-right .header-box:first-child .box_icon_shadow {
  background: transparent;
}


.custom-cart-info {
  line-height: 1;
}


.header-menu {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #FFFFFF;
}

.header-menu .menu-item {
  margin: 0 20px;
}

.header-menu .menu-item a {
  font-size: 14px;
  color: #2c2c2c;
}

.header-menu .menu-item a:hover {
  color: rgb(200, 16, 46);
}



/* -- MOBILE RESPONSIVE -- */
@media (max-width: 991px) {
  .hero-right {
    margin-top: 15px;
  }

  .hero-slide-inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
    justify-content: center;
    aspect-ratio: auto;
    min-height: 280px;
  }

  .hero-slide__content {
    position: relative;
    z-index: 3;
    padding-right: 0;
    width: 100%;
  }

  .hero-tag {
    margin-bottom: 10px;
  }

  .hero-slide__content h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .hero-btn {
    display: inline-block;
    width: auto;
    margin: 0;
  }

  .hero-slide__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .hero-slide__image::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
  }

  .hero-slide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}


@media only screen and (max-width: 48em) {
  /*************** ADD MOBILE ONLY CSS HERE  ***************/

  iframe[width="67px"][height="64px"] {
    transform: translateY(-80px) !important;
  }


  .header-right .logo {
    padding: 0;
    margin-top: 7px;
  }

}

/* ==========================================================================
   PRODUCT CATEGORY CATALOG REDESIGN (FLATBAR & POPUP FILTERS)
   ========================================================================== */

.product-category-page {
  padding-top: 20px;
  padding-bottom: 50px;
}

/* Category pills */
.category-pills-wrapper {
  margin-bottom: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 5px;
}

.category-pills-wrapper::-webkit-scrollbar {
  height: 4px;
}

.category-pills-wrapper::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.category-pills {
  display: inline-flex;
  gap: 10px;
}

.cat-pill-link {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cat-pill-link:hover {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}

.cat-pill-link.active {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
  font-weight: 600;
}

/* Filter bar */
.category-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 25px;
  position: relative;
}

.filter-groups-left {
  display: flex;
  gap: 12px;
}

.category-filter-bar .filter-dropdown {
  display: block;
  position: relative;
  width: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  z-index: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #cbd5e1;
}

.filter-btn.active {
  border-color: #b91c1c;
  color: #b91c1c;
}

.filter-btn.active .chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23b91c1c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.filter-btn .chevron {
  display: inline-block;
  width: 10px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform 0.2s ease;
}

.category-filter-bar .filter-dropdown.open .filter-btn {
  border-color: #b91c1c;
  color: #1e293b;
}

.category-filter-bar .filter-dropdown.open .filter-btn .chevron {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23b91c1c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  width: 280px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: none;
}

.filter-dropdown.open .filter-popover {
  display: block;
}

/* Checkbox options style */
.filter-options-list {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  max-height: 240px;
  overflow-y: auto;
}

.filter-options-list li {
  margin-bottom: 10px;
}

.filter-options-list li:last-child {
  margin-bottom: 0;
}

.filter-option-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #334155;
  cursor: pointer;
}

.filter-option-label-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-option-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  accent-color: #b91c1c;
  cursor: pointer;
}

.filter-option-count {
  font-size: 12px;
  color: #94a3b8;
}

/* Range Slider */
.price-slider-title {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 12px;
}

.price-slider-widget {
  margin-bottom: 20px;
  padding: 0 10px;
}

.dual-slider-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  position: relative;
  margin-bottom: 15px;
}

.dual-slider-fill {
  position: absolute;
  height: 100%;
  background: #b91c1c;
  border-radius: 3px;
}

.dual-slider-handle {
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid #b91c1c;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  cursor: pointer;
  transform: translateX(-50%);
}

.dual-slider-inputs {
  display: none;
}

.price-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 15px;
}

.brand-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  background: #f1f5f9;
  transition: all 0.2s;
  box-sizing: border-box;
}

.brand-search-input:focus {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.price-slider-widget input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 0;
  left: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  z-index: 2;
}

.price-slider-widget input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b91c1c;
  cursor: pointer;
  pointer-events: auto;
  margin-top: -5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s;
}

.price-slider-widget input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1.2);
}

.price-slider-widget input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #b91c1c;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.1s;
}

.price-slider-widget input[type="range"]::-moz-range-thumb:active {
  transform: scale(1.2);
}

.price-slider-widget input[type="range"]::-moz-range-track {
  background: none;
  border: none;
}

/* Popover buttons */
.popover-buttons {
  display: flex;
  gap: 10px;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.popover-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.popover-btn-clear {
  background: #fff;
  border: 1px solid #d2d6dc;
  color: #475569;
}

.popover-btn-clear:hover {
  background: #f8fafc;
}

.popover-btn-apply {
  background: #b91c1c;
  border: 1px solid #b91c1c;
  color: #fff;
}

.popover-btn-apply:hover {
  background: #991b1b;
}

/* Toolbar Right */
.filter-info-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-count-info {
  font-size: 14px;
  color: #64748b;
}

.sort-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select-wrapper .sort-select-dropdown {
  margin-bottom: 0;
}

.sort-select-label {
  display: none;
}

.sort-select-dropdown {
  padding: 8px 30px 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat calc(100% - 12px) center/10px 6px;
  appearance: none;
  font-size: 14px;
  color: #1e293b;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

/* Active filter tags/chips */
.active-filter-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: -10px;
  margin-bottom: 25px;
  padding: 0 5px;
}

.filter-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 9999px;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-tag-chip:hover {
  background: #fee2e2;
  border-color: #ef4444;
}

.remove-chip-icon {
  font-size: 16px;
  line-height: 1;
  color: #ef4444;
  margin-left: 2px;
}

.clear-all-filters-btn {
  font-size: 14px;
  color: #475569;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}

.clear-all-filters-btn:hover {
  color: #b91c1c;
}

.sort-select-dropdown:hover {
  border-color: #cbd5e1;
}

.sort-select-dropdown:focus {
  border-color: #b91c1c;
}

/* Product Grid */
.category-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

/* Synchronized Card Styles */
.category-product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.3s ease;
}

.category-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  border-color: #cbd5e1;
}

/* Card Header Badges */
.card-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.badge-status {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: #fff;
  text-transform: uppercase;
}

.badge-status.new {
  background: #3b82f6;
}

.badge-status.hot {
  background: #ef4444;
}

.badge-compare {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.badge-compare:hover {
  background: #f8fafc;
  color: #1e293b;
}

/* Card Wishlist */
.product-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
}

/* Card Image */
.product-card-image-link {
  display: block;
  /* padding: 10px; */
  margin-bottom: 12px;
  text-align: center;
}

.product-card-image-link img {
  max-width: 100%;
  /* height: 150px; */
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.category-product-card:hover .product-card-image-link img {
  transform: scale(1.05);
}

/* Rating & Stock row */
.product-card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.category-product-card .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.category-product-card .rating .star-rating {
  font-size: 11px;
  margin: 0;
}

.category-product-card .rating span {
  font-size: 11px;
  color: #64748b;
}

.product-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.stock-text {
  font-size: 11px;
  font-weight: 500;
  color: #10b981;
}

.category-product-card.out-of-stock .stock-dot {
  background: #ef4444;
}

.category-product-card.out-of-stock .stock-text {
  color: #ef4444;
}

/* Title */
.product-card-title {
  margin: 0 0 20px 0;

}

.product-card-title a {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  height: 40px;
  letter-spacing: -0.005em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--primary-color) !important;
}

/* Specs/Attributes List */
.product-card-specs {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 16px;
}

/* Price */
.product-card-price-row {
  margin-top: auto;
  margin-bottom: 12px;
}

.old-price-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.old-price {
  font-size: 12px;
  text-decoration: line-through;
  color: #94a3b8;
}

.discount-percent {
  font-size: 10px;
  font-weight: 700;
  color: #ef4444;
  background: #fee2e2;
  padding: 1px 4px;
  border-radius: 4px;
}

.new-price {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.product-card-image-link {
  /* border: 1px solid #ebedf0; */
  border-radius: 10px;
  overflow: hidden;

}

/* Add to cart button */
.product-add-to-cart-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px !important;
  background: #fff !important;
  border: 1px solid #b91c1c !important;
  border-radius: 8px !important;
  color: #b91c1c !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none;
  text-transform: none !important;
  transition: all 0.2s ease;
  height: auto !important;
  box-shadow: none !important;
}

.product-add-to-cart-btn:hover {
  background: #b91c1c !important;
  color: #fff !important;
}

.product-add-to-cart-btn .cart-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
  .category-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .category-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-info-right {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card-image-link img {
    height: 120px;
  }

  .filter-groups-left {
    width: 100%;
  }

  .category-filter-bar .filter-dropdown {
    flex: 1;
  }

  .filter-btn {
    width: 100%;
    justify-content: space-between;
  }

  .filter-popover {
    width: 100%;
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: block;
    visibility: hidden;
  }

  .filter-dropdown.open .filter-popover {
    transform: translateY(0);
    visibility: visible;
  }
}

/* ==========================================================================
   REDESIGNED HEADER & MOBILE DRAWER STYLE override
   ========================================================================== */

/* Top bar style */
#wrapper #header .header-medium {
  background: #fcfcfd;
  border-bottom: 1px solid #f1f5f9;
  padding: 8px 0;
  position: relative;
  z-index: 20;
}

#wrapper #header .header-medium .container,
#wrapper #header .header-medium .inner_menu {
  overflow: visible;
}

#wrapper #header .header-medium .hotline {
  font-size: 13px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}

#wrapper #header .header-medium .hotline svg {
  color: #b91c1c;
  stroke: #b91c1c;
  width: 18px;
  height: 18px;
}

#wrapper #header .header-medium .hotline-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#wrapper #header .header-medium .hotline-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 400;
}

#wrapper #header .header-medium .hotline-phone {
  font-size: 13px;
  color: #000;
  font-weight: 700;
}

#wrapper #header .header-right-menu .top-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

#wrapper #header .header-right-menu .top-menu a {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.2s;
}

#wrapper #header .header-right-menu .top-menu a:hover {
  color: #b91c1c;
}

#wrapper #header .header-right-menu .top-menu a svg {
  stroke: #475569;
  width: 14px;
  height: 14px;
}

#wrapper #header .header-right-menu .top-menu a .caret-down {
  margin-left: 2px;
  stroke: #475569;
  width: 10px;
  height: 10px;
}

#wrapper #header .header-right-menu .top-menu .btn-store {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s;
  height: auto;
}

#wrapper #header .header-right-menu .top-menu .btn-store:hover {
  color: #b91c1c;
}

#wrapper #header .header-right-menu .top-menu .btn-store-wrapper.active .btn-store {
  color: #b91c1c;
}

#wrapper #header .header-medium .custom-login-link {
  text-decoration: none;
}

#wrapper #header .header-medium .user-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

#wrapper #header .header-medium .user-box .user-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#wrapper #header .header-medium .user-box .user-text {
  font-size: 13px;
  font-weight: 600;
  color: #3e3232;
}

/* #wrapper #header .header-medium .user-box .user-icon svg path {
  fill: #475569;
} */




/* Main bar / Header Bottom style */
#wrapper #header .header-bottom {
  background: #ffffff;
  padding: 12px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#wrapper #header .header-bottom .logo img {
  max-height: 65px;
}

#wrapper #header .header-bottom .inner_menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#wrapper #header .header-bottom .header-search {
  flex: 1;
  position: relative;
}

#wrapper #header .header-bottom .header-search form.searchform {
  border-radius: 8px;
  background-color: #f1f5f9;
  border: 1.5px solid transparent;
  display: flex;
  position: relative;
  overflow: visible;
  height: 45px;
  width: 100%;
  transition: all 0.2s ease;
}

#wrapper #header .header-bottom .header-search form.searchform:focus-within {
  border-color: #b91c1c;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px color-mix(in srgb, #c8102e 18%, transparent);
}

#wrapper #header .header-bottom .header-search form.searchform input.search-field {
  background-color: transparent;
  border: none;
  padding: 0 45px 0 20px;
  font-size: 14px;
  color: #334155;
  width: 100%;
  height: 100%;
}

#wrapper #header .header-bottom .header-search form.searchform button {
  line-height: 1;
  background: transparent;
  border: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  padding: 0 16px;
  cursor: pointer;
}

#wrapper #header .header-bottom .header-search form.searchform button svg,
#wrapper #header .header-bottom .header-search form.searchform button i {
  color: #64748b;
  width: 16px;
  height: 16px;
  top: -4px;
}

/* Live Search Dropdown Redesign */
#wrapper #header .header-bottom .header-search .live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestions {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 8px;
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestion:hover,
#wrapper #header .header-bottom .header-search .autocomplete-suggestion.autocomplete-selected {
  background-color: #f8fafc;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestion img.search-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #f1f5f9;
  padding: 3px;
  flex-shrink: 0;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestion .search-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
  text-align: left;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestion .search-name strong {
  color: #0f172a;
  font-weight: 700;
}

#wrapper #header .header-bottom .header-search .autocomplete-suggestion .search-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #b91c1c;
  margin-left: auto;
  flex-shrink: 0;
}

/* View All Results Link */
#wrapper #header .header-bottom .header-search .view-all-results-link {
  padding: 12px 0 6px 0;
  text-align: center;
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
}

#wrapper #header .header-bottom .header-search .view-all-results-link a {
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}

#wrapper #header .header-bottom .header-search .view-all-results-link a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Actions buttons desktop */
#wrapper #header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#wrapper #header .btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 21.5px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  transition: all 0.2s;
  height: 40px;
}

#wrapper #header .btn-config {
  background: #b91c1c;
  color: #ffffff;
  border: 1px solid #b91c1c;
}

#wrapper #header .btn-config:hover {
  background: #991b1b;
  border-color: #991b1b;
  color: #ffffff;
  filter: brightness(0.94);
  transform: translateY(-1px);
}

#wrapper #header .btn-action .btn-icon {
  display: inline-flex;
  align-items: center;
}

#wrapper #header .btn-config .btn-icon svg {
  stroke: #ffffff;
}

/* Store Popover */
#wrapper #header .btn-store-wrapper {
  position: relative;
}

#wrapper #header .header-medium .store-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 999;
  display: none;
  text-align: left;
}

/* Arrow for popover pointing up */
#wrapper #header .header-medium .store-popover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

#wrapper #header .header-medium .store-popover::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 7px;
  border-style: solid;
  border-color: transparent transparent #e2e8f0 transparent;
  z-index: -1;
}

#wrapper #header .btn-store-wrapper.active .store-popover {
  display: block;
}

#wrapper #header .store-popover-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #000;
  margin-bottom: 8px;
}

#wrapper #header .store-popover p {
  font-size: 13px;
  color: #475569;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

#wrapper #header .store-popover .addr {
  font-weight: 400;
}

#wrapper #header .store-popover .store-hotline {
  color: #b91c1c;
  font-weight: 600;
}

#wrapper #header .store-map-link {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

#wrapper #header .store-map-link:hover {
  text-decoration: underline;
}

/* Cart box customization */
#wrapper #header .header_cart .custom-cart-box a.custom-cart-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 21.5px 12px 21.5px 2px;
  height: 42px;
  text-decoration: none;
  border: 1px solid transparent;
}

#wrapper #header .header_cart .custom-cart-box a.custom-cart-link:hover {
  background: #e2e8f0;
}

#wrapper #header .header_cart .custom-cart-box .custom-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
}

#wrapper #header .header_cart .custom-cart-box .custom-cart-icon img {
  width: 20px;
  height: 20px;
}

#wrapper #header .header_cart .custom-cart-box .custom-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
}

#wrapper #header .header_cart .custom-cart-box .custom-cart-info span {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

/* Lightning bolt icon for Flash Sale in navigation */
#wrapper #header .header-menu .main-menu>li:first-child>a::before {
  content: "⚡";
  margin-right: 5px;
  color: #f59e0b;
  font-weight: 700;
  display: inline-block;
}

/* Mobile panel styling overrides */
.mobile-menu-overlay .mobile-menu-panel {
  max-width: 320px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu-header {
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 16px !important;
}

.mobile-menu-header img {
  max-height: 36px;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mobile-menu.menu_mb {
  flex: 1;
}

.mobile-menu.menu_mb .menu-item {
  padding: 14px 16px !important;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  border-bottom: 1px solid #f1f5f9 !important;
}

.mobile-menu.menu_mb .menu-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.mobile-menu.menu_mb .menu-item a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.mobile-menu.menu_mb .menu_item_back i {
  color: #94a3b8;
  font-size: 14px;
}

/* Extra Mobile drawer buttons and phone info */
.mobile-menu-actions {
  padding: 20px 16px;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}

.mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.2s;
}

.mobile-btn-config {
  background: #b91c1c !important;
  color: #ffffff !important;
}

.mobile-btn-config:hover {
  background: #991b1b !important;
}

.mobile-btn-order {
  background: #ffffff !important;
  color: #0f172a !important;
  /* border: 1px solid #cbd5e1 !important; */
}

.mobile-btn-order:hover {
  background: #f8fafc !important;
}

.mobile-hotline {
  text-align: center;
  font-size: 14px;
  color: #b91c1c;
  margin-top: 16px;
}

.mobile-hotline strong {
  font-weight: 700;
}

/* Mobile Header Layout overrides */
.header-mobile-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
}

.mobile-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-bar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-trigger.mega_trigger {
  position: relative;
  width: auto;
  height: auto;
  border: none !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  cursor: pointer;
  padding: 8px;
  margin: 0;
}

.mobile-menu-trigger.mega_trigger svg {
  width: 24px;
  height: 24px;
  stroke: #111111;
}

.menu-badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  background-color: #d9163b;
  border-radius: 50%;
}

.mobile-logo.logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.mobile-search-row {
  width: 100%;
}

.mobile-search {
  width: 100%;
}

.mobile-search form.searchform {
  border-radius: 7px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 42px;
  padding: 0 16px;
  width: 100%;
}

.mobile-search form.searchform input.search-field {
  background-color: transparent !important;
  padding: 0 !important;
  font-size: 14px !important;
  color: #334155 !important;
  flex: 1;
  border: none !important;
  box-shadow: none !important;
}

.mobile-search form.searchform button {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.mobile-search form.searchform button svg {
  color: #94a3b8 !important;
  width: 20px;
  height: 20px;
}

.mobile-cart .custom-cart-box a.custom-cart-link {
  width: auto;
  height: auto;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none !important;
}

.mobile-cart .custom-cart-box .custom-cart-icon img {
  width: 24px;
  height: 24px;
}

.mobile-cart .custom-cart-box .custom-cart-icon {
  margin: 0;
  position: relative;
  background: transparent !important;
  box-shadow: none !important;
}

.mobile-cart .custom-cart-box .custom-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  background: #d9163b;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

.mobile-cart .custom-cart-info {
  display: none !important;
}



@media (max-width: 767px) {
  .header-medium {
    display: none !important;
  }

  .item_pc {
    display: none !important;
  }

  .only_mb {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .header-mobile-bar {
    display: none !important;
  }

  .only_mb {
    display: none !important;
  }

  .item_pc {
    display: block !important;
  }
}


.mobile-search .searchform {
  @media only screen and (max-width: 768px) {
    margin: 0;
  }
}

.mobile-search .searchform .search-submit {
  @media only screen and (max-width: 768px) {
    min-height: auto;
    margin: 0;
  }
}


.mobile-cart .custom-cart-box .custom-cart-icon img {
  margin: 3px 0px 0px 2px;
}

.mobile-menu-trigger.mega_trigger {
  @media only screen and (max-width: 768px) {
    min-height: auto;
    margin: 0;
    border: none;
  }
}



.woosw-copy-btn #woosw_copy_btn {
  margin: 0;
  min-height: auto;
  line-height: 1;
  padding: 15px 25px;
  border-radius: 0 10px 10px 0;
}


.woosw-list .woosw-copy .woosw-copy-url,
.woosw-list .woosw-share a {
  padding: 7px 0 !important;
  border-radius: 10px 0 0 10px !important;
}

.woosw-list .woosw-copy-url input {
  border: none;
}

/* Sticky Compare Bar styles */
.sticky-compare-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 12px 24px;
  z-index: 99;
}

.compare-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.compare-bar-label {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.compare-bar-products {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  overflow-x: auto;
  padding: 4px 0;
}

.compare-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 12px;
  position: relative;
  max-width: 250px;
  flex-shrink: 0;
}

.compare-bar-thumb {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.compare-bar-title {
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.compare-bar-remove {
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  margin-left: 4px;
  transition: color 0.2s;
}

.compare-bar-remove:hover {
  color: #ef4444;
}

.compare-bar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.compare-clear-all {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.compare-clear-all:hover {
  color: #ef4444;
}

.compare-now-btn {
  background: #b91c1c;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.compare-now-btn:hover {
  background: #991b1b;
}

/* Compare Details Modal Overlay styles */
@keyframes compareModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes compareModalZoomIn {
  from {
    transform: translateY(30px) scale(0.95);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

.compare-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.compare-details-modal[style*="display: block"],
.compare-details-modal[style*="display: flex"] {
  animation: compareModalFadeIn 0.25s ease forwards;
  display: flex !important;
}

.compare-modal-dialog {
  background: #fff;
  width: 100%;
  max-width: 950px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.compare-details-modal[style*="display: block"] .compare-modal-dialog,
.compare-details-modal[style*="display: flex"] .compare-modal-dialog {
  animation: compareModalZoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.compare-modal-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.compare-modal-header {
  background: #1e293b;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.compare-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #fff;
  font-weight: 600;
}

.compare-modal-close {
  font-size: 28px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}

.compare-modal-close:hover {
  color: #fff;
}

.compare-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  flex-grow: 1;
  background: #f8fafc;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
}

.compare-table th,
.compare-table td {
  border: 1px solid #f1f5f9;
  padding: 16px 24px;
  vertical-align: middle;
}

.compare-table th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: 0 1px 0 #f1f5f9;
}

.col-spec-header {
  width: 200px;
  min-width: 180px;
  background: #f8fafc !important;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 12;
}

.col-product-header {
  width: calc((100% - 200px) / 3);
  min-width: 260px;
  text-align: center !important;
}

.compare-prod-card-top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.compare-remove-product {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}

.compare-remove-product:hover {
  color: #ef4444;
}

.compare-prod-image img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.compare-prod-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgb(30, 41, 59);
  line-height: 1.5;
  height: 42px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.compare-prod-price {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.compare-view-details-btn {
  background: #b91c1c;
  color: #fff !important;
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
}

.compare-view-details-btn:hover {
  background: #991b1b;
}

/* Spec cells */
.compare-table tbody tr:nth-child(odd) td {
  background: #FFF5F5;
}

.compare-table tbody tr:nth-child(even) td {
  background: #FFFFFF;
}

.spec-label {
  font-weight: 600;
  color: #1e293b;
  text-align: left !important;
  width: 200px;
  position: sticky;
  left: 0;
  z-index: 8;
}

.compare-table tbody tr:nth-child(odd) td.spec-label {
  background: #FFF0F0 !important;
}

.compare-table tbody tr:nth-child(even) td.spec-label {
  background: #F8FAFC !important;
}

.spec-value {
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-align: left !important;
}

.spec-value .product-card-rating {
  justify-content: flex-start !important;
}

/* Compare active button states on product cards */
.badge-compare.active {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #b91c1c !important;
}

/* Mobile responsive optimizations for comparison */
@media (max-width: 768px) {
  .sticky-compare-bar {
    padding: 6px 8px;
    bottom: 55px;
    /* Đặt phía trên menu bottom dính của mobile */
  }

  .compare-bar-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
  }

  .compare-label-text {
    display: none;
    /* Ẩn chữ "So sánh" trên mobile */
  }

  .compare-bar-label {
    font-size: 11px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    color: #1e293b;
  }

  .compare-bar-products {
    justify-content: flex-start;
    gap: 6px;
    overflow: visible;
    padding: 0;
    margin: 0;
  }

  .compare-bar-item {
    width: 24px;
    height: 24px;
    padding: 0;
    background: #f1f5f9;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .compare-bar-thumb {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 2px;
  }

  .compare-bar-title {
    display: none;
  }

  .compare-bar-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
  }

  .compare-bar-actions {
    gap: 6px;
    align-items: center;
  }

  .compare-clear-all {
    font-size: 11px;
    white-space: nowrap;
    color: #64748b;
  }

  .compare-now-btn {
    padding: 5px 8px;
    font-size: 10.5px;
    border-radius: 6px;
    text-transform: none !important;
  }

  /* Modal responsive wrapper */
  .compare-modal-dialog {
    max-height: 95vh;
    width: 95%;
    border-radius: 8px;
  }

  .compare-modal-header {
    padding: 12px 16px;
  }

  .compare-modal-header h3 {
    font-size: 15px;
  }

  .compare-table-wrapper {
    padding: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .col-spec-header {
    width: 110px;
    min-width: 100px;
  }

  .col-product-header {
    min-width: 180px;
  }

  .compare-prod-image img {
    width: 60px;
    height: 60px;
  }

  .compare-prod-title {
    font-size: 12px;
    height: 36px;
    line-height: 1.5;
  }

  .compare-prod-price {
    font-size: 13.5px;
  }

  .compare-view-details-btn {
    padding: 8px 16px;
    font-size: 12px;
  }

  .spec-label {
    font-size: 12px;
    width: 110px;
    padding: 10px 12px !important;
  }

  .spec-value {
    font-size: 12px;
    padding: 10px 12px !important;
  }

  /* Compact layout optimizations for category page elements on mobile */
  .category-pills-wrapper {
    margin-bottom: 12px;
  }

  .cat-pill-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .category-filter-bar {
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-groups-left {
    gap: 8px;
    width: 100%;
    justify-content: space-between;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 13px;
    height: 34px;
    flex-grow: 1;
    justify-content: center;
  }

  .filter-info-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
  }

  .product-count-info {
    font-size: 13px;
  }

  .sort-select-dropdown {
    padding: 6px 24px 6px 10px;
    font-size: 13px;
    height: 34px;
  }

  /* Compact Product Grid & Cards on mobile */
  .category-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 4px;
  }

  .category-product-card {
    padding: 8px;
    border-radius: 8px;
  }

  .card-badges-row {
    gap: 4px;
  }

  .badge-status,
  .badge-compare {
    padding: 3px 6px;
    font-size: 10px;
  }

  .product-card-wishlist {
    top: 6px;
    right: 6px;
  }

  .product-card-wishlist button {
    width: 28px;
    height: 28px;
  }

  .product-card-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 6px;
  }

  .product-card-rating {
    font-size: 11px;
  }

  .star-rating {
    width: 60px !important;
    font-size: 10px;
  }

  .rating-count {
    font-size: 10px;
  }

  .product-stock-status {
    font-size: 11px;
  }

  .product-card-title {
    font-size: 12.5px;
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .product-card-specs {
    font-size: 10.5px;
    margin-bottom: 6px;
  }

  .product-card-price-row {
    margin-bottom: 8px;
  }

  .old-price-line .old-price {
    font-size: 11px;
  }

  .old-price-line .discount-percent {
    font-size: 10px;
  }

  .new-price {
    font-size: 14px;
  }

  .product-add-to-cart-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .product-add-to-cart-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================
   REDESIGNED CART PAGE STYLES
   ========================================== */

/* 1. Checkout steps / breadcrumbs */
.checkout-page-title.page-title {
  background: transparent !important;
  padding: 24px 0 10px 0 !important;
  border-bottom: none !important;
}

.checkout-page-title .breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #9CA3AF;
  text-transform: uppercase;
}

.checkout-page-title .breadcrumbs a {
  color: #9CA3AF !important;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s ease;
}

.checkout-page-title .breadcrumbs a.current {
  color: #111827 !important;
}

.checkout-page-title .breadcrumbs .divider {
  color: #9CA3AF !important;
  font-size: 12px;
  margin: 0 4px;
}

/* Hide numbers in breadcrumbs */
.checkout-page-title .breadcrumbs .breadcrumb-step {
  display: none !important;
}

/* 2. Error Notices */
.woocommerce-error {
  background: #FFF5F5 !important;
  border: 1px solid #BA0F2E !important;
  border-left: 1px solid #BA0F2E !important;
  border-radius: 8px !important;
  color: #BA0F2E !important;
  padding: 14px 20px !important;
  list-style: none !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.woocommerce-error::before {
  display: none !important;
}

/* 3. Checkbox customization */
.cart-check {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-left: 28px;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.cart-check input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.cart-check .checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1.5px solid #D1D5DB;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.cart-check input:checked~.checkmark {
  background-color: #BA0F2E;
  border-color: #BA0F2E;
}

.cart-check .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.cart-check input:checked~.checkmark:after {
  display: block;
}

.cart-check .checkmark:after {
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 4. Select all block */
.cart-select-all {
  background: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  border: 1px solid #E5E7EB;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.select-all-label {
  display: flex !important;
  align-items: center;
}

/* 5. Cart Cards List */
.shop_table.cart {
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}

.shop_table.cart tbody tr {
  background: transparent !important;
  border: none !important;
}

.shop_table.cart td {
  padding: 0 0 16px 0 !important;
  border: none !important;
}

.custom-cart-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  padding: 20px 140px 20px 20px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  position: relative !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.custom-cart-check {
  flex-shrink: 0 !important;
  margin-right: 15px !important;
  display: block !important;
}

.custom-cart-main {
  flex-grow: 1 !important;
  display: flex !important;
  align-items: center !important;
}

.custom-cart-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  width: 100% !important;
}

.custom-cart-thumb {
  width: 80px !important;
  height: 80px !important;
  flex-shrink: 0 !important;
  margin-right: 16px !important;
  border-radius: 6px !important;
  border: 1px solid #F3F4F6 !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #FAFAFA !important;
}

.custom-cart-thumb img {
  max-height: 100% !important;
  width: auto !important;
  object-fit: contain !important;
}

.custom-cart-details {
  flex-grow: 1 !important;
  display: block !important;
}

.custom-cart-title {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: #1F2937 !important;
  line-height: 1.4 !important;
  margin-bottom: 4px !important;
}

.custom-cart-title a {
  color: #1F2937 !important;
}

.custom-cart-sku {
  font-size: 12px !important;
  color: #9CA3AF !important;
  margin-bottom: 8px !important;
}

.custom-cart-price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.custom-cart-price .sale-price,
.custom-cart-price .normal-price {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #111827 !important;
}

.custom-cart-price .old-price {
  font-size: 13px !important;
  text-decoration: line-through !important;
  color: #9CA3AF !important;
}

.custom-cart-actions {
  display: contents !important;
}

.custom-cart-del {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10 !important;
}

.custom-cart-del a {
  color: #9CA3AF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s ease !important;
}

.custom-cart-del a:hover {
  color: #EF4444 !important;
}

/* Quantity input customize */
.custom-cart-card .custom-cart-qty {
  display: flex !important;
  align-items: center !important;
  position: absolute !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 10 !important;
}

.custom-cart-card .quantity {
  display: flex !important;
  align-items: center;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  overflow: hidden;
  height: 32px;
  margin: 0 !important;
}

.custom-cart-card .quantity input.qty {
  border: none !important;
  width: 36px !important;
  height: 100% !important;
  text-align: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  padding: 0 !important;
  background: transparent !important;
}

.custom-cart-card .quantity .minus,
.custom-cart-card .quantity .plus {
  background: #F9FAFB !important;
  border: none !important;
  width: 28px !important;
  height: 100% !important;
  font-size: 15px !important;
  color: #6B7280 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0 !important;
  margin: 0 !important;
}

.custom-cart-card .quantity .minus:hover,
.custom-cart-card .quantity .plus:hover {
  background: #F3F4F6 !important;
  color: #111827 !important;
}

/* 6. Cart global footer total */
.cart-footer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  margin-top: 10px;
}

.cart-footer-total-label {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

#selected-total {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

/* 7. Collaterals Sidebar styling */
.woocommerce-cart #wrapper,
.woocommerce-cart #main,
.woocommerce-cart main,
.woocommerce-cart .main-inner {
  overflow: visible !important;
}

@media (min-width: 992px) {
  .cart-collaterals {
    height: 100% !important;
  }

  .cart-collaterals .col-inner {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 20px !important;
    z-index: 99 !important;
  }
}

.cart-sidebar {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.ux-cart-coupon.custome_coupon {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.ux-cart-coupon.custome_coupon .coupon {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custome_coupon .voucher_header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.custome_coupon .icon_box--pink {
  width: 32px;
  height: 32px;
  background: #FFF5F5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custome_coupon .voucher_header_text h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.custome_coupon .voucher_header_text span {
  font-size: 12px;
  color: #9CA3AF;
}

.custome_coupon input#coupon_code {
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
  padding: 10px 14px !important;
  font-size: 13.5px !important;
  height: 40px !important;
  background: #fff !important;
  margin: 0 !important;
}

.custome_coupon button[name="apply_coupon"] {
  background: #F3F4F6 !important;
  color: #4B5563 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 6px !important;
  height: 40px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

.custome_coupon button[name="apply_coupon"]:hover {
  background: #E5E7EB !important;
  color: #111827 !important;
}

/* Product Info Box */
.cart_totals.cart_totals_cusstom {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.cart_totals.cart_totals_cusstom h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid #F3F4F6;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.cart_totals_cusstom table.shop_table {
  border: none !important;
  margin-bottom: 16px !important;
}

.cart_totals_cusstom table.shop_table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border: none !important;
}

.cart_totals_cusstom table.shop_table tr.cart-subtotal {
  border-bottom: 1px dashed #E5E7EB !important;
}

.cart_totals_cusstom table.shop_table th {
  font-size: 13.5px;
  font-weight: 500;
  color: #4B5563;
  padding: 0 !important;
}

.cart_totals_cusstom table.shop_table td {
  font-size: 14.5px;
  font-weight: 600;
  color: #111827;
  text-align: right;
  padding: 0 !important;
}

.cart_totals_cusstom table.shop_table tr.order-total th {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.cart_totals_cusstom table.shop_table tr.order-total td {
  font-size: 18px;
  font-weight: 700;
  color: #BA0F2E;
}

.cart_totals_cusstom table.shop_table tr.order-total td .amount {
  color: #111827 !important;
  font-weight: 700 !important;
}

.cart_totals_cusstom .vat-note {
  display: none !important;
  /* Hide VAT note if not in mockup */
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout {
  padding: 0 !important;
}

.btn_checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #BA0F2E !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  height: 46px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: background 0.2s ease !important;
  width: 100% !important;
  margin: 0 !important;
}

.btn_checkout:hover {
  background: #980C25 !important;
}

.btn_checkout svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* 8. Empty Cart Styles */
.empty-cart-container {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  padding: 40px 20px;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.empty-cart-icon {
  margin-bottom: 20px;
}

.empty-cart-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.empty-cart-subtitle {
  font-size: 13.5px;
  color: #6B7280;
  margin-bottom: 24px;
}

.btn-continue-shopping {
  background: #BA0F2E !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 40px !important;
  transition: background 0.2s ease;
}

.btn-continue-shopping:hover {
  background: #980C25 !important;
}

/* 9. Mobile Responsive adjustments */
@media (max-width: 767px) {
  .checkout-page-title.page-title {
    padding: 16px 0 8px 0 !important;
  }

  .checkout-page-title .breadcrumbs {
    font-size: 12px;
    width: max-content;
  }

  .checkout-page-title .breadcrumbs a {
    font-size: 12px;
  }

  .woocommerce-cart .page-wrapper {
    padding: 0 10px !important;
  }

  .custom-cart-card {
    padding: 12px 12px 60px 12px !important;
  }

  .custom-cart-thumb {
    width: 64px !important;
    height: 64px !important;
    margin-right: 12px !important;
  }

  .custom-cart-title {
    font-size: 13px !important;
  }

  .custom-cart-price .sale-price,
  .custom-cart-price .normal-price {
    font-size: 13px !important;
  }

  .custom-cart-price .old-price {
    font-size: 11px !important;
  }

  .custom-cart-del {
    top: 12px !important;
    right: 12px !important;
  }

  .custom-cart-card .custom-cart-qty {
    bottom: 12px !important;
    right: 12px !important;
  }

  .cart-footer-total {
    padding: 12px 0;
  }

  #selected-total {
    font-size: 16px;
  }
}

.breadcrumbs-container {
  margin-bottom: 20px;
}

.woocommerce-error,
.message-wrapper {
  display: none !important;
}

/* Optimize product item layout at checkout on mobile */
@media only screen and (max-width: 768px) {
  .checkout-item.product_cart_info {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px 16px !important;
    align-items: start !important;
    padding: 16px 0 !important;
  }

  .checkout-item.product_cart_info .product_cart_info--item {
    display: contents !important;
  }

  .checkout-item.product_cart_info .product_cart_info--thumb {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .checkout-item.product_cart_info .product_cart_info--info {
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
  }

  .checkout-item.product_cart_info .product_cart_info--title {
    font-size: 13.5px !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
  }

  .checkout-item.product_cart_info .product_cart_info--qty {
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: left !important;
    width: auto !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    align-self: end !important;
    margin-top: 0 !important;
  }

  .checkout-item.product_cart_info .product_cart_info--price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    text-align: right !important;
    width: auto !important;
    align-self: end !important;
    font-size: 14px !important;
    margin-top: 0 !important;
  }
}

/* ==========================================================================
   MEGA MENU HEADER REDESIGN (LEVEL 1, LEVEL 2, LEVEL 3)
   ========================================================================== */

.header-menu {
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
}

.header-menu .menu-wrap {
  position: relative;
}

.header-menu .main-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

/* Mega menu structure for top-level items with children */
.header-menu .main-menu>li {
  position: static;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Level 1 item styling */
.header-menu .main-menu>li>a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: none;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

/* Hover/Active states */
.header-menu .main-menu>li:hover>a,
.header-menu .main-menu>li.current-menu-item>a,
.header-menu .main-menu>li.current-menu-ancestor>a {
  color: var(--primary-color);
}

/* Red underline border at bottom of the main menu block on hover */
.header-menu .main-menu>li>a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.2s ease;
}

.header-menu .main-menu>li:hover>a::after,
.header-menu .main-menu>li.current-menu-item>a::after,
.header-menu .main-menu>li.current-menu-ancestor>a::after {
  width: 100%;
}

/* Specific styling for Flash Sale menu item */
.header-menu .main-menu>li>a[href*="flash-sale"],
.header-menu .main-menu>li>a[href*="hot-deal"],
.header-menu .main-menu>li.flash-sale>a {
  color: var(--primary-color);
  /* Orange-red */
}

/* Level 2 - Dropdown Container (Mega Menu) */
.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu {
  display: none !important;
  /* Keep important here to safeguard against inline styles or third-party JS overrides */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #f1f5f9;
  padding: 24px 32px;
  z-index: 9999;
  margin: 0;
  box-sizing: border-box;
}

/* Show submenu ONLY on hover */
.header-menu .main-menu>li.menu-item-has-children:hover>ul.sub-menu {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 20px 30px !important;
}

/* Level 2 Columns */
.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu>li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  min-width: 0;
  list-style: none;
}

/* Level 2 Column Title */
.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu>li>a {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  text-transform: none;
  padding: 0 0 6px 0;
  border-bottom: 1.5px solid #e2e8f0;
  cursor: default;
  pointer-events: none;
  display: block;
  margin-bottom: 4px;
}

/* Level 3 List */
.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  width: auto;
}

.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li>a {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  padding: 2px 0;
  display: block;
  transition: color 0.15s ease;
  text-transform: none;
  border: none;
}

.header-menu .main-menu>li.menu-item-has-children>ul.sub-menu>li>ul.sub-menu>li>a:hover {
  color: var(--primary-color);
}



.footer-form,
.footer-menu {
  border-bottom: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
}

.footer-form .txt-baolong p.txt-sub {
  font-size: 12px;
  font-weight: 600;
}

.footer-form .txt-baolong p {
  font-size: 18px;
  font-weight: 800;
}


.footer_icon_box svg,
.footer_icon_box svg path {
  fill: none;
}

.footer_icon_box .icon-box-text h3 {
  font-size: 15px !important;
  font-weight: 800;
}

.footer_icon_box .icon-box-text p {
  font-size: 12px !important;
  color: #6b7280;
}


.footer-menu .txt-footer .company {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a !important;
}



.menu_footer_title h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}




@media only screen and (max-width: 768px) {
  .page-title-inner {
    padding: 0 15px;
  }

  .woocommerce-cart main#main {
    padding-top: 125px;
  }
}
