body.tax-product_cat.term-lastik ul.products,
body.tax-product_cat.term-lastik .products li.product {
    display: none !important;
}

.lastik-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 5px 0 15px;
    -webkit-overflow-scrolling: touch;
}

.lastik-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgb(0 0 0 / .08);
}

.lastik-product-table thead tr {
    background: #212121;
    color: #fff;
}

.lastik-product-table thead th {
    padding: 13px 12px;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    white-space: nowrap;
    border: none;
    letter-spacing: .3px;
}

.lastik-product-table thead th.col-cart,
.lastik-product-table thead th.col-stock,
.lastik-product-table thead th.col-season,
.lastik-product-table thead th.col-dot,
.lastik-product-table thead th.col-img {
    text-align: center;
}

/* Rows */
.lastik-product-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.lastik-product-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.lastik-product-table tbody tr:hover {
    background: #fff8e8;
}

.lastik-product-table tbody tr.flash-green {
    background: #fef3cd !important;
    transition: background 0.3s;
}

.lastik-product-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border: none;
}

/* Image */
.lastik-product-table .col-img {
    width: 80px;
    text-align: center;
}

.lastik-product-table .col-img img,
.lastik-product-table .col-img .lastik-thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* Name */
.lastik-product-table .col-name {
    min-width: 200px;
    max-width: 320px;
}

.lastik-product-table .col-name a {
    color: #212121;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.lastik-product-table .col-name a:hover {
    color: #e94141;
}

/* SKU */
.lastik-product-table .col-sku {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
}

/* Brand */
.lastik-product-table .col-brand {
    font-size: 13px;
    white-space: nowrap;
    font-weight: 500;
}

/* Season */
.lastik-product-table .col-season {
    text-align: center;
    font-size: 20px;
}

