@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #0f172a;
  --muted: #8a94a6;
  --surface: #1b1f27;
  --surface-2: #242a34;
  --surface-3: #2f3641;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --border: rgba(15, 23, 42, 0.12);
  --gold: #d6a64b;
  --gold-strong: #c38e2f;
  --accent: #1f2937;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.12);
  --max-width: 1200px;
}

body {
  font-family: 'Manrope', sans-serif;
  background: linear-gradient(180deg, #0f1116 0%, #f5f6fa 45%, #eef1f6 100%);
  color: var(--ink);
}

main {
  min-height: calc(100vh - 160px);
}

.storefront--profile {
  width: 100%;
  margin: 0 auto;
}

.cover {
  width: 100%;
}

.cover-media {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #101317;
}

.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  display: block;
}

.cover-media img.is-lq {
  filter: blur(12px) saturate(0.6);
  transform: scale(1.05);
}

.cover-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #f5e7c2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 25px,
      rgba(255, 255, 255, 0.04) 25px,
      rgba(255, 255, 255, 0.04) 50px
    ),
    radial-gradient(circle at top, #222833, #0f1116 75%);
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 22, 0.2) 0%, rgba(15, 17, 22, 0.75) 100%);
}

.profile-bar {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding: 0 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
}

.profile-left {
  background: var(--panel);
  border-radius: 24px;
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-logo {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  background: #fff4da;
  border: 2px solid #f4d796;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.profile-initial {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-strong);
}

.profile-text h1 {
  margin: 0 0 0.35rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.profile-eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.7rem;
  color: var(--muted);
}

.profile-meta {
  margin: 0 0 0.8rem;
  color: #475569;
  font-size: 0.95rem;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.stat-pill {
  background: #fff9ea;
  border: 1px solid #f2d89a;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  display: grid;
  grid-auto-flow: column;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  color: #6b7280;
}

.stat-value {
  font-weight: 700;
  color: #1f2937;
}

.stat-sub {
  color: #6b7280;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--gold);
  color: #1b1f27;
}

.btn-secondary {
  background: var(--surface-2);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.tabs {
  margin-top: 2rem;
}

.tabs input[type="radio"] {
  display: none;
}

.tab-list {
  display: flex;
  gap: 0.6rem;
  padding: 0.6rem;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab {
  flex: 1;
  text-align: center;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  color: #cbd5f5;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#tab-vehicles:checked ~ .tab-list label[for="tab-vehicles"],
#tab-reviews:checked ~ .tab-list label[for="tab-reviews"],
#tab-about:checked ~ .tab-list label[for="tab-about"],
#tab-archive:checked ~ .tab-list label[for="tab-archive"] {
  background: var(--gold);
  color: #1b1f27;
}

.tab-panels {
  margin-top: 2rem;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s ease;
}

#tab-vehicles:checked ~ .tab-panels .tab-panel--vehicles,
#tab-reviews:checked ~ .tab-panels .tab-panel--reviews,
#tab-about:checked ~ .tab-panels .tab-panel--about,
#tab-archive:checked ~ .tab-panels .tab-panel--archive {
  display: block;
}

.panel-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-family: 'Cinzel', serif;
}

.panel-header p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.panel {
  margin-top: 1.5rem;
}

.panel.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.panel-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.rating-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-strong);
}

.rating-stars {
  display: flex;
  gap: 4px;
  font-size: 1.4rem;
}

.rating-stars .star {
  color: #cbd5f5;
}

.rating-stars .star--filled {
  color: var(--gold);
}

.rating-meta {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.rating-list {
  display: grid;
  gap: 1rem;
}

.rating-item {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.rating-item:first-child {
  border-top: none;
  padding-top: 0;
}

.rating-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.rating-item-stars {
  color: var(--gold);
  font-size: 1.2rem;
}

.rating-item-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.rating-item-review {
  margin: 0;
  color: #475569;
  white-space: pre-line;
}

.rating-form {
  display: grid;
  gap: 1rem;
}

.rating-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  resize: vertical;
}

.star-selector {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 6px;
}

.star-selector input[type="radio"] {
  display: none;
}

.star-selector label {
  font-size: 1.8rem;
  cursor: pointer;
  color: #cbd5f5;
  transition: color 0.2s ease;
}

.star-selector label:hover,
.star-selector label:hover ~ label {
  color: var(--gold);
}

.star-selector input[type="radio"]:checked ~ label {
  color: var(--gold-strong);
}

.empty-state {
  color: var(--muted);
  font-style: italic;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 260px))!important;
  gap: 1.8rem;
  justify-content: center;
}

.vehicle-card {
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.vehicle-media img,
.no-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.no-photo {
  background: var(--panel-2);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-info {
  padding: 1.2rem 1.4rem 0.8rem;
  flex: 1;
}

.vehicle-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.vehicle-info p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #15803d;
}

.vehicle-actions {
  padding: 0 1.4rem 1.4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.about-lines {
  display: grid;
  gap: 0.85rem;
}

.about-line {
  display: grid;
  gap: 0.2rem;
}

.about-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: var(--muted);
}

.about-value {
  font-size: 0.98rem;
  color: #1f2937;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.highlight {
  background: var(--panel-2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  display: grid;
  gap: 0.25rem;
}

.highlight-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.highlight-value {
  font-size: 1.4rem;
  font-weight: 700;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .profile-bar {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .profile-left {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .vehicle-grid {
    grid-template-columns: repeat(1, minmax(0, 260px))!important;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cover-media {
    height: 240px;
  }

  .profile-bar {
    margin-top: -60px;
    padding: 0 1rem 2rem;
  }

  .profile-left {
    padding: 1.2rem 1.1rem;
    gap: 1rem;
  }

  .profile-logo {
    width: 84px;
    height: 84px;
    border-radius: 16px;
  }

  .profile-text h1 {
    font-size: 1.5rem;
  }

  .profile-meta {
    font-size: 0.9rem;
  }

  .profile-stats {
    display: none;
  }

  .stat-pill {
    width: 100%;
    justify-content: space-between;
    grid-auto-flow: row;
    text-align: left;
  }

  .tab-shell {
    padding: 0 1rem 3rem;
  }

  .tab-list {
    flex-direction: column;
    gap: 0.45rem;
  }

  .profile-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-actions .btn-ghost {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .panel-card {
    padding: 1.4rem;
  }

  .vehicle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vehicle-media img,
  .no-photo {
    height: 170px;
  }
}
  .vehicle-grid {
    grid-template-columns: minmax(0, 1fr);
  }
