/* ===========================================================
   Product Detail Page — extends styles.css (shared design system)
=========================================================== */

.outline-button {
  border-radius: 9999px; padding: 10px 20px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #fff; color: #E01B3D; border: 2px solid #E01B3D;
  transition: transform .2s ease, background .2s ease;
}
.outline-button:hover { background: #FDF1F2; transform: translateY(-1px); }
.outline-button svg { width: 16px; height: 16px; }

.breadcrumb-bar a, .breadcrumb-bar span { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb-bar svg { width: 13px; height: 13px; }

/* ---------- Gallery ---------- */
.gallery-arrow {
  width: 34px; height: 34px; border-radius: 9999px; border: 1px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #fff; transition: background .2s ease, border-color .2s ease;
}
.gallery-arrow:hover { background: #FDF1F2; border-color: #E01B3D; color: #E01B3D; }
.gallery-arrow svg { width: 16px; height: 16px; }

.thumb {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; cursor: pointer; transition: border-color .2s ease, opacity .2s ease;
  opacity: .7;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.active { border-color: #E01B3D; opacity: 1; }
.thumb:hover { opacity: 1; }

.zoom-btn {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9999px;
  background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
}
.zoom-btn svg { width: 15px; height: 15px; color: #111; }

/* ---------- Tabs ---------- */
.product-tabs { position: sticky; top: 65px; z-index: 40; background: #fff; border-bottom: 1px solid #eee; }
@media (min-width: 1024px) { .product-tabs { top: 73px; } }
.tab-scroll { overflow-x: auto; scrollbar-width: none; }
.tab-scroll::-webkit-scrollbar { display: none; }
.tab-link {
  display: flex; align-items: center; gap: 8px; padding: 16px 18px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: #6b7280; border-bottom: 2px solid transparent;
  cursor: pointer; transition: color .2s ease, border-color .2s ease;
}
.tab-link svg { width: 16px; height: 16px; }
.tab-link:hover { color: #E01B3D; }
.tab-link.active { color: #E01B3D; border-color: #E01B3D; }

/* ---------- Spec table ---------- */
.spec-table div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 12px 16px; font-size: 13px; }
.spec-table div:nth-child(odd) { background: #fafafa; }
.spec-table .spec-label { color: #6b7280; font-weight: 500; }
.spec-table .spec-value { color: #111827; font-weight: 600; }

/* ---------- Manufacturing flow ---------- */
.flow-track { display: flex; align-items: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.flow-step { flex: 0 0 128px; text-align: center; }
.flow-step .flow-img-wrap { position: relative; width: 100%; height: 88px; border-radius: 10px; overflow: hidden; }
.flow-step .flow-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-step .flow-badge {
  position: absolute; top: -6px; left: -6px; width: 22px; height: 22px; border-radius: 9999px;
  background: #E01B3D; color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.flow-step p.flow-title { font-size: 12px; font-weight: 700; margin-top: 10px; }
.flow-step p.flow-desc { font-size: 10px; color: #9ca3af; margin-top: 2px; line-height: 1.4; }
.flow-arrow { flex: 0 0 auto; align-self: center; color: #d1d5db; margin-top: 34px; }
.flow-arrow svg { width: 16px; height: 16px; }

/* ---------- Related products slider ---------- */
.related-track { display: flex; transition: transform .45s ease-out; }
.related-card { flex: 0 0 auto; padding: 0 10px; }
.related-nav-btn {
  width: 36px; height: 36px; border-radius: 9999px; border: 1.5px solid #E01B3D; color: #E01B3D;
  background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .2s ease;
}
.related-nav-btn:hover { background: #FDF1F2; }
.related-nav-btn svg { width: 16px; height: 16px; }

/* ---------- Form ---------- */
.form-input, .form-select, .form-textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px 14px;
  font-size: 13px; background: #fff; outline: none; transition: border-color .2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #E01B3D; }
.form-file {
  width: 100%; border: 1px dashed #d1d5db; border-radius: 8px; padding: 10px 14px;
  font-size: 12px; background: #fff; cursor: pointer;
}

/* ---------- Subsection heading ---------- */
.subsection-heading { color: #E01B3D; font-weight: 700; font-size: 18px; }

@media (max-width: 640px) {
  .flow-step { flex-basis: 108px; }
}
