/* ======================================================================
   PARTIAL — PRODUCT CARD
   Prefix: .pc-
   Yeniden kullanılabilir ürün kartı (Featured Products, Menu, Search, vb.)
   3 boyut: small / medium / large
   ====================================================================== */

.pc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
    isolation: isolate;
}
.pc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lt);
}

/* ─────────── Media (image) ─────────── */

.pc-media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.pc-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-soft);
}

.pc-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pc:hover .pc-image {
    transform: scale(1.06);
}

.pc-image-fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-lt) 0%, var(--accent-lt) 100%);
    color: var(--primary-dk);
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    font-size: 3rem;
    letter-spacing: -0.02em;
}

/* ─────────── Badges ─────────── */

.pc-badge {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    border-radius: var(--radius-full);
    line-height: 1;
}

.pc-badge-veg {
    top: 8px;
    inset-inline-start: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: #ecfdf5;
    color: #059669;
    border: 1.5px solid #10b981;
}
.pc-badge-veg svg {
    width: 14px;
    height: 14px;
}

.pc-badge-discount {
    top: 8px;
    inset-inline-end: 8px;
    background: var(--danger);
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* "Sadece restoranda" — restoran-only ürün */
.pc-badge-in-house {
    top: 8px;
    inset-inline-end: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    gap: 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pc-badge-in-house svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ─────────── Body ─────────── */

.pc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4) var(--sp-4) var(--sp-4);
}

.pc-title {
    font-family: var(--font-display);
    font-size: var(--fs-base);
    font-weight: var(--fw-semibold);
    margin: 0;
    line-height: var(--lh-snug);
    color: var(--text);
}

.pc-title-link {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}
.pc-title-link:hover { color: var(--primary-dk); }

.pc-desc {
    margin: 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    line-height: var(--lh-snug);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(var(--fs-sm) * var(--lh-snug) * 2);
}

/* ─────────── Footer (price + action) ─────────── */

.pc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-top: auto;
    padding-top: var(--sp-2);
}

.pc-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.1;
}

.pc-price-old {
    font-size: var(--fs-xs);
    color: var(--text-soft);
    text-decoration: line-through;
}

.pc-price-current {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    color: var(--primary-dk);
    font-variant-numeric: tabular-nums;
}

/* ─────────── Action button (sepete ekle / detay) ─────────── */

.pc-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    transition: all var(--t-fast);
}

.pc-action svg {
    width: 18px;
    height: 18px;
}

.pc-action-add {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.pc-action-add:hover {
    background: var(--primary-dk);
    transform: scale(1.08);
}

.pc-action-variants {
    background: var(--bg-soft);
    border: 1.5px solid var(--primary);
    color: var(--primary-dk);
}
.pc-action-variants:hover {
    background: var(--primary);
    color: #fff;
}

.pc-action-view {
    background: var(--bg-soft);
    color: var(--text-muted);
}
.pc-action-view:hover {
    background: var(--primary-lt);
    color: var(--primary-dk);
}

.pc-action:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ─────────── Boyutlar ─────────── */

.pc-small {
    /* Compact list view */
}
.pc-small .pc-title { font-size: var(--fs-sm); }
.pc-small .pc-desc  { display: none; }
.pc-small .pc-body  { padding: var(--sp-2) var(--sp-3) var(--sp-3); gap: 4px; }
.pc-small .pc-price-current { font-size: var(--fs-base); }
.pc-small .pc-action { width: 32px; height: 32px; }
.pc-small .pc-action svg { width: 14px; height: 14px; }

.pc-large .pc-title { font-size: var(--fs-lg); }
.pc-large .pc-price-current { font-size: var(--fs-xl); }
