/* Base asset file kept intentionally light.
   Most output stays shortcode-scoped so instances can vary without global conflicts. */

body.single-product .single_add_to_cart_button.mcom-sale-price-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  white-space: normal !important;
  line-height: 1 !important;
  text-align: center !important;
}

body.single-product .single_add_to_cart_button.mcom-sale-price-button .btn-label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  line-height: 1 !important;
}

body.single-product .mcom-sale-price-button__label,
body.single-product .mcom-sale-price-button__price {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  color: inherit !important;
  line-height: 1 !important;
}

body.single-product .mcom-sale-price-button__label {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  opacity: .92 !important;
  letter-spacing: .08em !important;
}

body.single-product .mcom-sale-price-button__price del,
body.single-product .mcom-sale-price-button__price del * {
  color: inherit !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px !important;
}

body.single-product .mcom-sale-price-button__price ins,
body.single-product .mcom-sale-price-button__price ins * {
  color: inherit !important;
  font-size: 1.06em !important;
  font-weight: 500 !important;
  min-width: 7.5ch !important;
  text-decoration: none !important;
}

body.single-product .mcom-sale-price-button__was {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  opacity: .58 !important;
  font-size: .72em !important;
  font-weight: 400 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.single-product .mcom-sale-price-button__price .screen-reader-text {
  display: none !important;
}

@media (max-width: 767px) {
  body.single-product .single_add_to_cart_button.mcom-sale-price-button,
  body.single-product .single_add_to_cart_button.mcom-sale-price-button .btn-label {
    gap: 8px !important;
  }

  body.single-product .mcom-sale-price-button__was {
    font-size: .68em !important;
  }
}

.mcom-product-spotlight,
.mcom-product-spotlight * {
  box-sizing: border-box;
}

.mcom-product-spotlight .mcom-product-spotlight__trigger,
button.mcom-product-spotlight__trigger {
  position: fixed !important;
  left: 22px;
  bottom: 84px;
  z-index: 999998;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 50px !important;
  min-width: 50px !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #111 !important;
  border-radius: 6px !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18) !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.mcom-product-spotlight__trigger[hidden] {
  display: none !important;
}

.mcom-product-spotlight .mcom-product-spotlight__trigger:hover,
.mcom-product-spotlight .mcom-product-spotlight__trigger:focus,
button.mcom-product-spotlight__trigger:hover,
button.mcom-product-spotlight__trigger:focus {
  border-radius: 6px !important;
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18) !important;
  outline: 0 !important;
}

.mcom-product-spotlight__trigger svg,
.mcom-product-spotlight__close svg,
.mcom-product-spotlight__search-icon {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mcom-product-spotlight__overlay[hidden] {
  display: none !important;
}

.mcom-product-spotlight__overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 18px 32px;
  background: rgba(17, 17, 17, .36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.mcom-product-spotlight__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mcom-product-spotlight__panel {
  width: min(720px, 100%);
  max-height: min(70vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  color: #111;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .28);
  transform: translateY(-8px) scale(.985);
  transition: transform .18s ease;
}

.mcom-product-spotlight__overlay.is-open .mcom-product-spotlight__panel {
  transform: translateY(0) scale(1);
}

body.mcom-product-spotlight-open {
  overflow: hidden;
}

.mcom-product-spotlight__form {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  margin: 0;
  padding: 10px 14px 10px 18px;
  border-bottom: 1px solid rgba(17, 17, 17, .12);
}

.mcom-product-spotlight__search-icon {
  width: 21px;
  height: 21px;
  color: #555;
}

.mcom-product-spotlight__input {
  width: 100%;
  min-width: 0;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  box-shadow: none;
  font: 400 20px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  outline: 0;
  appearance: none;
}

.mcom-product-spotlight__input::-webkit-search-decoration,
.mcom-product-spotlight__input::-webkit-search-cancel-button {
  display: none;
}

.mcom-product-spotlight__input::placeholder {
  color: #777;
  opacity: 1;
}

.mcom-product-spotlight__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #444;
  box-shadow: none;
  cursor: pointer;
  appearance: none;
}

.mcom-product-spotlight__close:hover,
.mcom-product-spotlight__close:focus {
  background: rgba(17, 17, 17, .08);
  color: #111;
  outline: 0;
}

.mcom-product-spotlight__status {
  min-height: 0;
  padding: 0 18px;
  color: #777;
  font: 400 13px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.mcom-product-spotlight__status:not(:empty) {
  min-height: 44px;
  padding-top: 14px;
}

.mcom-product-spotlight__results {
  display: grid;
  max-height: calc(min(70vh, 720px) - 67px);
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.mcom-product-spotlight__result {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mcom-product-spotlight__result-button {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #111;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.mcom-product-spotlight__result-button:hover,
.mcom-product-spotlight__result-button.is-active {
  background: #111;
  color: #fff;
}

.mcom-product-spotlight__result-image {
  display: block;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 6px;
  background: #f3f3f3;
}

.mcom-product-spotlight__result-button.is-active .mcom-product-spotlight__result-image,
.mcom-product-spotlight__result-button:hover .mcom-product-spotlight__result-image {
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12);
}

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

.mcom-product-spotlight__result-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.mcom-product-spotlight__result-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font: 500 15px/1.25 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mcom-product-spotlight__result-details {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  color: #777;
  font: 400 12px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.mcom-product-spotlight__result-details span {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcom-product-spotlight__result-details span:not(:last-child)::after {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  margin-left: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .5;
}

.mcom-product-spotlight__result-button:hover .mcom-product-spotlight__result-details,
.mcom-product-spotlight__result-button.is-active .mcom-product-spotlight__result-details {
  color: rgba(255, 255, 255, .72);
}

.mcom-product-spotlight__result-price {
  justify-self: end;
  max-width: 140px;
  overflow: hidden;
  color: inherit;
  font: 500 13px/1.3 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .mcom-product-spotlight .mcom-product-spotlight__trigger,
  button.mcom-product-spotlight__trigger {
    left: 16px;
    bottom: 76px;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 6px !important;
  }

  .mcom-product-spotlight__overlay {
    align-items: flex-start;
    padding: 72px 10px 16px;
  }

  .mcom-product-spotlight__panel {
    max-height: calc(100vh - 96px);
    border-radius: 8px;
  }

  .mcom-product-spotlight__form {
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    min-height: 60px;
    padding: 8px 10px 8px 14px;
  }

  .mcom-product-spotlight__input {
    height: 42px;
    font-size: 17px;
  }

  .mcom-product-spotlight__results {
    max-height: calc(100vh - 158px);
    padding: 5px;
  }

  .mcom-product-spotlight__result-button {
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 70px;
    gap: 11px;
    padding: 9px;
  }

  .mcom-product-spotlight__result-image {
    width: 52px;
    height: 52px;
  }

  .mcom-product-spotlight__result-price {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
    margin-top: -4px;
    text-align: left;
  }
}
