/* ==========================================================================
   BLACK SHADO QCM PARFUM - V0.1
   ========================================================================== */

body.bsqcm-is-open {
  overflow: hidden;
}

.bsqcm-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.bsqcm-modal.is-open {
  display: flex;
}

.bsqcm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.bsqcm-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  background: #0f0f0f;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.bsqcm-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.bsqcm-modal__content {
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
}

.bsqcm-panel {
  padding: 56px 48px 44px;
}

.bsqcm-panel__eyebrow,
.bsqcm-results__eyebrow {
  margin: 0 0 12px;
  color: #c8a45d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bsqcm-panel__title,
.bsqcm-results__title {
  margin: 0;
  color: inherit;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.05;
}

.bsqcm-panel__text {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.7;
}

.bsqcm-progress {
  margin: 0 56px 28px 0;
}

.bsqcm-progress span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.bsqcm-progress__bar {
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.bsqcm-progress__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #c8a45d, #f0d99a);
  border-radius: inherit;
  transition: width 220ms ease;
}

.bsqcm-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.bsqcm-choices--single {
  grid-template-columns: 1fr;
}

.bsqcm-choice {
  min-height: 54px;
  padding: 14px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.bsqcm-choice:hover,
.bsqcm-choice:focus,
.bsqcm-choice.is-selected {
  background: rgba(200, 164, 93, 0.18);
  border-color: rgba(240, 217, 154, 0.56);
  transform: translateY(-1px);
}

.bsqcm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.bsqcm-actions--finish {
  justify-content: flex-end;
}

.bsqcm-button,
.bsqcm-link-button,
.bsqcm-results__retry {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.bsqcm-button,
.bsqcm-results__retry {
  color: #111111;
  background: #f0d99a;
  border: 1px solid #f0d99a;
}

.bsqcm-link-button {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.bsqcm-link-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bsqcm-results {
  padding: clamp(48px, 8vw, 96px) 20px;
  background: #ffffff;
  color: #111111;
}

.bsqcm-results__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.bsqcm-results__title {
  color: #111111;
}

.bsqcm-results__subtitle {
  margin: 42px 0 18px;
  color: #111111;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.bsqcm-results__empty {
  margin-top: 28px;
  padding: 28px;
  background: #f7f4ed;
  border: 1px solid #eadfc8;
  border-radius: 20px;
}

.bsqcm-results__empty p,
.bsqcm-results--empty p {
  margin: 0 0 12px;
}

.bsqcm-results__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bsqcm-product-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e8e0d2;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 15, 15, 0.08);
}

.bsqcm-product-card--best {
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  margin-top: 32px;
  padding: 28px;
  background: linear-gradient(135deg, #111111, #241d13);
  color: #ffffff;
  border-color: rgba(200, 164, 93, 0.42);
}

.bsqcm-product-card__image {
  display: block;
  overflow: hidden;
  background: #f7f4ed;
  border-radius: 18px;
}

.bsqcm-product-card__image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.bsqcm-product-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.bsqcm-product-card__tag {
  margin: 0 0 10px;
  color: #c8a45d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bsqcm-product-card__title {
  margin: 0 0 14px;
  color: inherit;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.08;
}

.bsqcm-product-card__score {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 12px;
}

.bsqcm-product-card__score span {
  font-size: 18px;
  font-weight: 800;
}

.bsqcm-product-card__score small {
  color: #c8a45d;
  font-size: 13px;
  font-weight: 700;
}

.bsqcm-product-card__price {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 700;
}

.bsqcm-product-card__sizes,
.bsqcm-product-card__explanation {
  margin: 0 0 12px;
  color: inherit;
  opacity: 0.82;
  font-size: 15px;
  line-height: 1.6;
}

.bsqcm-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.bsqcm-product-card__button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #111111;
  background: #f0d99a;
  border: 1px solid #f0d99a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.bsqcm-product-card__button--cart {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

@media (max-width: 900px) {
  .bsqcm-results__grid {
    grid-template-columns: 1fr;
  }

  .bsqcm-product-card,
  .bsqcm-product-card--best {
    grid-template-columns: 140px minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .bsqcm-modal {
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
  }

  .bsqcm-modal__dialog {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .bsqcm-modal__content {
    max-height: 100vh;
  }

  .bsqcm-modal__close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .bsqcm-panel {
    min-height: 100vh;
    padding: 72px 18px 24px;
  }

  .bsqcm-progress {
    margin-right: 56px;
  }

  .bsqcm-choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bsqcm-choice {
    min-height: 58px;
    padding: 16px;
    font-size: 16px;
  }

  .bsqcm-actions {
    position: sticky;
    bottom: 0;
    margin: 28px -18px -24px;
    padding: 14px 18px 18px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0), #0f0f0f 24%);
  }

  .bsqcm-product-card,
  .bsqcm-product-card--best {
    grid-template-columns: 1fr;
  }
}
