/* ═══════════════════════════════════════════════
   FF WHEELS — SHOP / FELGENÜBERSICHT
   Apple Card-Based Design System
   Uses design tokens from homepage.css:
   --bg, --card, --text, --text2, --text3,
   --accent, --border, --shadow, --shadow-hover,
   --r, --r-sm, --r-lg, --font
   ═══════════════════════════════════════════════ */

/* ── Toolbar ── */
.ff-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ff-shop-toolbar__count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text3);
}

/* ── Search ── */
.dm-b2b-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 16px;
  min-width: 260px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.dm-b2b-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(178,152,118,.12);
}
.dm-b2b-search .material-symbols-rounded {
  font-size: 20px;
  color: var(--text3) !important;
  opacity: 1 !important;
  flex-shrink: 0;
}
.dm-b2b-search__input {
  border: none !important;
  background: transparent !important;
  font-size: 14px;
  font-family: var(--font) !important;
  outline: none !important;
  width: 100%;
  color: var(--text) !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.dm-b2b-search__input::placeholder { color: var(--text3); }

/* ── Filter Bar ── */
.ff-shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.dm-b2b-filter-select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  outline: none;
  transition: border-color .2s;
  min-width: 140px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2386868B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.dm-b2b-filter-select:focus { border-color: var(--accent); }
.ff-filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 980px;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.ff-filter-reset:hover {
  border-color: var(--text);
  color: var(--text);
}
.ff-filter-reset .material-symbols-rounded { font-size: 14px; }

/* ── Product Grid ── */
.ff-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Product Card (Apple-style) ── */
.ff-shop-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}
.ff-shop-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Card Image */
.ff-shop-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
}
.ff-shop-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.ff-shop-card:hover .ff-shop-card__img img {
  transform: scale(1.06);
}
.ff-shop-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--border);
}
.ff-shop-card__placeholder .material-symbols-rounded { font-size: 48px; }

/* Card Body */
.ff-shop-card__body {
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.ff-shop-card__serie {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.ff-shop-card__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.3px;
}
.ff-shop-card__color {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  margin-top: 2px;
}
.ff-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.08);
  flex-shrink: 0;
}
.ff-shop-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.ff-shop-card__specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.ff-spec-pill {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 980px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  white-space: nowrap;
}

/* Card CTA */
.ff-shop-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  margin: 16px;
  background: var(--text);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s;
}
.ff-shop-card:hover .ff-shop-card__cta {
  background: var(--accent);
}
.ff-shop-card__cta .material-symbols-rounded {
  font-size: 16px;
}

/* ── Empty / No results ── */
.ff-shop-empty,
.ff-shop-no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--text3);
}
.ff-shop-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.ff-shop-no-results .material-symbols-rounded {
  font-size: 48px;
  color: var(--border);
}
.ff-shop-no-results p { font-size: 15px; margin: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ff-shop-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ff-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .ff-shop-filters {
    flex-direction: column;
    gap: 8px;
  }
  .ff-shop-filters .dm-b2b-filter-select {
    width: 100%;
    min-width: 0;
  }
  .ff-filter-reset {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .dm-b2b-search { min-width: 0; }
  .ff-shop-card__name { font-size: 16px; }
  .ff-shop-card__cta { margin: 12px; padding: 12px; font-size: 12px; }
}
