.card, .product-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 250ms ease-in-out ease-in-out, transform 250ms ease-in-out ease-in-out;
}
.card:hover, .product-card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header,
.card-body,
.card-footer {
  padding: 16px;
}
@media (min-width: 768px) {
  .card-header,
  .card-body,
  .card-footer {
    padding: 24px;
  }
}

.card-header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
}
.card-header h3 {
  margin: 0;
  font-size: 18px;
}
@media (min-width: 768px) {
  .card-header h3 {
    font-size: 20px;
  }
}

.card-body:last-child {
  border-radius: 0 0 12px 12px;
}

.card-footer {
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .card-image {
    height: 250px;
  }
}
@media (min-width: 1024px) {
  .card-image {
    height: 300px;
  }
}

.card-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .card-title {
    font-size: 20px;
  }
}
.card-title a {
  color: #222222;
}
.card-title a:hover {
  color: #8b0e0e;
}

.card-subtitle {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #666666;
}

.card-text {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #666666;
  line-height: 1.75;
}
.card-text:last-child {
  margin-bottom: 0;
}

.card-elevated {
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card-elevated:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card-outline {
  border: 2px solid #8b0e0e;
}

.card-filled {
  background-color: #f8f8f8;
}

.card-dark {
  background-color: #222222;
  color: #ffffff;
  border-color: #333333;
}
.card-dark .card-header {
  background-color: #333333;
  border-color: #666666;
}
.card-dark .card-footer {
  background-color: #333333;
  border-color: #666666;
}
.card-dark .card-title,
.card-dark .card-subtitle {
  color: #ffffff;
}
.card-dark a {
  color: #d4af37;
}
.card-dark a:hover {
  color: #e5c158;
}

.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .card-grid {
    gap: 24px;
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease-in-out ease-in-out;
}
.product-card-image:hover img {
  transform: scale(1.05);
}
.product-card-image .badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.product-card-content {
  padding: 16px;
}
@media (min-width: 768px) {
  .product-card-content {
    padding: 24px;
  }
}

.product-rating {
  margin-bottom: 8px;
  font-size: 14px;
  color: #666666;
}

.product-price {
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
  color: #8b0e0e;
}
@media (min-width: 768px) {
  .product-price {
    font-size: 24px;
  }
}
.product-price .original-price {
  margin-right: 12px;
  text-decoration: line-through;
  color: #999999;
  font-size: 18px;
}
.product-price .discount {
  display: inline-block;
  padding: 4px 8px;
  background-color: #e74c3c;
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
