/* Product card used on every page (front/partials/product-card). Classes start with "pc" so the site theme can not override them. */
.pc {
    --pc-ink: #111111;
    --pc-muted: #8a8f98;
    --pc-line: #ececec;
    --pc-accent: #fe7e00;
    --pc-accent-dark: #e57100;
    --pc-accent-soft: #fff4e8;
    --pc-danger: #e5484d;
    position: relative; display: flex; flex-direction: column; height: 100%;
    padding: 10px; background: #fff; border-radius: 18px;
    box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06);
    transition: box-shadow .2s, transform .2s; text-align: start;
}
.pc *, .pc *::before, .pc *::after { box-sizing: border-box; }
.pc:hover { box-shadow: 0 12px 30px rgba(17, 17, 17, .10); }
.pc a { text-decoration: none !important; }

.pc__img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; background: #fafafa; overflow: hidden; }
.pc__img img { width: 100% !important; height: 100% !important; object-fit: contain; transition: transform .3s; display: block; }
.pc:hover .pc__img img { transform: scale(1.04); }
.pc__badge {
    position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1;
    background: var(--pc-danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1.6;
    padding: 2px 8px; border-radius: 8px;
}
.pc__badge--out { background: var(--pc-ink); }

.pc .pc__fav {
    position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2;
    width: 34px !important; height: 34px !important; margin: 0 !important; padding: 0; border: 0; cursor: pointer;
    border-radius: 50%; background: #fff !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    display: flex !important; align-items: center; justify-content: center; color: #3a3a3a !important;
}
.pc .pc__fav:hover { color: var(--pc-danger) !important; background: #fff !important; }
.pc .pc__fav svg { width: 18px; height: 18px; }

.pc__brand { font-size: 12px; color: var(--pc-muted) !important; margin: 10px 0 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.pc .pc__name {
    font-size: 14px; font-weight: 700; line-height: 1.5; margin: 2px 0 6px; min-height: 42px; color: var(--pc-ink) !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: anywhere;
}
.pc .pc__name:hover { color: var(--pc-accent) !important; }

.pc__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: auto 0 10px; }
.pc__price strong { color: var(--pc-accent); font-size: 16px; font-weight: 800; }
.pc__price del { color: var(--pc-muted); font-size: 12px; }

.pc .pc__btn {
    height: 40px; width: 100%; border-radius: 10px; border: 1.5px solid var(--pc-accent); cursor: pointer;
    background: var(--pc-accent); color: #fff !important; font-size: 13px; font-weight: 700; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .2s, color .2s;
}
.pc .pc__btn:hover { background: var(--pc-accent-dark); border-color: var(--pc-accent-dark); color: #fff !important; }
.pc .pc__btn svg { width: 16px; height: 16px; flex: none; }
.pc .pc__btn--options { background: #fff; color: var(--pc-accent) !important; }
.pc .pc__btn--options:hover { background: var(--pc-accent-soft); color: var(--pc-accent) !important; border-color: var(--pc-accent); }
.pc .pc__btn--out { background: #f1f1f1; border-color: #f1f1f1; color: var(--pc-muted) !important; cursor: not-allowed; }
.pc .pc__btn--out:hover { background: #f1f1f1; border-color: #f1f1f1; color: var(--pc-muted) !important; }
.pc .pc__btn:disabled { cursor: progress; opacity: .75; }
.pc .pc__btn--out:disabled { cursor: not-allowed; opacity: 1; }
.pc__spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: pc-spin .7s linear infinite; display: none; }
.pc__btn.is-loading .pc__spinner { display: inline-block; }
.pc__btn.is-loading svg { display: none; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

@media (max-width: 575.98px) {
    .pc { padding: 8px; border-radius: 14px; }
    .pc .pc__fav { top: 12px; inset-inline-end: 12px; width: 30px !important; height: 30px !important; }
    .pc .pc__name { font-size: 13px; min-height: 39px; }
    .pc__price strong { font-size: 14px; }
    .pc .pc__btn { height: 36px; font-size: 12px; gap: 4px; }
}
