/* =========================================
   UZAYO SEARCH PAGE
========================================= */

.search-page {
    min-height: 75vh;
    padding: 85px 20px 100px;
    background: #ffffff;
}

.search-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}


/* =========================================
   SEARCH HEADER
========================================= */

.search-header {
    margin-bottom: 45px;
    text-align: center;
}

.search-eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: #b89b5e;

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.search-header h1 {
    margin: 0 0 15px;

    color: #111111;

    font-family: "Playfair Display", serif;

    font-size: clamp(2.8rem, 6vw, 4.5rem);

    font-weight: 500;

    line-height: 1;
}

.search-header p {
    max-width: 550px;

    margin: 0 auto;

    color: #777777;

    font-size: 0.9rem;

    line-height: 1.8;
}


/* =========================================
   SEARCH FORM
========================================= */

.search-form {
    display: flex;

    width: min(800px, 100%);

    margin: 0 auto 70px;

    gap: 10px;
}

.search-input-wrapper {
    position: relative;

    flex: 1;
}

.search-input-wrapper input {
    width: 100%;

    box-sizing: border-box;

    height: 55px;

    padding: 0 50px;

    border: 1px solid #ddddda;

    outline: none;

    background: #fafaf8;

    color: #111111;

    font-family: inherit;

    font-size: 0.85rem;

    transition: 0.25s ease;
}

.search-input-wrapper input:focus {
    border-color: #111111;

    background: #ffffff;
}

.search-input-wrapper input::placeholder {
    color: #999999;
}


/* =========================================
   SEARCH ICON
========================================= */

.search-input-icon {
    position: absolute;

    top: 50%;
    left: 18px;

    width: 20px;
    height: 20px;

    transform: translateY(-50%);

    color: #888888;

    pointer-events: none;
}

.search-input-icon circle,
.search-input-icon path {
    stroke-width: 1.5;
}


/* =========================================
   CLEAR BUTTON
========================================= */

.search-clear {
    position: absolute;

    top: 50%;
    right: 17px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    transform: translateY(-50%);

    color: #888888;

    font-size: 1.25rem;

    line-height: 1;

    text-decoration: none;

    transition: 0.2s ease;
}

.search-clear:hover {
    color: #111111;
}


/* =========================================
   SEARCH BUTTON
========================================= */

.search-button {
    height: 55px;

    padding: 0 30px;

    border: none;

    background: #111111;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    transition: 0.3s ease;
}

.search-button:hover {
    background: #b89b5e;
}


/* =========================================
   RESULTS HEADER
========================================= */

.search-results-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 30px;

    padding-bottom: 18px;

    border-bottom: 1px solid #e5e5e2;
}

.search-results-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #b89b5e;

    font-size: 0.6rem;

    font-weight: 700;

    letter-spacing: 2px;
}

.search-results-header h2 {
    margin: 0;

    color: #111111;

    font-family: "Playfair Display", serif;

    font-size: 1.7rem;

    font-weight: 500;
}

.search-result-count {
    color: #888888;

    font-size: 0.7rem;

    white-space: nowrap;
}


/* =========================================
   RESULTS GRID
========================================= */

.search-results-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.search-product-card {
    min-width: 0;
}

.search-product-image {
    display: block;

    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 5;

    background: #f5f5f3;

    text-decoration: none;
}

.search-product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.search-product-image:hover img {
    transform: scale(1.04);
}


/* =========================================
   PRODUCT INFO
========================================= */

.search-product-info {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding-top: 17px;
}

.search-product-info h3 {
    margin: 0 0 7px;

    color: #222222;

    font-family: "Playfair Display", serif;

    font-size: 1.05rem;

    font-weight: 500;

    line-height: 1.3;
}

.search-product-price {
    margin: 0;

    color: #777777;

    font-size: 0.8rem;
}


/* =========================================
   ADD TO BAG
========================================= */

.search-add-button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 10px 13px;

    background: #111111;

    color: #ffffff;

    text-decoration: none;

    font-size: 0.55rem;

    font-weight: 700;

    letter-spacing: 1px;

    white-space: nowrap;

    transition: 0.3s ease;
}

.search-add-button span {
    transition: 0.3s ease;
}

.search-add-button:hover {
    background: #b89b5e;
}

.search-add-button:hover span {
    transform: translateX(3px);
}


/* =========================================
   NO RESULTS
========================================= */

.search-no-results {
    max-width: 650px;

    margin: 0 auto;

    padding: 65px 30px;

    border: 1px solid #e5e5e2;

    background: #fafaf8;

    text-align: center;
}

.search-no-results-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #ffffff;

    color: #999999;

    font-size: 1.5rem;
}

.search-no-results h2 {
    margin: 0 0 12px;

    color: #111111;

    font-family: "Playfair Display", serif;

    font-size: 1.8rem;

    font-weight: 500;
}

.search-no-results p {
    margin: 5px 0;

    color: #888888;

    font-size: 0.8rem;

    line-height: 1.7;
}

.search-shop-button {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 25px;

    padding: 14px 22px;

    background: #111111;

    color: #ffffff;

    text-decoration: none;

    font-size: 0.62rem;

    font-weight: 700;

    letter-spacing: 1.3px;

    transition: 0.3s ease;
}

.search-shop-button span {
    transition: 0.3s ease;
}

.search-shop-button:hover {
    background: #b89b5e;
}

.search-shop-button:hover span {
    transform: translateX(4px);
}


/* =========================================
   DEFAULT SEARCH STATE
========================================= */

.search-default {
    padding: 65px 20px;

    border-top: 1px solid #e5e5e2;
    border-bottom: 1px solid #e5e5e2;

    text-align: center;
}

.search-default > span {
    display: block;

    margin-bottom: 12px;

    color: #b89b5e;

    font-size: 0.62rem;

    font-weight: 700;

    letter-spacing: 2px;
}

.search-default h2 {
    margin: 0 0 10px;

    color: #111111;

    font-family: "Playfair Display", serif;

    font-size: 2rem;

    font-weight: 500;
}

.search-default p {
    margin: 0;

    color: #888888;

    font-size: 0.8rem;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {

    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .search-page {
        padding: 60px 15px 80px;
    }

    .search-header {
        margin-bottom: 35px;
    }

    .search-header h1 {
        font-size: 3rem;
    }

    .search-form {
        flex-direction: column;

        margin-bottom: 50px;
    }

    .search-button {
        width: 100%;
    }

    .search-results-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .search-results-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }

    .search-product-info {
        gap: 12px;
    }

    .search-product-info h3 {
        font-size: 1rem;
    }

    .search-add-button {
        padding: 9px 11px;

        font-size: 0.5rem;
    }

}