:root {
  --primary-bg: #000000;
  --card-bg: rgba(255, 255, 255, 0.9);
  --text-main: #333;
  --text-secondary: #666;
}

body.no-scroll {
  overflow: hidden;
}

#productModal {
  color: #000000;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 1100px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalPop 0.25s ease;
}

@keyframes modalPop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#closeModal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid #ddd;
  z-index: 10;
  transition: 0.2s;
}

#closeModal:hover {
  background: #333;
  color: white;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px;
}

.modal-box {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
}

.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 50px;
}

.left-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-wrapper {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.product-img {
  width: 100%;
  max-width: 350px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.25));
  transition: opacity 0.3s ease;
}

.product-img.fade-out {
  opacity: 0;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.image-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px;
  scrollbar-width: none;
}

.image-slider img.thumb {
  width: 100px;
  flex: 0 0 auto;
}

.thumb-slider::-webkit-scrollbar {
  display: none;
}

.thumb {
  min-width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.25s;
  background: white;
  border: 2px solid transparent;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.thumb.active {
  opacity: 1;
  transform: scale(1.07);
  border-color: #333;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.12);
}

.nav-btn {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: 0.2s;
}

.nav-btn:hover {
  background: #333;
  color: white;
}

.prev-btn {
  z-index: 3;
  left: -18px;
}
.next-btn {
  right: -18px;
}

.details-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 2.8rem;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
}

.features {
  padding-left: 20px;
  margin-bottom: 30px;
}

.features li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.color-selection {
  margin-bottom: 25px;
}

.colors {
  display: flex;
  gap: 15px;
}

.color-option {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.25s;
}

.color-option.active {
  border-color: #333;
  transform: scale(1.18);
}

.c-black {
  background: #222;
}
.c-white {
  background: #f5f5f5;
  border: 1px solid #ddd;
}
.c-blue {
  background: #0a3857;
}
.c-green {
  background: #06632d;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 1px solid #999;
  background: transparent;
  cursor: pointer;
  transition: 0.25s;
}

.qty-btn:hover {
  background: #333;
  color: white;
}

#qty-value {
  width: 30px;
  text-align: center;
  font-weight: 600;
}

#modalPrice {
  font-size: 1.3rem;
  font-weight: 400;
}

.buy-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buy-btn {
  padding: 10px 25px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
}

.buy-btn:hover {
  background: #333;
  color: white;
}

.description-section {
  padding: 0 50px 50px;
}

.desc-text {
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: justify;
}

@media (max-width: 768px) {
  .product-section {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  h1 {
    font-size: 2.2rem;
  }
  .nav-btn {
    display: none;
  }
}

.image-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 9999;
}

.image-popup.show {
  opacity: 1;
  visibility: visible;
}

.image-popup img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.close-popup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-popup:hover {
  transform: scale(1.2);
}
