.stock-block {
  margin-top: 30px;
}

.stock-toolbar {
  margin: 0 0 16px;
}

.stock-per {
  font-size: 14px;
  line-height: 1.4;
  color: #222;
}

.stock-per-label {
  margin-right: 4px;
}

.stock-per a,
.stock-per .stock-per-current {
  display: inline-block;
  margin-left: 8px;
  font-size: 14px;
}

.stock-per a {
  color: #222;
  text-decoration: underline;
  border: none;
}

.stock-per a:hover,
.stock-per .stock-per-current {
  color: #ff9999;
  text-decoration: none;
}

.stock-per .stock-per-current {
  font-weight: bold;
}

.stock-block > .news_pages {
  margin-top: 0;
  margin-bottom: 8px;
}

.stock-layout {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 0;
}

.stock-filter {
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 0;
}

.stock-filter-label {
  margin: 0 0 6px;
  color: #222;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.stock-filter a {
  display: block;
  box-sizing: border-box;
  background: #606060;
  color: #fff !important;
  text-decoration: none;
  border: none !important;
  text-align: center;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.3;
}

.stock-filter a.stock-filter-current {
  background: #ff9999;
  color: #fff !important;
}

.stock-filter a:hover {
  background: #ff9999;
  color: #fff !important;
}

.stock-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

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

.stock-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #c8c8c8;
  background: #fff;
  color: #222;
  text-decoration: none;
  overflow: hidden;
  box-sizing: border-box;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.stock-card:hover {
  border-color: #606060;
  background: #606060;
  color: #fff;
}

.stock-card-photo {
  display: block;
  width: calc(100% - 12px);
  margin: 6px 6px 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f3f3;
  box-sizing: border-box;
}

.stock-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.stock-card-title,
.stock-card-brief,
.stock-card-price {
  display: block;
}

.stock-card-title {
  margin: 10px 8px 0;
  color: #ff9999;
  font-size: 14px;
  line-height: 1.3;
  min-height: 2.6em;
}

.stock-card:hover .stock-card-title,
.stock-card:hover .stock-card-brief,
.stock-card:hover .stock-card-price {
  color: #fff;
}

.stock-card-brief {
  margin: 4px 8px 0;
  font-size: 12px;
  line-height: 1.35;
  min-height: 2.7em;
  text-align: center;
  color: #555;
}

.stock-card-price {
  margin: 12px 8px 12px;
  font-size: 14px;
  font-weight: bold;
}

.stock-item {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 30px;
}

.stock-photos {
  flex: 0 0 50%;
  min-width: 0;
  border: 1px solid #cccccc;
  padding: 15px;
  box-sizing: border-box;
}

.stock-item-info {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid #cccccc;
  padding: 15px;
  box-sizing: border-box;
}

.stock-item-info h1 {
  background: none !important;
  color: #000 !important;
  text-transform: none !important;
  text-align: left;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0;
  padding: 0;
  margin: 0 0 16px;
}

.stock-item-price {
  font-weight: bold;
  color: #00ccff;
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e5e5;
}

.stock-item-description {
  margin-top: 12px;
}

.image-swipe.stock-photos {
  display: block;
  width: auto;
  line-height: normal;
  overflow: hidden;
}

.image-swipe.stock-photos a.stock-photo-main,
.image-swipe.stock-photos a.stock-photo-thumb {
  float: none !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  line-height: normal;
  font-size: 14px;
  border: none !important;
}

.image-swipe.stock-photos a.stock-photo-main img {
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 !important;
  display: block;
}

.stock-photo-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  clear: both;
}

.image-swipe.stock-photos a.stock-photo-thumb {
  height: 90px !important;
  border: 1px solid #cccccc !important;
}

.image-swipe.stock-photos a.stock-photo-thumb img {
  width: 100% !important;
  height: 90px !important;
  object-fit: cover;
  margin: 0 !important;
  display: block;
}

.stock-photo-caption {
  display: block;
  margin-top: 0.35rem;
  font-size: 13px;
}

@media (max-width: 1099px) {
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 699px) {
  .stock-layout {
    flex-direction: column;
  }

  .stock-filter,
  .stock-list {
    width: 100%;
  }

  .stock-grid {
    grid-template-columns: 1fr;
  }

  .stock-item {
    flex-direction: column;
  }

  .stock-photos,
  .stock-item-info {
    flex: 1 1 auto;
    width: 100%;
  }
}