/* Turbo Luso — shared layout for detail pages that show one item with a
   photo gallery + summary card: vehicle pages (/stock/*) and product pages
   (/produtos/*). Requires site.css to be loaded first (uses its tokens). */

.hero { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,.72fr); align-items: stretch; gap: 24px; margin-bottom: 24px; }
.gallery, .summary, .section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14,42,29,.72), rgba(10,31,22,.52));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.gallery { display: flex; flex-direction: column; }
.main-photo {
  flex: 1;
  min-height: 438px;
  position: relative;
  display: grid;
  place-items: center;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,255,114,.20), transparent 9rem),
    linear-gradient(135deg, rgba(201,255,114,.08), rgba(142,231,170,.035));
  color: rgba(244,247,245,.72);
}
.main-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center center; display: block; }
.photo-label { padding: 8px 12px; border: 1px solid var(--line2); border-radius: 999px; background: rgba(0,0,0,.28); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.thumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 14px; background: rgba(0,0,0,.10); overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.thumb { flex: 0 0 auto; width: 132px; aspect-ratio: 16 / 10; border: 2px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); display: grid; place-items: center; position: relative; color: #789180; font-weight: 900; font-size: .76rem; overflow: hidden; padding: 0; cursor: pointer; scroll-snap-align: start; transition: border-color .15s, opacity .15s; opacity: .68; }
.thumb:hover { opacity: 1; border-color: var(--line2); }
.thumb.active { opacity: 1; border-color: var(--accent); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; pointer-events: none; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: rgba(4,18,12,.55); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); transition: background .15s, border-color .15s; }
.gallery-nav:hover { background: rgba(4,18,12,.8); border-color: var(--line2); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }

.lightbox-backdrop { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; padding: 24px; background: rgba(0,0,0,.86); backdrop-filter: blur(6px); }
.lightbox-backdrop.show { display: grid; }
.lightbox-backdrop img { max-width: min(94vw, 1200px); max-height: 90vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 24px 90px rgba(0,0,0,.6); }
.lightbox-close { position: fixed; top: 20px; right: 24px; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; color: var(--text); background: rgba(255,255,255,.08); font-size: 1.5rem; line-height: 1; }
.lightbox-close:hover { border-color: var(--line2); background: rgba(255,255,255,.14); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text); font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox-nav:hover { border-color: var(--line2); background: rgba(255,255,255,.14); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
@media (max-width: 620px) { .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; } }

.summary { padding: 28px; }
.tag { display: inline-flex; width: fit-content; padding: 7px 11px; border: 1px solid var(--line2); border-radius: 999px; color: var(--accent); background: rgba(201,255,114,.06); font-weight: 850; font-size: .77rem; letter-spacing: .08em; text-transform: uppercase; }
.tag.soon { color: #092016; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: rgba(201,255,114,.45); }
.tag.sold { color: #ffd9d5; border-color: rgba(255,155,145,.32); background: rgba(75,18,18,.72); }
.summary h1 { max-width: 820px; margin: 16px 0 14px; font-size: clamp(2.45rem, 6vw, 5.1rem); line-height: .91; letter-spacing: -.085em; }
.summary .subtitle { color: var(--muted); margin: 0 0 24px; line-height: 1.65; }
.price { font-size: clamp(2.25rem, 5.8vw, 4.2rem); font-weight: 950; letter-spacing: -.08em; line-height: 1; margin: 0 0 6px; }
.price-note { color: #87988e; font-size: .82rem; margin-bottom: 20px; }
.summary-actions { display: grid; gap: 10px; margin: 22px 0; }
.summary-actions .btn { width: 100%; min-height: 56px; }
.small-note { padding: 13px 14px; border: 1px solid rgba(255,216,136,.22); border-radius: var(--radius-sm); color: #e8d7a6; background: rgba(255,216,136,.07); font-size: .84rem; line-height: 1.5; }

.section { padding: 28px; margin-top: 22px; }
.section h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.055em; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.spec { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; background: rgba(255,255,255,.035); }
.spec span { display: block; color: #87988e; font-size: .76rem; font-weight: 800; margin-bottom: 6px; }
.spec strong { display: block; color: var(--text); font-size: 1rem; }
.copy { color: #dce8e0; line-height: 1.75; }
.copy ul { padding-left: 20px; }
.copy li { margin: 8px 0; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .main-photo, .main-photo > img { min-height: 320px; }
}
@media (max-width: 680px) {
  .thumbs, .spec-grid { grid-template-columns: 1fr; }
  .summary h1 { font-size: 2.45rem; }
}
