/* Consistent, theme-matched breadcrumbs across public pages. */
body .breadcrumb-wrapper,
body .pdp-breadcrumb,
body .dh-product-breadcrumb,
body ol.breadcrumb,
body div.breadcrumb {
  display: flex !important;
  width: min(calc(100% - 32px), 1280px) !important;
  min-height: 40px !important;
  margin: 0 auto 18px !important;
  padding: 8px 16px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  color: #5c6370 !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}
body .mc-breadcrumb {
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 8px 0 !important;
  color: #5c6370 !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}
body .mc-breadcrumb .mc-container {
  width: min(calc(100% - 32px), 1280px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 16px !important;
  padding-left: 16px !important;
}
body .mc-breadcrumb ol { display: flex !important; margin: 0 !important; padding: 0 !important; align-items: center !important; flex-wrap: wrap !important; gap: 5px !important; list-style: none !important; font-size: 19px !important; line-height: 1.35 !important; }
body .breadcrumb-wrapper a,
body .pdp-breadcrumb a,
body .dh-product-breadcrumb a,
body .mc-breadcrumb a,
body ol.breadcrumb a,
body div.breadcrumb a { color: #00a79d !important; font-weight: 400 !important; text-decoration: none !important; }
body .breadcrumb-wrapper a:hover,
body .pdp-breadcrumb a:hover,
body .dh-product-breadcrumb a:hover,
body .mc-breadcrumb a:hover,
body ol.breadcrumb a:hover,
body div.breadcrumb a:hover { color: #007f78 !important; text-decoration: underline !important; }
body .breadcrumb-wrapper > span:not(.breadcrumb-separator),
body .pdp-breadcrumb > span:not(.breadcrumb-separator),
body .dh-product-breadcrumb > span:not(.breadcrumb-separator),
body .mc-breadcrumb li:last-child,
body .active-breadcrumb,
body .breadcrumb-wrapper [aria-current="page"],
body .pdp-breadcrumb [aria-current="page"],
body .dh-product-breadcrumb [aria-current="page"],
body .mc-breadcrumb [aria-current="page"],
body ol.breadcrumb [aria-current="page"],
body div.breadcrumb [aria-current="page"] { color: #5c6370 !important; font-weight: 400 !important; }
body .breadcrumb-separator,
body .breadcrumb-wrapper > span[aria-hidden="true"],
body .pdp-breadcrumb > span[aria-hidden="true"],
body .dh-product-breadcrumb > span[aria-hidden="true"],
body .mc-breadcrumb li + li::before { color: #75808b !important; }
@media (max-width: 620px) {
  body .breadcrumb-wrapper,
  body .pdp-breadcrumb,
  body .dh-product-breadcrumb,
  body ol.breadcrumb,
  body div.breadcrumb {
    width: calc(100% - 24px) !important;
    margin-bottom: 12px !important;
    padding: 6px 12px !important;
    gap: 4px !important;
    font-size: 15px !important;
  }
  body .mc-breadcrumb { margin-bottom: 12px !important; padding: 6px 0 !important; }
  body .mc-breadcrumb .mc-container { width: calc(100% - 24px) !important; padding-right: 12px !important; padding-left: 12px !important; }
  body .mc-breadcrumb ol { gap: 4px !important; font-size: 15px !important; }
}
.wishlist-global-toast { position: fixed; right: 18px; bottom: 22px; z-index: 100300; max-width: min(340px, calc(100vw - 36px)); padding: 12px 16px; color: #fff; font-weight: 700; background: #087f77; border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.22); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s ease; }
.wishlist-global-toast.is-visible { opacity: 1; transform: translateY(0); }
.ec-wishlist-guest-content { width: 100%; max-width: 1180px; margin: 0 auto; }

.has-product-card-zoom,
.product-zoom-media { position: relative !important; }
.product-zoom-media { display: block; width: 100%; }
.product-zoom-media > .ec-product-card-image { display: flex; width: 100%; }
.product-card-zoom-trigger,
.pdp-page .pdp-image-stage > .pdp-zoom-trigger {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  top: auto !important;
  left: auto !important;
  z-index: 8 !important;
  display: inline-flex !important;
  width: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  color: #233f5f !important;
  cursor: zoom-in !important;
  background: rgba(255,255,255,.98) !important;
  border: 1px solid #d7e0e7 !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 16px rgba(19,47,75,.10) !important;
  backdrop-filter: blur(5px);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}
.product-card-zoom-trigger:hover,
.product-card-zoom-trigger:focus-visible,
.pdp-page .pdp-image-stage > .pdp-zoom-trigger:hover,
.pdp-page .pdp-image-stage > .pdp-zoom-trigger:focus-visible {
  color: #143657 !important;
  border-color: #00a79d !important;
  box-shadow: 0 8px 22px rgba(19,47,75,.16) !important;
  outline: 0 !important;
  transform: translateY(-1px) !important;
}
.product-card-zoom-trigger i { color: #233f5f; font-size: 16px; }
.product-card-zoom-trigger span,
.pdp-page .pdp-image-stage > .pdp-zoom-trigger span { display: none !important; }
.pdp-page .pdp-image-stage > .pdp-zoom-trigger svg { width: 17px !important; height: 17px !important; color: #233f5f !important; }
.product-card-zoom-dialog[hidden] { display: none !important; }
.product-card-zoom-dialog { position: fixed; inset: 0; z-index: 100500; display: grid; padding: 24px; place-items: center; }
.product-card-zoom-backdrop { position: absolute; inset: 0; background: rgba(8,20,31,.82); backdrop-filter: blur(4px); }
.product-card-zoom-panel { position: relative; z-index: 1; display: grid; width: min(920px, 94vw); max-height: 92vh; padding: 20px; place-items: center; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.product-card-zoom-panel img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(92vh - 95px); object-fit: contain; }
.product-card-zoom-panel p { margin: 10px 44px 0; color: #435466; font-size: 14px; text-align: center; }
.product-card-zoom-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; color: #17324a; font: 400 28px/1 Arial,sans-serif; cursor: pointer; background: #fff; border: 1px solid #d7e0e7; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
body.product-card-zoom-open { overflow: hidden; }
@media (max-width: 620px) {
  .product-card-zoom-trigger,
  .pdp-page .pdp-image-stage > .pdp-zoom-trigger { right: 8px !important; bottom: 8px !important; width: 36px !important; min-width: 36px !important; height: 36px !important; min-height: 36px !important; padding: 0 !important; }
  .product-card-zoom-trigger span,
  .pdp-page .pdp-image-stage > .pdp-zoom-trigger span { font-size: 12px !important; }
  .product-card-zoom-dialog { padding: 12px; }
  .product-card-zoom-panel { width: 96vw; padding: 12px; border-radius: 12px; }
}


/* Service-detail zoom stage uses the same icon-only control as product imagery. */
.service-detail-image-stage,
.healthcare-service-image-stage {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
}
.service-detail-image-stage > img,
.healthcare-service-image-stage > img { display: block; width: 100%; }

/* Refined wishlist page. */
.ec-wishlist-page { background: #f5f8f9; }
.ec-wishlist-shell {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(15,39,55,.08);
}
.ec-wishlist-header {
  display: flex;
  padding: 24px 26px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg,#edfafa,#fff 72%);
  border-bottom: 1px solid #e2ebed;
}
.ec-wishlist-header h1 { margin: 2px 0 0; font-size: clamp(25px,3vw,34px); }
.ec-wishlist-header .ec-count-pill { flex: 0 0 auto; }
.ec-wishlist-body { padding: 24px; }
.ec-wishlist-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.ec-wishlist-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dfe7ea;
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(15,39,55,.05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ec-wishlist-card:hover { border-color: #a9d9d5; box-shadow: 0 14px 30px rgba(15,39,55,.10); transform: translateY(-2px); }
.ec-wishlist-card-media { position: relative; display: flex; height: 220px; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid #edf1f2; }
.ec-wishlist-card-media img { display: block; width: 90%; height: 90%; object-fit: contain; }
.ec-wishlist-card-body { display: flex; min-height: 210px; padding: 17px; flex: 1; flex-direction: column; }
.ec-wishlist-meta { display: flex; margin-bottom: 8px; align-items: center; justify-content: space-between; gap: 8px; }
.ec-wishlist-brand { color: #087f77; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.ec-wishlist-stock { display: inline-flex; padding: 4px 7px; color: #18784d; background: #e9f9f0; border-radius: 999px; font-size: 10px; font-weight: 800; }
.ec-wishlist-stock.is-out { color: #ac3341; background: #ffedf0; }
.ec-wishlist-card h2 { margin: 0 0 12px; font-size: 17px; line-height: 1.35; }
.ec-wishlist-card h2 a { text-decoration: none; }
.ec-wishlist-price { display: block; margin-top: auto; margin-bottom: 14px; color: #0b2435; font-size: 21px; font-weight: 800; }
.ec-wishlist-price.is-request { color: #007c74; font-size: 16px; line-height: 1.35; }
.ec-wishlist-actions { display: grid; grid-template-columns: minmax(0,1fr) 42px; gap: 9px; }
.ec-wishlist-actions form { margin: 0; }
.ec-wishlist-actions .ec-btn { width: 100%; min-height: 42px; }
.ec-wishlist-remove-button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; color: #b42318; cursor: pointer; background: #fff5f5; border: 1px solid #fecaca; border-radius: 9px; }
.ec-wishlist-remove-button:hover,.ec-wishlist-remove-button:focus-visible { color: #fff; background: #b42318; border-color: #b42318; outline: 0; }
@media (max-width: 1180px) { .ec-wishlist-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 900px) { .ec-wishlist-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) {
  .ec-wishlist-header { padding: 19px 17px; align-items: flex-start; }
  .ec-wishlist-body { padding: 14px; }
  .ec-wishlist-grid { grid-template-columns: 1fr; gap: 13px; }
  .ec-wishlist-card { display: grid; grid-template-columns: 120px minmax(0,1fr); }
  .ec-wishlist-card-media { height: 100%; min-height: 180px; border-right: 1px solid #edf1f2; border-bottom: 0; }
  .ec-wishlist-card-body { min-height: 180px; padding: 14px 12px; }
  .ec-wishlist-card h2 { font-size: 15px; }
  .ec-wishlist-price { font-size: 18px; }
}

/* =========================================================
   REVISION 3 — COMPLETE LONG BREADCRUMBS + CLEAN ZOOM CLOSE
========================================================= */
body .breadcrumb-wrapper,
body .pdp-breadcrumb,
body .dh-product-breadcrumb,
body ol.breadcrumb,
body div.breadcrumb,
body .mc-breadcrumb,
body .mc-breadcrumb .mc-container {
  min-width: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body .breadcrumb-wrapper > *,
body .pdp-breadcrumb > *,
body .dh-product-breadcrumb > *,
body ol.breadcrumb > *,
body div.breadcrumb > *,
body .mc-breadcrumb ol,
body .mc-breadcrumb li {
  min-width: 0 !important;
  max-width: 100% !important;
}

body .pdp-breadcrumb ol,
body .mc-breadcrumb ol,
body ol.breadcrumb,
body div.breadcrumb,
body .breadcrumb-wrapper,
body .dh-product-breadcrumb {
  width: 100% !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  white-space: normal !important;
}

body .pdp-breadcrumb li,
body .mc-breadcrumb li,
body ol.breadcrumb li,
body div.breadcrumb li,
body .breadcrumb-wrapper a,
body .breadcrumb-wrapper span,
body .dh-product-breadcrumb a,
body .dh-product-breadcrumb span {
  flex: 0 1 auto !important;
  white-space: normal !important;
}

body .pdp-breadcrumb li:last-child,
body .mc-breadcrumb li:last-child,
body ol.breadcrumb li:last-child,
body div.breadcrumb li:last-child,
body .active-breadcrumb,
body .breadcrumb-wrapper [aria-current="page"],
body .pdp-breadcrumb [aria-current="page"],
body .dh-product-breadcrumb [aria-current="page"],
body .mc-breadcrumb [aria-current="page"],
body ol.breadcrumb [aria-current="page"],
body div.breadcrumb [aria-current="page"] {
  max-width: 100% !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.product-card-zoom-panel {
  padding: 24px !important;
}

.product-card-zoom-close {
  top: 14px !important;
  right: 14px !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  place-items: center !important;
  color: #17324a !important;
  font: inherit !important;
  line-height: 1 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #d7e0e7 !important;
  border-radius: 50% !important;
}

.product-card-zoom-close i {
  display: block !important;
  color: currentColor !important;
  font-size: 16px !important;
  line-height: 1 !important;
}

.product-card-zoom-panel p {
  max-width: calc(100% - 100px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 620px) {
  .product-card-zoom-panel { padding: 18px !important; }
  .product-card-zoom-close {
    top: 9px !important;
    right: 9px !important;
    width: 38px !important;
    height: 38px !important;
  }
}

/* Preserve the inset gutter when the breadcrumb element itself is an ol/div. */
body ol.breadcrumb,
body div.breadcrumb {
  width: min(calc(100% - 32px), 1280px) !important;
}
@media (max-width: 620px) {
  body ol.breadcrumb,
  body div.breadcrumb {
    width: calc(100% - 24px) !important;
  }
}
