/* ====================== PRODUCT CARD ====================== */
.product {
    width: calc((100% - 4 * 14px) / 5);
    min-width: 200px;
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 1px 2px rgba(15,28,63,0.04);
    transition: transform .15s, box-shadow .15s, border-color .15s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px -18px rgba(15,28,63,0.25);
    border-color: #d8deef;
}

.pimg {
    aspect-ratio: 1 / 1;
    background: var(--brand-softer);
    overflow: hidden;
    position: relative;
}
.pimg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s;
    display: block;
}
.product:hover .pimg img { transform: scale(1.04); }

.pimg-placeholder {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.pimg-placeholder svg { width: 32px; height: 32px; opacity: .5; }

.ptype-chip {
    position: absolute;
    top: 10px; left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px 4px 7px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--brand);
    box-shadow: 0 2px 6px rgba(15,28,63,0.08);
}
.ptype-chip svg { width: 11px; height: 11px; }
.ptype-chip.is-service { color: var(--star); }

.pbody {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.pcat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--brand);
    overflow: hidden;
    max-width: 100%;
}
.pcat svg { width: 12px; height: 12px; flex-shrink: 0; }
.pcat span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.ptitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.pprice {
    font-size: 16px;
    font-weight: 800;
    color: var(--brand);
    font-feature-settings: "tnum";
    letter-spacing: -0.01em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.add-cart {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 9px;
    border: 0;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s, color .15s, transform .12s;
}
.add-cart:hover { background: var(--brand); color: #fff; }
.add-cart:active { transform: scale(0.92); }
.add-cart.is-added { background: var(--check); color: #fff; }
.add-cart.is-loading { opacity: 0.5; cursor: wait; }
.add-cart svg { width: 15px; height: 15px; }

/* Product card skeleton */
.product-card-skeleton {
    width: calc((100% - 4 * 14px) / 5);
    min-width: 200px;
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-2);
    flex-shrink: 0;
}
.product-skeleton-image {
    aspect-ratio: 1 / 1;
    width: 100%;
}
.product-skeleton-content {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-skeleton-cat { height: 11px; width: 55%; }
.product-skeleton-title { height: 14px; width: 85%; }
.product-skeleton-price { height: 16px; width: 45%; }

/* ====================== RESPONSIVE ====================== */
@media (max-width: 720px) {
    .product { width: calc((100vw - 28px - 14px) / 2); min-width: 0; }
    .product-card-skeleton { width: calc((100vw - 28px - 14px) / 2); min-width: 0; }
}
