.site-header .elementor-section .elementor-container {
  padding: 0 !important;
}

.section-counter {
  position: relative !important;
}
.section-counter span {
  text-align: center;
}
.section-tab-product .tba-title {
  margin-bottom: 0 !important;
}
.section-tab-product .e-n-tabs-heading {
  border-top: 1px solid #161616;
  border-bottom: 1px solid #161616;
}
.section-tab-product .e-n-tabs-heading .e-n-tab-title,
.section-tab-category .e-n-tabs-heading .e-n-tab-title {
  background-color: transparent !important;
}
.section-tab-product .e-n-tabs-heading .e-n-tab-title[aria-selected="true"],
.section-tab-category .e-n-tabs-heading .e-n-tab-title[aria-selected="true"],
.section-tab-product .e-n-tabs-heading .e-n-tab-title:hover,
.section-tab-category .e-n-tabs-heading .e-n-tab-title:hover {
  background-color: transparent !important;
  -webkit-text-stroke-width: 1px;
  stroke-width: 1px;
  -webkit-text-stroke-color: #000;
  stroke: #000;
  color: #1b1b1b;
}
.section-shoroom .elementor-widget-wrap {
  min-height: 825px;
}
.section-shoroom .cs-title-wrap {
  width: 100%;
  max-width: 60%;
  background: #000;
  float: right;
  padding: 20px 50px;
}
.section-shoroom .cs-title-wrap .cs-title-text {
  text-align: justify;
}
.section-shoroom .cs-title-btn {
  margin-top: 0 !important;
}

.products .product {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eeeeee;
  justify-content: space-between;
  box-shadow: 8px 8px 16px 0 #6767671a;
  overflow: hidden;
  border-radius: 10px;
  padding: 12px 14px 10px;
  transform-origin: center center;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.2s ease;
}
.price-rating .star-rating {
  display: none !important;
}
.woocommerce ul.products li.product .button {
  margin-bottom: 20px !important;
}
.sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 120px; /* chỉnh theo header của bạn */
  height: max-content;
  align-self: flex-start; /* để sidebar không kéo dài bằng cột content */
  z-index: 2;
}
.woocommerce .widget {
  box-shadow: 8px 8px 16px 0 #6767671a;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  padding: 12px 14px 10px;
}
.sidebar .widget:not(:first-child),
.elementor-widget-sidebar .widget:not(:first-child) {
  margin-top: 20px;
}
.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}
.blog .site-header.overlap-header {
  position: unset;
}

/* ===== Banner Hero ===== */
.duan-banner {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: var(--banner-height, 70vh);
  color: #fff;
}
.duan-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.duan-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(var(--blur, 0)) brightness(var(--dim, 0.65));
  transform: scale(1.03);
}
.duan-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, var(--overlay, 0.35));
}
.duan-banner__inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 16px;
}
.duan-banner__wrap {
  max-width: 1000px;
  margin: 0 auto;
}
.duan-banner__title {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.2;
}
.duan-banner__sub {
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
  opacity: 0.95;
}

/* ===== Layout phần dưới ===== */
.duan-container {
  max-width: 1180px;
  margin-inline: auto;
  padding: 24px 12px;
}
.duan-breadcrumbs {
  margin: 14px 0 8px;
  font-size: 12px;
  color: #777;
}
.duan-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
}
.duan-hero__left img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.duan-title {
  font-size: 24px;
  line-height: 1.35;
  margin: 0 0 12px;
  font-weight: 700;
}
.duan-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.duan-meta li {
  padding: 6px 10px;
  background: #f7f7f7;
  border-left: 3px solid #d9b16f;
  margin-bottom: 8px;
}
.duan-content {
  background: #fff;
  padding: 18px;
  border-radius: 4px;
}
.duan-content img {
  width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 2px;
}
.duan-content p {
  color: #333;
  line-height: 1.75;
}
.duan-next {
  margin: 28px 0 10px;
  text-align: center;
}
.duan-next__divider {
  display: flex;
  justify-content: center;
}
.duan-next__divider span {
  width: 36px;
  height: 2px;
  background: #333;
  display: inline-block;
}
.duan-next__btnwrap {
  margin-top: 10px;
}
.duan-next__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #ddd;
  border-radius: 2px;
  text-decoration: none;
}
.duan-next__btn:hover {
  border-color: #333;
}

.duan-related {
  margin: 24px 0 60px;
}
.duan-related__title {
  text-align: center;
  font-size: 18px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.duan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.duan-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}
.duan-card__thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.duan-card__content {
  padding: 10px 12px;
}
.duan-card__title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}
.duan-card__title a {
  color: #111;
  text-decoration: none;
}
.duan-card__title a:hover {
  text-decoration: underline;
}

/* Nền xám tổng thể + ẩn sidebar nếu theme có */
body.single-duan {
  background: #f3f3f3;
}
.single-duan .sidebar,
.single-duan .widget-area {
  display: none;
}

/* Mobile */
@media (max-width: 991px) {
  .duan-hero {
    grid-template-columns: 1fr;
  }
  .duan-card__thumb img {
    height: 180px;
  }
  .section-shoroom .cs-title-wrap{
    max-width: 100%;
    padding: 20px
  }
  .section-shoroom .elementor-widget-wrap{
    min-height: max-content;
  }
  .tba-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575px) {
  .duan-grid {
    grid-template-columns: 1fr;
  }
  .tba-grid{
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .tba-wpg-grid {
      grid-template-columns: repeat(var(--wpg-col-m, 1), 1fr) !important;
  }
  .woocommerce ul.order_details{
    margin: 0 !important
  }
}
.primary-menu .sub-menu{
   background: #fff !important;
   color: #000 !important
}
.primary-menu > li > a{
    padding-left: 0 7px !important;
    font-size: 12px !important
}
.site-header .elementor-widget-wrap{
    justify-content: center !important;
}
