/* Modern homepage overrides and enhancements */

.bdm-modern-home {
  background: #f6f7fb;
  /* Prevent horizontal scroll from legacy theme (owl nav negative left/right, slick margins, etc.) */
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Categories carousel: theme uses left:-15px / -35px on .owl-nav — pulls page wider than viewport */
@media (max-width: 1199px) {
  .bdm-modern-home .featured-area .next-prev-style .owl-nav .owl-prev {
    left: 6px !important;
    right: auto !important;
  }

  .bdm-modern-home .featured-area .next-prev-style .owl-nav .owl-next {
    right: 6px !important;
    left: auto !important;
  }
}

/* Brand strip: slick-list negative margin can extend past container */
.bdm-modern-home .bdm-brand-slider-wrap {
  overflow-x: hidden;
}

/* Theme pseudo on categories carousel: width:105%; left:-2.5% can widen layout (tablet breakpoint) */
@media (min-width: 992px) and (max-width: 1199px) {
  .bdm-modern-home .featured-active2:before {
    left: 0 !important;
    width: 100% !important;
  }
}

/* 1600px+: 6 per row — Bootstrap grid stops at xl (1200px) */
@media (min-width: 1600px) {
  .bdm-modern-home .product-area ul.row > li.bdm-col-xxl-6 {
    flex: 0 0 16.66666667%;
    max-width: 16.66666667%;
  }
}

/* Equal-height cards in a row: column cells stretch so product-wrap can fill */
.bdm-modern-home .product-area ul.row > li {
  display: flex;
  flex-direction: column;
}

.bdm-modern-home .product-area ul.row > li .product-wrap {
  flex: 1 1 auto;
  width: 100%;
}

/* Load More row: same ul uses flex li; avoid stretching the link full width */
.bdm-modern-home .product-area ul.row > li.bdm-load-more-row {
  align-items: center;
}

/* Thumbnail fit (fixed aspect ratio) */
.bdm-modern-home .product-img {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.bdm-modern-home .product-img img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Product card layout — flex so title area grows; price + Buy Now align across row */
.bdm-modern-home .product-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
  padding: 10px 12px 12px;
}

/* Card shell + hover icons (listing pages; homepage may duplicate via inline) */
.bdm-modern-home .product-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bdm-modern-home .product-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.bdm-modern-home .product-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}

.bdm-modern-home .product-wrap:hover .product-icon {
  opacity: 1;
  transform: translateY(0);
}

.bdm-modern-home .product-icon ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bdm-modern-home .product-icon ul li a {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(16, 24, 40, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827 !important;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.bdm-modern-home .product-icon ul li a:hover {
  transform: translateY(-1px);
  background: rgba(239, 72, 54, 0.95);
  color: #fff !important;
  border-color: rgba(239, 72, 54, 0.95);
}

/* Badges: New + % */
.bdm-modern-home .product-img > .product_discount,
.bdm-modern-home .bdm-product-badges .product_discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 3px 8px;
  min-height: 20px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(239, 72, 54, 0.98);
  color: #fff;
  white-space: nowrap;
}

.bdm-modern-home .product-img > .product_discount {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
}

.bdm-modern-home .bdm-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bdm-modern-home .bdm-product-badges .product_discount {
  position: relative;
  top: auto;
  left: auto;
  margin: 0;
}

.bdm-modern-home .product-content .pull-left {
  /* Override Bootstrap floats so flex height stays consistent */
  float: none !important;
  display: block;
}

.bdm-modern-home .product-content h3 {
  margin: 0;
  line-height: 1.25;
  flex: 1 1 auto;
  min-height: 0;
}

.bdm-modern-home .product-content h3 a {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 0;
  line-height: 1.25;
}

.bdm-modern-home .product_regular_price {
  font-weight: 700;
  color: rgba(17, 24, 39, 0.55) !important;
  text-decoration: line-through;
}

/* Sale + regular price on one line */
.bdm-modern-home .bdm-price-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  flex-shrink: 0;
}

.bdm-modern-home .bdm-price-row p {
  margin: 0;
}

.bdm-modern-home .bdm-price-current {
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.bdm-modern-home .bdm-price-old {
  font-size: 0.9em;
}

/* Buy Now button on each product card */
.bdm-modern-home .bdm-buy-now-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 14px;
  background: #ef4836;
  color: #fff !important;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 16px rgba(239, 72, 54, 0.2);
  min-height: 0;
  flex-shrink: 0;
}

