/* ============================================================
   CGT DESIGN SYSTEM v3.0 — CONTAINER / PRODUCT DETAIL (DESKTOP)
   File: style_css/container/web.css
   ============================================================ */

/* ── Page shell ── */
.pd-page {
  background: var(--bg);
  min-height: 100vh;
  padding: 0 0 60px;
}

/* ── Back link ── */
.pd-back {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 0;
}

.pd-back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: 'Segoe UI', sans-serif;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  font-weight: 500;
}

.pd-back a:hover {
  color: var(--text);
  transform: translateX(-3px);
}

/* ── Main 2-col grid ── */
.pd-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

/* ═══════════════════════════════════
   LEFT — Gallery
═══════════════════════════════════ */
.pd-gallery {
  position: sticky;
  top: 100px;
  animation: fadeUp 0.5s var(--ease) both;
}

.pd-main-img {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
}

.pd-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 30px;
  transition: transform 0.3s var(--ease);
}

.pd-main-img:hover img {
  transform: scale(1.05);
}

.pd-badge-type {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  font-family: 'Segoe UI', sans-serif;
}

.pd-badge-off {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  font-family: 'Segoe UI', sans-serif;
}

.pd-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  background: var(--white);
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
}

.pd-thumb:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pd-thumb.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,125,50,.15);
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* ═══════════════════════════════════
   RIGHT — Product Info
═══════════════════════════════════ */
.pd-info {
  animation: fadeUp 0.5s var(--ease) 0.1s both;
}

.pd-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 20px;
  font-family: 'Segoe UI', sans-serif;
}

/* Price strip */
.pd-price-strip {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pd-price-final {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  font-family: 'Segoe UI', sans-serif;
}

.pd-price-orig {
  font-size: 1.08rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.pd-pct-off {
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  font-family: 'Segoe UI', sans-serif;
}

.pd-savings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
}

/* Action buttons */
.pd-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.pd-btn-primary {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow);
  letter-spacing: 0.3px;
}

.pd-btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.pd-btn-primary:active {
  transform: translateY(0);
}

.pd-btn-ebook {
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  box-shadow: var(--shadow);
}

.pd-btn-ebook:hover {
  background: #1043a6;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

/* Divider */
.pd-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Delivery box */
.pd-delivery {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.pd-delivery-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.pd-delivery-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pd-delivery-row:first-child {
  padding-top: 0;
}

.pd-delivery-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--green);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

/* Trust strip */
.pd-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.pd-trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  transition: all 0.2s var(--ease);
}

.pd-trust-item:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pd-trust-item i {
  font-size: 1.1rem;
  color: var(--green);
  display: block;
  margin-bottom: 6px;
}

.pd-trust-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  line-height: 1.4;
  font-family: 'Segoe UI', sans-serif;
}

/* Section heading */
.pd-section {
  margin-top: 28px;
}

.pd-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Segoe UI', sans-serif;
}

.pd-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Highlights list */
.pd-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.pd-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  font-family: 'Segoe UI', sans-serif;
}

.pd-hl-item:last-child {
  border-bottom: none;
}

.pd-hl-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 800;
}

/* Description */
.pd-desc-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.8;
  white-space: pre-line;
  font-family: 'Segoe UI', sans-serif;
}

/* Animate on load */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Related Products ── */
.pd-related {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 50px 0 60px;
}

.pd-related-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pd-related-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Segoe UI', sans-serif;
}

.pd-related-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.pd-rel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pd-rel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s var(--ease);
  text-decoration: none;
  display: block;
  position: relative;
}

.pd-rel-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.pd-rel-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.pd-rel-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform 0.3s var(--ease);
}

.pd-rel-card:hover .pd-rel-img img {
  transform: scale(1.06);
}

.pd-rel-img .pd-rel-no-img {
  font-size: 2.2rem;
  opacity: 0.25;
  color: var(--text-muted);
}

.pd-rel-body {
  padding: 14px;
}

.pd-rel-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-bottom: 6px;
  background: var(--green-light);
  color: var(--green);
  font-family: 'Segoe UI', sans-serif;
}

.pd-rel-badge.notes {
  background: #f3e8ff;
  color: var(--purple);
}

.pd-rel-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Segoe UI', sans-serif;
}

.pd-rel-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Segoe UI', sans-serif;
}

.pd-rel-price-now {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--green);
}

.pd-rel-price-old {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pd-rel-save {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}
