.wcpc-products-list {
    width: 100%;
}

.wcpc-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--wcpc-columns, 3), minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 1200px) {
    .wcpc-products-grid {
        grid-template-columns: repeat(min(var(--wcpc-columns, 3), 2), minmax(0, 1fr));
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .wcpc-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ── Kart ── */
.wcpc-product-card {
    --wcpc-accent: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wcpc-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wcpc-product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.wcpc-product-card__link:hover,
.wcpc-product-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.wcpc-product-card__link:focus-visible {
    outline: 2px solid var(--wcpc-accent, #374151);
    outline-offset: -2px;
}

/* Üst renk çubuğu */
.wcpc-product-card__accent-bar {
    height: 5px;
    width: 100%;
    background: var(--wcpc-accent);
    flex-shrink: 0;
}

/* Görsel */
.wcpc-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 20px;
    min-height: 220px;
    background: #fff;
}

.wcpc-product-card__image img,
.wcpc-product-card__img {
    max-width: 100%;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

/* Başlık */
.wcpc-product-card__title-wrap {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 0 20px 16px;
}

.wcpc-product-card__title-accent {
    width: 5px;
    min-width: 5px;
    border-radius: 3px;
    background: var(--wcpc-accent);
    flex-shrink: 0;
}

.wcpc-product-card__title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #111;
}

/* Özellik satırları */
.wcpc-product-card__specs {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    border-top: 1px solid #f0f0f0;
}

.wcpc-spec-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wcpc-spec-row:last-child {
    border-bottom: none;
}

.wcpc-spec-row__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wcpc-spec-row__bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: var(--wcpc-accent);
    flex-shrink: 0;
}

.wcpc-spec-row__labels {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wcpc-spec-row__label-tr {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #222;
    line-height: 1.2;
}

.wcpc-spec-row__label-en {
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9ca3af;
    line-height: 1.2;
}

.wcpc-spec-row__value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Alt: Barkod + Stok Kodu */
.wcpc-product-card__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px 16px 18px;
    margin-top: auto;
}

.wcpc-footer-box {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #f5f6f8;
    border-radius: 8px;
    overflow: hidden;
    min-height: 64px;
}

.wcpc-footer-box__accent {
    width: 5px;
    min-width: 5px;
    background: var(--wcpc-accent);
    flex-shrink: 0;
}

.wcpc-footer-box__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
    min-width: 0;
}

.wcpc-footer-box__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6b7280;
    line-height: 1;
}

.wcpc-footer-box__value {
    font-size: 0.82rem;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
    word-break: break-all;
}

/* Tek alan widget */
.wcpc-single-field .wcpc-footer-box,
.wcpc-single-field .wcpc-spec-row {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 12px;
    margin: 0;
}

.wcpc-products-list--archive {
    width: 100%;
    margin-top: 24px;
}

body.wcpc-archive-active .woocommerce-result-count,
body.wcpc-archive-active .woocommerce-pagination {
    display: none !important;
}

body.wcpc-archive-active .woocommerce-ordering {
    margin-bottom: 8px;
}

/* Liste durumu */
.wcpc-products-list__status {
    text-align: center;
    padding: 20px 0 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.wcpc-products-list__loading.is-active::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid #d1d5db;
    border-top-color: var(--wcpc-accent, #374151);
    border-radius: 50%;
    vertical-align: middle;
    animation: wcpc-spin 0.7s linear infinite;
}

.wcpc-products-list__empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 40px 20px;
}

.wcpc-products-list__sentinel {
    height: 1px;
}

.wcpc-field-placeholder {
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 4px;
    color: #6b7280;
    font-size: 0.85rem;
}

@keyframes wcpc-spin {
    to {
        transform: rotate(360deg);
    }
}
