/* ============================================================
   Burgtec Product Page Widgets — Shared Styles
   ============================================================ */

:root {
  --btc-bg: #ffffff;
  --btc-surface: #ffffff;
  --btc-surface-soft: #f5f5f2;
  --btc-surface-softer: #faf9f7;
  --btc-line: #e6e3de;
  --btc-line-strong: #d8d3cc;
  --btc-text: #1d1d1b;
  --btc-muted: #6f716a;
  --btc-green: #16302a;
  --btc-radius-btn: 7px;
  --btc-radius-md: 16px;
  --btc-radius-lg: 22px;
  --btc-shadow: 0 14px 34px rgba(18,18,15,.05);
}

/* ── Shared base ─────────────────────────────────────────── */
.btc-widget {
  font-family: 'Fonetika', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--btc-text);
  line-height: 1.45;
}

.btc-eyebrow {
  color: var(--btc-muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.btc-section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.btc-section-note {
  font-size: 15px;
  color: var(--btc-muted);
}

.btc-btn {
  appearance: none;
  border: 1px solid var(--btc-line-strong);
  background: #fff;
  color: var(--btc-text);
  border-radius: var(--btc-radius-btn);
  min-height: 36px;
  height: 36px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .01em;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}
.btc-btn:hover { transform: translateY(-1px); border-color: #c7c1b8; }
.btc-btn-primary { background: var(--btc-green); color: #fff; border-color: var(--btc-green); }
.btc-btn-primary:hover { background: #1d4238; border-color: #1d4238; }
.btc-btn-soft { background: var(--btc-surface-soft); color: #7b7b78; border-color: #f0efeb; }

h1.btc-h1, .btc-widget h1 {
  margin: 0 0 16px;
  font-size: clamp(42px,5vw,64px);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 600;
}
h2.btc-h2, .btc-widget h2 {
  margin: 0 0 14px;
  font-size: clamp(28px,3vw,40px);
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 600;
}
h3.btc-h3, .btc-widget h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
  font-weight: 600;
}

/* ── 1. Breadcrumbs ──────────────────────────────────────── */
.btc-crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 26px 0 18px;
  color: var(--btc-muted);
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btc-crumbs a { color: var(--btc-muted); text-decoration: none; }
.btc-crumbs a:hover { color: var(--btc-text); }
.btc-crumbs-sep { color: #bbb6af; }

/* ── 2. Hero / Gallery ───────────────────────────────────── */
.btc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 46px;
  padding: 10px 0 56px;
  align-items: start;
}

/* Gallery */
.btc-gallery { position: relative; }
.btc-gallery-main {
  position: relative;
  border-radius: var(--btc-radius-lg);
  overflow: hidden;
  background: var(--btc-surface-softer);
  box-shadow: var(--btc-shadow);
  border: 1px solid var(--btc-line);
  cursor: pointer;
}
.btc-gallery-main img {
  width: 100%;
  aspect-ratio: 1.18/1;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.btc-gallery-main:hover img { transform: scale(1.01); }
.btc-gallery-zoom-hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(222,217,209,.95);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--btc-muted);
  font-family: 'Fonetika', Arial, sans-serif;
  pointer-events: none;
}

.btc-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.btc-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--btc-line);
  background: var(--btc-surface-softer);
  cursor: pointer;
  transition: border-color .18s;
}
.btc-thumb:hover, .btc-thumb.active { border-color: var(--btc-green); }
.btc-thumb img {
  width: 100%;
  aspect-ratio: 1.1/1;
  object-fit: cover;
  display: block;
}

/* Lightbox Modal */
.btc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.88);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.btc-lightbox.open { display: flex; }
.btc-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.btc-lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  padding: 4px 10px;
  opacity: .75;
  font-family: Arial, sans-serif;
}
.btc-lightbox-close:hover { opacity: 1; }

