/* =========================================================
   Product Search - Left Drawer
   Keeps product search out of the header and opens it as a
   professional Bootstrap offcanvas panel from the left.
   ========================================================= */

body.fashion-storefront-v3 .storefront-search-launch {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    margin-left: 24px;
    margin-right: 12px;
    border: 1px solid #ead7e1;
    border-radius: 999px;
    background: #fff7fa;
    color: #3f2538;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(71,38,64,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}

body.fashion-storefront-v3 .storefront-search-launch svg {
    width: 19px;
    height: 19px;
    color: #df2f78;
}

body.fashion-storefront-v3 .storefront-search-launch:hover,
body.fashion-storefront-v3 .storefront-search-launch:focus-visible {
    color: #df2f78;
    border-color: rgba(223,47,120,.38);
    background: #fff;
    box-shadow: 0 10px 28px rgba(126,45,93,.13);
    transform: translateY(-1px);
    outline: none;
}

.product-search-drawer {
    --bs-offcanvas-width: 430px;
    border-right: 0 !important;
    background:
        radial-gradient(circle at 8% 0%, rgba(255,102,90,.10), transparent 30%),
        radial-gradient(circle at 100% 12%, rgba(124,58,237,.10), transparent 35%),
        #fffdfc;
    box-shadow: 24px 0 70px rgba(58,33,52,.18);
}

.product-search-drawer .offcanvas-body {
    overflow-y: auto;
}

.product-search-drawer-head {
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #f0e2e9;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
}

.product-search-drawer-kicker {
    display: block;
    margin-bottom: 5px;
    color: #df2f78;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
}

.product-search-drawer-head h5 {
    margin: 0;
    color: #2f1d2a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.35px;
}

.product-search-drawer-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #ecdce5;
    border-radius: 50%;
    background-color: #fff;
    background-size: 12px;
    opacity: .78;
    box-shadow: 0 5px 16px rgba(75,38,66,.06);
}

.product-search-drawer-close:hover {
    opacity: 1;
    border-color: #df2f78;
}

.product-search-drawer-body {
    padding: 30px 26px 34px !important;
}

.product-search-drawer-form .form-label {
    margin-bottom: 9px;
    color: #3e2a39;
    font-size: 13px;
    font-weight: 800;
}

.product-search-drawer-input-wrap {
    position: relative;
}

.product-search-drawer-input-wrap > svg {
    position: absolute;
    z-index: 2;
    left: 17px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #9d748c;
    pointer-events: none;
}

.product-search-drawer-input-wrap .form-control {
    height: 56px;
    padding: 0 17px 0 49px;
    border: 1px solid #e7d6df;
    border-radius: 16px;
    background: #fff;
    color: #2f1d2a;
    font-size: 15px;
    box-shadow: 0 7px 24px rgba(76,43,67,.055);
}

.product-search-drawer-input-wrap .form-control::placeholder {
    color: #aa92a1;
}

.product-search-drawer-input-wrap .form-control:focus {
    border-color: rgba(223,47,120,.60);
    box-shadow: 0 0 0 4px rgba(223,47,120,.09), 0 9px 26px rgba(76,43,67,.07);
}

.product-search-drawer-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff665a 0%, #df2f78 48%, #7c3aed 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 13px 27px rgba(196,53,126,.23);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.product-search-drawer-submit svg {
    width: 18px;
    height: 18px;
}

.product-search-drawer-submit:hover,
.product-search-drawer-submit:focus-visible {
    filter: saturate(1.08) brightness(.98);
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(196,53,126,.28);
    outline: none;
}

.product-search-drawer-note {
    display: flex;
    gap: 11px;
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid #eee1e8;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    color: #755d6c;
}

.product-search-drawer-note-icon {
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fce8f2;
    color: #c62d70;
    font-size: 12px;
    font-weight: 900;
}

.product-search-drawer-note p {
    margin: 1px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
}

.offcanvas-backdrop.show {
    opacity: .42;
}

@media (max-width: 1199.98px) {
    body.fashion-storefront-v3 .storefront-search-launch {
        margin-left: auto;
        margin-right: 9px;
    }
}

@media (max-width: 767.98px) {
    body.fashion-storefront-v3 .storefront-search-launch {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 13px;
    }

    body.fashion-storefront-v3 .storefront-search-launch span {
        display: none;
    }

    body.fashion-storefront-v3 .storefront-search-launch svg {
        width: 19px;
        height: 19px;
    }

    .product-search-drawer {
        --bs-offcanvas-width: min(92vw, 390px);
    }

    .product-search-drawer-head {
        min-height: 94px;
        padding: 20px 20px 17px;
    }

    .product-search-drawer-head h5 {
        font-size: 22px;
    }

    .product-search-drawer-body {
        padding: 24px 20px 30px !important;
    }
}

/* =========================================================
   Full Search & Filter Drawer
   Moves the complete shop filter into the left popup.
   ========================================================= */
.product-search-drawer {
    --bs-offcanvas-width: 500px;
}

.product-search-filter-section {
    min-width: 0;
}

.product-search-filter-section-primary {
    margin-bottom: 18px;
}

.product-search-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 15px 12px;
}

.product-search-filter-span-2 {
    grid-column: 1 / -1;
}

.product-search-drawer-form .form-select,
.product-search-drawer-form input.form-control:not(#drawerProductSearchInput) {
    width: 100%;
    min-height: 49px;
    border: 1px solid #e7d6df;
    border-radius: 13px;
    background-color: #fff;
    color: #382633;
    font-size: 14px;
    box-shadow: 0 6px 20px rgba(76,43,67,.045);
}

.product-search-drawer-form .form-select {
    padding-left: 13px;
    padding-right: 34px;
}

.product-search-drawer-form input.form-control:not(#drawerProductSearchInput) {
    padding-left: 14px;
    padding-right: 14px;
}

.product-search-drawer-form .form-select:focus,
.product-search-drawer-form input.form-control:not(#drawerProductSearchInput):focus {
    border-color: rgba(223,47,120,.56);
    box-shadow: 0 0 0 4px rgba(223,47,120,.08), 0 8px 24px rgba(76,43,67,.055);
}

.product-search-drawer-actions {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.product-search-drawer-reset {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2ccd8;
    border-radius: 15px;
    background: #fff;
    color: #5d4253;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}

.product-search-drawer-reset:hover,
.product-search-drawer-reset:focus-visible {
    border-color: rgba(223,47,120,.45);
    background: #fff7fa;
    color: #d82e73;
    transform: translateY(-1px);
    outline: none;
}

.product-search-drawer-actions .product-search-drawer-submit {
    width: 100%;
    margin-top: 0;
}

@media (max-width: 575.98px) {
    .product-search-drawer {
        --bs-offcanvas-width: min(95vw, 420px);
    }

    .product-search-filter-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .product-search-filter-span-2 {
        grid-column: auto;
    }

    .product-search-drawer-actions {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}
