/* ===================================================
   ARTICLE PRODUCTS WIDGET — Cyklodiskont.cz
   =================================================== */

/* === WRAPPER === */
.article-products {
  margin-top: 48px;
  margin-bottom: 24px;
}

.article-products h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

/* === GRID === */
.article-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* === CARD === */
.article-product-card {
  position: relative;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.article-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #cc1111;
}

/* === BADGE === */
.article-product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #cc1111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 4px;
}

/* === IMAGE === */
.article-product-image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f7f7;
}

.article-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.article-product-card:hover .article-product-image img {
  transform: scale(1.04);
}

/* === BODY === */
.article-product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* === NAME === */
.article-product-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-product-name:hover {
  color: #cc1111;
  text-decoration: underline;
}

/* === AVAILABILITY === */
.article-product-availability {
  font-size: 12px;
  font-weight: 600;
  color: #2e7d32;
}

/* === PRICES === */
.article-product-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-product-old-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.article-product-price {
  font-size: 18px;
  font-weight: 700;
  color: #cc1111;
}

/* === BUTTON === */
.article-product-actions {
  margin-top: auto;
  padding-top: 4px;
}

.article-product-actions .btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-product-actions .btn-primary {
  background: #cc1111;
  color: #fff;
  border: none;
}

.article-product-actions .btn-primary:hover {
  background: #a50d0d;
  color: #fff;
}

/* === STATES === */
.article-products-loading,
.article-products-empty,
.article-products-error {
  font-size: 14px;
  color: #888;
  margin: 8px 0;
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .article-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .article-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .article-product-body {
    padding: 10px;
  }

  .article-product-price {
    font-size: 16px;
  }

  .article-product-name {
    font-size: 13px;
  }
}