/* ==========================================================================
   SEARCH PAGE STYLES (Women Accessories)
   File: public/assets/css/search.css
   ========================================================================== */

/* ==========================================================================
   SEARCH - BREADCRUMB BAR (#f8f8f8)
   ========================================================================== */

.search-breadcrumb-bar {
    width: 100%;
    background-color: #f8f8f8;
    padding-top: clamp(1.4rem, 1.6vw, 2.0rem);
    padding-bottom: clamp(1.4rem, 1.6vw, 2.0rem);
    border-bottom: 1px solid #f0f0f0;
}

.search-breadcrumb-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-left: clamp(2.4rem, 4.8vw, 7.8rem);
    padding-right: clamp(2.4rem, 4.8vw, 7.8rem);
}

.search-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.2rem, 0.95vw, 1.35rem);
    color: #595959;
    line-height: 1;
    margin: 0;
}

.search-breadcrumb-link {
    color: #595959;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-breadcrumb-link:hover {
    color: #111111;
    text-decoration: none;
}

.search-breadcrumb-sep {
    color: #777777;
    margin: 0 0.2rem;
}

.search-breadcrumb-badge {
    background-color: #ff97aa;
    color: #111111;
    font-weight: 500;
    font-size: clamp(1.15rem, 0.9vw, 1.25rem);
    padding: 0.45rem 1.4rem;
    border-radius: 5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.2rem 0.6rem rgba(255, 151, 170, 0.25);
}

/* ==========================================================================
   SEARCH - SECTION 1: SEARCH YOUR FAVOURITES
   ========================================================================== */

.search-hero-section {
    position: relative;
    width: 100%;
    background-color: #ffffff;
    padding-top: clamp(5.6rem, 6.8vw, 9.0rem);
    padding-bottom: clamp(5.6rem, 6.8vw, 9.0rem);
    overflow: hidden;
}

.search-hero-container {
    width: 100%;
    max-width: 86rem;
    margin: 0 auto;
    padding-left: 2.0rem;
    padding-right: 2.0rem;
    text-align: center;
}

/* Heading: Search Your Favourites */
.search-hero-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.8rem, 3.4vw, 4.4rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #111111;
    margin-top: 0;
    margin-bottom: clamp(2.4rem, 3.0vw, 3.8rem);
    text-align: center;
}

/* Search Form Wrap & Pill */
.search-form-wrap {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
}

.search-input-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: clamp(5.4rem, 5.0vw, 6.2rem);
    border: 1.5px solid #111111;
    border-radius: 5rem;
    padding: 0.5rem 0.6rem 0.5rem 2.4rem;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-pill:focus-within {
    border-color: #111111;
    box-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.08);
}

.search-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8c909e;
    margin-right: 1.2rem;
    flex-shrink: 0;
}

.search-input-field {
    flex: 1 1 auto;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.35rem, 1.05vw, 1.5rem);
    font-weight: 400;
    color: #111111;
    min-width: 0;
}

.search-input-field::placeholder {
    color: #8c909e;
    font-weight: 400;
}

/* Clear Button (Hidden by default, shown when input has text) */
.search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0 1.2rem;
    color: #111111;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.search-clear-btn:hover {
    transform: scale(1.1);
    color: #000000;
}

/* State when user has typed in search input: show clear icon, hide submit button */
.search-input-pill.has-value {
    padding-right: 1.6rem;
}

.search-input-pill.has-value .search-clear-btn {
    display: inline-flex;
}

.search-input-pill.has-value .search-submit-btn {
    display: none !important;
}

