/* Mira product cards — scoped under .mira-storefront to beat Tailwind resets */

.mira-storefront .products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: stretch;
}

@media (min-width: 768px) {
  .mira-storefront .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .mira-storefront .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mira-storefront .product-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  list-style: none;
  min-width: 0;
}

.mira-storefront .product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.mira-storefront .product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  background: #f6f6f6;
  width: 100%;
}

.mira-storefront .mira-card__quick-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 5;
  pointer-events: auto;
  padding: 0;
}

.mira-storefront .mira-card__quick-add-btn:hover {
  background-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mira-storefront .mira-card__quick-add-btn:active {
  transform: scale(0.95);
}

.mira-storefront .mira-card__quick-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.mira-storefront .quick-add-icon {
  width: 20px;
  height: 20px;
  fill: #333;
  flex-shrink: 0;
}

.mira-storefront .product-badge.loved {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: auto;
  height: auto;
  pointer-events: none;
}

.mira-storefront .badge-ribbon {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.mira-storefront .heart-icon {
  width: 16px;
  height: 16px;
  fill: #e8968f;
  flex-shrink: 0;
}

.mira-storefront .product-card:hover .badge-ribbon {
  transform: scale(1.1);
}

.mira-storefront .product-image-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.mira-storefront .product-card .product-image {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

.mira-storefront .product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mira-storefront .product-card:hover .product-overlay {
  opacity: 1;
}

.mira-storefront .product-card:hover .product-image {
  transform: scale(1.05);
}

.mira-storefront .view-details {
  background-color: white;
  color: #5a5a5a;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mira-storefront .product-card:hover .view-details {
  transform: translateY(0);
  opacity: 1;
}

.mira-storefront .product-info {
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.mira-storefront .product-name {
  font-size: 1rem;
  color: #2a2a2a;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s ease;
  line-height: 1.3;
  min-height: 2.6rem;
  display: block;
}

.mira-storefront .product-name:hover {
  color: #ee9d85;
}

.mira-storefront .product-label-text {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.mira-storefront .product-tags {
  margin: 0.3rem 0;
}

.mira-storefront .tags-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
}

.mira-storefront .usage-tags-container {
  margin: 0.5rem 0 0.3rem;
}

.mira-storefront .usage-tags-level-1,
.mira-storefront .usage-tags-level-2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.3rem;
}

.mira-storefront .usage-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  color: white;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.mira-storefront .usage-tag.level-1 {
  font-weight: 600;
}

.mira-storefront .usage-tag.level-2 {
  opacity: 0.85;
  font-size: 0.65rem;
  color: rgb(0, 0, 0);
  background: transparent;
  padding-left: 0;
  padding-right: 0;
}

.mira-storefront .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 0.8rem;
  border-top: 1px solid rgba(255, 192, 121, 0.3);
}

.mira-storefront .product-price {
  font-size: 14px;
}

.mira-storefront .price-original {
  display: block;
  color: #777;
  text-decoration: line-through;
  font-size: 12px;
}

.mira-storefront .price-current {
  font-weight: 600;
}

.mira-storefront .product-rating {
  display: flex;
  align-items: center;
  min-height: 1rem;
}

.mira-storefront .product-review {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 14px;
}

.mira-storefront .product-review__star {
  width: 14px;
  height: 14px;
  fill: #f5a623;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .mira-storefront .product-meta {
    flex-direction: column;
    gap: 0.3rem;
  }

  .mira-storefront .product-info {
    padding-top: 0.6rem;
  }

  .mira-storefront .badge-ribbon {
    width: 24px;
    height: 24px;
  }

  .mira-storefront .heart-icon {
    width: 14px;
    height: 14px;
  }
}
