/* ===== PRODUCT POPUP ===== */

.product-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-popup-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.product-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.97);
  z-index: 99999;
  background: #fff;
  border-radius: 24px;
  width: 1120px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  scrollbar-width: none;
}

.product-popup::-webkit-scrollbar { display: none; }

.product-popup.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.product-popup__close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f6fa;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.product-popup__close:hover {
  background: #e2e8f0;
  color: #000;
}

.product-popup__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  clear: both;
}

.product-popup__img-col {
  padding: 28px 24px 28px 28px;
  display: flex;
  align-items: flex-start;
}

.product-popup__img-wrap {
  width: 100%;
  background: #f5f6fa;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-popup__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-popup__img-wrap .no-img {
  width: 80px;
  height: 80px;
  opacity: 0.15;
}

.product-popup__info-col {
  padding: 32px 28px 28px 20px;
  display: flex;
  flex-direction: column;
}

.product-popup__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  color: #0b0b0b;
}

.product-popup__price {
  font-size: 16px;
  font-weight: 500;
  color: #555;
  margin-bottom: 20px;
}

.product-popup__price strong {
  color: #0b0b0b;
  font-weight: 700;
}

.product-popup__atc {
  display: block;
  width: 100%;
  height: 52px;
  background: #FED845;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 52px;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 22px;
}

.product-popup__atc:hover {
  background: #fcd32e;
  transform: translateY(-1px);
}

.product-popup__atc:active {
  transform: translateY(0);
}

.product-popup__meta {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-popup__meta li {
  font-size: 14px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-popup__meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b0b0b;
  flex-shrink: 0;
}

.product-popup__desc {
  font-size: 14px;
  color: #444;
  line-height: 1.65;
  flex-grow: 1;
}

.product-popup__desc p { margin: 0 0 10px; }
.product-popup__desc p:last-child { margin-bottom: 0; }

.product-popup__desc strong {
  color: #0b0b0b;
  font-weight: 600;
}

.product-popup__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.product-popup__btn {
  height: 48px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #FED845;
  color: #000;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.product-popup__btn:hover { background: #fcd32e; }

.product-popup__btn--outline {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0b0b0b;
}

.product-popup__btn--outline:hover {
  background: #f5f6fa;
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .product-popup {
    border-radius: 20px 20px 0 0;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(20px);
    max-width: 100%;
    max-height: 92vh;
  }

  .product-popup.is-open {
    transform: translateY(0);
  }

  .product-popup__body {
    grid-template-columns: 1fr;
  }

  .product-popup__img-col {
    padding: 0 20px 0;
  }

  .product-popup__img-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 14px;
  }

  .product-popup__info-col {
    padding: 20px 20px 32px;
  }

  .product-popup__title {
    font-size: 22px;
  }

  .product-popup__close {
    top: 12px;
    margin: 12px 12px 0 0;
  }
	
.product-popup__desc {
  word-break: break-word;
  overflow-wrap: break-word;
}
}