.toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
}

.toolbar-bottom {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  grid-column: 1 / -1;
}

.toolbar .field { display: grid; gap: 6px; }

.price-range { min-width: 260px; }

.range-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.range-wrap {
  position: relative;
  height: 34px;
  display: grid;
  align-items: center;
}

.range-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  accent-color: var(--accent-color);
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.35));
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid rgba(240, 247, 255, 0.95);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.range-wrap input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-color);
  border: 3px solid rgba(240, 247, 255, 0.95);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.range-wrap input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
}

.range-wrap input[type="range"].range-active {
  background: linear-gradient(90deg, rgba(29, 78, 216, 0.2), rgba(29, 78, 216, 0.8));
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.product-media {
  height: 100%;
  min-height: 100%;
}

.product-layout img,
.product-hero-image {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.product-hero-image {
  display: block;
  height: 100%;
  min-height: 560px;
}

.product-layout .price {
  font-size: 1.6rem;
  color: var(--accent-color);
}

.review-form { display: grid; gap: 12px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.admin-row,
.admin-order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-row:last-child,
.admin-order-row:last-child {
  border-bottom: none;
}

.admin-order-row select { min-width: 140px; }

/* Product detail extras */
.product-info { gap: 16px; }

.product-rating { display: flex; align-items: center; gap: 6px; }

.star { color: #e2e2e2; font-size: 1.1rem; }
.star.filled { color: var(--accent-color); }

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
}

.size-section { display: grid; gap: 10px; }

.size-label { font-weight: 600; font-size: 0.9rem; }

.size-options { display: flex; gap: 10px; flex-wrap: wrap; }

.size-btn {
  min-width: 52px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.07);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.size-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background: rgba(29, 78, 216, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.18);
}

.size-btn.active {
  background: linear-gradient(120deg, var(--accent-color), #1e40af);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
  transform: translateY(-2px);
}

.size-help {
  margin: 4px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Product badges */
.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Jersey customization */
.customization-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.customization-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.customization-fields input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-soft);
  color: var(--text-dark);
  font-size: 0.95rem;
}

.preview-section {
  display: grid;
  gap: 12px;
}

.jersey-preview {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.jersey-preview-image {
  position: relative;
  display: inline-block;
  max-width: 300px;
  width: 100%;
}

.jersey-preview-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.jersey-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.jersey-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.jersey-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

/* Accordion */
.product-accordion {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-item:last-child { border-bottom: none; }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.97rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s ease;
}

.accordion-header::-webkit-details-marker { display: none; }

.accordion-header::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

details[open] .accordion-header::after { content: '−'; }

.accordion-header:hover { background: rgba(29, 78, 216, 0.04); }

.accordion-body { padding: 4px 24px 22px; }

.info-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.info-list li strong { color: var(--text-dark); }
