.nw-quick-view[hidden] { display: none !important; }

.nw-quick-view {
  position: fixed;
  z-index: 2147483450;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 24px;
  font-family: var(--nw-font-main, "Manrope", sans-serif);
}

.nw-quick-view__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 40, 48, .42);
  cursor: pointer;
}

.nw-quick-view__dialog {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(1120px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 40px;
  border-radius: 30px;
  outline: 0;
  background: #fff;
  box-shadow: 0 30px 80px rgba(16, 36, 47, .2);
}

.nw-quick-view__close {
  position: absolute;
  z-index: 3;
  top: 40px;
  right: 40px;
  width: 67px;
  min-width: 67px;
  height: 67px;
  min-height: 67px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #f4f8fa;
  box-shadow: none;
  color: #2ba8c4;
  cursor: pointer;
}

.nw-quick-view__close:hover {
  border-color: transparent;
  background: #e9f3f6;
  box-shadow: none;
  color: #22869d;
}

.nw-quick-view__close:focus {
  border-color: transparent;
  background: #f4f8fa;
  box-shadow: none;
  color: #2ba8c4;
}

.nw-quick-view__close:focus-visible {
  outline: 3px solid rgba(43, 168, 196, .24);
  outline-offset: 3px;
}

.nw-quick-view__close:active {
  background: #dcecf1;
  color: #1b7185;
}

.nw-quick-view__close span::before,
.nw-quick-view__close span::after {
  position: absolute;
  top: 32.5px;
  left: 17.5px;
  width: 32px;
  height: 2px;
  content: "";
  background: currentColor;
}
.nw-quick-view__close span::before { transform: rotate(45deg); }
.nw-quick-view__close span::after { transform: rotate(-45deg); }

.nw-qv-product {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 29px;
  min-height: 468px;
  color: #1b2830;
}

.nw-qv-product__media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 468px;
  align-content: center;
  padding: 17px;
  border: 1px solid #bfe3ec;
  border-radius: 22px;
  background: #fff;
}