.bdm-modern-home .bdm-buy-now-btn:hover {
  background: #d63c2b;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(239, 72, 54, 0.26);
}

/* Shop / AJAX load more uses .loadMore_btn */
.bdm-modern-home .loadMore_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  background: rgba(239, 72, 54, 0.98);
  color: #fff !important;
  transition: transform 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.bdm-modern-home .loadMore_btn:hover {
  background: #d63c2b;
  transform: translateY(-2px);
  color: #fff !important;
}

/* Normalize price spacing so discount vs non-discount cards align */
.bdm-modern-home .product-content p {
  margin: 0;
  line-height: 1.2;
}

/* Fade-in reveal (JS adds .bdm-inview) */
.bdm-modern-home .bdm-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bdm-modern-home .bdm-reveal.bdm-inview {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Brand logo strip (Slick on homepage) ---- */
.bdm-modern-home .bdm-brand-section {
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f8 100%);
  border-top: 1px solid rgba(16, 24, 40, 0.06);
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
  padding-top: 28px;
  padding-bottom: 24px;
}

.bdm-modern-home .bdm-brand-section__container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.bdm-modern-home .bdm-brand-section__header {
  text-align: center;
  margin-bottom: 12px;
}

.bdm-modern-home .bdm-brand-section__title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.bdm-modern-home .bdm-brand-section__sub {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(17, 24, 39, 0.55);
}

.bdm-modern-home .bdm-brand-slider-wrap {
  position: relative;
  padding-bottom: 4px;
}

/* Prevent stray list markers / numbers from theme + Slick */
.bdm-modern-home .bdm-brand-slider,
.bdm-modern-home .bdm-brand-slider ul,
.bdm-modern-home .bdm-brand-slider ol {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.bdm-modern-home .bdm-brand-slider li {
  list-style: none !important;
}

.bdm-modern-home .bdm-brand-slide {
  height: auto;
}

.bdm-modern-home .bdm-brand-card {
  display: block;
  text-decoration: none;
  outline: none;
}

.bdm-modern-home .bdm-brand-card__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px 12px;
  margin: 0 6px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 40, 0.07);
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bdm-modern-home .bdm-brand-card:hover .bdm-brand-card__inner,
.bdm-modern-home .bdm-brand-card:focus-visible .bdm-brand-card__inner {
  border-color: rgba(239, 72, 54, 0.35);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.bdm-modern-home .bdm-brand-card img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bdm-modern-home .bdm-brand-card:hover img {
  opacity: 1;
}

.bdm-modern-home .bdm-brand-slider .slick-list {
  margin: 0 -6px;
  padding: 0 0 16px;
}

@media (max-width: 767px) {
  .bdm-modern-home .bdm-brand-slider .slick-list {
    margin-left: 0;
    margin-right: 0;
  }

  .bdm-modern-home .bdm-brand-card__inner {
    margin-left: 4px;
    margin-right: 4px;
  }
}

.bdm-modern-home .bdm-brand-slider .slick-slide {
  height: auto;
}

/* Dots disabled on brand slider in JS; if enabled later, keep markers hidden */
.bdm-modern-home .bdm-brand-slider .slick-dots {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bdm-modern-home .bdm-brand-slider .slick-dots li {
  list-style: none !important;
}

@media (max-width: 767px) {
  .bdm-modern-home .product-img {
    aspect-ratio: 1 / 1;
  }

  .bdm-modern-home .bdm-brand-section__title {
    font-size: 1.25rem;
  }

  .bdm-modern-home .bdm-brand-card__inner {
    min-height: 48px;
    padding: 6px 10px;
    margin: 0 4px;
  }

  .bdm-modern-home .bdm-brand-card img {
    max-height: 44px;
  }
}

/* --- Homepage blog strip (aligned with blog listing cards) --- */
.bdm-modern-home .bdm-home-blog-row {
  align-items: stretch;
}

.bdm-modern-home .bdm-home-blog-row > [class*='col-'] {
  display: flex;
  flex-direction: column;
}

.bdm-modern-home .bdm-home-blog-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 40, 0.06);
  box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bdm-modern-home .bdm-home-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.1);
}

