/* Product card actions, category quick bar, load more, mobile offer form.
   Plain CSS (not Tailwind) so it does not depend on the frontend build. */

.ps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.ps-btn i {
    font-size: 18px;
    line-height: 1;
}

.ps-btn:focus-visible {
    outline: 2px solid #2f3068;
    outline-offset: 2px;
}

.ps-btn--offer {
    background: #d7282f;
    color: #fff;
}

.ps-btn--offer:hover {
    background: #2f3068;
    color: #fff;
}

.ps-btn--wa {
    background: #67AE6E;
    color: #fff;
}

.ps-btn--wa:hover {
    background: #4f9457;
    color: #fff;
}

.ps-btn--ghost {
    background: #fff;
    border-color: rgba(47, 48, 104, .18);
    color: #2f3068;
}

.ps-btn--ghost:hover {
    border-color: #2f3068;
}

.ps-btn--outline {
    min-width: 260px;
    background: #fff;
    border-color: #2f3068;
    color: #2f3068;
}

.ps-btn--outline:hover,
.ps-btn--outline.is-loading {
    background: #2f3068;
    color: #fff;
}

.ps-btn.is-loading {
    pointer-events: none;
    opacity: .7;
}

/* Product card */
.ps-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ps-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ps-card-actions .ps-btn {
    width: 100%;
}

.ps-card-actions .ps-btn--offer.is-added {
    background: #2f3068;
}

/* Quick filter + quick offer bar */
.ps-quickbar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 30px;
}

.ps-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ps-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 1px solid rgba(47, 48, 104, .18);
    border-radius: 999px;
    background: #fff;
    color: #2f3068;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.ps-chip:hover {
    border-color: #2f3068;
}

.ps-chip.is-active,
.ps-chip[aria-pressed="true"] {
    background: #2f3068;
    border-color: #2f3068;
    color: #fff;
}

.ps-quickoffer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px 14px 24px;
    border: 1px solid rgba(47, 48, 104, .1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 3.4px 3.4px 25.6px 0 rgba(0, 0, 0, .07);
}

.ps-quickoffer__text {
    margin: 0;
    color: rgba(47, 48, 104, .85);
    font-size: 18px;
    font-weight: 500;
}

.ps-quickoffer__text strong {
    color: #2f3068;
}

.ps-quickoffer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The filter sidebar is pulled up 65px into the hero; leave room for it under the bar. */
@media (min-width: 1025px) {
    .ps-quickbar {
        padding-bottom: 70px;
    }
}

/* Load more */
.ps-loadmore {
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.ps-loadmore[hidden] {
    display: none;
}

/* Category description, moved under the product list */
.ps-cat-desc {
    padding-top: 10px;
    padding-bottom: 60px;
}

@media (max-width: 1024px) {
    .ps-quickoffer {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .ps-quickoffer__actions .ps-btn {
        flex: 1 1 auto;
    }

    .ps-cat-desc {
        padding-bottom: 40px;
    }
}

@media (max-width: 640px) {
    .ps-quickbar {
        gap: 14px;
        padding-top: 20px;
    }

    .ps-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -15px;
        padding: 0 15px 4px;
        scrollbar-width: none;
    }

    .ps-chips::-webkit-scrollbar {
        display: none;
    }

    .ps-chip {
        min-height: 38px;
        padding: 7px 14px;
        font-size: 14px;
    }

    .ps-quickoffer__text {
        font-size: 16px;
    }

    .ps-btn {
        min-height: 42px;
        padding: 8px 10px;
        font-size: 14px;
    }

    /* Two-column phone grid: "Teklif Al" takes the width, WhatsApp becomes an icon button. */
    .ps-card-actions {
        grid-template-columns: 1fr 42px;
        gap: 6px;
    }

    .ps-card-actions .ps-btn--wa {
        width: 42px;
        padding: 0;
    }

    .ps-card-actions .ps-btn--wa span {
        display: none;
    }

    .ps-card-actions .ps-btn--wa i {
        font-size: 20px;
    }

    .ps-btn--outline {
        min-width: 0;
        width: 100%;
    }

    .ps-loadmore {
        padding-top: 30px;
    }
}

/* Offer form (#659): on phones only name, phone, need/model and KVKK stay visible. */
@media (max-width: 767px) {
    .wpcf7 .ps-optional-field {
        display: none !important;
    }
}
