/* Product card (.yc-card) — used via includes/product-card.php */
.yc-card { --yc-green:#3f5f3a; --yc-orange:#e0714a; --yc-red:#e5484d; --yc-border:#d9d9d9;
  display:flex; flex-direction:column; height:100%; background:#fff; border:1px solid var(--yc-border);
  border-radius:14px; overflow:hidden; transition:box-shadow .25s ease, transform .25s ease; font-family:'Inter',sans-serif; }
.yc-card:hover { box-shadow:0 10px 26px rgba(0,0,0,.10); transform:translateY(-3px); }

.yc-media { position:relative; background:#fff; padding:8px 8px 0; }
.yc-img-link { display:block; aspect-ratio:1/.8; }
.yc-img-link img { width:100%; height:100%; object-fit:contain; display:block; transition:transform .35s ease; }
.yc-card:hover .yc-img-link img { transform:scale(1.04); }

.yc-badges { position:absolute; top:0; left:0; z-index:3; display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.yc-badge { background:var(--yc-orange); color:#fff;
  font-size:12px; font-weight:700; letter-spacing:.2px; padding:5px 12px; border-radius:0 0 10px 0; }
.yc-chip { color:#fff; font-size:11px; font-weight:700; padding:3px 10px; border-radius:0 8px 8px 0; }
.yc-wish { position:absolute; top:12px; right:12px; z-index:3; width:32px; height:32px; border:0; background:transparent;
  display:flex; align-items:center; justify-content:center; cursor:pointer; color:#1f2937; font-size:18px; }
.yc-wish.active i { font-weight:900; color:var(--yc-red); }

.yc-rating { position:absolute; left:16px; bottom:8px; z-index:3; display:inline-flex; align-items:center; gap:5px;
  background:#fff; border:1px solid var(--yc-border); border-radius:999px; padding:3px 10px;
  font-size:11px; font-weight:500; color:#4b5563; }
.yc-rating i { color:#f5b301; font-size:11px; }
.yc-rating span { color:#bbb; }

.yc-body { display:flex; flex-direction:column; gap:6px; padding:10px 12px 12px; flex-grow:1; }
.yc-name { font-size:13.5px; font-weight:700; line-height:1.3; color:#2b2b2b; text-decoration:none;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.6em; }
.yc-blurb { margin:0; font-size:12px; line-height:1.4; color:#6b7280; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.yc-name:hover { color:var(--yc-green); }

.yc-variant { width:100%; border:1.5px solid var(--yc-border); border-radius:8px; padding:6px 32px 6px 12px;
  font-size:13px; font-weight:600; color:#1f2937; background:#fff; cursor:pointer; outline:none; appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23444' stroke-width='2.5' d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; }
.yc-variant:focus { border-color:var(--yc-green); }

.yc-price-row { display:flex; align-items:baseline; gap:10px; margin-top:auto; }
.yc-price { font-family:'Outfit','Inter',sans-serif; font-size:22px; font-weight:800; color:var(--yc-green); line-height:1; }
.yc-mrp { font-size:13px; color:var(--yc-red); text-decoration:line-through; }

.yc-btn { width:100%; border:0; border-radius:8px; background:var(--yc-green); color:#fff; font-weight:700; font-size:14px;
  padding:8px 12px; display:flex; align-items:center; justify-content:center; gap:8px; cursor:pointer; transition:filter .2s, transform .15s; }
.yc-btn:hover:not(:disabled) { filter:brightness(1.12); }
.yc-btn:active:not(:disabled) { transform:scale(.98); }
.yc-btn:disabled { background:#9ca3af; cursor:not-allowed; }

@media (max-width:575px) {
  .yc-body { padding:8px 9px 10px; gap:6px; }
  .yc-blurb { display:none; }
  .yc-name { font-size:13px; }
  .yc-variant { font-size:13px; padding:8px 30px 8px 10px; }
  .yc-price { font-size:21px; }
  .yc-btn { font-size:13px; padding:10px 8px; }
  .yc-rating { font-size:10px; padding:2px 8px; left:10px; }
}