.bdm-modern-home .bdm-home-blog-card .blog-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8eaed;
  flex-shrink: 0;
}

.bdm-modern-home .bdm-home-blog-card .blog-image a {
  display: block;
  height: 100%;
}

.bdm-modern-home .bdm-home-blog-card .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bdm-modern-home .bdm-home-blog-card:hover .blog-image img {
  transform: scale(1.04);
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 8px 10px;
  list-style: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-date-badge li {
  line-height: 1.15;
  font-weight: 800;
  color: #111827;
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-date-badge li:first-child {
  font-size: 1.25rem;
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-date-badge li:last-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ef4836;
}

.bdm-modern-home .bdm-home-blog-card .blog-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px 18px 18px;
}

.bdm-modern-home .bdm-home-blog-card .blog-meta ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.bdm-modern-home .bdm-home-blog-card .blog-meta a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(17, 24, 39, 0.55);
  font-weight: 600;
  text-decoration: none;
}

.bdm-modern-home .bdm-home-blog-card .blog-meta a:hover {
  color: #ef4836;
}

.bdm-modern-home .bdm-home-blog-card .blog-heading {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  flex: 1 1 auto;
  min-height: 0;
}

.bdm-modern-home .bdm-home-blog-card .blog-heading-link {
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s ease;
}

.bdm-modern-home .bdm-home-blog-card .blog-heading-link:hover {
  color: #ef4836;
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ef4836 !important;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-readmore:hover {
  color: #d63c2b !important;
  gap: 10px;
}

.bdm-modern-home .bdm-home-blog-card .bdm-home-blog-readmore i {
  font-size: 0.85em;
}

.bdm-modern-home .bdm-home-blog-empty {
  padding: 1.25rem;
  color: rgba(17, 24, 39, 0.55);
  font-weight: 600;
}

/* ——— Product quick-view modal (homepage) ———
   One surface only: Bootstrap .modal-content stays transparent; the real card is .bdm-product-modal__layout
   so we avoid a “white box inside white box” look. */
.bdm-product-modal .modal-content {
  position: relative;
  border: none !important;
  border-radius: 0;
  overflow: visible;
  background: transparent !important;
  box-shadow: none !important;
  pointer-events: auto;
}

/* BS4 beta has no flex “centered” modal; theme uses .modal-dialog-centered { margin: 200px auto } which pins the dialog low — center in viewport instead */
.bdm-product-modal.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.bdm-product-modal .modal-dialog {
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  max-width: 920px !important;
  width: 100%;
  flex-shrink: 0;
  pointer-events: none;
}

.bdm-product-modal .modal-body {
  padding: 0 !important;
  background: transparent !important;
}

.bdm-product-modal .bdm-product-modal__close {
  position: absolute;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  z-index: 10;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  opacity: 1;
  font-size: 1.35rem;
  line-height: 1;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.bdm-product-modal .bdm-product-modal__close:hover {
  background: #ef4836;
  color: #fff;
  border-color: #ef4836;
  transform: scale(1.05);
}

.bdm-product-modal .bdm-product-modal__layout {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  height: 520px;
  max-height: 85vh;
  min-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(16, 24, 40, 0.06);
}

/* One flat surface: same white as the card — no gray “second panel” behind the image */
.bdm-product-modal .bdm-product-modal__media {
  position: relative;
  flex: 1 1 42%;
  min-width: 240px;
  min-height: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 28px 24px;
  border-right: 1px solid rgba(16, 24, 40, 0.08);
  box-sizing: border-box;
}

.bdm-product-modal .bdm-product-modal__media img {
  max-height: min(320px, 100%);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.bdm-product-modal .bdm-product-modal__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(239, 72, 54, 0.98);
  color: #fff;
  box-shadow: 0 6px 16px rgba(239, 72, 54, 0.35);
}

.bdm-product-modal .bdm-product-modal__body {
  flex: 1 1 58%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  padding: 32px 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.bdm-product-modal .bdm-product-modal__title {
  margin: 0;
  padding-right: 44px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: #111827;
  flex-shrink: 0;
}

.bdm-product-modal .bdm-product-modal__price-row,
.bdm-product-modal .bdm-product-modal__rating {
  flex-shrink: 0;
}

.bdm-product-modal .bdm-product-modal__title-link {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.bdm-product-modal .bdm-product-modal__title-link:hover {
  color: #ef4836 !important;
}

.bdm-product-modal .bdm-product-modal__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.bdm-product-modal .bdm-product-modal__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ef4836;
  letter-spacing: -0.02em;
}

.bdm-product-modal .bdm-product-modal__price--old {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.45);
  text-decoration: line-through;
}

.bdm-product-modal .bdm-product-modal__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.82rem;
  color: rgba(17, 24, 39, 0.55);
}

.bdm-product-modal .bdm-product-modal__stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.bdm-product-modal .bdm-product-modal__reviews {
  font-weight: 600;
}

/* flex-basis 0% + min-height 0: shrink so category/share stay visible; auto basis would size to full text height */
.bdm-product-modal .bdm-product-modal__summary {
  flex: 1 1 0%;
  min-height: 0;
  margin: 0;
  padding: 14px 6px 4px 0;
  border-radius: 0;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(16, 24, 40, 0.08) !important;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(17, 24, 39, 0.78);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bdm-product-modal .bdm-product-modal__summary::-webkit-scrollbar {
  width: 6px;
}

.bdm-product-modal .bdm-product-modal__summary::-webkit-scrollbar-thumb {
  background: rgba(16, 24, 40, 0.22);
  border-radius: 999px;
}

.bdm-product-modal .bdm-product-modal__summary::-webkit-scrollbar-track {
  background: rgba(16, 24, 40, 0.04);
  border-radius: 999px;
}

.bdm-product-modal .bdm-product-modal__summary.list_style ul,
.bdm-product-modal .bdm-product-modal__summary .list_style ul {
  margin: 0;
  padding-left: 1.1rem;
}

.bdm-product-modal .bdm-product-modal__summary.list_style li,
.bdm-product-modal .bdm-product-modal__summary .list_style li {
  display: list-item !important;
  list-style: disc !important;
}

/* Theme injects +/- into .cart-plus-minus globally — quick-view no longer uses it; hide if ever present */
.bdm-product-modal .qtybutton {
  display: none !important;
}

.bdm-product-modal .bdm-product-modal__category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-top: 8px;
  margin-top: auto;
  flex-shrink: 0;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
  font-size: 0.88rem;
}

.bdm-product-modal .bdm-product-modal__category a {
  font-weight: 700;
  color: #111827 !important;
  text-decoration: none !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(239, 72, 54, 0.1);
  transition: background 0.2s ease, color 0.2s ease;
}

.bdm-product-modal .bdm-product-modal__category a:hover {
  background: rgba(239, 72, 54, 0.18);
  color: #ef4836 !important;
}

.bdm-product-modal .bdm-product-modal__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(17, 24, 39, 0.45);
}

