.product-best-seller {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.product-img-wrap-best {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0;
  min-height: 180px;
  max-height: 220px;
}

.product-img-best {
  width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  border-radius: 16px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.07);
  padding: 0.2rem;
}

.product-caption-title-best {
  margin-top: 0.7rem;
  margin-bottom: 0.5rem;
  width: 100%;
  text-align: center;
  word-break: break-word;
  font-size: 1.08rem;
}

.product-caption-best {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 110px;
}

.product-action-best {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 48px;
  gap: 0.5em;
}

/* Product best-seller card - modern style */
.product-best-seller {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(30, 136, 229, 0.10), 0 1.5px 6px 0 rgba(0, 0, 0, 0.04);
  padding: 1rem 0.3rem 1rem 0.3rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
  min-height: 340px;
  max-width: 240px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Center card in column */
.col-lg-3.col-md-4.col-sm-6.d-flex.align-items-stretch>.product-best-seller {
  margin-left: auto;
  margin-right: auto;
}

.product-best-seller:hover {
  box-shadow: 0 12px 40px 0 rgba(30, 136, 229, 0.18), 0 2px 8px 0 rgba(0, 0, 0, 0.07);
  transform: translateY(-7px) scale(1.035);
  z-index: 2;
}

.product-img-wrap-best {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
}

.product-img-best {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 16px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.07);
  padding: 0.2rem;
}

.product-label-hot {
  position: absolute;
  top: 0px;
  left: 0px;
  background: linear-gradient(90deg, #ef4444 60%, #dc2626 100%);
  color: #fff;
  font-size: 0.95rem;
  border-radius: 0 0 8px 0;
  padding: 2px 10px;
  box-shadow: none;
  letter-spacing: 0.5px;
}

.product-caption-best {
  width: 100%;
  text-align: center;
}

.product-caption-title-best {
  font-size: 1.13rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 0.22rem;
  min-height: 2.2em;
  word-break: break-word;
  letter-spacing: 0.2px;
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
}

.product-caption-price-best {
  margin-bottom: 0.18rem;
}

.product-caption-price-new-best {
  font-size: 1.09rem;
  font-weight: 800;
  color: #388e3c;
  margin-right: 0.5em;
}

.product-caption-price-old-best {
  font-size: 1.01rem;
  color: #bdbdbd;
  text-decoration: line-through;
  margin-left: 0.2em;
}

.product-labels-prices-best {
  font-size: 0.98rem;
  color: #ff9800;
  margin-left: 0.3em;
  font-weight: 700;
}

.product-sold-best {
  font-size: 0.98rem;
  color: #1976d2;
  margin-bottom: 0.18rem;
}

.product-action-best {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-top: 0.3em;
}

.btn-best {
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.3em 0.8em;
  box-shadow: 0 1px 4px 0 rgba(30, 136, 229, 0.07);
  transition: background 0.18s, color 0.18s;
}

.btn-best:active,
.btn-best:focus {
  outline: none;
  box-shadow: 0 2px 8px 0 rgba(30, 136, 229, 0.13);
}

/* Home category green cards - 5 columns balanced grid */
.home-category-green-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #f9fafb 100%);
  border-radius: 18px;
  border: 1px solid #dcfce7;
  padding: 1.5rem 1.6rem 1.6rem 1.6rem;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.03), 0 2px 8px rgba(0, 0, 0, 0.015);
  max-width: 1640px;
  width: 100%;
}

.home-category-green-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.home-category-green-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.3px;
  text-transform: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
}

.home-category-green-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 22px;
  background: #16a34a;
  border-radius: 3px;
}

.home-category-green-all {
  font-size: 1.1rem;
  color: #1976d2;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.2em;
  transition: color 0.18s;
}

.home-category-green-all:hover {
  color: #0d47a1;
}

.home-category-green-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 14px;
  justify-content: center;
  align-items: stretch;
}

.home-category-green-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dcf2e3;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 15px;
  min-height: 74px;
  height: 100%;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  gap: 13px;
}

