/* =========================
   SEARCH PANEL
========================= */

.search-panel {
    position: fixed;

    top: -100vh;
    left: 0;

    width: 100%;
    height: 100vh;

    background: rgba(250,250,243,.12);

    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);

    border-bottom: 1px solid rgba(255,255,255,.15);

    box-shadow: 0 20px 60px rgba(0,0,0,.08);

    z-index: 99999;

    overflow-y: auto;

    transition: top .45s ease;
}

.search-panel.active {
    top: 0;
}


/* CONTENT */

.search-content {
    max-width: 1200px;

    margin: 0 auto;

    position: relative;

    padding: 110px 50px 50px;
}


/* CLOSE */

.close-search {
    position: absolute;

    top: 90px;
    right: 70px;

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;

    font-weight: 300;

    color: #0b1f17;

    cursor: pointer;

    border-radius: 50%;

    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;

    z-index: 9999;
}

.close-search:hover {
    transform:
        rotate(90deg)
        scale(1.15);

    background: rgba(11,31,23,.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,.12);
}

.close-search:active {
    transform:
        rotate(90deg)
        scale(.9);
}


/* TOP SEARCH BAR */

.search-top {
    max-width: 500px;

    margin: 0 auto 60px;

    display: flex;
}

.search-box {
    flex: 1;

    height: 42px;

    font-size: 20px;

    color: #0b1f17;

    caret-color: #0b1f17;

    border: none;

    border-bottom: 1px solid rgba(11,31,23,.35);

    background: transparent;

    outline: none;

    padding: 0;
}

.search-box::placeholder {
    color: rgba(11,31,23,.55);
}

.search-btn {
    width: 110px;

    height: 38px;

    background: #0b1f17;

    color: #fafaf3;

    font-size: 14px;

    letter-spacing: 1px;

    border: none;
}


/* GRID */

.search-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr;

    gap: 50px;
}


/* TITLES */

.search-column h3 {
    font-size: 15px;

    letter-spacing: 2px;

    margin-bottom: 30px;

    color: #0b1f17;
}


/* LEFT */

.inspired-grid {
    display: grid;

    grid-template-columns: repeat(2,1fr);

    gap: 20px;
}

.product-card {
    height: 120px;

    background: rgba(11,31,23,0.04);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(11,31,23,.08);

    border-radius: 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #0b1f17;

    transition: .3s ease;
}

.product-card:hover {
    transform: translateY(-3px);

    border-color: #0b1f17;
}


/* CATEGORIES */

.search-column.categories {
    border-left: 1px solid rgba(11,31,23,.15);

    padding-left: 50px;
}

.categories {
    display: flex;

    flex-direction: column;
}

.categories a,
.support a {
    text-decoration: none;

    color: #0b1f17;

    font-size: 18px;

    padding: 14px 0;

    border-bottom: 1px solid rgba(11,31,23,.08);

    transition: .25s ease;

    position: relative;
}

.categories a:hover,
.support a:hover {
    color: #365246;

    padding-left: 10px;
}

.categories a::after,
.support a::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: 8px;

    width: 0;
    height: 1px;

    background: #365246;

    transition: .3s ease;
}

.categories a:hover::after,
.support a:hover::after {
    width: 100%;
}


/* SUPPORT */

.support {
    display: flex;

    flex-direction: column;

    background: rgba(11,31,23,.03);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(11,31,23,.08);

    padding: 25px;

    border-radius: 10px;
}

.support a span {
    display: inline-block;

    width: 28px;
}


/* LIVE SEARCH RESULTS */

.live-results {
    width: 900px;

    max-width: 100%;

    margin: 30px auto;

    display: none;

    background: rgba(11,31,23,.03);

    backdrop-filter: blur(15px);

    border: 1px solid rgba(11,31,23,.1);

    border-radius: 14px;

    overflow: hidden;
}

.live-item {
    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px 22px;

    cursor: pointer;

    transition: .3s;

    border-bottom: 1px solid rgba(11,31,23,.08);
}

.live-item:hover {
    background: rgba(11,31,23,.05);
}

.live-item img {
    width: 70px;
    height: 70px;

    object-fit: cover;

    border-radius: 8px;
}

.live-title {
    color: #0b1f17;

    font-size: 18px;
}

.live-type {
    font-size: 12px;

    opacity: .6;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #0b1f17;
}


/* =========================
   SEARCH FILTERS
========================= */

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.search-filter-select,
.search-filter-input {
    padding: 10px 14px;
    background: rgba(11,31,23,.04);
    border: 1px solid rgba(11,31,23,.25);
    color: #0b1f17;
    font-size: 13px;
    border-radius: 6px;
    outline: none;
}

.search-filter-input::placeholder {
    color: rgba(11,31,23,.5);
}

.search-filter-input {
    width: 110px;
}

.search-filter-select option {
    color: #0b1f17;
}

.live-title mark {
    background: rgba(255, 220, 120, .5);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.live-price {
    margin-top: 4px;
    font-size: 13px;
    color: #0b1f17;
    opacity: .8;
}

.search-loading {
    text-align: center;
    color: rgba(11,31,23,.6);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}


/* =========================
   SEARCH RESULTS PAGE
========================= */

.search-results-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 180px 40px 100px;
}

.search-results-header {
    text-align: center;
    margin-bottom: 70px;
}

.search-results-kicker {
    display: block;
    margin-bottom: 16px;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(11,31,23,.5);
}

.search-results-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    color: #0b1f17;
    margin: 0 0 14px;
}

.search-results-count {
    font-size: 14px;
    color: rgba(11,31,23,.55);
    margin: 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.search-result-card {
    display: block;
    text-decoration: none;
    color: #0b1f17;
    transition: transform .3s ease;
}

.search-result-card:hover {
    transform: translateY(-4px);
}

.search-result-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: rgba(11,31,23,.04);
    border-radius: 8px;
    margin-bottom: 16px;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(11,31,23,.06);
}

.search-result-type {
    display: block;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(11,31,23,.5);
    margin-bottom: 6px;
}

.search-result-name {
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 6px;
}

.search-result-price {
    font-size: 13px;
    color: rgba(11,31,23,.7);
}

.search-results-pagination {
    margin-top: 60px;
    text-align: center;
}

.search-results-empty {
    text-align: center;
    padding: 60px 0;
}

.search-results-empty p {
    font-size: 16px;
    color: rgba(11,31,23,.6);
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .search-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-results-page {
        padding: 140px 20px 60px;
    }
}