/* Cyan Search Submit Button */
.search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #35f3ff !important;
    color: #000000 !important;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.25rem, 0.95vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5rem;
    height: 100%;
    padding: 0 clamp(2.0rem, 2.5vw, 3.2rem);
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0.3rem 1.2rem rgba(53, 243, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.search-submit-btn:hover,
.search-submit-btn:focus-visible {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.6rem rgba(53, 243, 255, 0.5);
    color: #000000 !important;
}

.search-submit-btn .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.search-submit-btn:hover .btn-arrow {
    transform: translate(0.25rem, -0.25rem);
}

/* ==========================================================================
   SEARCH - RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablets (<= 991.98px) */
@media (max-width: 991.98px) {
    .search-hero-section {
        padding-top: 5.0rem;
        padding-bottom: 5.0rem;
    }

    .search-breadcrumb-container {
        padding-left: 2.4rem;
        padding-right: 2.4rem;
    }

    .search-hero-title {
        font-size: 3.4rem;
        margin-bottom: 2.6rem;
    }

    .search-input-pill {
        height: 5.6rem;
        padding-left: 2.0rem;
    }
}

/* Mobile Devices (<= 767.98px) */
@media (max-width: 767.98px) {
    .search-hero-section {
        padding-top: 4.2rem;
        padding-bottom: 4.2rem;
    }

    .search-breadcrumb-container {
        padding-left: 2.0rem;
        padding-right: 2.0rem;
    }

    .search-hero-title {
        font-size: 2.8rem;
        margin-bottom: 2.2rem;
    }

    .search-input-pill {
        height: 5.2rem;
        padding-left: 1.6rem;
    }

    .search-submit-btn {
        padding: 0 2.0rem;
        font-size: 1.2rem;
    }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
    .search-breadcrumb-container {
        padding-left: 1.6rem;
        padding-right: 1.6rem;
    }

    .search-hero-title {
        font-size: 2.4rem;
    }

    .search-input-pill {
        height: 5.0rem;
        padding-left: 1.4rem;
        padding-right: 0.4rem;
    }

    .search-submit-btn {
        padding: 0 1.6rem;
        font-size: 1.15rem;
        gap: 0.5rem;
    }

    .search-input-icon {
        margin-right: 0.8rem;
    }
}

/* ==========================================================================
   SEARCH NO RESULTS - SECTION 1: EMPTY STATE
   ========================================================================== */

.search-no-result-section {
    width: 100%;
    background-color: #ffffff;
    padding-top: clamp(4.8rem, 6.0vw, 8.0rem);
    padding-bottom: clamp(5.6rem, 7.0vw, 9.0rem);
    text-align: center;
}

.search-no-result-container {
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding-left: 2.0rem;
    padding-right: 2.0rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-no-result-img-wrap {
    width: clamp(14.0rem, 15vw, 17.5rem);
    height: auto;
    margin: 0 auto clamp(2.4rem, 3.0vw, 3.6rem) auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-no-result-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.search-no-result-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(2.6rem, 3.2vw, 4.0rem);
    font-weight: 400;
    line-height: 1.2;
    color: #111111;
    margin-top: 0;
    margin-bottom: clamp(1.0rem, 1.2vw, 1.6rem);
    letter-spacing: -0.015em;
    text-align: center;
}

.search-no-result-desc {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.3rem, 1.0vw, 1.45rem);
    font-weight: 400;
    line-height: 1.5;
    color: #444444;
    margin-top: 0;
    margin-bottom: clamp(2.8rem, 3.4vw, 4.2rem);
    text-align: center;
}

.btn-search-continue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #35f3ff !important;
    color: #000000 !important;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(1.25rem, 0.95vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5rem;
    height: clamp(4.8rem, 4.2vw, 5.4rem);
    padding: 0 clamp(2.8rem, 3.4vw, 4.2rem);
    border: none;
    cursor: pointer;
    box-shadow: 0 0.3rem 1.4rem rgba(53, 243, 255, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-search-continue:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1.8rem rgba(53, 243, 255, 0.5);
    color: #000000 !important;
}

.btn-search-continue .btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.2s ease;
}

.btn-search-continue:hover .btn-arrow {
    transform: translate(0.25rem, -0.25rem);
}
