﻿/* ============================================
   PRODUCT PAGE — NEPTUNE MINER REDESIGN
   ============================================ */

.product-page {
  min-height: 100vh;
  background: transparent;
  padding-top: 72px;
}

/* ---- Header ---- */
.product-header {
  text-align: center;
  padding: 3.5rem 2rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.product-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
}
.product-tagline {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
}

/* ---- Main layout ---- */
.product-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

/* ---- Left column ---- */
.product-left { flex: 1; min-width: 300px; }

.product-desc {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.product-price-row {
  margin-bottom: 2rem;
}
.product-price {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 900;
  color: #00a8d8;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.product-price-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}

/* ---- Purchase card ---- */
.product-purchase {
  background: #e8ecf4;
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.qty-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.qty-label {
  font-size: 0.95rem;
  font-weight: 400;
  color: #3a4a6a;
}
.qty-control {
  display: flex;
  align-items: center;
  background: #143176;
  border-radius: 50px;
  overflow: hidden;
}
.qty-control button {
  width: 40px; height: 40px;
  background: none; border: none;
  color: #fff; font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.qty-control button:hover { background: rgba(255,255,255,0.1); }
.qty-control span {
  font-size: 1rem; font-weight: 600;
  color: #fff;
  padding: 0 1rem;
  min-width: 36px; text-align: center;
}

.purchase-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 160px;
}
.btn-purchase {
  display: block; width: 100%;
  padding: 0.85rem 1.5rem;
  background: #143176;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  border: none; border-radius: 50px;
  cursor: pointer; text-align: center; text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.25s, box-shadow 0.25s;
}
.btn-purchase:hover {
  background: #00a8d8;
  box-shadow: 0 4px 20px rgba(0,168,216,0.35);
}
.btn-purchase-outline {
  background: #143176;
}
.btn-purchase-outline:hover { background: #00a8d8; }

.product-trust-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.product-trust-row span {
  font-size: 0.72rem;
  font-weight: 400;
  color: #000;
  white-space: nowrap;
}

/* ---- Right column ---- */
.product-right {
  flex: 0 0 28.5%; max-width: 315px;
  position: sticky; top: 100px;
}
.product-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  object-fit: cover;
}

/* ---- Specs section ---- */
.specs-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.specs-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.spec-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(80, 180, 230, 0.42);
  border-radius: 50px;
}
.spec-card-key {
  font-size: 0.88rem;
  font-weight: 400;
  color: #0b1e46;
}
.spec-card-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1e46;
  text-align: right;
}

/* ---- Other Miners pill — sits in right column of last row ---- */
.other-miner-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #143176;
  border-radius: 50px;
  text-decoration: none;
  grid-column: 2;
  transition: background 0.25s;
}
.other-miner-card:hover { background: #00a8d8; }
.other-miner-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}
.other-miner-name {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-align: right;
}

@media (max-width: 640px) {
  .specs-grid { grid-template-columns: 1fr; }
  .other-miner-card { grid-column: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .product-layout {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .product-right { position: static; }
}
@media (max-width: 480px) {
  .product-header { padding: 2.5rem 1.25rem 1.5rem; }
  .product-layout { padding: 1rem 1.25rem 3rem; }
  .specs-section { padding: 0 1.25rem 3rem; }
  .product-trust-row { gap: 0.4rem 1rem; }
  /* Fix left column overflowing screen */
  .product-left { min-width: 0; width: 100%; box-sizing: border-box; overflow: hidden; }
  /* Description fits on screen */
  .product-desc { overflow-wrap: break-word; word-break: break-word; white-space: normal; max-width: 100%; }
  /* Purchase section stacks and fits */
  .product-purchase { flex-direction: column; align-items: stretch; width: 100%; box-sizing: border-box; }
  .purchase-actions { min-width: 0; width: 100%; box-sizing: border-box; }
  /* Cart buttons full width */
  .btn-purchase { width: 100%; box-sizing: border-box; }
}
