.card {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(31, 38, 135, 0.1);
}

.clickable {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  text-align: start;
  cursor: pointer;
}

.clickable:hover .nameEnPrimary,
.clickable:hover .nameFa {
  color: var(--primary);
}

.imageWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.imagePlaceholder {
  width: 100%;
  height: 100%;
  background: rgba(148, 163, 184, 0.08);
}

.festivalBadge,
.stockBadge {
  position: absolute;
  top: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  z-index: 1;
}

.festivalBadge {
  inset-inline-start: 8px;
  text-transform: uppercase;
  color: #7c3aed;
}

.stockBadge {
  inset-inline-end: 8px;
  color: var(--primary);
}

.body {
  padding: 10px 10px 8px;
  flex: 1;
  direction: rtl;
  text-align: right;
}

.bodyLtr {
  direction: ltr;
  text-align: left;
}

.nameFa {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 3px;
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.nameEn {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 4px;
  direction: ltr;
  text-align: right;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nameEnPrimary {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 3px;
  direction: ltr;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.nameFaSecondary {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  direction: rtl;
  text-align: left;
  unicode-bidi: plaintext;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.variantLabel {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.controls {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  overflow: visible;
}

.controlsLeft {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.controlsLeft button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.controlsLeft button:hover {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
}

.controlsLeft button.festivalActive {
  color: #7c3aed;
  background: rgba(167, 139, 250, 0.15);
}

.controlsLeft button.festivalActive:hover {
  background: rgba(167, 139, 250, 0.22);
  color: #6d28d9;
}

.controlsLeft button.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.addToCartIcon {
  display: block;
  flex-shrink: 0;
}

.addToCartBtn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, transform 0.15s;
}

.addToCartBtn:hover {
  background: rgba(var(--primary-rgb) / 0.1);
  transform: scale(1.06);
}

.addToCartBtn:active {
  transform: scale(0.98);
}
