/* =========================
   SAFE SCOPE (NO NAVBAR)
========================= */
.product-page {
  padding-top: 40px;
}

/* CENTER CONTAINER */
.product-page .product-container {
  max-width: 100%;
  margin: auto;
  padding: 0 16px;
}

/* MAIN LAYOUT */
.product-page .product-main {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* IMAGE AREA */
.product-page .product-images {
  display: flex;
  gap: 12px;
  max-width: 520px;
}

.product-page .thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-page .thumbnail {
  width: 70px;
  border: 1px solid #ddd;
  cursor: pointer;
}

.product-page .main-image img {
  width: 420px;
  max-width: 100%;
  border-radius: 4px;
}

/* INFO AREA */
.product-page .product-info {
  max-width: 420px;
}

.product-page .product-title {
  font-size: 22px;
  font-weight: 600;
}

.product-page .product-description {
  font-size: 14px;
  color: #555;
  margin: 12px 0;
}

.product-page .product-price {
  font-size: 20px;
  font-weight: 600;
}

/* SIZE */
.product-page .size-section {
  margin-top: 16px;
}

.size-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.product-page .size-btn {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-right: 6px;
}

/* Hover */
.size-btn:hover {
  border-color: #000;
}

.size-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* BUTTONS */
.product-page .action-buttons {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.btn.add-cart:disabled {
  background: #ccc;
  cursor: not-allowed;
}


.product-page .btn {
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
}

.product-page .add-cart {
  background: black;
  color: white;
}

.product-page .buy-now {
  background: #2563eb;
  color: white;
}

/* RELATED */
.product-page .related-section {
  width: 100%;
  background: #fafafa;
  padding: 60px 0;
  margin-top: 60px;
}

.related-section h2 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
  color: #111;
}

.related-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.product-page .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  border-radius: 30px;
}

.related-name {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #222;
  line-height: 1.3;
}


.related-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.related-info {
  padding: 14px 16px 18px;
  text-align: center;
}



.related-price {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: transform 0.5s ease;
}

/* MOBILE */
@media (max-width: 600px) {
  .related-card img {
    height: 220px;
  }

  .related-section {
    padding: 40px 0;
  }
}


/* LOGIN MODAL */
.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-modal.hidden {
  display: none;
}

.login-modal-content {
  background: #fff;
  padding: 26px;
  width: 320px;
  border-radius: 10px;
  text-align: center;
  animation: popIn 0.25s ease;
}

.login-modal-content h3 {
  margin-bottom: 10px;
}

.login-modal-content p {
  font-size: 14px;
  color: #555;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.login-btn {
  flex: 1;
  background: #000;
  color: #fff;
  padding: 10px;
  text-decoration: none;
  border-radius: 6px;
}

.cancel-btn {
  flex: 1;
  background: #eee;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
