/* ============================================================
   SUN TOOLS V3 — GLOBAL COMPONENTS
   ============================================================
   The disciplined baseline: buttons, inputs, breadcrumbs, notices,
   badges, dividers. Deliberately not dozens of variants — three
   button intents, one input treatment, one badge treatment.
   ============================================================ */

/* ---------- Buttons ----------
   Sharp corners kept small and consistent (--st3-radius, 5px) — no
   pill shapes anywhere in this system. */
.st3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--st3-space-2);
  padding: 12px var(--st3-space-6);
  border-radius: var(--st3-radius);
  border: 1px solid transparent;
  font-family: var(--st3-font);
  font-weight: 600;
  font-size: var(--st3-text-base);
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--st3-fast) var(--st3-ease),
              border-color var(--st3-fast) var(--st3-ease),
              color var(--st3-fast) var(--st3-ease);
}
.st3-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.st3-btn--primary {
  background: var(--st3-red);
  color: var(--st3-white);
}
.st3-btn--primary:hover,
.st3-btn--primary:focus-visible {
  background: var(--st3-red-dark);
}

.st3-btn--secondary {
  background: var(--st3-white);
  border-color: var(--st3-dark);
  color: var(--st3-dark);
}
.st3-btn--secondary:hover,
.st3-btn--secondary:focus-visible {
  background: var(--st3-dark);
  color: var(--st3-white);
}

.st3-btn--dark {
  background: var(--st3-charcoal);
  color: var(--st3-white);
}
.st3-btn--dark:hover,
.st3-btn--dark:focus-visible {
  background: var(--st3-dark);
}

.st3-btn--sm { padding: 8px var(--st3-space-4); font-size: var(--st3-text-sm); }
.st3-btn--full { width: 100%; }

/* ---------- Inputs / selects / textareas ---------- */
.st3-input,
.st3-select,
.st3-textarea {
  width: 100%;
  padding: 11px var(--st3-space-4);
  border: 1px solid var(--st3-border);
  border-radius: var(--st3-radius);
  background: var(--st3-white);
  font-family: var(--st3-font);
  font-size: var(--st3-text-base);
  color: var(--st3-ink);
  transition: border-color var(--st3-fast) var(--st3-ease);
}
.st3-input::placeholder,
.st3-textarea::placeholder { color: var(--st3-muted); }
.st3-input:focus,
.st3-select:focus,
.st3-textarea:focus {
  outline: none;
  border-color: var(--st3-dark);
}
.st3-textarea { resize: vertical; min-height: 120px; }
.st3-label {
  display: block;
  margin-bottom: var(--st3-space-2);
  font-size: var(--st3-text-sm);
  font-weight: 600;
  color: var(--st3-ink);
}

/* ---------- Breadcrumbs ---------- */
.st3-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--st3-space-2);
  font-size: var(--st3-text-sm);
  color: var(--st3-muted);
}
.st3-breadcrumbs a { color: var(--st3-muted); }
.st3-breadcrumbs a:hover { color: var(--st3-red); }
.st3-breadcrumbs__sep { color: var(--st3-border); }
.st3-breadcrumbs__current { color: var(--st3-ink); font-weight: 600; }

/* ---------- Notices ---------- */
.st3-notice {
  display: flex;
  align-items: center;
  gap: var(--st3-space-3);
  padding: var(--st3-space-3) var(--st3-space-4);
  background: var(--st3-soft-gray);
  border-inline-start: 3px solid var(--st3-dark);
  border-radius: var(--st3-radius-sm);
  font-size: var(--st3-text-sm);
  color: var(--st3-ink);
}
.st3-notice--error { border-inline-start-color: var(--st3-red); }

