@import './tokens.css';

/**
 * Printing Point — Product Detail Page Styles
 */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--fb); background: var(--off-white); color: var(--navy); }

header {
  background: var(--navy);
  color: var(--white);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-family: var(--fd); font-size: 22px; font-weight: 700; color: #ffffff; }
.logo span { color: #ffffff; }
.header-actions a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.header-actions a:hover { color: var(--gold); }

.breadcrumb {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 12.5px;
  color: var(--grey-text);
}
.breadcrumb a { color: var(--grey-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { margin: 0 6px; color: var(--grey-light); }
.breadcrumb span.current { color: var(--navy); font-weight: 600; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}
@media(max-width: 800px) { .wrap { grid-template-columns: 1fr; gap: 32px; padding: 16px 16px 48px; } }

.gallery-main {
  background: #ffffff;
  border: 1px solid var(--grey-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 20px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; max-height: 460px; }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb-img {
  width: 64px;
  height: 64px;
  border: 1px solid var(--grey-light);
  border-radius: 4px;
  object-fit: cover;
  cursor: pointer;
  background: #fff;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb-img.active, .thumb-img:hover {
  opacity: 1;
  border-color: var(--gold);
}

.gallery-note {
  font-size: 11.5px;
  color: var(--grey-mid);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}

.cat-label {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.prod-title {
  font-family: var(--font-product-title, 'Source Sans 3', sans-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--navy);
}

.short-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 18px;
  font-weight: 400;
}

.data-pending {
  background: #f0f7ff;
  border: 1px solid #bce0fd;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #185a9d;
  margin-bottom: 22px;
  border-radius: 4px;
}

.info-section { margin-bottom: 24px; }
.info-section h3 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--grey-light);
  font-weight: 700;
}
.info-section p, .info-section li {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--grey-text);
}
.info-section ul { padding-left: 18px; }

.features-list li {
  margin-bottom: 6px;
}

.tag-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tag-badge {
  background: rgba(197, 160, 89, 0.12);
  color: #8c6820;
  border: 1px solid rgba(197, 160, 89, 0.3);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--grey-light);
  font-size: 13px;
}
.spec-row span:first-child { color: var(--grey-text); width: 45%; }
.spec-row span:last-child { font-weight: 600; color: var(--navy); width: 55%; text-align: right; }

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.btn {
  padding: 14px 28px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }

.related {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.related h3 {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-light);
  font-weight: 700;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.rel-card {
  background: #fff;
  border: 1px solid var(--grey-light);
  border-radius: 6px;
  padding: 12px;
  text-decoration: none;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.rel-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.rel-card-img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
  background: #fafafa;
  border-radius: 4px;
}
.rel-card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}
.rel-card-moq {
  font-size: 11.5px;
  color: var(--grey-text);
  margin-top: auto;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--grey-light);
  padding: 12px 20px;
  border-radius: 4px;
}
.related-link:hover { border-color: var(--gold); color: var(--gold); }
