.categorie-list #tw-cat-products.tw-cat-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    align-items: stretch;
    margin: 0 0 18px;
}

.tw-cat-product-wrap {
    min-width: 0;
}

.tw-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.tw-cat-card:hover {
    border-color: rgba(10, 42, 140, .22);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .10);
    transform: translateY(-1px);
}

.tw-cat-save-badges {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: calc(100% - 18px);
}

.tw-cat-save-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 23px;
    padding: 4px 10px;
    overflow: hidden;
    color: #fff;
    background: #0a2a8c;
    border-radius: 0 999px 999px 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.tw-cat-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 184px;
    padding: 12px;
    background: #f8fafc;
}

.tw-cat-image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.tw-cat-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .2s ease;
}

.tw-cat-card:hover .tw-cat-image img {
    transform: scale(1.035);
}

.tw-cat-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 8px 12px 0;
}

.tw-cat-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92px;
    max-height: 22px;
}

.tw-cat-brand img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92px;
    max-height: 22px;
    object-fit: contain;
}

.tw-cat-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 10px 14px 14px;
}

.tw-cat-name {
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tw-cat-name a {
    color: inherit;
    text-decoration: none;
}

.tw-cat-name a:hover {
    color: #0a2a8c;
}

.tw-cat-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    min-height: 24px;
    gap: 4px 8px;
    margin-bottom: 12px;
}

.tw-cat-price-current {
    display: inline-flex;
    align-items: baseline;
    color: #0a2a8c;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.tw-cat-price-old {
    display: inline-flex;
    align-items: baseline;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: line-through;
}

.tw-cat-currency {
    margin-right: 3px;
    font-size: .72em;
    font-weight: 800;
}

.tw-cat-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.tw-cat-cart-btn,
.tw-cat-compare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0;
    text-align: center;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.tw-cat-cart-btn {
    min-height: 44px;
    gap: 7px;
    padding: 0 14px;
    color: #fff;
    background: #0a2a8c;
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(10, 42, 140, .22);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.tw-cat-cart-btn:hover,
.tw-cat-cart-btn:focus {
    color: #fff;
    background: #061b5e;
    box-shadow: 0 11px 22px rgba(10, 42, 140, .30);
    transform: translateY(-1px);
}

.tw-cat-cart-btn[disabled] {
    cursor: not-allowed;
    color: #738196;
    background: #e6ebf2;
    box-shadow: none;
    transform: none;
}

.tw-cat-compare-btn {
    min-height: 32px;
    gap: 5px;
    padding: 0 10px;
    color: #59677c;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.1;
}

.tw-cat-compare-btn:hover,
.tw-cat-compare-btn:focus {
    color: #0a2a8c;
    background: #f8fafc;
    border-color: rgba(10, 42, 140, .14);
}

.tw-cat-cart-btn .material-symbols-outlined,
.tw-cat-compare-btn .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
}

.tw-cat-compare-btn .material-symbols-outlined {
    color: #d1a51f;
}

.categorie-list #tw-cat-products .empty-content {
    grid-column: 1 / -1;
}

@media (max-width: 1199px) {
    .categorie-list #tw-cat-products.tw-cat-products {
        grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
        gap: 12px;
    }

    .tw-cat-image {
        height: 168px;
    }
}

@media (max-width: 767px) {
    .categorie-list #tw-cat-products.tw-cat-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tw-cat-card-body {
        padding: 9px 10px 12px;
    }

    .tw-cat-image {
        height: 150px;
        padding: 10px;
    }

    .tw-cat-brand-row {
        min-height: 18px;
        padding-top: 6px;
    }

    .tw-cat-name {
        min-height: 52px;
        margin-bottom: 10px;
        font-size: 13px;
        line-height: 16px;
    }

    .tw-cat-price-current {
        font-size: 16px;
    }

    .tw-cat-price-old {
        font-size: 12px;
    }

    .tw-cat-cart-btn {
        min-height: 40px;
        padding: 0 8px;
        font-size: 12px;
    }

    .tw-cat-compare-btn {
        min-height: 30px;
        padding: 0 6px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .tw-cat-image {
        height: 136px;
    }

    .tw-cat-save-badge {
        max-width: 140px;
        font-size: 11px;
    }
}

@media (max-width: 340px) {
    .categorie-list #tw-cat-products.tw-cat-products {
        grid-template-columns: 1fr;
    }
}