/* Hero Info Panel */
.btc-hero-info {}
.btc-lead {
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 18px;
  color: #343530;
  max-width: 52ch;
  margin: 0 0 14px;
}
.btc-body-text {
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 15px;
  color: var(--btc-muted);
  margin: 0 0 14px;
}
.btc-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 600;
}
.btc-chip { color: var(--btc-text); }
.btc-chip-divider { color: #8e8b84; font-weight: 400; }

.btc-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.btc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--btc-line);
  margin-top: 18px;
}
.btc-meta-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--btc-line);
}
.btc-meta-label {
  display: block;
  color: var(--btc-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 11px;
  margin-bottom: 6px;
}
.btc-meta-value {
  font-family: 'Fonetika', Arial, sans-serif;
  font-size: 15px;
  color: var(--btc-text);
  font-weight: 600;
  line-height: 1.4;
}

/* ── 3. Specifications ───────────────────────────────────── */
.btc-specs-section {
  padding: 58px 0;
  border-top: 1px solid var(--btc-line);
}
.btc-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.btc-spec-item {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--btc-line);
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-spec-item p {
  margin: 0;
  color: var(--btc-muted);
  font-size: 15px;
}

/* ── 4. Downloads / Utility Band ─────────────────────────── */
/* Widget, its Elementor wrapper, and inner div are all transparent
   so the background set on the Elementor Section/Container shows through */
.elementor-widget-btc_downloads,
.elementor-widget-btc_downloads > .elementor-widget-container,
.btc-utility-band {
  background: transparent !important;
  border-top: 1px solid var(--btc-line);
  border-bottom: 1px solid var(--btc-line);
}
.btc-utility-inner {
  padding: 58px 0;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr);
  gap: 36px;
  align-items: center;
}
.btc-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  align-items: start;
}
.btc-download-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--btc-line);
  border-radius: var(--btc-radius-md);
  padding: 18px;
  min-height: 220px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  box-shadow: 0 8px 22px rgba(24,24,18,.04);
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-download-card-top {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}
.btc-download-meta {
  color: var(--btc-muted);
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: 11px;
  margin-bottom: 8px;
}
.btc-download-icon-box {
  width: 132px;
  height: 132px;
  border-radius: 12px;
  background: #f3f3f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.btc-download-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Help panel */
.btc-help-panel {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--btc-line);
  border-radius: var(--btc-radius-lg);
  padding: 28px;
  box-shadow: var(--btc-shadow);
  font-family: 'Fonetika', Arial, sans-serif;
  align-self: center;
}
.btc-quote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 2px solid #c9c1b6;
  background: var(--btc-surface-softer);
  color: #3d3d38;
  font-style: italic;
  font-size: 16px;
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-help-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── 5. Best For ─────────────────────────────────────────── */
.btc-best-section {
  padding: 58px 0;
  border-top: 1px solid var(--btc-line);
}
.btc-best-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.btc-best-card {
  background: var(--btc-surface-softer);
  border-radius: var(--btc-radius-md);
  padding: 22px 20px;
  border: 1px solid var(--btc-line);
  min-height: 188px;
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-best-card p {
  margin: 0;
  color: var(--btc-muted);
  font-size: 15px;
}

/* ── 6. Related Content ──────────────────────────────────── */
.btc-related-section {
  padding: 58px 0;
  border-top: 1px solid var(--btc-line);
}
.btc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.btc-related-image {
  border-radius: var(--btc-radius-md);
  overflow: hidden;
  border: 1px solid var(--btc-line);
  margin-bottom: 16px;
  background: var(--btc-surface-softer);
}
.btc-related-image img {
  width: 100%;
  aspect-ratio: 1.24/1;
  object-fit: cover;
  display: block;
}
.btc-related-card {
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-related-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
  font-weight: 600;
}
.btc-related-card p {
  margin: 0;
  color: var(--btc-muted);
  font-size: 15px;
}
.btc-related-card a { text-decoration: none; color: inherit; }

/* ── 7. Final CTA ────────────────────────────────────────── */
.btc-final-cta {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 38px 0 72px;
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-final-cta p {
  margin: 0 0 14px;
  color: var(--btc-muted);
  font-size: 15px;
}
.btc-final-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .btc-hero,
  .btc-section-head,
  .btc-utility-inner,
  .btc-final-cta { grid-template-columns: 1fr; }
  .btc-spec-grid,
  .btc-best-grid,
  .btc-related-grid,
  .btc-download-grid,
  .btc-meta-grid,
  .btc-thumbs { grid-template-columns: 1fr 1fr; }
  .btc-final-actions { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .btc-hero,
  .btc-spec-grid,
  .btc-best-grid,
  .btc-related-grid,
  .btc-download-grid,
  .btc-meta-grid,
  .btc-thumbs { grid-template-columns: 1fr; }
  .btc-btn { width: 100%; }
  .btc-hero-actions,
  .btc-final-actions,
  .btc-help-actions { width: 100%; }
}
