/* Atölye Rafı — teknik blueprint + kategori mozaiği (atelier-bay) */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

.shop-mp-hero--atelier {
  position: relative;
  isolation: isolate;
  --bay-ink: #15202b;
  --bay-muted: #5b6b7c;
  --bay-line: #c5d0db;
  --bay-paper: #edf2f6;
  --bay-panel: #f7fafc;
  --bay-steel: #2c3e50;
  --bay-amber: #c2410c;
  --bay-amber-soft: #ffedd5;
  --bay-cyan: #0e7490;
  --bay-tile: #ffffff;
}

.shop-mp-hero--atelier::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.5rem;
  width: 100vw;
  height: min(520px, 78vw);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 18% 12%, rgba(194, 65, 12, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 40% at 88% 8%, rgba(14, 116, 144, 0.1), transparent 50%),
    linear-gradient(180deg, #dfe7ee 0%, #edf2f6 42%, transparent 100%);
}

.shop-mp-hero--atelier > .shop-mp-container {
  position: relative;
  z-index: 1;
}

.shop-atelier-shell {
  position: relative;
  margin: 0.2rem auto 1.35rem;
  max-width: 920px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.shop-atelier-shell__blueprint {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shop-atelier-shell__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(44, 62, 80, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 62, 80, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: atelier-grid-drift 28s linear infinite;
}

@keyframes atelier-grid-drift {
  from { background-position: 0 0; }
  to { background-position: 24px 24px; }
}

.shop-atelier-shell__rule {
  position: absolute;
  background: rgba(14, 116, 144, 0.35);
}

.shop-atelier-shell__rule--h {
  left: 8%;
  right: 8%;
  top: 14%;
  height: 1px;
  animation: atelier-rule-pulse 4.5s ease-in-out infinite;
}

.shop-atelier-shell__rule--v {
  top: 10%;
  bottom: 18%;
  left: 6%;
  width: 1px;
  animation: atelier-rule-pulse 4.5s ease-in-out 0.6s infinite;
}

@keyframes atelier-rule-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

.shop-atelier-shell__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--bay-amber);
  border-style: solid;
  opacity: 0.7;
}

.shop-atelier-shell__corner--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.shop-atelier-shell__corner--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.shop-atelier-shell__corner--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.shop-atelier-shell__corner--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.shop-atelier-shell__panel {
  position: relative;
  z-index: 1;
  margin: 0.35rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: color-mix(in srgb, var(--bay-panel) 92%, white);
  border: 1px solid var(--bay-line);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 40px rgba(21, 32, 43, 0.1);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.shop-atelier-shell.is-focused .shop-atelier-shell__panel {
  border-color: color-mix(in srgb, var(--bay-cyan) 45%, var(--bay-line));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 0 0 3px rgba(14, 116, 144, 0.12),
    0 22px 48px rgba(21, 32, 43, 0.12);
}

.shop-atelier-shell__head {
  margin: 0 0 0.95rem;
  text-align: center;
}

.shop-atelier-shell__kicker {
  margin: 0 0 0.3rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bay-amber);
}

.shop-atelier-shell__title {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--bay-ink);
  line-height: 1.15;
}

.shop-atelier-shell__sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bay-muted);
  transition: color 0.25s ease;
}

.shop-atelier-shell[data-mode="vin"] .shop-atelier-shell__sub { color: var(--bay-cyan); }
.shop-atelier-shell[data-mode="oem"] .shop-atelier-shell__sub { color: var(--bay-steel); }
.shop-atelier-shell[data-mode="cat"] .shop-atelier-shell__sub,
.shop-atelier-shell[data-mode="scoped"] .shop-atelier-shell__sub { color: var(--bay-amber); }

.shop-atelier-shell__slot {
  margin: 0 0 0.75rem;
}

.shop-hero-hub--atelier {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: none;
}

