/* Demo tarzı kategori / ürün kartları — service-section-home2-classic ile birlikte */
.by-home-categories.by-dk-service-cards,
.by-dk-service-cards.by-urunler-sayfa,
.by-dk-service-cards.by-arama-sayfa,
.by-urunler-alt-kategoriler.by-dk-service-cards {
    padding-bottom: 4rem;
}

.by-home-categories-grid-wrap,
.by-dk-service-cards-grid {
    margin-top: 2.5rem;
}

.by-dk-service-cards-grid .row {
    row-gap: 0.25rem;
}

.by-dk-service-cards-grid .single-service-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(12, 35, 24, 0.08);
    text-align: left;
}

.by-dk-service-cards-grid .single-service-box.bromak-card-clickable {
    position: relative;
    cursor: pointer;
}

.by-dk-service-cards-grid .bromak-card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 20px;
}

.by-dk-service-cards-grid .bromak-card-stretched-link:focus-visible {
    outline: 2px solid #BD2428;
    outline-offset: 2px;
}

.by-dk-service-cards-grid .service-thumb {
    position: relative;
}

.by-dk-service-cards-grid .service-thumb figure {
    margin: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
}

.by-dk-service-cards-grid .service-thumb figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.by-dk-service-cards-grid .bromak-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #f3f3f3;
    border: 1px dashed #d8d8d8;
    border-radius: 20px;
    color: #9a9a9a;
    font-size: 14px;
    font-weight: 500;
}

.by-dk-service-cards-grid .bromak-card-placeholder i {
    font-size: 36px;
    opacity: 0.65;
}

.by-dk-service-cards-grid .service-content {
    padding: 24px 8px 8px;
}

.by-dk-service-cards-grid .service-content .service-title {
    color: var(--headings-color, #0C2F25);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.3;
    margin: 0 0 12px;
    transition: color 0.3s ease;
}

.by-dk-service-cards-grid .service-content p {
    color: var(--text-color, #6D827C);
    font-size: 15px;
    line-height: 1.6;
}

.by-dk-service-cards-grid .service-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--headings-color, #0C2F25);
    border: 1px solid rgba(12, 47, 37, 0.15);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 40px;
    transition: color 0.35s ease, border-color 0.35s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
    pointer-events: none;
}

.by-dk-service-cards-grid .service-btn::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 -15%;
    width: 0;
    height: 106%;
    background: #BD2428;
    transform: skew(45deg);
    transition: width 0.35s ease, transform 0.35s ease, left 0.35s ease;
    z-index: -1;
}

.by-dk-service-cards-grid .single-service-box:hover .service-title {
    color: #BD2428;
}

.by-dk-service-cards-grid .single-service-box:hover .service-btn {
    color: #fff;
    border-color: #BD2428;
}

.by-dk-service-cards-grid .single-service-box:hover .service-btn::before {
    width: 100%;
    transform: skew(0deg);
    left: 0;
}

.by-dk-service-cards-grid .service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.by-dk-service-cards-grid .service-content p {
    flex: 1;
    margin-bottom: 28px;
}

.by-dk-service-cards-grid .service-btn {
    margin-top: auto;
    text-decoration: none;
}

.by-home-categories-empty {
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

/* Ürün / kategori / arama sayfaları — açık arka plan */
.by-dk-service-cards.by-urunler-sayfa,
.by-dk-service-cards.by-arama-sayfa {
    background: transparent;
    padding: 0 0 3rem;
}

.by-arama-sayfa .search-found {
    margin-bottom: 0.5rem;
}

/* Arama sayfası — özet + form */
.by-arama-panel {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding: 0.5rem 0 0;
    text-align: center;
}

.by-arama-panel__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--theme-color2, #0c2f25);
}

.by-arama-panel__summary {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--theme-color2, #0c2f25);
}

.by-arama-panel__summary--empty {
    margin-bottom: 0.5rem;
}

.by-arama-panel__count {
    color: var(--theme-color, #bd2428);
    font-weight: 700;
}

.by-arama-panel__hint {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(12, 47, 37, 0.72);
}

.by-arama-form {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    max-width: 560px;
    margin: 0 auto;
}

.by-arama-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 1.25rem;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    background: #fff;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    caret-color: #1a1a1a;
    font-size: 1rem;
    line-height: normal;
    box-shadow: 0 2px 12px rgba(12, 35, 24, 0.06);
}

.by-arama-form input[type="search"]::placeholder {
    color: #888;
    opacity: 1;
}

.by-arama-form input[type="search"]:focus {
    outline: none;
    border-color: var(--theme-color, #bd2428);
    box-shadow: 0 0 0 3px rgba(189, 36, 40, 0.14);
}

.by-arama-form input[type="search"]:-webkit-autofill,
.by-arama-form input[type="search"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #1a1a1a !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
}

.by-arama-form__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 6.5rem;
    height: 52px;
    padding: 0 1.35rem;
    border: none;
    border-radius: 999px;
    background: var(--theme-color, #bd2428);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.by-arama-form__btn:hover {
    background: var(--bromak-brand-dark, #9a1d20);
}

@media (max-width: 575.98px) {
    .by-arama-form {
        flex-direction: column;
    }

    .by-arama-form__btn {
        width: 100%;
    }
}

.by-arama-sayfa .by-dk-service-cards-grid {
    margin-top: 1.5rem;
}

/* Arama — Laravel sayfalama kalıntılarını gizle */
.by-arama-sayfa nav[aria-label="Pagination"],
.by-arama-sayfa .pagination,
.by-arama-sayfa [role="navigation"][aria-label*="Pagination"] {
    display: none !important;
}

.by-dk-service-cards.by-urunler-sayfa .gap.white-layer {
    background: transparent;
}

.by-urunler-alt-kategoriler {
    border-top: 1px solid rgba(12, 35, 24, 0.08);
}

/* Ürün detay — benzer ürünler (demo kart stili) */
.by-urun-detay .by-urun-benzer.service-section-home2-classic {
    padding: 2.5rem 0 1rem;
    border-top: 1px solid rgba(12, 35, 24, 0.08);
}

.by-urun-detay .by-urun-benzer__title {
    font-family: var(--title-font, inherit);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--heading-color, #0c2318);
    margin: 0 0 1.5rem;
}

.by-urun-detay .by-urun-benzer .by-dk-service-cards-grid {
    margin-top: 0;
}

@media (max-width: 991px) {
    .by-dk-service-cards-grid .service-content .service-title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .by-home-categories-grid-wrap,
    .by-dk-service-cards-grid {
        margin-top: 1.75rem;
    }

    .by-dk-service-cards-grid .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
