/* =========================================================
   UI 01U — SEARCH RESULTS
   Preserves the shared title-only page-header rule.
   ========================================================= */

.ds15-search-page {
    background: #fff;
    color: #171717;
    font-family: Inter, Arial, sans-serif;
}

.ds15-search-page * {
    box-sizing: border-box;
}

.ds15-search-page a {
    color: inherit;
    text-decoration: none;
}

.ds15-search-toolbar {
    border-bottom: 1px solid #e7e0d7;
    background: #fff;
}

.ds15-search-toolbar__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.ds15-search-summary {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ds15-search-summary > span {
    color: #837b72;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ds15-search-summary > strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 400;
}

.ds15-search-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ds15-search-actions > span {
    color: #817970;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ds15-search-again {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #ddd6cd;
    background: #fff;
    color: #171717;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.ds15-search-again:hover {
    border-color: #171717;
}

.ds15-search-body {
    padding: 50px 0 90px;
}

.ds15-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 14px !important;
}

.ds15-product-grid .ds-product-card {
    min-width: 0;
}

.ds15-product-grid .ds-product-card__media {
    aspect-ratio: 3 / 4;
    background: #eee8df;
    overflow: hidden;
}

.ds15-product-grid .ds-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.ds15-product-grid .ds-product-card__name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.2;
}

.ds15-product-grid .ds-product-card__purchase {
    margin-top: 13px;
}

.ds15-empty {
    min-height: 480px;
    padding: 55px 28px;
    background: #f6f1ea;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.ds15-empty > .material-symbols-outlined {
    color: #9b7b48;
    font-size: 43px;
}

.ds15-empty h2 {
    margin: 17px 0 7px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -.03em;
}

.ds15-empty p {
    max-width: 530px;
    margin: 0;
    color: #716a62;
    font-size: 12px;
    line-height: 1.7;
}

.ds15-empty > div {
    margin-top: 24px;
    display: flex;
    gap: 10px;
}

.ds15-empty button,
.ds15-empty a {
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid #171717;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #171717;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

.ds15-empty a {
    background: transparent;
    color: #171717;
}

html.ds15-search-lock {
    overflow: hidden;
}

.ds15-search-panel {
    position: fixed;
    inset: 0;
    z-index: 900;
}

.ds15-search-panel__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 17, .46);
}

.ds15-search-panel__box {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100vw - 40px));
    margin: 10vh auto 0;
    padding: 35px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .17);
}

.ds15-search-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}

.ds15-search-panel__head p {
    margin: 0 0 5px;
    color: #7d756c;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ds15-search-panel__head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-weight: 400;
    letter-spacing: -.03em;
}

.ds15-search-panel__head > button {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #ded7ce;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font-size: 25px;
    cursor: pointer;
}

.ds15-search-form {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    border-bottom: 1px solid #171717;
}

.ds15-search-form input {
    min-width: 0;
    height: 54px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.ds15-search-form input::placeholder {
    color: #aaa198;
}

.ds15-search-form button {
    min-width: 96px;
    height: 54px;
    padding: 0 16px;
    border: 0;
    background: #171717;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}

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

@media (max-width: 720px) {
    .ds15-search-toolbar__inner {
        min-height: 62px;
    }

    .ds15-search-actions > span,
    .ds15-search-actions > .ds5-text-link {
        display: none;
    }

    .ds15-search-body {
        padding: 34px 0 65px;
    }

    .ds15-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 9px !important;
    }

    .ds15-search-panel__box {
        width: calc(100vw - 20px);
        margin-top: 10px;
        padding: 26px 18px;
    }

    .ds15-search-panel__head h2 {
        font-size: 33px;
    }

    .ds15-search-form input {
        font-size: 19px;
    }
}

@media (max-width: 460px) {
    .ds15-search-summary > span {
        display: none;
    }

    .ds15-search-summary > strong {
        max-width: 210px;
        font-size: 16px;
    }

    .ds15-search-again {
        padding-inline: 10px;
    }

    .ds15-product-grid .ds-product-card__name {
        font-size: 17px;
    }
}