.home-category-green-card:hover {
  box-shadow: 0 8px 24px rgba(39, 174, 96, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
  border-color: #22c55e;
  background-color: #f7fdf9;
}

.home-category-green-card-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  padding: 5px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 0;
}

.home-category-green-card:hover .home-category-green-card-img {
  transform: scale(1.1);
  background: #ecfdf5;
}

.home-category-green-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.home-category-green-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
  margin-bottom: 4px;
  line-height: 1.35;
  min-height: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
  font-family: 'Open Sans', 'Roboto', Arial, sans-serif;
  transition: color 0.2s ease;
}

.home-category-green-card:hover .home-category-green-card-title {
  color: #15803d;
}

.home-category-green-card-count {
  font-size: 12.5px;
  color: #16a34a;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.15px;
}

@media (max-width: 1280px) {
  .home-category-green-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 12px;
  }
}

@media (max-width: 992px) {
  .home-category-green-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 12px;
  }
}

@media (max-width: 600px) {
  .home-category-green-section {
    padding: 1.2rem 0.9rem;
    margin: 1rem auto;
    border-radius: 14px;
  }

  .home-category-green-title {
    font-size: 1.45rem;
    gap: 8px;
  }

  .home-category-green-title::before {
    height: 18px;
    width: 5px;
  }

  .home-category-green-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 9px;
  }

  .home-category-green-card {
    padding: 10px 11px;
    gap: 10px;
    min-height: 64px;
    border-radius: 12px;
  }

  .home-category-green-card-img {
    width: 42px;
    height: 42px;
    padding: 4px;
    border-radius: 10px;
  }

  .home-category-green-card-title {
    font-size: 13.5px;
    margin-bottom: 2px;
  }

  .home-category-green-card-count {
    font-size: 11.5px;
  }
}

/* ===== UTILITY ===== */
.card-hover-effect:hover {
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15), 0 1.5px 6px 0 rgba(60, 60, 60, 0.07);
  transform: translateY(-4px) scale(1.03);
  transition: box-shadow 0.2s, transform 0.2s;
}

@media (min-width: 1200px) {
  .col-5-layout {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
  }
}

/* ===== BTN VIEW MORE ===== */
.btn-xem-them {
  display: inline-flex;
  align-items: center;
  /* gap: 7px; */
  padding: 7px 20px;
  background: linear-gradient(135deg, #1a8f4c 0%, #27ae60 60%, #2ecc71 100%);
  color: #fff !important;
  font-weight: 600;
  font-size: 12.5px;
  border-radius: 25px;
  border: none;
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(39, 174, 96, 0.28);
  transition: all 0.22s cubic-bezier(.4, 0, .2, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-xem-them::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13) 0%, transparent 60%);
  border-radius: 25px;
}

.btn-xem-them:hover {
  background: linear-gradient(135deg, #145f34 0%, #1a8f4c 60%, #27ae60 100%);
  box-shadow: 0 6px 22px rgba(39, 174, 96, 0.42);
  transform: translateY(-2px) scale(1.04);
  color: #fff !important;
}

.btn-xem-them .arrow-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.22s;
}

.btn-xem-them:hover .arrow-icon {
  transform: translateX(4px);
}

.li-xem-them {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== CATEGORY TABS HEADER ===== */
.wrap-menu-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 0;
  margin-bottom: 14px;
  border-bottom: 2px solid #e8f5e9;
}

