/* ============================================
   MS STORE - Product Detail Page
   Built on the tokens defined in style.css
   ============================================ */

.product-page-wrap { padding-top: 88px; }

.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 20px;
  font-size: 12px;
  color: var(--sage-600);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--sage-600); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--bronze-500); }
.breadcrumb span#breadcrumbCurrent { color: var(--sage-900); font-weight: 600; }

.product-detail-section {
  padding: 0 20px 60px;
  max-width: 1400px;
  margin: 0 auto;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  background: var(--silver-100);
  border: 1px solid var(--sage-200);
  border-radius: 20px;
  padding: 20px;
}

/* ---- Gallery ---- */
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, var(--sage-200) 0%, var(--sage-400) 100%);
  position: relative;
}
.product-main-image img,
.product-main-image video { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.product-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: all 0.3s;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.active, .product-thumb:hover { border-color: var(--bronze-400); opacity: 1; }

/* ---- Info ---- */
.product-info-detail { display: flex; flex-direction: column; padding: 4px 4px 4px 0; }
.product-detail-cat {
  color: var(--bronze-500);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-detail-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--sage-900);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 14px;
}
.product-detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sage-200);
}
.product-detail-price .price-current { font-size: 30px; }
.product-detail-desc {
  color: var(--sage-700);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 22px;
}
.product-features { margin-bottom: 26px; }
.product-features h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--sage-900);
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-item {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--sage-700);
  margin-bottom: 9px;
  line-height: 1.5;
}
.feature-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--bronze-500);
  font-weight: 700;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}
.product-actions .btn { flex: 1 1 150px; }

.product-not-found { text-align: center; padding: 90px 20px; grid-column: 1 / -1; }
.product-not-found a { color: var(--bronze-500); font-weight: 600; }

.suggestions-section { padding: 0 20px 70px; max-width: 1400px; margin: 0 auto; }

@media (min-width: 640px) {
  .product-detail-grid { padding: 28px; }
}

@media (min-width: 900px) {
  .product-detail-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 36px; align-items: start; }
  .product-detail-section { padding: 0 40px 80px; }
  .breadcrumb { padding: 0 40px 20px; }
  .suggestions-section { padding: 0 40px 80px; }
  .product-main-image { position: sticky; top: 100px; }
}

@media (min-width: 1024px) {
  .product-page-wrap { padding-top: 100px; }
  .product-detail-grid { grid-template-columns: 1.15fr 1fr; gap: 60px; padding: 48px; }
}
