/* ===== Search area under header ===== */

.pps-search-area {
    padding: 30px 5vw 50px;
    background: #0b2345; /* your existing dark blue */
    box-sizing: border-box;
}

/* Centered form */
.pps-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Search input ~70% width */
.pps-search-input {
    width: 70%;
    max-width: 900px;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 16px;
    box-sizing: border-box;
}

.pps-search-submit {
    padding: 10px 14px;
    border-radius: 4px;
    border: none;
    background: #ff6600;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

/* Message + results */
.pps-search-results-wrap {
    margin-top: 10px;
    color: #fff;
    text-align: center;
}

.pps-search-results-message {
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===== Product grid – 4 per row on desktop ===== */

.pps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Force 4 columns on large screens */
@media (min-width: 1200px) {
    .pps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* 3 columns on medium screens */
@media (min-width: 900px) and (max-width: 1199px) {
    .pps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 2 columns on tablets */
@media (min-width: 600px) and (max-width: 899px) {
    .pps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 1 column on small mobiles */
@media (max-width: 599px) {
    .pps-grid {
        grid-template-columns: 1fr;
    }
}

/* Card styling */

.pps-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
}

.pps-card-thumb {
    width: 100%;
    height: 220px;
    background: #f5f5f5;
}

.pps-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pps-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.pps-card-body {
    padding: 10px 12px 12px;
}

.pps-card-title {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #222;
}

.pps-card-price {
    font-weight: 600;
    font-size: 14px;
    color: #ff6600;
}

/* Messages inside results container */
.pps-no-results,
.pps-loading,
.pps-error {
    color: #fff;
    text-align: center;
    margin-top: 40px;
}