.shop-hero-hub--atelier .shop-hero-hub__layout {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.shop-hero-hub--atelier .shop-hero-hub__form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  background: #fff;
  border: 1.5px solid var(--bay-line);
  border-radius: 12px;
  padding: 0.35rem 0.35rem 0.35rem 0.85rem;
  box-shadow: 0 2px 8px rgba(21, 32, 43, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-hero-hub--atelier .shop-hero-hub__form:focus-within {
  border-color: var(--bay-cyan);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

.shop-hero-hub--atelier .shop-hero-hub__input,
.shop-hero-hub--atelier #shop-hero-search-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--bay-ink);
  min-width: 0;
  padding: 0.55rem 0.25rem;
}

.shop-hero-hub--atelier .shop-hero-hub__btn {
  flex-shrink: 0;
  border: none;
  border-radius: 9px;
  padding: 0.65rem 1.15rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.shop-hero-hub--atelier .shop-hero-hub__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.shop-hero-hub--atelier .shop-hero-hub__btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.shop-hero-hub--atelier .shop-vf__chassis-row[hidden] {
  display: none !important;
}

.shop-hero-hub--atelier #shop-vehicle-filter {
  margin: 0;
  padding: 0.65rem 0.7rem;
  background: color-mix(in srgb, var(--bay-paper) 80%, white);
  border: 1px dashed color-mix(in srgb, var(--bay-line) 80%, var(--bay-cyan));
  border-radius: 12px;
}

.shop-hero-hub--atelier .shop-vf__title,
.shop-hero-hub--atelier .shop-vf__hint {
  display: none;
}

.shop-atelier-scope {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  background: var(--bay-amber-soft);
  border: 1px solid color-mix(in srgb, var(--bay-amber) 28%, transparent);
  border-radius: 10px;
  animation: atelier-scope-in 0.28s ease;
}

@keyframes atelier-scope-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.shop-atelier-scope__badge {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--bay-amber);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.shop-atelier-scope strong {
  font-size: 0.9rem;
  color: var(--bay-ink);
}

.shop-atelier-scope__hint {
  font-size: 0.8rem;
  color: var(--bay-muted);
}

.shop-atelier-scope__open {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bay-cyan);
  text-decoration: none;
}

.shop-atelier-scope__open:hover {
  text-decoration: underline;
}

.shop-atelier-scope__clear {
  border: none;
  background: transparent;
  color: var(--bay-muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
}

.shop-atelier-scope__clear:hover {
  background: rgba(21, 32, 43, 0.06);
  color: var(--bay-ink);
}

.shop-atelier-shell__cats-wrap {
  margin-top: 0.15rem;
}

.shop-atelier-shell__cats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bay-steel);
}

.shop-atelier-shell__cats-tip {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--bay-muted);
}

.shop-atelier-shell__cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.45rem;
}

.shop-atelier-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 4.6rem;
  padding: 0.65rem 0.7rem;
  text-align: left;
  border: 1px solid var(--bay-line);
  border-radius: 11px;
  background: var(--bay-tile);
  color: var(--bay-ink);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.shop-atelier-cat:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--bay-cyan) 40%, var(--bay-line));
  box-shadow: 0 8px 18px rgba(21, 32, 43, 0.08);
}

.shop-atelier-cat.is-active {
  border-color: var(--bay-amber);
  background: linear-gradient(160deg, #fff7ed 0%, #fff 70%);
  box-shadow:
    0 0 0 2px rgba(194, 65, 12, 0.18),
    0 10px 20px rgba(194, 65, 12, 0.1);
}

.shop-atelier-cat__icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: var(--bay-paper);
  color: var(--bay-steel);
}

.shop-atelier-cat.is-active .shop-atelier-cat__icon {
  background: var(--bay-amber-soft);
  color: var(--bay-amber);
}

.shop-atelier-cat__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.shop-atelier-cat__label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.shop-atelier-confirm {
  margin-top: 0.75rem;
}

.shop-atelier-confirm__card {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bay-cyan) 35%, var(--bay-line));
  background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 100%);
  animation: atelier-scope-in 0.3s ease;
}

.shop-atelier-confirm__eyebrow {
  margin: 0 0 0.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bay-cyan);
}

.shop-atelier-confirm__q {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bay-ink);
}

.shop-atelier-confirm__vehicle {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bay-steel);
}

.shop-atelier-confirm__vin {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--bay-muted);
  font-variant-numeric: tabular-nums;
}

.shop-atelier-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-atelier-confirm__yes,
.shop-atelier-confirm__no {
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.shop-atelier-confirm__yes {
  border: none;
  color: #fff;
  background: var(--bay-cyan);
}

.shop-atelier-confirm__no {
  border: 1px solid var(--bay-line);
  background: #fff;
  color: var(--bay-steel);
}

@media (max-width: 640px) {
  .shop-atelier-shell__panel {
    margin: 0.2rem;
    padding: 0.95rem 0.85rem 1rem;
  }

  .shop-atelier-shell__cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-hero-hub--atelier .shop-hero-hub__form {
    flex-direction: column;
    padding: 0.55rem;
  }

  .shop-hero-hub--atelier .shop-hero-hub__btn {
    width: 100%;
  }

  .shop-atelier-scope__open {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-atelier-shell__grid,
  .shop-atelier-shell__rule--h,
  .shop-atelier-shell__rule--v {
    animation: none;
  }
}
