/* =========================================================
   PRODUCTS SEARCH PAGE
   Parent class : .products-search-page
   Rule         : sirf px units (no rem / em)
   Colors       : Orange #c55b1b  |  Cream #f8f6f0  |  Dark #191b1f
========================================================= */

.products-search-page {
    width: 100%;
    padding: 0 0 70px;
    background: #f8f6f0;
    color: #222222;
    font-family: "Work Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 22px;
    box-sizing: border-box;
}

.products-search-page *,
.products-search-page *::before,
.products-search-page *::after {
    box-sizing: border-box;
}

.products-search-page img {
    max-width: 100%;
    display: block;
}

.products-search-page a {
    text-decoration: none;
}

.products-search-page button,
.products-search-page input,
.products-search-page select {
    font-family: inherit;
}

.products-search-page .ps-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.products-search-page .ps-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 22px 0 18px;
    color: #888888;
    font-size: 12px;
    line-height: 18px;
}

.products-search-page .ps-breadcrumb a {
    color: #777777;
    transition: color 0.2s ease;
}

.products-search-page .ps-breadcrumb a:hover {
    color: #c55b1b;
}


/* =========================================================
   HERO
========================================================= */

.products-search-page .ps-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding: 34px 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #191b1f 0%, #2f3239 100%);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(25, 27, 31, 0.25);
}

.products-search-page .ps-hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 91, 27, 0.55) 0%, rgba(197, 91, 27, 0) 70%);
}

.products-search-page .ps-hero-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.products-search-page .ps-kicker {
    display: block;
    margin: 0 0 8px;
    color: #f0a46b;
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.products-search-page .ps-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-family: "Fraunces", Georgia, serif;
    font-size: 40px;
    line-height: 48px;
    font-weight: 600;
}

.products-search-page .ps-subtitle {
    margin: 0;
    color: #c9c9cf;
    font-size: 14px;
    line-height: 22px;
}

.products-search-page .ps-hero-stat {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 120px;
    padding: 16px 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
}

.products-search-page .ps-hero-stat strong {
    display: block;
    color: #ffffff;
    font-family: "Fraunces", Georgia, serif;
    font-size: 34px;
    line-height: 40px;
    font-weight: 700;
}

.products-search-page .ps-hero-stat span {
    display: block;
    color: #f0a46b;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   FILTER BOX
========================================================= */

.products-search-page .ps-filter-box {
    margin: 0 0 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #eee6d8;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(120, 80, 30, 0.08);
}

.products-search-page .ps-filter-form {
    display: grid;
    grid-template-columns:
        minmax(220px, 1.6fr)
        repeat(4, minmax(140px, 1fr))
        auto;
    gap: 12px;
    align-items: center;
}

.products-search-page .ps-search {
    position: relative;
}

.products-search-page .ps-search svg {
    position: absolute;
    top: 14px;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #999999;
}

.products-search-page .ps-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1px solid #e6dccb;
    border-radius: 23px;
    background: #fbf9f4;
    color: #333333;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.products-search-page .ps-search input:focus {
    border-color: #c55b1b;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 91, 27, 0.15);
}

.products-search-page .ps-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 46px;
    padding: 0 38px 0 16px;
    border: 1px solid #e6dccb;
    border-radius: 23px;
    background-color: #fbf9f4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23c55b1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    color: #333333;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    text-overflow: ellipsis;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.products-search-page .ps-select:focus {
    border-color: #c55b1b;
    box-shadow: 0 0 0 4px rgba(197, 91, 27, 0.15);
}

.products-search-page .ps-search-btn {
    height: 46px;
    padding: 0 30px;
    border: 0;
    border-radius: 23px;
    background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(197, 91, 27, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.products-search-page .ps-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(197, 91, 27, 0.45);
}


/* =========================================================
   RESULT ROW
========================================================= */

.products-search-page .ps-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
}

.products-search-page .ps-result-count {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 22px;
}

.products-search-page .ps-result-count strong {
    color: #c55b1b;
    font-size: 18px;
}

.products-search-page .ps-result-count span {
    color: #222222;
    font-weight: 700;
}

.products-search-page .ps-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #f0cfb3;
    border-radius: 20px;
    background: #fff3e8;
    color: #9b4c17;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.products-search-page .ps-clear:hover {
    background: #c55b1b;
    color: #ffffff;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.products-search-page .ps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    max-width: 1250px;
    margin: auto;
    margin-top: 30px;
}

.products-search-page .ps-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ece4d6;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.products-search-page .ps-card:hover {
    transform: translateY(-5px);
    border-color: #e6c9ad;
    box-shadow: 0 16px 34px rgba(120, 80, 30, 0.18);
}

.products-search-page .ps-media {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f6f5f1;
}

.products-search-page .ps-media-link {
    display: block;
    width: 100%;
    height: 100%;
}

.products-search-page .ps-media img {
    width: 100%;
    height: 100%;
    padding: 14px;
    object-fit: contain;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.products-search-page .ps-card:hover .ps-media img {
    transform: scale(1.1);
}

.products-search-page .ps-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    padding: 4px 10px;
    border-radius: 12px;
    color: #ffffff;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.products-search-page .ps-tag-new {
    background: #27834b;
}

.products-search-page .ps-tag-sale {
    background: #c55b1b;
}

.products-search-page .ps-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px;
}

.products-search-page .ps-brand {
    margin: 0 0 4px;
    color: #b65317;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.products-search-page .ps-name {
    height: 42px;
    margin: 0 0 6px;
    overflow: hidden;
    font-size: 14px;
    line-height: 21px;
    font-weight: 600;
}