.nw-qv-product__badges {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nw-qv-product__badge {
  min-height: 29px;
  padding: 6px 12px;
  border-radius: 9px;
  background: #edf9fc;
  color: #238da5;
  font-size: 12px;
  font-weight: 800;
  line-height: 17px;
}
.nw-qv-product__badge--sale {
  background: #e95e5e;
  color: #fff;
}
.nw-qv-product__badge--out { background: #f1f3f5; color: #64727e; }

.nw-qv-product__main-image { display: grid; min-height: 330px; place-items: center; }
.nw-qv-product__main-image img { display: block; width: 100%; height: 330px; object-fit: contain; }
.nw-qv-product__thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 10px; overflow-x: auto; }
.nw-qv-product__thumbs button { width: 52px; min-width: 52px; height: 52px; padding: 3px; border: 1px solid #d9edf2; border-radius: 8px; background: #fff; }
.nw-qv-product__thumbs button.is-active { border-color: #2ba8c4; }
.nw-qv-product__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.nw-qv-product__summary {
  display: flex;
  min-width: 0;
  min-height: 468px;
  flex-direction: column;
  padding-right: 0;
}

.nw-qv-product__heading { padding-right: 82px; }

.nw-quick-view .nw-qv-product__heading h2 {
  margin: 5px 0 0;
  color: #12283a;
  font-size: 34px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: -.5px;
}
.nw-qv-product__category { color: #64727e; font-size: 13px; line-height: 18px; }
.nw-qv-product__category a { color: inherit; text-decoration: none; }
.nw-qv-product__attributes { display: grid; gap: 12px; margin: 24px 0 0; padding: 22px; border-radius: 16px; background: #f3f8fb; list-style: none; color: #3c4d5c; font-size: 15px; line-height: 21px; }
.nw-qv-product__attributes li::before { margin-right: 12px; color: #1f9fbf; content: "◆"; font-size: 10px; vertical-align: 1px; }
.nw-qv-product__attributes span { color: #1b2830; font-weight: 700; }
.nw-qv-product__description { margin: 16px 0 0; color: #64727e; font-size: 14px; line-height: 21px; }
.nw-qv-product__cart { margin-top: auto; padding-top: 18px; }
.nw-qv-product__variations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.nw-qv-product__variations label { display: grid; gap: 5px; color: #1b2830; font-size: 12px; font-weight: 700; }
.nw-qv-product__variations select { width: 100%; min-height: 40px; padding: 0 34px 0 12px; border: 1px solid #bfe3ec; border-radius: 8px; background: #fff; color: #1b2830; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 18px; }
.nw-qv-product__purchase { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; }
.nw-qv-product__price { color: #12283a; font-size: 44px; font-weight: 800; line-height: 49px; white-space: nowrap; }
.nw-qv-product__price ins { text-decoration: none; }
.nw-qv-product__price del { color: #afbac3; font-size: 24px; font-weight: 400; line-height: 27px; opacity: 1; }
.nw-qv-product__stock { grid-column: 1; color: #64727e; font-size: 12px; line-height: 18px; }
.nw-qv-product__stock p { margin: 0; }
.nw-qv-product__actions { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 8px; }
.nw-qv-product__quantity { display: flex; height: 44px; overflow: hidden; border: 1px solid #bfe3ec; border-radius: 10px; }
.nw-qv-product__quantity button { width: 34px; padding: 0; border: 0; background: #fff; box-shadow:none; color: #1b2830; }
.nw-qv-product__quantity button:hover { border-color:transparent; background:#edf8fa; box-shadow:none; color:#22869d; }
.nw-qv-product__quantity button:focus { border-color:transparent; background:#fff; box-shadow:none; color:#1b2830; }
.nw-qv-product__quantity button:focus-visible { outline:2px solid rgba(43,168,196,.25); outline-offset:-2px; }
.nw-qv-product__quantity button:active { background:#dceff3; color:#1b7185; }
.nw-qv-product__quantity .quantity { margin: 0 !important; }
.nw-qv-product__quantity input.qty { width: 36px; height: 42px; padding: 0; border: 0; background: #fff; box-shadow: none; text-align: center; -moz-appearance: textfield; }
.nw-qv-product__quantity input.qty::-webkit-inner-spin-button { display: none; }
.nw-qv-product__add { height:44px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: #2ba8c4; box-shadow:none; color: #fff; font-size: 14px; font-weight: 700; line-height:20px; }
.nw-qv-product__add:hover { border-color:transparent; background:#22869d; box-shadow:none; color:#fff; }
.nw-qv-product__add:focus { border-color:transparent; background:#2ba8c4; box-shadow:none; color:#fff; }
.nw-qv-product__add:focus-visible { outline:3px solid rgba(43,168,196,.24); outline-offset:2px; }
.nw-qv-product__add:active { background:#1b7185; color:#fff; }
.nw-qv-product__add:disabled { cursor: not-allowed; opacity: .55; }
.nw-qv-product__favorite { position: relative; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #bfe3ec; border-radius: 10px; background: #fff; }
.nw-qv-product__favorite:hover { border-color:#8dcedd; background:#f4fbfc; box-shadow:none; color:#2ba8c4; }
.nw-qv-product__favorite:focus { border-color:#bfe3ec; background:#fff; box-shadow:none; color:#2ba8c4; }
.nw-qv-product__favorite:focus-visible { outline:3px solid rgba(43,168,196,.2); outline-offset:2px; }
.nw-qv-product__favorite:active { background:#e6f5f8; }
.nw-qv-product__favorite::before { content: "♡"; color: #2ba8c4; font-size: 26px; line-height: 1; }
.nw-qv-product__favorite.is-active::before { content: "♥"; }
.nw-qv-product__status { grid-column: 1 / -1; min-height: 18px; margin: 4px 0 0; color: #2ba8c4; font-size: 12px; line-height: 18px; }
.nw-qv-product__link { display: flex; width:min(396px,100%); min-height: 58px; align-items: center; justify-content: center; margin-top: 12px; border-radius: 13px; background: linear-gradient(98.15deg, #22a6c6 0%, #2cbbdb 100%); color: #fff; font-size: 24px; font-weight: 700; line-height: 28px; text-decoration: none; }
.nw-qv-product__link:hover { background:linear-gradient(98.15deg,#22869d 0%,#2ba8c4 100%); color:#fff; text-decoration:none; }
.nw-qv-product__link:focus { color:#fff; text-decoration:none; }
.nw-qv-product__link:focus-visible { outline:3px solid rgba(43,168,196,.26); outline-offset:3px; }
.nw-qv-product__link:active { background:#1b7185; color:#fff; }

.nw-qv-state { display: grid; min-height: 468px; place-items: center; align-content: center; gap: 14px; color: #64727e; }
.nw-qv-state p { margin: 0; }
.nw-qv-state__spinner { width: 34px; height: 34px; border: 3px solid #d9edf2; border-top-color: #2ba8c4; border-radius: 50%; animation: nw-qv-spin .8s linear infinite; }
@keyframes nw-qv-spin { to { transform: rotate(360deg); } }
body.nw-quick-view-open { overflow: hidden; }

@media (max-width: 900px) {
  .nw-quick-view { padding: 16px; align-items: center; }
  .nw-quick-view__dialog { max-height: calc(100dvh - 32px); padding: 24px; border-radius: 24px; }
  .nw-quick-view__close { top: 18px; right: 18px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 12px; }
  .nw-quick-view__close span::before, .nw-quick-view__close span::after { top: 21px; left: 12px; width: 20px; }
  .nw-qv-product { grid-template-columns: minmax(260px, 42%) minmax(0, 1fr); gap: 22px; min-height: 0; }
  .nw-qv-product__media { min-height: 390px; }
  .nw-qv-product__main-image, .nw-qv-product__main-image img { min-height: 0; height: 285px; }
  .nw-qv-product__summary { min-height: 390px; padding-right: 0; }
  .nw-qv-product__heading { padding-right:46px; }
  .nw-quick-view .nw-qv-product__heading h2 { font-size: 28px; line-height: 34px; }
  .nw-qv-product__purchase { grid-template-columns: 1fr; }
  .nw-qv-product__actions { grid-row: auto; grid-column: 1; flex-wrap: wrap; margin-top: 8px; }
}

@media (max-width: 640px) {
  .nw-quick-view { padding: 10px; align-items: stretch; }
  .nw-quick-view__dialog { width: 100%; max-height: calc(100dvh - 20px); align-self: center; padding: 18px; border-radius: 20px; }
  .nw-qv-product { grid-template-columns: 1fr; gap: 18px; }
  .nw-qv-product__media { min-height: 280px; padding: 16px; border-radius: 16px; }
  .nw-qv-product__main-image, .nw-qv-product__main-image img { height: 235px; }
  .nw-qv-product__thumbs button { width: 44px; min-width: 44px; height: 44px; }
  .nw-qv-product__summary { min-height: 0; padding-right: 0; }
  .nw-qv-product__heading { padding-right: 48px; }
  .nw-quick-view .nw-qv-product__heading h2 { font-size: 24px; line-height: 30px; }
  .nw-qv-product__attributes { margin-top: 14px; padding: 16px; }
  .nw-qv-product__variations { grid-template-columns: 1fr; }
  .nw-qv-product__price { font-size: 32px; line-height: 38px; white-space: normal; }
  .nw-qv-product__price del { font-size: 18px; line-height: 24px; }
  .nw-qv-product__actions { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; width: 100%; }
  .nw-qv-product__add { width: 100%; }
  .nw-qv-product__link { min-height: 52px; font-size: 18px; line-height: 24px; }
  .nw-qv-state { min-height: 360px; }
}
