.product-results-hero {
    border-bottom: 1px solid rgba(17, 24, 39, .08);
    background:
        radial-gradient(circle at 84% 18%, rgba(220, 38, 38, .08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 50px 0 38px;
}

.product-results-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-results-hero h1 {
    max-width: 820px;
    margin: 0 0 12px;
    color: #111827;
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.055em;
}

.product-results-hero p {
    max-width: 760px;
    margin: 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.7;
}

.product-results-section {
    background: #ffffff;
    padding: 34px 0 64px;
}

.product-results-layout {
    display: grid;
    align-items: start;
    gap: 24px;
    grid-template-columns: 320px minmax(0, 1fr);
}

.product-filter-panel {
    position: sticky;
    top: 112px;
    max-height: calc(100vh - 132px);
    overflow: auto;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(17, 24, 39, .08);
    padding: 18px;
}

.product-filter-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.product-filter-head span {
    color: #dc2626;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-filter-head h2 {
    margin: 4px 0 0;
    color: #111827;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.035em;
}

.product-filter-head a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 900;
    padding: 0 12px;
    text-decoration: none;
}

.product-filter-head a:hover {
    background: #fef2f2;
    color: #dc2626;
}

.product-filter-form {
    display: grid;
    gap: 14px;
}

.product-filter-columns {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.product-filter-group {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.product-filter-group-full {
    grid-column: 1 / -1;
}

.product-filter-group label,
.product-filter-check span {
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
}

.product-filter-group input,
.product-filter-group select {
    width: 100%;
    min-width: 0;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
    font-weight: 750;
    outline: none;
    padding: 0 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.product-filter-group input:focus,
.product-filter-group select:focus {
    border-color: rgba(220, 38, 38, .55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .10);
}

.product-filter-check {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
    padding: 0 12px;
}

.product-filter-check input {
    width: 16px;
    height: 16px;
    accent-color: #dc2626;
}

.product-filter-submit {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    background: #dc2626;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 950;
    padding: 0 18px;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.product-filter-submit:hover {
    background: #991b1b;
    box-shadow: 0 14px 32px rgba(220, 38, 38, .20);
    transform: translateY(-1px);
}

.product-results-main {
    min-width: 0;
}

.product-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 20px;
    background: #f9fafb;
    padding: 16px 18px;
}

.product-results-toolbar span {
    display: block;
    color: #6b7280;
    font-size: 13px;
    font-weight: 850;
}

.product-results-toolbar strong {
    display: block;
    margin-top: 3px;
    color: #111827;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -.025em;
}

.product-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    display: flex;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(17, 24, 39, .08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(17, 24, 39, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
    border-color: rgba(220, 38, 38, .28);
    box-shadow: 0 22px 50px rgba(17, 24, 39, .11);
    transform: translateY(-3px);
}

.product-card-image {
    position: relative;
    display: grid;
    overflow: hidden;
    place-items: center;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    aspect-ratio: 4 / 3;
    text-decoration: none;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .24s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.045);
}

.product-card-no-image {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 850;
}

.product-card-sale-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    padding: 0 10px;
}

.product-card-sale-ecommerce {
    background: #111827;
}

.product-card-sale-industrial {
    background: #dc2626;
}

.product-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 16px;
}

.product-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.product-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 12px;
    font-weight: 900;
    padding: 0 9px;
}

.product-badge-muted {
    background: #f3f4f6;
    color: #4b5563;
}

.product-card-title {
    min-height: 48px;
    margin: 0 0 10px;
    color: #111827;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.product-card-title a {
    color: inherit;
    text-decoration: none;
}

.product-card-title a:hover {
    color: #dc2626;
}

.product-card-text {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin: 0 0 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: auto;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.product-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.product-card-price,
.product-card-price-muted {
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -.02em;
}

.product-card-price-muted {
    color: #dc2626;
    font-size: 15px;
}

.product-card-foot a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    padding: 0 13px;
    text-decoration: none;
}

.product-card-foot a:hover {
    background: #dc2626;
}

.empty-state {
    border: 1px dashed #d1d5db;
    border-radius: 24px;
    background: #ffffff;
    color: #6b7280;
    padding: 34px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 24px;
    font-weight: 950;
}

.empty-state p {
    margin: 0;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.pagination-link,
.pagination-current {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 900;
    padding: 0 14px;
}

.pagination-link {
    background: #fef2f2;
    color: #dc2626;
    text-decoration: none;
}

.pagination-link:hover {
    background: #dc2626;
    color: #ffffff;
}

.pagination-current {
    background: #f3f4f6;
    color: #4b5563;
}

@media (max-width: 1180px) {
    .product-results-layout {
        grid-template-columns: 280px minmax(0, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-filter-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .product-results-layout {
        grid-template-columns: 1fr;
    }

    .product-filter-panel {
        position: static;
        max-height: none;
    }

    .product-filter-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .product-results-hero {
        padding: 34px 0 28px;
    }

    .product-results-section {
        padding: 24px 0 46px;
    }

    .product-filter-columns,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-results-toolbar {
        display: block;
    }

    .product-card-title,
    .product-card-text {
        min-height: auto;
    }
}

/* Compact public list header: no hardcoded marketing hero */
.product-results-hero-compact {
    padding: 22px 0 18px;
}

.product-results-hero-compact h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.product-results-hero-compact span,
.product-results-hero-compact p {
    display: none;
}

/* Product list perceived render fix:
   DOM'da ürünler önce gelir; desktopta filtre yine solda gösterilir. */
@media (min-width: 981px) {
    .product-results-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .product-filter-panel {
        grid-column: 1;
        grid-row: 1;
    }

    .product-results-main {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }
}

@media (max-width: 980px) {
    .product-results-main,
    .product-filter-panel {
        grid-column: auto;
        grid-row: auto;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-link,
.pagination-ellipsis {
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.pagination-link:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.pagination-link-current {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.pagination-ellipsis {
    border-color: transparent;
    background: transparent;
    color: #6b7280;
}


/* Final product image fit: full product image must stay inside the visual box */
.product-results-section .product-grid .product-card .product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.product-results-section .product-grid .product-card .product-card-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    transform: none;
}

.product-results-section .product-grid .product-card:hover .product-card-image img {
    transform: none;
}
