/* =========================================================
   NORKA STOREFRONT SEARCH
   ========================================================= */

.search-page {
    min-height: 62vh;
    padding: 72px 0 100px;
    background: #fff;
}

.search-heading {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.search-eyebrow,
.search-results-label {
    display: block;
    margin-bottom: 10px;
    color: #a77b3f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
}

.search-heading h1 {
    margin: 0 0 34px;
    color: #252321;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(54px, 7vw, 88px);
    line-height: .92;
    font-weight: 600;
}

.search-main-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 860px;
    margin: 0 auto;
    border: 1px solid #dfd8cf;
    background: #faf7f2;
}

.search-field {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 18px;
}

.search-field svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    fill: none;
    stroke: #252321;
    stroke-width: 1.6;
}

.search-field input {
    width: 100%;
    height: 58px;
    padding: 0 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #252321;
    font: inherit;
}

.search-field input::placeholder {
    color: #8f8982;
}

.search-submit {
    min-width: 140px;
    border: 0;
    padding: 0 24px;
    background: #252321;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.search-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin: 70px 0 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e6e0d9;
}

.search-toolbar strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 34px;
    font-weight: 600;
}

.search-result-count {
    margin-left: 12px;
    color: #857e77;
    font-size: 13px;
}

.search-sort label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #716b65;
    font-size: 13px;
}

.search-sort select {
    min-width: 210px;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid #ded8d1;
    background: #fff;
    color: #252321;
}

.search-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 48px 24px;
}

.search-product-card {
    min-width: 0;
}

.search-product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f5f0e9;
}

.search-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

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

.search-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #b9aea1;
    font-family: "Cormorant Garamond", serif;
    font-size: 110px;
}

.search-product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    background: #252321;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.search-product-copy {
    padding-top: 14px;
}

.search-product-copy a {
    color: inherit;
    text-decoration: none;
}

.search-product-copy h2 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    line-height: 1.08;
    font-weight: 600;
}

.search-product-copy p {
    margin: 7px 0 0;
    color: #817a73;
    font-size: 13px;
    line-height: 1.5;
}

.search-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}

.search-product-price strong {
    font-size: 14px;
}

.search-product-price del {
    color: #98918a;
    font-size: 13px;
}

.search-empty-state {
    max-width: 850px;
    margin: 64px auto 0;
    padding: 70px 40px;
    border: 1px dashed #ddd5cc;
    background: #faf7f2;
    text-align: center;
}

.search-empty-mark {
    display: block;
    margin-bottom: 4px;
    color: #d4c6b5;
    font-family: "Cormorant Garamond", serif;
    font-size: 90px;
    line-height: 1;
}

.search-empty-state h2 {
    margin: 0 0 8px;
    font-family: "Cormorant Garamond", serif;
    font-size: 35px;
    font-weight: 600;
}

.search-empty-state p {
    margin: 0;
    color: #827b74;
    line-height: 1.6;
}

.search-empty-results {
    margin-top: 35px;
}

@media (max-width: 1050px) {
    .search-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .search-page {
        padding: 48px 0 72px;
    }

    .search-main-form {
        grid-template-columns: 1fr;
        border: 0;
        gap: 10px;
        background: transparent;
    }

    .search-field {
        border: 1px solid #dfd8cf;
        background: #faf7f2;
    }

    .search-submit {
        height: 50px;
    }

    .search-toolbar {
        align-items: stretch;
        flex-direction: column;
        margin-top: 48px;
    }

    .search-sort label {
        align-items: stretch;
        flex-direction: column;
    }

    .search-sort select {
        width: 100%;
    }

    .search-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 14px;
    }
}

@media (max-width: 480px) {
    .search-product-copy h2 {
        font-size: 20px;
    }

    .search-empty-state {
        padding: 52px 24px;
    }
}