/* ---------- Badges ---------- */
.st3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--st3-radius-sm);
  font-size: var(--st3-text-xs);
  font-weight: 700;
}
.st3-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.st3-badge--in-stock { background: rgba(30,123,52,.1); color: #1E7B34; }
.st3-badge--in-stock::before { background: #1E7B34; }
.st3-badge--out-of-stock { background: rgba(226,30,43,.08); color: var(--st3-red); }
.st3-badge--out-of-stock::before { background: var(--st3-red); }

/* ---------- Dividers ---------- */
.st3-divider {
  height: 1px;
  background: var(--st3-border);
  border: none;
  margin: 0;
}
.st3-divider--accent {
  height: 3px;
  width: 48px;
  background: var(--st3-red);
  border: none;
}

/* ---------- Section heading ----------
   Used across every future content section — one heading grammar,
   not a bespoke one per section. */
.st3-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--st3-space-4);
  margin-bottom: var(--st3-space-6);
}
.st3-section-header__title {
  display: flex;
  flex-direction: column;
  gap: var(--st3-space-2);
}
.st3-section-header__eyebrow {
  font-size: var(--st3-text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--st3-red);
}
.st3-section-header__link {
  flex-shrink: 0;
  font-size: var(--st3-text-sm);
  font-weight: 600;
  color: var(--st3-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st3-section-header__link:hover { color: var(--st3-red); }

/* ---------- Generic content page banner (About, Contact) ---------- */
.st3-page-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
}
.st3-page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) {
  .st3-page-banner { aspect-ratio: 4 / 3; }
}

.st3-about-hero {
  background: var(--st3-soft-gray);
  border-bottom: 1px solid var(--st3-border);
  padding-block: var(--st3-space-9);
  text-align: center;
}
.st3-about-hero__inner { max-width: 720px; margin-inline: auto; }
.st3-about-hero__inner h1 { font-size: var(--st3-text-2xl); margin-block: var(--st3-space-3) var(--st3-space-5); }
.st3-about-hero__inner p { color: var(--st3-body); font-size: var(--st3-text-md); line-height: var(--st3-leading-loose); margin-bottom: var(--st3-space-3); }
.st3-about-hero__inner p:last-child { margin-bottom: 0; }
.st3-about-stats {
  padding-block: var(--st3-space-3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--st3-space-6);
}
.st3-about-stats .st3-trust__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline-start: var(--st3-space-4);
  border-inline-start: 2px solid var(--st3-red);
}
.st3-about-stats .st3-trust__number { font-size: var(--st3-text-xl); font-weight: 700; color: var(--st3-ink); }
.st3-about-stats .st3-trust__label { font-size: var(--st3-text-sm); color: var(--st3-body); }
@media (max-width: 768px) {
  .st3-about-stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--st3-space-5); }
}

/* ---------- Contact info panel ----------
   Deliberately not the emoji-card grid this replaced: a single
   bordered panel with an internal divider grid reads as a real
   spec/info sheet — restrained, industrial-editorial — rather than a
   generic WordPress "contact card" layout. Icons are the theme's own
   line-icon set (inc/icons.php), never emoji. */
.st3-contact-panel {
  max-width: 900px;
  margin-inline: auto;
  background: var(--st3-white);
  border: 1px solid var(--st3-border);
  border-radius: var(--st3-radius);
}
.st3-contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.st3-contact-item {
  display: flex;
  align-items: center;
  gap: var(--st3-space-4);
  padding: var(--st3-space-5) var(--st3-space-6);
  transition: background var(--st3-fast) var(--st3-ease);
}
.st3-contact-item:nth-child(-n+4) { border-block-end: 1px solid var(--st3-border); }
.st3-contact-item:nth-child(-n+4):nth-child(odd) { border-inline-end: 1px solid var(--st3-border); }
.st3-contact-item:hover { background: var(--st3-soft-gray); }
.st3-contact-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--st3-soft-gray);
  border-radius: var(--st3-radius-sm);
  color: var(--st3-red);
  transition: background var(--st3-fast) var(--st3-ease), color var(--st3-fast) var(--st3-ease);
}
.st3-contact-item:hover .st3-contact-item__icon { background: var(--st3-red); color: var(--st3-white); }
.st3-contact-item__icon svg { width: 20px; height: 20px; }
.st3-contact-item__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st3-contact-item__label { font-size: var(--st3-text-xs); font-weight: 600; color: var(--st3-muted); }
.st3-contact-item__value { font-size: var(--st3-text-md); font-weight: 700; color: var(--st3-ink); overflow-wrap: break-word; }
@media (max-width: 600px) {
  .st3-contact-list { grid-template-columns: 1fr; }
  .st3-contact-item { border-inline-end: none !important; border-block-end: 1px solid var(--st3-border); }
  .st3-contact-item:last-child { border-block-end: none; }
}