.season-summer { color: #fdb819; }
.season-winter { color: #3498db; }
.season-allseason { color: #7f8c8d; }
.season-unknown { color: #bbb; }

/* DOT */
.lastik-product-table .col-dot {
    text-align: center;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Stock badge */
.lastik-product-table .col-stock {
    text-align: center;
}

.stock-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.stock-badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.stock-badge.out-stock {
    background: #fce4ec;
    color: #c62828;
}

/* Price */
.lastik-product-table .col-price {
    white-space: nowrap;
}

.price-value {
    font-weight: 700;
    font-size: 15px;
    color: #e94141;
}

/* Cart */
.lastik-product-table .col-cart {
    text-align: center;
    white-space: nowrap;
}

.cart-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.qty-input {
    width: 50px;
    height: 34px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    padding: 0 4px;
    background: #f9f9f9;
}

.qty-input:focus {
    outline: none;
    border-color: #e94141;
    background: #fff;
}

.add-to-cart-btn {
    width: 40px;
    height: 34px;
    border-radius: 2px;
    border: none;
    background: #e94141;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 6px rgb(0 0 0 / .12);
}

.add-to-cart-btn:hover {
    background: #212121;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgb(0 0 0 / .18);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgb(0 0 0 / .12);
}

.add-to-cart-btn.loading {
    opacity: .6;
    pointer-events: none;
}

.not-available {
    color: #bbb;
    font-size: 13px;
}

.woocommerce-pagination {
    margin-top: 20px;
}

/* Size */
.lastik-product-table .col-size {
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}

/* PCD */
.lastik-product-table .col-pcd {
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
}

/* ET */
.lastik-product-table .col-et {
    text-align: center;
    font-size: 13px;
    white-space: nowrap;
}

/* Color */
.lastik-product-table .col-color {
    font-size: 12px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lastik-product-table thead th.col-size,
.lastik-product-table thead th.col-pcd,
.lastik-product-table thead th.col-et,
.lastik-product-table thead th.col-color {
    text-align: center;
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 1024px) {
    .lastik-product-table .col-dot,
    .lastik-product-table thead .col-dot,
    .lastik-product-table .col-sku,
    .lastik-product-table thead .col-sku {
        display: none;
    }
    .lastik-product-table .col-name {
        min-width: 150px;
    }
    .lastik-product-table .col-color,
    .lastik-product-table thead .col-color,
    .lastik-product-table .col-et,
    .lastik-product-table thead .col-et {
        display: none;
    }
}

/* ========== RESPONSIVE - MOBIL ========== */
@media (max-width: 768px) {
    .lastik-product-table,
    .lastik-product-table thead,
    .lastik-product-table tbody,
    .lastik-product-table th,
    .lastik-product-table td,
    .lastik-product-table tr {
        display: block;
    }
    .lastik-product-table thead {
        display: none;
    }
    .lastik-product-table {
        box-shadow: none;
        background: #fff0;
    }
    .lastik-product-table tbody tr {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        box-shadow: 0 1px 6px rgb(0 0 0 / .06);
        overflow: hidden;
    }
    .lastik-product-table tbody tr:nth-child(even) {
        background: #fff;
    }
    .lastik-product-table tbody tr:hover {
        background: #fff;
        box-shadow: 0 2px 12px rgb(0 0 0 / .1);
    }

    .lastik-product-table tbody td {
        padding: 0;
        border: none;
    }

    .lastik-product-table tbody td.col-img {
        width: 90px;
        min-height: 90px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        background: #f8f8f8;
        flex-shrink: 0;
    }

    .lastik-product-table tbody td.col-img img,
    .lastik-product-table tbody td.col-img .lastik-thumb {
        width: 74px !important;
        height: 74px !important;
        object-fit: contain;
        border-radius: 6px;
        border: 1px solid #eee;
    }

    .lastik-product-table tbody td.col-name {
        flex: 1;
        min-width: 0;
        padding: 10px 10px 6px;
        display: flex;
        align-items: flex-start;
    }

    .lastik-product-table tbody td.col-name a {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    /* -- Bilgi satirlari: tam genislik -- */
    .lastik-product-table tbody td.col-brand,
    .lastik-product-table tbody td.col-season,
    .lastik-product-table tbody td.col-dot,
    .lastik-product-table tbody td.col-stock,
    .lastik-product-table tbody td.col-price {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 6px 12px;
        font-size: 13px;
        border-top: 1px solid #f2f2f2;
    }

    /* Bilgi etiketleri */
    .lastik-product-table tbody td.col-brand::before {
        content: "Marka";
        font-weight: 600;
        color: #888;
        font-size: 12px;
    }
    .lastik-product-table tbody td.col-season::before {
        content: "Mevsim";
        font-weight: 600;
        color: #888;
        font-size: 12px;
    }
    .lastik-product-table tbody td.col-stock::before {
        content: "Stok";
        font-weight: 600;
        color: #888;
        font-size: 12px;
    }
    .lastik-product-table tbody td.col-price::before {
        content: "Fiyat";
        font-weight: 600;
        color: #888;
        font-size: 12px;
    }
    .lastik-product-table tbody td.col-dot::before {
        content: "DOT";
        font-weight: 600;
        color: #888;
        font-size: 12px;
    }

    .lastik-product-table tbody td.col-season {
        font-size: 16px;
    }
    .lastik-product-table tbody td.col-price .price-value {
        font-size: 16px;
        font-weight: 800;
    }

    /* -- Gizli sutunlar -- */
    .lastik-product-table tbody td.col-sku,
    .lastik-product-table tbody td.col-pcd,
    .lastik-product-table tbody td.col-et,
    .lastik-product-table tbody td.col-color {
        display: none;
    }

    /* data-label pseudo devre disi (kendi before kullaniyoruz) */
    .lastik-product-table tbody td[data-label]:before {
        content: none;
    }
    .lastik-product-table tbody td.col-brand::before { content: "Marka"; font-weight: 600; color: #888; font-size: 12px; }
    .lastik-product-table tbody td.col-season::before { content: "Mevsim"; font-weight: 600; color: #888; font-size: 12px; }
    .lastik-product-table tbody td.col-stock::before { content: "Stok"; font-weight: 600; color: #888; font-size: 12px; }
    .lastik-product-table tbody td.col-price::before { content: "Fiyat"; font-weight: 600; color: #888; font-size: 12px; }
    .lastik-product-table tbody td.col-dot::before { content: "DOT"; font-weight: 600; color: #888; font-size: 12px; }

    /* -- Sepete ekle: tam genislik alt bar -- */
    .lastik-product-table tbody td.col-cart {
        width: 100%;
        padding: 8px 12px 10px;
        border-top: 1px solid #eee;
        background: #fafafa;
        white-space: normal;
    }
    .cart-control {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .cart-control .qty-input {
        width: 60px;
        height: 42px;
        font-size: 16px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .cart-control .add-to-cart-btn {
        flex: 1;
        height: 42px;
        width: auto;
        border-radius: 8px;
        font-size: 14px;
    }
}

/* ========== RESPONSIVE - KUCUK MOBIL ========== */
@media (max-width: 400px) {
    .lastik-product-table tbody td.col-img {
        width: 72px;
        padding: 6px;
    }
    .lastik-product-table tbody td.col-img img,
    .lastik-product-table tbody td.col-img .lastik-thumb {
        width: 60px !important;
        height: 60px !important;
    }
    .lastik-product-table tbody td.col-name a {
        font-size: 12px;
    }
    .lastik-product-table tbody td.col-brand,
    .lastik-product-table tbody td.col-season,
    .lastik-product-table tbody td.col-dot,
    .lastik-product-table tbody td.col-stock,
    .lastik-product-table tbody td.col-price {
        padding: 4px 10px;
        font-size: 12px;
    }
}
