/* ===== PRODUCT DETAIL PAGE — FULLY RESPONSIVE ===== */
/* Fonts already loaded from main CSS — Poppins, Clash Display, Sora */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== WRAPPER ===== */
.wrapper {
  max-width: 1300px;
  margin: 90px auto 60px;
  padding: 20px 16px;
  font-family: 'Poppins', sans-serif;
  color: #1a1a1a;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== GALLERY ===== */
.gallery { position: relative; width: 100%; }

.main-slider {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(50px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.slide.exit-left {
  opacity: 0;
  transform: translateX(-50px) scale(0.97);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Arrow Buttons */
.arr-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ddd;
  color: #333;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.arr-btn:hover { background: #fd2f53; border-color: #fd2f53; color: #fff; }
.arr-left  { left: 12px; }
.arr-right { right: 12px; }

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.dot.active {
  width: 22px;
  border-radius: 4px;
  background: #fd2f53;
}

/* Thumbnails */
.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumb {
  flex: 1;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: border-color 0.25s, opacity 0.25s;
}

.thumb.active { border-color: #fd2f53; opacity: 1; }
.thumb:hover  { opacity: 0.85; }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== DETAILS ===== */
.details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fd2f53;
  background: rgba(232,93,4,0.08);
  border: 1px solid rgba(232,93,4,0.25);
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}

.title {
  font-family: 'Clash Display', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

/* Rating */
.rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #fd2f53;
  font-size: 14px;
}

.rating .score   { color: #666; font-size: 13px; }
.rating .divider { width: 1px; height: 14px; background: #ddd; }
.rating .reviews { color: #666; font-size: 13px; }

/* Price */
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 14px 0;
}

.price {
  font-family: 'Clash Display', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}

.old {
  font-size: 17px;
  text-decoration: line-through;
  color: #aaa;
}

.discount {
  background: rgba(34,197,94,0.1);
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.2);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Features */
.single-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.single-feature {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  transition: border-color 0.2s;
}

.single-feature:hover { border-color: rgba(232,93,4,0.35); }
/* box-shadow: 0px 0px 4px 1px #fd2f5340; */
.single-feature-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(232,93,4,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Spec Table */
.spec {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  gap: 10px;
}

.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: #888; white-space: nowrap; }
.spec-row span:last-child  { font-weight: 500; color: #222; text-align: right; }

/* Buy Buttons */
.buy {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 13px;
  border: none;
  border-radius: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.buy-btn {
  /* background: #fd2f53; */
  color: #fff;
}

/* .buy-btn:hover  { background: #d04e00; } */
.buy-btn:active { transform: scale(0.98); }

.wish-btn {
  flex: 0;
  width: 48px;
  height: 48px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  color: #888;
  font-size: 20px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.wish-btn:hover { color: #fd2f53; border-color: rgba(232,93,4,0.4); background: rgba(232,93,4,0.05); }

/* ===== DESCRIPTION ===== */
.desc {
  margin-top: 30px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 24px 28px;
}

.desc h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.desc p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* ================================================
   BOOKING POPUP
================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.popup-box {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.popup-overlay.open .popup-box {
  transform: translateY(0) scale(1);
}

/* Close button */
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f4f4;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: background 0.2s, color 0.2s;
}

.popup-close:hover { background: #ffe5d9; color: #fd2f53; }

/* Popup header */
.popup-header {
  margin-bottom: 22px;
}

.popup-header h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.popup-header p {
  font-size: 13px;
  color: #888;
}

/* Product mini card inside popup */
.popup-product {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fef6f1;
  border: 1px solid rgba(232,93,4,0.15);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 22px;
}

.popup-product img {
  width: 52px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.popup-product-info .name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.popup-product-info .pprice {
  font-size: 13px;
  color: #fd2f53;
  font-weight: 600;
  margin-top: 2px;
}

/* Form */
.popup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #fd2f53;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Select arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 13px;
}

/* Submit button */
.popup-submit {
  width: 100%;
  padding: 14px;
  background: #fd2f53;
  color: #fff;
  border: none;
  border-radius: 11px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.popup-submit:hover  { background: #d04e00; }
.popup-submit:active { transform: scale(0.99); }

/* Success state */
.popup-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 0;
  gap: 14px;
}

.popup-success.show { display: flex; }

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(34,197,94,0.1);
  border: 2px solid rgba(22,163,74,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.popup-success h4 {
  font-family: 'Clash Display', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
}

.popup-success p {
  font-size: 13px;
  color: #888;
  max-width: 280px;
  line-height: 1.6;
}

/* ================================================
   RESPONSIVE BREAKPOINTS
================================================ */

/* Tablet */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main-slider { height: 300px; }

  .title { font-size: 26px; }
  .price { font-size: 30px; }
}

/* Mobile Large */
@media (max-width: 600px) {
  .wrapper { margin-top: 70px; padding: 16px 12px; }

  .main-slider { height: 240px; }

  .thumb { height: 56px; }

  .title { font-size: 22px; }
  .price { font-size: 26px; }

  .single-features { grid-template-columns: 1fr 1fr; gap: 8px; }

  .single-feature { padding: 10px; font-size: 12px; }

  .desc { padding: 18px 16px; }

  /* Popup full-screen on mobile */
  .popup-box {
    padding: 24px 18px 20px;
    border-radius: 16px;
    max-height: 95vh;
  }

  .form-row { grid-template-columns: 1fr; }

  .popup-header h3 { font-size: 19px; }
}

/* Mobile Small */
@media (max-width: 400px) {
  .main-slider { height: 210px; }
  .title { font-size: 20px; }
  .price { font-size: 24px; }
  .single-features { grid-template-columns: 1fr; }
  .arr-btn { width: 32px; height: 32px; font-size: 13px; }
}