/* ===========================================================
   PRODUCT PHOTOS (real images) + Hot Wheels (kept small)
   =========================================================== */
.pimg--photo { background: radial-gradient(circle at 50% 45%, #ffffff, #e9e4dc 75%); }
.pimg--photo img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.pimg--toy { background: radial-gradient(circle at 50% 50%, #3a2a20, #1a120d 75%); }
.pimg--toy img { width: auto; height: auto; max-width: 58%; max-height: 62%; padding: 0; border-radius: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.55); }
.cat-cards { grid-template-columns: repeat(5, 1fr); }
.cat-cards .cat-card small { font-size: .78rem; }
@media (max-width: 1000px) { .cat-cards { grid-template-columns: repeat(2, 1fr); } .cat-cards .cat-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .cat-cards { grid-template-columns: 1fr; } }

/* ===========================================================
   SOUND GARAGE
   =========================================================== */
.sound {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(215,38,45,.22), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(246,185,23,.10), transparent 50%),
    linear-gradient(180deg, #0c0a09, #151010);
  border-top: 3px solid var(--yellow);
}
.sound__glow { position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(ellipse, rgba(215,38,45,.18), transparent 60%); pointer-events: none; }
.sound .container { position: relative; }
.sound__tip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 8px 16px; border-radius: 30px; border: 1px solid rgba(246,185,23,.5); background: rgba(246,185,23,.08);
  color: var(--yellow); font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem;
}
.sound__tip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.deck {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 24px;
  padding: 22px 26px; margin-bottom: 26px; border-radius: 14px;
  background: linear-gradient(135deg, #1d1512, #0f0c0a); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}
.deck__play {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center;
  box-shadow: 0 5px 0 var(--red-dark), 0 0 0 6px rgba(215,38,45,.18);
  transition: transform .15s;
}
.deck__play:hover { transform: scale(1.06); }
.deck__play:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red-dark); }
.deck__play svg { width: 38px; height: 38px; fill: #fff; }
.deck__play .i-pause, .deck.is-playing .deck__play .i-play { display: none; }
.deck.is-playing .deck__play .i-pause { display: block; }
.deck.is-playing .deck__play::before, .deck.is-playing .deck__play::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--red);
  animation: ring 1.6s ease-out infinite;
}
.deck.is-playing .deck__play::after { animation-delay: .8s; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.deck__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.deck__label { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--yellow); }
.deck__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.05; }
.deck__meta { color: var(--muted); font-size: .9rem; }
.deck__bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 8px; overflow: hidden; }
.deck__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--yellow)); transition: width .25s linear; }
.deck__actions { display: flex; flex-direction: column; gap: 10px; }
.deck__actions .btn { white-space: nowrap; }

.eq { display: flex; align-items: flex-end; gap: 4px; height: 56px; }
.eq i { width: 6px; height: 12%; border-radius: 3px; background: linear-gradient(180deg, var(--yellow), var(--red)); opacity: .35; transition: height .3s, opacity .3s; }
.deck.is-playing .eq i { opacity: 1; animation: eq .9s ease-in-out infinite alternate; }
.deck.is-playing .eq i:nth-child(2n) { animation-duration: .6s; }
.deck.is-playing .eq i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -.3s; }
.deck.is-playing .eq i:nth-child(4n) { animation-duration: .75s; animation-delay: -.5s; }
.deck.is-playing .eq i:nth-child(5n) { animation-duration: 1.3s; }
@keyframes eq { 0% { height: 15%; } 50% { height: 95%; } 100% { height: 40%; } }