.category-tabs .nav-pills {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.category-tabs .nav-pills>li {
  margin: 0;
}

.category-tabs .nav-pills>li>a {
  color: #555;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 6px 0 6px 14px;
  border-radius: 0;
  background: transparent;
  border: none;
  border-left: 4px solid #c8e6c9;
  letter-spacing: 0.3px;
  transition: color 0.18s, border-color 0.18s;
  line-height: 1.3;
}

.category-tabs .nav-pills>li>a:hover {
  background: transparent;
  color: #1a8f4c;
  border-left-color: #27ae60;
}

.category-tabs .nav-pills>li.active>a,
.category-tabs .nav-pills>li.active>a:hover,
.category-tabs .nav-pills>li.active>a:focus {
  background: transparent;
  color: #1a6e38;
  font-size: 1.65rem;
  /* font-weight: 800; */
  border-left: 5px solid #27ae60;
  padding-left: 16px;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px rgba(39, 174, 96, 0.10);
}

.small-cate {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== PRODUCT DETAIL PAGE CUSTOM STYLES ===== */
.owl-detail-carousel.owl-carousel {
  width: 100% !important;
  float: none;
}

/* Modernized Title Headers inside Tabs */
.styles_infoNotLogin__00b1p {
  background-color: #f1f8e9 !important;
  color: #2e7d32 !important;
  border-left: 4px solid #27ae60 !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  margin-bottom: 12px !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
}

.product-description {
  margin: 0 !important;
}

/* Product Tabs Styling Override */
.product-tabs .nav-tabs {
  border-bottom: 2px solid #e8f5e9 !important;
  display: flex;
  flex-wrap: wrap;
}

.product-tabs .nav-tabs>li {
  margin-bottom: -2px;
}

.product-tabs .nav-tabs>li>a {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #555 !important;
  border: none !important;
  background: transparent !important;
  padding: 12px 20px !important;
  margin-right: 5px !important;
  transition: all 0.2s ease-in-out !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  display: inline-block;
}

.product-tabs .nav-tabs>li>a:hover {
  color: #27ae60 !important;
  border-bottom-color: #a5d6a7 !important;
}

.product-tabs .nav-tabs>li.active>a,
.product-tabs .nav-tabs>li.active>a:hover,
.product-tabs .nav-tabs>li.active>a:focus {
  color: #1a6e38 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid #27ae60 !important;
  box-shadow: none !important;
}

.product-tabs .tab-content {
  border: 1px solid #e8f5e9 !important;
  border-top: none !important;
  padding: 24px !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  background-color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

/* Enhance the notes and lists inside the tab */
.product-tabs .product-note {
  font-size: 13.5px !important;
  line-height: 1.6;
  margin-bottom: 8px !important;
}

.product-tabs .product-note a {
  color: #1976d2 !important;
  font-weight: 600;
  text-decoration: none;
}

.product-tabs .product-note a:hover {
  color: #0d47a1 !important;
  text-decoration: underline;
}

.product-tabs .over-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px;
}

/* Completely disable default black outline and focus borders */
.product-tabs a:focus,
.product-tabs a:active,
.product-tabs button:focus,
.product-tabs button:active,
.category-tabs a:focus,
.category-tabs a:active,
.category-tabs button:focus,
.category-tabs button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Preserve structural borders on focus and active states */
.product-tabs .nav-tabs>li.active>a,
.product-tabs .nav-tabs>li.active>a:hover,
.product-tabs .nav-tabs>li.active>a:focus,
.product-tabs .nav-tabs>li.active>a:active,
.product-tabs li.active a,
.product-tabs li.active a:hover,
.product-tabs li.active a:focus,
.product-tabs li.active a:active {
  color: #1a6e38 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid #27ae60 !important;
  box-shadow: none !important;
}

.category-tabs .nav-pills>li.active>a,
.category-tabs .nav-pills>li.active>a:hover,
.category-tabs .nav-pills>li.active>a:focus,
.category-tabs .nav-pills>li.active>a:active {
  border-left: 4px solid #27ae60 !important;
  color: #1a6e38 !important;
  background: transparent !important;
}

/* Modern Price Box for Product Detail */
.product-detail-price-box {
  background-color: #f8fbf9 !important;
  border-radius: 8px !important;
  padding: 2px 22px !important;
  margin-top: 15px !important;
  margin-bottom: 20px !important;
  border: 1px solid #e2f0e6 !important;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.03) !important;
}

.product-detail-price-box .d-flex {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
  margin-bottom: 12px !important;
}

.detail-price-new {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #27ae60 !important;
  /* Theme green color */
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif !important;
}

.detail-price-old {
  font-size: 16px !important;
  color: #888888 !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
  margin-left: 5px !important;
}

.detail-price-discount {
  background-color: #e74c3c !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  vertical-align: middle !important;
  line-height: 1 !important;
  margin-left: 5px !important;
}

.detail-max-buy {
  font-size: 14px !important;
  color: #4a5568 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.detail-max-buy .icon-max-buy {
  color: #27ae60 !important;
  font-size: 16px !important;
}

.detail-max-buy .max-order-qty {
  color: #e74c3c !important;
  font-weight: 700 !important;
  background-color: #fde8e8 !important;
  padding: 2px 10px !important;
  border-radius: 20px !important;
  border: 1px solid #fbc4c4 !important;
  display: inline-block !important;
}

/* Promo and Trending Section on Product Detail */
.product-promo-section {
  margin-top: 15px !important;
  margin-bottom: 20px !important;
}

.coupon-box {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.coupon-label {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #4a5568 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.coupon-label i {
  color: #27ae60 !important;
  font-size: 15px !important;
}

.coupon-list {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.coupon-tag {
  background-color: #e8f5e9 !important;
  color: #2e7d32 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 4px !important;
  border: 1px dashed #81c784 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.coupon-tag:hover {
  background-color: #c8e6c9 !important;
  transform: translateY(-1px) !important;
}

.trending-sales-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background-color: #fff9db !important;
  /* soft yellow/orange */
  color: #856404 !important;
  border: 1px solid #ffeeba !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
}

.trending-sales-badge .icon-trending {
  color: #e67e22 !important;
  /* Orange fire */
  font-size: 15px !important;
  animation: pulse-fire 1.5s infinite alternate !important;
}

@keyframes pulse-fire {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.trending-sales-badge .sales-count {
  color: #d35400 !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
}

/* Title and Subtitle styling on Product Detail */
.product-detail-name {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #2c3e50 !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.product-subtitle {
  font-size: 14.5px !important;
  color: #4a5568 !important;
  margin-top: 6px !important;
  margin-bottom: 18px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

.product-subtitle * {
  color: #4a5568 !important;
  text-align: left !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

/* ===== MODERN PRODUCT IMAGE GALLERY (JQZOOM) ===== */
.product-page-product-wrap.jqzoom-stage {
  border: 1px solid #e2f0e6 !important;
  border-radius: 12px !important;
  padding: 15px !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.03) !important;
  position: relative !important;
  margin-bottom: 15px !important;
  overflow: hidden !important;
}

.product-page-product-wrap.jqzoom-stage:before,
.product-page-product-wrap.jqzoom-stage:after {
  display: none !important;
}

.product-page-product-wrap.jqzoom-stage img {
  border-radius: 8px !important;
  width: 100% !important;
  height: auto !important;
  transition: transform 0.3s ease !important;
}

.product-page-product-wrap.jqzoom-stage:hover img {
  transform: scale(1.02) !important;
}

.jqzoom-list {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 15px !important;
  padding: 0 !important;
  list-style: none !important;
}

.jqzoom-list>li {
  float: none !important;
  margin: 0 !important;
}

.jqzoom-list>li>a {
  width: 65px !important;
  height: 65px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #eaeaea !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  padding: 3px !important;
  transition: all 0.2s ease-in-out !important;
  overflow: hidden !important;
}

.jqzoom-list>li>a img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Hover and Active styles scoped to Category Green theme */
.jqzoom-list>li>a:hover {
  border-color: #27ae60 !important;
  transform: translateY(-2px) !important;
}

.jqzoom-list>li>a.zoomThumbActive,
.jqzoom-list>li>a.zoomThumbActive:hover {
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15) !important;
}

/* ===== RESPONSIVE AMENDMENTS FOR MOBILE & TABLET (PRODUCT GRID & CARDS) ===== */
@media (max-width: 991px) {
  .product-best-seller {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: 300px !important;
    padding: 8px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
  }

  /* Force bootstrap columns to stretch layout and fit nicely */
  .col-xs-6 {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .product-img-wrap-best {
    height: 120px !important;
    min-height: 120px !important;
    margin-bottom: 8px !important;
  }

  .product-img-best {
    width: 100% !important;
    height: 100% !important;
    max-height: 120px !important;
    object-fit: contain !important;
  }

  .product-caption-best {
    min-height: auto !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  .product-caption-title-best {
    font-size: 12.5px !important;
    line-height: 16px !important;
    height: 32px !important;
    /* exactly 2 lines */
    min-height: 32px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

  .product-caption-price-best {
    margin-bottom: 4px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    min-height: 52px !important;
  }

  .product-caption-price-new-best {
    font-size: 13px !important;
    font-weight: 800 !important;
    margin-right: 0 !important;
  }

  .product-caption-price-old-best {
    font-size: 11px !important;
    margin-left: 0 !important;
  }

  .product-sold-best {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }

  .product-action-best {
    display: flex !important;
    flex-direction: column !important;
    /* Stack vertically to fit 2 columns layout */
    width: 100% !important;
    gap: 4px !important;
    margin-top: auto !important;
  }

  .product-action-best .btn-best {
    width: 100% !important;
    font-size: 11px !important;
    padding: 5px 2px !important;
    height: 30px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ===== HOMEPAGE CARD DISCOVERY SECTION STYLE ===== */
.discovery-full-card {
  border-radius: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  padding: 16px 20px 22px 20px;
  margin-top: 6px;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

@media (max-width: 768px) {
  .discovery-full-card {
    padding: 12px 14px 16px 14px;
    border-radius: 16px;
    margin-top: 4px;
    margin-bottom: 18px;
  }
}

/* Floating Glassmorphic Header Bar - Guaranteed legibility & punch on ANY banner background */
.discovery-full-card .wrap-menu-tabs {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 18px 0 0 !important;
  margin-bottom: 16px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  position: relative;
  z-index: 5;
  overflow: hidden !important;
  min-height: 52px;
}

.discovery-full-card .category-tabs .nav-pills {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.discovery-full-card .category-tabs .nav-pills>li {
  margin: 0 !important;
}

.discovery-full-card .category-tabs .nav-pills>li.active>a,
.discovery-full-card .category-tabs .nav-pills>li.active>a:hover,
.discovery-full-card .category-tabs .nav-pills>li.active>a:focus {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-family: 'Roboto', 'Open Sans', Arial, sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: none !important;
  text-shadow: none !important;
  line-height: 1.3 !important;
}

/* 3D Elevated Gradient Icon Badge - Touching the outer left edge */
.discovery-full-card .category-tabs .nav-pills>li.active>a i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 52px !important;
  border-radius: 17px 0 0 17px !important;
  margin-right: 15px !important;
  font-size: 1.35rem !important;
  color: #ffffff !important;
  flex-shrink: 0;
  transition: opacity 0.25s ease;
}

.discovery-full-card .wrap-menu-tabs:hover .category-tabs .nav-pills>li.active>a i {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .discovery-full-card .wrap-menu-tabs {
    padding: 0 12px 0 0 !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
    min-height: 44px;
  }

  .discovery-full-card .category-tabs .nav-pills>li.active>a {
    font-size: 1.15rem !important;
  }

  .discovery-full-card .category-tabs .nav-pills>li.active>a i {
    width: 44px !important;
    height: 44px !important;
    border-radius: 13px 0 0 13px !important;
    font-size: 1.1rem !important;
    margin-right: 10px !important;
  }

  .discovery-full-card .btn-xem-them {
    padding: 5px 12px !important;
    font-size: 11px !important;
    border-radius: 18px !important;
  }
}

/* 1. Sản phẩm khuyến mãi - Red/Orange Flash Sale theme */
.card-new-products {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 40%, #ffffff 100%);
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card-new-products .category-tabs .nav-pills>li.active>a {
  color: #b91c1c !important;
}

.card-new-products .category-tabs .nav-pills>li.active>a i {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.38) !important;
}

.card-new-products .btn-xem-them {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 60%, #b91c1c 100%) !important;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.3) !important;
}

.card-new-products .btn-xem-them:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 60%, #ef4444 100%) !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45) !important;
}

/* 2. Sản phẩm bán chạy - Amber Flame theme */
.card-best-sellers {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 40%, #ffffff 100%);
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  box-shadow: 0 15px 35px rgba(217, 119, 6, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card-best-sellers .category-tabs .nav-pills>li.active>a {
  color: #b45309 !important;
}

.card-best-sellers .category-tabs .nav-pills>li.active>a i {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.38) !important;
}

.card-best-sellers .btn-xem-them {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%) !important;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.3) !important;
}

.card-best-sellers .btn-xem-them:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #f59e0b 100%) !important;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45) !important;
}

/* 3. Thuốc kê đơn giá tốt - Royal Medical Blue theme */
.card-prescription {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #ffffff 100%);
  border: 1px solid #bae6fd;
  border-left: 4px solid #2563eb;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card-prescription .category-tabs .nav-pills>li.active>a {
  color: #1d4ed8 !important;
}

.card-prescription .category-tabs .nav-pills>li.active>a i {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38) !important;
}

.card-prescription .btn-xem-them {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%) !important;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.3) !important;
}

.card-prescription .btn-xem-them:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%) !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45) !important;
}

/* 4. Thuốc không kê đơn giá tốt - Fresh Health Emerald theme */
.card-non-prescription {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 40%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-left: 4px solid #059669;
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card-non-prescription .category-tabs .nav-pills>li.active>a {
  color: #047857 !important;
}

.card-non-prescription .category-tabs .nav-pills>li.active>a i {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.38) !important;
}

.card-non-prescription .btn-xem-them {
  background: linear-gradient(135deg, #10b981 0%, #059669 60%, #047857 100%) !important;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.3) !important;
}

.card-non-prescription .btn-xem-them:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 60%, #10b981 100%) !important;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45) !important;
}

/* 5. Combo ưu đãi - Ruby Rose theme */
.card-combos {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 40%, #ffffff 100%);
  border: 1px solid #fecdd3;
  border-left: 4px solid #e11d48;
  box-shadow: 0 15px 35px rgba(225, 29, 72, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02);
}

.card-combos .category-tabs .nav-pills>li.active>a {
  color: #be123c !important;
}

.card-combos .category-tabs .nav-pills>li.active>a i {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.38) !important;
}