.products-search-page .ps-name a {
    color: #222222;
    transition: color 0.2s ease;
}

.products-search-page .ps-name a:hover {
    color: #c55b1b;
}

.products-search-page .ps-category {
    margin: 0 0 8px;
    color: #888888;
    font-size: 12px;
    line-height: 18px;
}

.products-search-page .ps-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0 0 6px;
}

.products-search-page .ps-price-now {
    color: #b65317;
    font-size: 19px;
    line-height: 26px;
    font-weight: 700;
}

.products-search-page .ps-price-old {
    color: #999999;
    font-size: 12px;
    line-height: 18px;
    text-decoration: line-through;
}

.products-search-page .ps-sku {
    margin: 0 0 6px;
    color: #9a9a9a;
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    line-height: 16px;
}

.products-search-page .ps-stock {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
}

.products-search-page .ps-in {
    color: #27834b;
}

.products-search-page .ps-out {
    color: #c0392b;
}

.products-search-page .ps-btn {
    display: block;
    height: 40px;
    margin-top: auto;
    border-radius: 20px;
    background: #191b1f;
    color: #ffffff;
    font-size: 13px;
    line-height: 40px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s ease;
}

.products-search-page .ps-card:hover .ps-btn,
.products-search-page .ps-btn:hover {
    background: #c55b1b;
}


/* =========================================================
   READ MORE
========================================================= */

.products-search-page .ps-readmore-wrap {
    display: flex;
    justify-content: center;
    margin: 40px 0 0;
}

.products-search-page .ps-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    height: 52px;
    padding: 0 32px;
    border-radius: 26px;
    background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(197, 91, 27, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.products-search-page .ps-readmore span {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.products-search-page .ps-readmore:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(197, 91, 27, 0.5);
}

.products-search-page .ps-readmore:hover span {
    transform: translateX(5px);
}


/* =========================================================
   EMPTY STATE
========================================================= */

.products-search-page .ps-empty {
    padding: 70px 30px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #e0cdb4;
    border-radius: 16px;
}

.products-search-page .ps-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    padding: 22px;
    border-radius: 50%;
    background: #fff3e8;
    color: #c55b1b;
}

.products-search-page .ps-empty-icon svg {
    width: 36px;
    height: 36px;
}

.products-search-page .ps-empty h2 {
    margin: 0 0 8px;
    color: #222222;
    font-family: "Fraunces", Georgia, serif;
    font-size: 26px;
    line-height: 34px;
    font-weight: 600;
}

.products-search-page .ps-empty p {
    max-width: 520px;
    margin: 0 auto 22px;
    color: #777777;
    font-size: 14px;
    line-height: 24px;
}

.products-search-page .ps-view-all {
    display: inline-block;
    height: 46px;
    padding: 0 30px;
    border-radius: 23px;
    background: linear-gradient(135deg, #e0742a 0%, #b65317 100%);
    color: #ffffff;
    font-size: 14px;
    line-height: 46px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(197, 91, 27, 0.35);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1280px) {

    .products-search-page .ps-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .products-search-page .ps-filter-form {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .products-search-page .ps-search {
        grid-column: 1 / -1;
    }

    .products-search-page .ps-search-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

}


@media (max-width: 1000px) {

    .products-search-page .ps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .products-search-page .ps-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 800px) {

    .products-search-page .ps-wrap {
        padding: 0 16px;
    }

    .products-search-page .ps-hero {
        padding: 26px 22px;
    }

    .products-search-page .ps-title {
        font-size: 32px;
        line-height: 40px;
    }

}


@media (max-width: 700px) {

    .products-search-page .ps-breadcrumb {
        padding: 16px 0 12px;
    }

    .products-search-page .ps-hero {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .products-search-page .ps-title {
        font-size: 26px;
        line-height: 34px;
    }

    .products-search-page .ps-subtitle {
        font-size: 13px;
        line-height: 20px;
    }

    .products-search-page .ps-hero-stat {
        min-width: 84px;
        padding: 10px 14px;
    }

    .products-search-page .ps-hero-stat strong {
        font-size: 26px;
        line-height: 32px;
    }

    .products-search-page .ps-filter-box {
        padding: 14px;
        border-radius: 14px;
    }

    .products-search-page .ps-filter-form {
        gap: 10px;
    }

    .products-search-page .ps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .products-search-page .ps-card {
        border-radius: 12px;
    }

    .products-search-page .ps-media {
        height: 160px;
    }

    .products-search-page .ps-media img {
        padding: 10px;
    }

    .products-search-page .ps-body {
        padding: 10px;
    }

    .products-search-page .ps-brand {
        font-size: 10px;
    }

    .products-search-page .ps-name {
        height: 38px;
        font-size: 13px;
        line-height: 19px;
    }

    .products-search-page .ps-category {
        font-size: 11px;
    }

    .products-search-page .ps-price-now {
        font-size: 16px;
        line-height: 24px;
    }

    .products-search-page .ps-sku {
        font-size: 10px;
    }

    .products-search-page .ps-btn {
        height: 36px;
        font-size: 12px;
        line-height: 36px;
    }

    .products-search-page .ps-readmore {
        width: 100%;
        min-width: 0;
        height: 48px;
    }

    .products-search-page .ps-empty {
        padding: 50px 20px;
    }

}


@media (max-width: 420px) {

    .products-search-page .ps-wrap {
        padding: 0 10px;
    }

    .products-search-page .ps-filter-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .products-search-page .ps-media {
        height: 140px;
    }

}


@media (max-width: 340px) {

    .products-search-page .ps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .products-search-page .ps-media {
        height: 220px;
    }

}
