/* ============================================================
   Burgtec Product Page Widgets — Shared Styles  v2.1
   ============================================================ */

: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 main */
.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);
  pointer-events: none;
  font-family: 'Fonetika', Arial, sans-serif;
}

/* ── Thumbnail strip (scrollable, paginated) ─────────────── */
.btc-thumbs-outer {
  margin-top: 12px;
  position: relative;       /* anchor for absolute arrows */
  overflow: hidden;         /* clip the sliding strip */
}

.btc-thumbs {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow: visible;         /* outer clips; strip slides freely */
  position: relative;
  will-change: transform;
}

/* Each thumb is sized to show exactly 4 per page */
.btc-thumb {
  flex: 0 0 calc(25% - 8px);  /* 4 per row with gaps */
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--btc-surface-softer);
  transition: border-color .18s ease, opacity .18s ease;
  opacity: .62;
}
.btc-thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}
.btc-thumb.active,
.btc-thumb:hover {
  border-color: var(--btc-green);
  opacity: 1;
}


/* ── Thumbnail edge-scroll arrows ───────────────────────────── */
.btc-thumb-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52px;
  height: 100%;             /* stay within thumb strip height only */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  color: var(--btc-text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10;
  user-select: none;
}
.btc-thumb-arrow-left  { left: 0;  background: linear-gradient(to right, rgba(255,255,255,.92) 60%, transparent); }
.btc-thumb-arrow-right { right: 0; background: linear-gradient(to left,  rgba(255,255,255,.92) 60%, transparent); }
.btc-thumb-arrow.btc-arrow-visible {
  opacity: 1;
  pointer-events: auto;
}
.btc-thumb-arrow:hover { color: var(--btc-green); }

/* ── Dot pagination ──────────────────────────────────────── */
.btc-thumb-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.btc-thumb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--btc-line-strong);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.btc-thumb-dot.active {
  background: var(--btc-green);
  transform: scale(1.25);
}

/* ── Lightbox ────────────────────────────────────────────── */
.btc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,8,.88);
  z-index: 999998;
  align-items: center;
  justify-content: center;
}
.btc-lightbox.open { display: flex; }
.btc-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--btc-radius-lg);
  object-fit: contain;
  box-shadow: 0 24px 72px rgba(0,0,0,.5);
}
.btc-lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .15s;
}
.btc-lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ── View in 3D button — defensive override so themes can't clobber it ── */
.btc-3d-trigger.btc-btn-primary {
  background: #16302a !important;
  background-color: #16302a !important;
  color: #fff !important;
  border-color: #16302a !important;
  border-radius: 7px !important;
  outline: none !important;
}
.btc-3d-trigger.btc-btn-primary:hover {
  background: #1d4238 !important;
  background-color: #1d4238 !important;
  border-color: #1d4238 !important;
}

/* ── 3D iframe overlay ───────────────────────────────────── */
.btc-3d-container {
  position: fixed !important;
  left: 50% !important;
  bottom: -100vh !important;
  transform: translateX(-50%) !important;
  width: 78vw !important;
  height: calc(100vh - 200px) !important;
  max-width: 1200px !important;
  border: none !important;
  z-index: 999999 !important;
  background: #fff !important;
  box-shadow: 0 0 50px rgba(0,0,0,.5) !important;
  border-radius: 10px 10px 0 0 !important;
  overflow: hidden !important;
  transition: bottom .5s ease-in-out !important;
}
.btc-3d-container.active { bottom: 0 !important; }
.btc-3d-close {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: #16302a !important;
  background-color: #16302a !important;
  color: #fff !important;
  border: none !important;
  border-color: transparent !important;
  padding: 8px 18px !important;
  cursor: pointer !important;
  border-radius: 7px !important;
  font-family: 'Fonetika', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  z-index: 1000000 !important;
  line-height: 1 !important;
  outline: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  text-decoration: none !important;
}
.btc-3d-close:hover {
  background: #1d4238 !important;
  background-color: #1d4238 !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ── Info panel ──────────────────────────────────────────── */
.btc-lead {
  font-size: 17px;
  margin: 0 0 14px;
  color: #3a3a37;
}
.btc-body-text {
  font-size: 15px;
  margin: 0 0 18px;
  color: var(--btc-muted);
}

.btc-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}
.btc-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--btc-muted);
  letter-spacing: .04em;
}
.btc-chip-divider { color: var(--btc-line-strong); }

.btc-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btc-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--btc-line);
  padding-top: 22px;
}
.btc-meta-item {
  font-family: 'Fonetika', Arial, sans-serif;
}
.btc-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--btc-muted);
  margin-bottom: 4px;
}
.btc-meta-value {
  font-size: 14px;
  color: var(--btc-text);
  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 {
  background: var(--btc-surface-softer);
  border-radius: var(--btc-radius-md);
  padding: 22px 20px;
  border: 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 + Help band ────────────────────────────── */
/* ── Downloads section: full-bleed band with centred inner ── */
.elementor-widget-btc_downloads {
  /* Break out of Elementor column constraints */
  width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}
.elementor-widget-btc_downloads > .elementor-widget-container {
  padding: 0 !important;
}
.btc-utility-band {
  width: 100%;
  border-top: 1px solid var(--btc-line);
  border-bottom: 1px solid var(--btc-line);
  position: relative;
  background-color: #faf9f7;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
/* Faint white overlay */
.btc-utility-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250,249,247,0.84);
  pointer-events: none;
  z-index: 0;
}
/* Re-contain content to site max-width */
.btc-utility-inner {
  position: relative;
  z-index: 1;
  max-width: var(--btc-cw, 1240px);
  margin: 0 auto;
  padding: 58px 24px;
}
.btc-utility-inner {
  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  { grid-template-columns: 1fr 1fr; }
  .btc-best-grid  { grid-template-columns: 1fr 1fr; }
  .btc-related-grid,
  .btc-download-grid,
  .btc-meta-grid  { 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  { grid-template-columns: 1fr; }
  .btc-btn        { width: 100%; }
  .btc-hero-actions,
  .btc-final-actions,
  .btc-help-actions { width: 100%; }
  .btc-thumb      { flex: 0 0 calc(50% - 5px); } /* 2 per row on mobile */
}