.card-combos .btn-xem-them {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 60%, #be123c 100%) !important;
  box-shadow: 0 3px 12px rgba(225, 29, 72, 0.3) !important;
}

.card-combos .btn-xem-them:hover {
  background: linear-gradient(135deg, #be123c 0%, #e11d48 60%, #f43f5e 100%) !important;
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45) !important;
}

/* ===== HORIZONTAL SLIDER STYLE FROM DASHBOARD ===== */
.dashboard-slider-wrapper {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
}

.dashboard-products-scroll-container {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Firefox */
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  /* IE and Edge */
}

.dashboard-products-scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color: #475569;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  opacity: 0;
  pointer-events: none;
  outline: none;
  padding: 0;
}

.dashboard-slider-wrapper:hover .slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

.slider-arrow:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.slider-arrow.arrow-left {
  left: 4px;
}

.slider-arrow.arrow-right {
  right: 4px;
}

.dashboard-products-scroll {
  display: flex;
  gap: 16px;
}

/* ===== CATEGORY PAGE SORTING DROPDOWN STYLE ===== */
#ctl00_ContentMainPage_ctlCategoryRefine_drpdwnPageSort {
  transition: all 0.2s ease-in-out;
}

#ctl00_ContentMainPage_ctlCategoryRefine_drpdwnPageSort:hover {
  border-color: #1a5740 !important;
  background-color: #ffffff !important;
}

#ctl00_ContentMainPage_ctlCategoryRefine_drpdwnPageSort:focus {
  border-color: #1a5740 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(26, 87, 64, 0.15) !important;
}