.bdm-product-modal .bdm-product-modal__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex-shrink: 0;
}

.bdm-product-modal .bdm-product-modal__share-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bdm-product-modal .bdm-product-modal__share-list > li {
  margin: 0;
}

.bdm-product-modal .bdm-product-modal__share-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff !important;
  border: 1px solid rgba(16, 24, 40, 0.12);
  color: #334155 !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bdm-product-modal .bdm-product-modal__share-list a:hover {
  background: #ef4836;
  border-color: #ef4836;
  color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .bdm-product-modal .modal-dialog {
    margin: 0.5rem auto !important;
    max-width: calc(100% - 1rem);
  }

  .bdm-product-modal .bdm-product-modal__layout {
    flex-direction: column;
    flex-wrap: nowrap;
    /* Taller on phones: use more of the viewport (was min(520px, 90vh)) */
    height: min(94vh, 680px);
    max-height: 96vh;
  }

  .bdm-product-modal .bdm-product-modal__media {
    flex: 0 0 auto;
    min-height: 120px;
    max-height: 26vh;
    padding: 40px 16px 12px;
    border-right: none;
    border-bottom: 1px solid rgba(16, 24, 40, 0.08);
  }

  .bdm-product-modal .bdm-product-modal__media img {
    max-height: min(150px, 22vh);
  }

  .bdm-product-modal .bdm-product-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px 18px;
    overflow: hidden;
  }

  .bdm-product-modal .bdm-product-modal__title {
    font-size: 1.1rem;
    padding-right: 0;
  }

}

