/* ==========================================================================
   VectorDose — Single product + product category archive
   Loaded only on single-product.php and taxonomy-product_cat.php.
   Shared theme classes (.vd-container, .vd-btn, .vd-btn--primary,
   .vd-btn--secondary, .vd-card) come from style.css; everything below is
   namespaced .vdsp-* to avoid collisions with other theme parts.
   ========================================================================== */

/* ---------- Single product layout ---------- */

.vdsp-wrap { padding: 42px 0 94px; }

/* Back button: "← Back to logos" */
.vdsp-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 10px 0;
	color: #656565;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 24px;
	text-decoration: none;
}
.vdsp-back-btn svg { width: 17px; height: 17px; }
.vdsp-back-btn:hover { color: #111111; }

.vdsp-title {
	margin: 0 0 17px;
	font-size: clamp(38px, 5vw, 62px);
	line-height: 1;
	letter-spacing: -.055em;
	font-weight: 800;
	color: #111111;
}

.vdsp-intro {
	color: #656565;
	font-size: 16px;
	margin: 0 0 30px;
}

.vdsp-col--info { padding-top: 10px; }

.vdsp-main {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
	gap: 52px;
	align-items: start;
}

/* ---------- Preview panel ---------- */

.vdsp-preview-stage {
  aspect-ratio: 1.18;
  display: grid;
  place-items: center;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-radius);
  padding: 70px;
  overflow: hidden;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #efefef 25%, transparent 25%),
    linear-gradient(-45deg, #efefef 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #efefef 75%),
    linear-gradient(-45deg, transparent 75%, #efefef 75%);
  background-size: 22px 22px;
  background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.vdsp-preview-stage.is-white { background: #fff; background-image: none; }
.vdsp-preview-stage.is-black { background: #080808; background-image: none; }
.vdsp-preview-stage img { width: 78%; height: 78%; object-fit: contain; }

.vdsp-preview-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 5px;
  background: var(--vd-gray);
  border-radius: var(--vd-radius);
  width: max-content;
  max-width: 100%;
}
.vdsp-preview-control {
  border: 0;
  background: transparent;
  border-radius: var(--vd-radius);
  padding: 9px 12px;
  color: var(--vd-muted);
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.vdsp-preview-control:hover { color: var(--vd-ink); }
.vdsp-preview-control.is-active {
  background: #fff;
  color: var(--vd-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}
.vdsp-preview-control:focus-visible { outline: 2px solid var(--vd-ink); outline-offset: 2px; }

/* ---------- Brand colors ---------- */

.vdsp-brand-colors { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--vd-line); }
.vdsp-brand-colors h2 { font-size: 17px; margin: 0 0 3px; }
.vdsp-brand-colors-hint { margin: 0 0 14px; color: var(--vd-muted); font-size: 12px; }
.vdsp-brand-colors-list { display: grid; gap: 8px; }

.vdsp-brand-color {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-radius);
  background: #fff;
  color: var(--vd-ink);
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.vdsp-brand-color:hover { background: var(--vd-gray); border-color: var(--vd-ink); }
.vdsp-brand-color:focus-visible { outline: 2px solid var(--vd-ink); outline-offset: 2px; }
.vdsp-brand-color::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 5;
  right: 8px;
  top: calc(100% + 6px);
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--vd-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .15s, transform .15s;
}
.vdsp-brand-color:hover::after,
.vdsp-brand-color:focus-visible::after { opacity: 1; transform: translateY(0); }
.vdsp-brand-color-swatch {
  width: 34px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(17, 17, 17, .15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.vdsp-brand-color-code { font-size: 13px; font-weight: 800; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.vdsp-brand-color-copy-icon { color: var(--vd-muted); flex: 0 0 auto; }

/* ---------- Download actions + ad (demo-spec buttons) ---------- */

.vdsp-download-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 30px 0 12px; }

.vdsp-dl-btn {
	min-height: 52px;
	border-radius: 8px;
	padding: 13px 16px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 9px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s, border-color .18s, color .18s;
}
.vdsp-dl-btn--primary { background: #111; color: #fff; border: 1px solid #111; }
.vdsp-dl-btn--primary:hover { background: #292929; border-color: #292929; color: #fff; }
.vdsp-dl-btn--secondary { background: #f5f5f5; color: #111; border: 1px solid #e8e8e8; }
.vdsp-dl-btn--secondary:hover { background: #e8e8e8; border-color: #e8e8e8; color: #111; }
.vdsp-dl-btn--ghost { grid-column: 1 / -1; background: #ffffff; border: 1px solid #dedede; color: #111; }
.vdsp-dl-btn--ghost:hover { background: #e8e8e8; border-color: #e8e8e8; color: #111; }

.vdsp-action-note { min-height: 24px; margin: 0; color: #176b3a; font-size: 13px; font-weight: 700; }
.vdsp-action-note.is-error { color: #a52a2a; }

.vdsp-ad { margin-top: 30px; }

/* ---------- Logo summary (right column) ---------- */

.vdsp-summary { border-top: 1px solid var(--vd-line); padding-top: 20px; margin-top: 30px; }
.vdsp-summary h2 { font-size: 17px; margin: 0 0 14px; }
.vdsp-summary-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--vd-line);
}
.vdsp-summary-row > span { color: var(--vd-muted); white-space: nowrap; font-size: 14px; }
.vdsp-summary-row strong { font-weight: 700; min-width: 0; font-size: 14px; }
.vdsp-summary-category {
  justify-self: start;
  color: var(--vd-ink);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.vdsp-summary-category:hover { color: var(--vd-muted); }
.vdsp-summary-official {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.vdsp-summary-official:hover { color: var(--vd-muted); }
.vdsp-summary-official svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- Article ---------- */

.vdsp-article { margin: 78px 0 0; padding-top: 54px; border-top: 1px solid var(--vd-line); }
.vdsp-article h2 {
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 0 0 24px;
  font-weight: 800;
  color: #111111;
}
.vdsp-article h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.03em;
  margin: 32px 0 16px;
  font-weight: 800;
  color: #111111;
}
.vdsp-article h4 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 28px 0 14px;
  font-weight: 800;
  color: #111111;
}
.vdsp-article h5 {
  font-size: 17px;
  line-height: 1.4;
  margin: 24px 0 12px;
  font-weight: 800;
  color: #111111;
}
.vdsp-article h6 {
  font-size: 15px;
  line-height: 1.4;
  margin: 20px 0 10px;
  font-weight: 800;
  color: #656565;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vdsp-article p { color: var(--vd-muted); font-size: 17px; line-height: 1.8; margin: 0 0 18px; }
.vdsp-article p:last-child { margin-bottom: 0; }
.vdsp-article a { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.vdsp-article ul, .vdsp-article ol { color: var(--vd-muted); font-size: 17px; line-height: 1.8; margin: 0 0 18px; padding-left: 24px; }
.vdsp-article li { margin-bottom: 8px; }
.vdsp-article li:last-child { margin-bottom: 0; }
.vdsp-article strong { color: #111111; }

/* ---------- Similar logos + shared card grid ---------- */

.vdsp-similar { margin-top: 84px; }
.vdsp-similar h2 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 22px; font-weight: 800; }
.vdsp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------- Category archive ---------- */

.vdsp-archive-wrap { padding: 42px 0 94px; }
.vdsp-archive-head { margin-bottom: 30px; }
.vdsp-archive-title {
  margin: 0 0 8px;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 800;
}
.vdsp-archive-meta { margin: 0; color: var(--vd-muted); font-weight: 700; font-size: 15px; }
.vdsp-archive-description { margin-top: 16px; max-width: 760px; color: var(--vd-muted); font-size: 16px; line-height: 1.7; }

/* Minimal numbered pagination (wraps the_posts_pagination output). */
.vdsp-pagination { margin-top: 48px; display: flex; justify-content: center; }
.vdsp-pagination .pagination { display: flex; align-items: center; gap: 6px; }
.vdsp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--vd-line);
  border-radius: var(--vd-radius);
  background: #fff;
  color: var(--vd-ink);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.vdsp-pagination .page-numbers:hover { background: var(--vd-gray); border-color: var(--vd-ink); }
.vdsp-pagination .page-numbers.current { background: var(--vd-ink); border-color: var(--vd-ink); color: #fff; cursor: default; }
.vdsp-pagination .page-numbers.dots { border: 0; cursor: default; }
.vdsp-pagination .page-numbers.dots:hover { background: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .vdsp-main { grid-template-columns: 1fr; gap: 30px; }
  .vdsp-col--info { padding-top: 0; }
  .vdsp-wrap { padding-top: 28px; }
  .vdsp-title { font-size: 43px; }
  .vdsp-preview-stage { padding: 38px; aspect-ratio: 1; }
  .vdsp-preview-controls { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .vdsp-preview-control { font-size: 12px; padding: 9px 5px; }
  .vdsp-download-actions { grid-template-columns: 1fr; }
  .vdsp-dl-btn--ghost { grid-column: auto; }
  .vdsp-brand-colors { margin-top: 22px; padding-top: 20px; }
  .vdsp-brand-color { grid-template-columns: 34px 86px 1fr; }
}

@media (max-width: 1024px) {
  .vdsp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .vdsp-archive-wrap { padding-top: 28px; }
  .vdsp-summary-row { grid-template-columns: 140px minmax(0, 1fr); }
  .vdsp-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .vdsp-article { margin-top: 58px; padding-top: 40px; }
  .vdsp-article h2 { font-size: 29px; }
  .vdsp-article h3 { font-size: 21px; margin-top: 26px; }
  .vdsp-article h4 { font-size: 18px; margin-top: 22px; }
  .vdsp-article p { font-size: 16px; line-height: 1.75; }
  .vdsp-article ul, .vdsp-article ol { font-size: 16px; line-height: 1.75; }
  .vdsp-similar { margin-top: 62px; }
}

/* ============ Browse page (shop archive) — demo parity ============ */
.vd-browse-wrap { padding-top: 48px; padding-bottom: 96px; }
.vd-browse-head { padding: 16px 0 30px; }
.vd-browse-head h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1; letter-spacing: -.055em; margin: 0 0 17px; color: #111; }
.vd-browse-head > p { color: #656565; font-size: 17px; margin: 0 0 28px; }
.vd-browse-search { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid #dedede; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 7px; max-width: 720px; }
.vd-browse-search:focus-within { border-color: #111; }
.vd-browse-search svg { flex: 0 0 auto; width: 20px; height: 20px; margin-left: 11px; color: #656565; }
.vd-browse-search input[type="search"] { width: 100%; border: 0; outline: 0; background: transparent; color: #111; padding: 13px 11px; font-size: 16px; font-family: inherit; }
.vd-browse-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.vd-browse-filters .vd-pill { display: inline-flex; align-items: center; padding: 8px 16px; background: #f5f5f5; border: 1px solid #e2e2e2; border-radius: 999px; color: #111; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .18s, border-color .18s; }
.vd-browse-filters .vd-pill:hover { background: #111; border-color: #111; color: #fff; }
.vd-browse-meta { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; padding-top: 8px; border-top: 1px solid #eee; }
.vd-browse-meta strong { font-size: 18px; font-weight: 800; color: #111; }
.vd-browse-meta span { font-size: 14px; color: #656565; }
.vd-browse-empty { padding: 40px 0; color: #656565; font-size: 17px; }

@media (max-width: 768px) {
  .vd-browse-wrap { padding-top: 28px; }
  .vd-browse-head h1 { font-size: 38px; }
}
