/* Shop / Inventory — Aurexo-style layout */

.shop-page {
  background: #f4f6f8;
  padding: 28px 0 80px;
}

.shop-page-head {
  margin-bottom: 22px;
}

.shop-page-head h1 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 6px;
}

.shop-page-head p {
  color: var(--muted);
  font-weight: 600;
}

.shop-condition-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.shop-cond-tab {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-weight: 800;
  font-size: 14px;
  color: #111;
  transition: 0.2s;
}

.shop-cond-tab:hover {
  border-color: #111;
}

.shop-cond-tab.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.shop-cond-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.shop-cond-tab.active .shop-cond-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Advanced Search */
.shop-advanced-block {
  margin-bottom: 22px;
}

.shop-advanced-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
}

.shop-search-form {
  background: #fff;
  border: 1px solid #e8eaee;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
}

.shop-search-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto auto;
  gap: 12px;
  align-items: end;
}

.shop-field {
  min-width: 0;
}

.shop-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin-bottom: 6px;
}

.shop-field select,
.shop-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.shop-field input {
  background-image: none;
  padding-right: 14px;
}

.shop-advanced-toggle {
  width: 52px;
  height: 52px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s;
}

.shop-advanced-toggle:hover,
.shop-advanced-toggle.is-open {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.03);
}

.shop-search-submit {
  height: 52px;
  min-width: 140px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.shop-search-submit:hover {
  transform: translateY(-1px);
}

.shop-advanced-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eef0f3;
}

.shop-advanced-panel[hidden] {
  display: none;
}

.shop-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shop-advanced-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.shop-advanced-actions .btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 800;
  color: #111;
}

/* Results toolbar */
.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 14px 0;
}

.shop-results-count {
  font-size: 15px;
  font-weight: 600;
  color: #374151;
}

.shop-results-count strong {
  color: #111;
  font-weight: 800;
}

.shop-results-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.shop-density-group,
.shop-view-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.shop-density-btn,
.shop-view-btn {
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 6px;
  transition: 0.15s;
}

.shop-density-btn:hover,
.shop-view-btn:hover {
  background: #fff;
  border-color: #e5e7eb;
}

.shop-density-btn.active,
.shop-view-btn.active {
  background: #fff;
  border-color: #d1d5db;
}

.shop-density-dots {
  display: grid;
  gap: 3px;
  width: 100%;
  height: 100%;
}

.shop-density-dots.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.shop-density-dots.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shop-density-dots.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.shop-density-dots.cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.shop-density-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
  display: block;
}

.shop-density-btn:not(.active) .shop-density-dots span {
  background: transparent;
  border: 1.5px solid #9ca3af;
}

.shop-view-btn i {
  font-size: 18px;
  color: #6b7280;
}

.shop-view-btn.active i {
  color: #111;
}

.shop-sort-wrap {
  position: relative;
  min-width: 200px;
}

.shop-sort-wrap select {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 36px 0 14px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* Inventory grid */
.shop-inventory-grid {
  display: grid;
  gap: 22px;
}

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

.shop-inventory-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-inventory-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-inventory-grid.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.shop-inventory-grid.inventory-list {
  grid-template-columns: 1fr !important;
}

.shop-inventory-grid.inventory-list .vehicle-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
}

.shop-inventory-grid.inventory-list .vehicle-img {
  min-height: 200px;
  height: 100%;
}

.shop-inventory-grid.inventory-list .vehicle-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.empty-shop {
  text-align: center;
  padding: 56px 24px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
}

.empty-shop i {
  font-size: 48px;
  color: var(--muted);
  margin-bottom: 12px;
}

.empty-shop h3 {
  margin-bottom: 8px;
}

.empty-shop p {
  color: var(--muted);
  margin-bottom: 18px;
}

.shop-search-active {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.shop-search-active a {
  font-weight: 800;
  color: var(--primary);
}

/* Responsive */
@media (max-width: 1100px) {
  .shop-search-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .shop-inventory-grid.cols-4,
  .shop-inventory-grid.cols-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .shop-page {
    padding: 18px 0 40px;
  }

  .shop-search-bar {
    grid-template-columns: 1fr;
  }

  .shop-advanced-toggle,
  .shop-search-submit {
    width: 100%;
    min-width: 0;
  }

  .shop-advanced-grid {
    grid-template-columns: 1fr;
  }

  .shop-results-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-results-controls {
    width: 100%;
    justify-content: space-between;
  }

  .shop-sort-wrap {
    width: 100%;
    min-width: 0;
  }

  .shop-inventory-grid.cols-2,
  .shop-inventory-grid.cols-3,
  .shop-inventory-grid.cols-4,
  .shop-inventory-grid.cols-5 {
    grid-template-columns: 1fr;
  }

  .shop-inventory-grid.inventory-list .vehicle-card {
    grid-template-columns: 1fr;
  }

  .shop-density-group {
    display: none;
  }
}
