/* DopeVill product-card — CENTRAL STYLESHEET (single source of truth) */
/* Migrated from front-page.php inline CSS + single-product.php related rules */

/* === BASE === */
.product-card{background:#ffffff;border-radius:10px;padding:12px;text-decoration:none;color:inherit;display:flex;flex-direction:column;position:relative;transition:transform 0.18s,box-shadow 0.18s,border-color 0.18s;border:0.5px solid rgba(0,0,0,0.06)}
.product-card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,0.08);border-color:rgba(200,212,0,0.4)}

/* === IMAGE WRAP === */
.product-img-wrap{aspect-ratio:1;background:transparent;border-radius:8px;margin-bottom:12px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.product-img-wrap img{max-width:85%;max-height:85%;width:auto;height:auto;object-fit:contain}
.product-card-img-link,.product-card-name-link{text-decoration:none;color:inherit;display:block}

/* === CATEGORY PILL === */
.product-cat-pill{position:absolute;top:8px;left:8px;background:rgba(255,255,255,0.95);color:#1a1e20;font-size:10px;font-weight:500;padding:3px 8px;border-radius:4px;letter-spacing:0.2px;z-index:2;text-decoration:none;transition:background 0.15s}
.product-cat-pill:hover{background:#fff}

/* === BRAND === */
.product-brand{font-size:10px;color:#888;font-weight:500;letter-spacing:0.4px;text-transform:uppercase;margin-bottom:4px}

/* === NAME === */
.product-name{font-size:13px;color:#1a1e20;line-height:1.35;margin:0 0 10px;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}

/* === SKU (related variánsnál látszik) === */
.product-sku{font-size:11px;color:#888780;margin-bottom:6px;letter-spacing:0.3px}

/* === PRICES === */
.product-prices{margin-bottom:10px}
.product-price-gross{font-size:16px;font-weight:500;color:#1a1e20;line-height:1}
.product-price-net{font-size:11px;color:#888;margin-top:3px}

/* === ACTIONS (qty + cart) === */
.product-actions{display:flex;gap:6px;align-items:stretch;margin-top:auto}

.qty-control{display:flex;align-items:center;background:#f0f2f0;border-radius:6px;overflow:hidden;flex:0 0 92px;width:92px;height:36px;box-sizing:border-box}
.qty-btn{background:transparent;border:none;width:28px;height:36px;font-size:14px;font-weight:500;color:#1a1e20;cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;line-height:1;position:relative;top:0}
.qty-btn:hover{background:rgba(0,0,0,0.04)}
.qty-btn:active{background:rgba(0,0,0,0.08)}
.qty-btn svg{pointer-events:none;display:block}
.qty-input{width:32px !important;height:36px !important;padding:3px 0 0 0 !important;margin:0 !important;border:none !important;outline:none !important;background:transparent !important;background-image:none !important;box-shadow:none !important;text-align:center !important;font-size:14px !important;font-weight:500 !important;color:#1a1e20 !important;line-height:normal !important;box-sizing:border-box !important;display:block !important;-webkit-appearance:none !important;-moz-appearance:textfield !important;appearance:none !important}
.qty-input::-webkit-outer-spin-button,.qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.product-cart-btn{flex:1;background:#1a1e20;color:#c8d400;border:none;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;height:36px;transition:background 0.15s}
.product-cart-btn:hover{background:#2a2e30}

/* === VARIANS: --related (single-product "Hasonló termékek") === */
.product-card--related{padding:16px;border:1px solid #e0e4d8;border-radius:8px}
.product-card--related .product-img-wrap{aspect-ratio:auto;height:120px;margin-bottom:8px}
.product-card--related .product-img-wrap img{max-width:100%;max-height:120px}
.product-card--related .product-brand{font-size:10px;letter-spacing:1px;color:#888780;font-weight:600;margin-bottom:4px}
.product-card--related .product-name{font-size:12px;font-weight:700;line-height:1.3;margin-bottom:8px;min-height:auto;-webkit-line-clamp:initial;display:block;overflow:visible}
.product-card--related .product-price-gross{font-size:14px;font-weight:900;color:#1a1e20}
.product-card--related .product-price-net{font-size:11px;color:#666;margin-top:2px}

/* === VARIANS: --compact === */
.product-card--compact{padding:10px}
.product-card--compact .product-name{font-size:12px;min-height:auto}
.product-card--compact .product-price-gross{font-size:14px}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .product-card{padding:10px}
  .product-card--related{padding:12px}
}