.rides { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: 18px; }
.ride {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 10px;
  background: var(--coal); border: 1px solid var(--line); border-bottom: 3px solid transparent; text-align: left; transition: .2s;
}
.ride strong { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 1.02rem; }
.ride small { color: var(--muted); font-size: .78rem; }
.ride:hover { border-color: rgba(246,185,23,.5); transform: translateY(-2px); }
.ride.is-active { background: linear-gradient(160deg, #3b1a17, #1d0e0c); border-color: var(--red); border-bottom-color: var(--yellow); }

.sound__filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mufflers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.mchip {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
  padding: 7px 14px; border-radius: 30px; border: 1px solid var(--line); color: var(--muted); transition: .2s;
}
.mchip:hover { color: #fff; border-color: #fff; }
.mchip.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.clip {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left;
  padding: 10px 12px; border-radius: 10px; background: var(--coal); border: 1px solid var(--line); transition: .2s;
}
.clip:hover { border-color: rgba(215,38,45,.7); background: #1d1512; }
.clip__btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(215,38,45,.15); border: 2px solid var(--red); transition: .2s; }
.clip__btn svg { width: 16px; height: 16px; fill: var(--red); margin-left: 2px; }
.clip:hover .clip__btn, .clip.is-on .clip__btn { background: var(--red); }
.clip:hover .clip__btn svg, .clip.is-on .clip__btn svg { fill: #fff; }
.clip.is-playing .clip__btn { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(215,38,45,.25); } }
.clip.is-on { border-color: var(--yellow); }
.clip__txt { display: flex; flex-direction: column; min-width: 0; }
.clip__txt strong { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.clip__txt small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip__tag { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .7rem; color: var(--yellow); border: 1px solid rgba(246,185,23,.4); padding: 3px 7px; border-radius: 4px; white-space: nowrap; }
.clips__more { display: flex; justify-content: center; margin-top: 18px; }
.sound__credit { margin-top: 18px; text-align: center; color: var(--muted); font-size: .78rem; opacity: .8; }

@media (max-width: 900px) {
  .deck { grid-template-columns: auto 1fr; }
  .eq { display: none; }
  .deck__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .sound__filters { grid-template-columns: 1fr 1fr; }
  .sound__filters input { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .deck { padding: 16px; gap: 14px; }
  .deck__play { width: 64px; height: 64px; }
  .clips { grid-template-columns: 1fr; }
  .rides { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .deck.is-playing .eq i, .clip.is-playing .clip__btn, .deck.is-playing .deck__play::before, .deck.is-playing .deck__play::after { animation: none; }
}

/* ===========================================================
   BRANDS — nav dropdown + "Shop by Brand" tiles
   =========================================================== */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0; z-index: 60;
  min-width: 230px; max-height: 70vh; overflow-y: auto; padding: 8px;
  display: grid; gap: 2px; border-radius: 10px;
  background: var(--coal); border: 1px solid var(--line); border-top: 3px solid var(--red);
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.nav__links .drop a {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px;
  font-size: .9rem; letter-spacing: .06em;
}
.nav__links .drop a::after { display: none; }
.nav__links .drop a:hover { background: rgba(215,38,45,.18); }
.drop small { color: var(--muted); font-family: var(--body); font-weight: 500; letter-spacing: 0; }

.brands { margin: -12px 0 32px; }
.brands__title { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--yellow); margin-bottom: 10px; }
.brands__row { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-tile {
  display: flex; flex-direction: column; align-items: flex-start; padding: 9px 14px; border-radius: 8px;
  background: var(--coal); border: 1px solid var(--line); transition: .2s; text-align: left;
}
.brand-tile strong { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: .95rem; }
.brand-tile small { color: var(--muted); font-size: .72rem; }
.brand-tile:hover { border-color: rgba(246,185,23,.6); }
.brand-tile.is-active { background: var(--red); border-color: var(--red); }
.brand-tile.is-active small { color: #ffe3e3; }

/* ===========================================================
   SOUND GARAGE page break + exhaust-brand picker
   =========================================================== */
.pagebreak {
  position: relative; z-index: 2; overflow: hidden;
  background: var(--yellow); color: var(--ink);
  border-block: 4px solid var(--ink); box-shadow: 0 6px 0 var(--red);
  transform: rotate(-1deg) scale(1.02); margin: 10px 0;
}
.pagebreak__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.pagebreak__track span {
  padding: 12px 28px; font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  display: flex; align-items: center; gap: 28px;
}
.pagebreak__track span::after { content: "\25C6"; color: var(--red); font-size: .7em; }
.sbrands { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 20px; }
.sbrand {
  display: flex; flex-direction: column; align-items: center; padding: 10px 22px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--coal);
}
.sbrand strong { font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sbrand small { color: var(--muted); font-size: .75rem; }
.sbrand.is-active { border-color: var(--yellow); box-shadow: inset 0 -3px 0 var(--yellow); }
.sbrand--soon { opacity: .5; border-style: dashed; }
@media (max-width: 900px) { .brands { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .pagebreak__track { animation-duration: 60s; } }
