/* Shared product cards (.prod-cube) — same look as catalog / homepage hits */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.prod-cube {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s, background .3s;
}

.prod-cube:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(232,114,28,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(232,114,28,.15);
  transform: translateY(-3px);
}

.prod-cube-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: rgba(0,0,0,.2);
  position: relative;
}

.prod-cube-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.prod-cube:hover .prod-cube-img img { transform: scale(1.07); }

.prod-cube-body {
  padding: .9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-cube-img-link {
  display: block;
  color: inherit;
}

.prod-cube-name {
  font-weight: 600;
  font-size: .92rem;
  /* Always light on green cards — never inherit body ink */
  color: #fff;
  line-height: 1.35;
  margin-bottom: .45rem;
}

a.prod-cube-name {
  text-decoration: none;
  color: #fff;
}

a.prod-cube-name:hover {
  color: var(--orange-lt, #f5a045);
}

.prod-cube-note {
  font-size: .72rem;
  color: rgba(255,255,255,.55);
  margin-bottom: .4rem;
  font-style: italic;
  min-height: 1.15rem;
}

.prod-cube-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .75rem;
}

.prod-cube-weight {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.06);
  padding: .18rem .55rem;
  border-radius: 999px;
}

.prod-cube-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-lt, #f5a045);
  letter-spacing: -.01em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  gap: .12rem;
  white-space: nowrap;
}

.prod-cube-price .price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .12rem;
}

.prod-cube-price .price-sale { color: var(--orange-lt, #f5a045); font-size: 1.1rem; }

.prod-cube-price .price-old {
  font-size: 1.1rem;
  color: rgba(255,255,255,.45);
  text-decoration: line-through;
  text-decoration-color: #e04545;
  text-decoration-thickness: 2px;
  -webkit-text-decoration-color: #e04545;
}

.prod-cube-buy {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  width: 100%;
}

.prod-cube-buy .qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
  user-select: none;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 2px;
}

.prod-cube-buy .qty-stepper-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

.prod-cube-buy .qty-stepper-btn:hover:not(:disabled) {
  background: var(--orange, #e8721c);
  border-color: var(--orange, #e8721c);
  color: #fff;
}

.prod-cube-buy .qty-stepper-btn:disabled { opacity: .4; cursor: not-allowed; }

.prod-cube-buy .qty-val {
  min-width: 1.25rem;
  text-align: center;
  color: rgba(255,255,255,.92);
  font-size: .82rem;
  font-weight: 700;
}

.prod-cube-buy .qty-stepper.is-disabled { opacity: .45; pointer-events: none; }

.prod-cube-btn {
  flex: 1;
  min-width: 0;
  padding: .55rem .5rem;
  background: rgba(232,114,28,.15);
  border: 1px solid rgba(232,114,28,.3);
  color: var(--orange-lt, #f5a045);
  font-size: .78rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}

.prod-cube-btn:hover {
  background: var(--orange, #e8721c);
  border-color: var(--orange, #e8721c);
  color: #fff;
}

.prod-cube-btn.is-in-cart {
  background: rgba(160, 200, 48, .22);
  border-color: rgba(160, 200, 48, .55);
  color: #c8e86a;
}

.prod-cube-btn.is-in-cart:hover {
  background: var(--green, #243d28);
  border-color: var(--green, #243d28);
  color: #fff;
}

.prod-cube-btn.btn-out-of-stock,
.prod-cube-btn.btn-out-of-stock:disabled {
  opacity: .38;
  cursor: not-allowed;
  filter: grayscale(.35);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.45);
  pointer-events: none;
}

@media (max-width: 980px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}

@media (max-width: 520px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-cube-buy { flex-wrap: wrap; }
  .prod-cube-btn { flex: 1 1 100%; }
}

@media (hover: none) {
  .prod-cube:hover .prod-cube-img img { transform: none; }
}
