/* ==========================================================================
   FILE: assets/css/shop-toolbar.css
   PURPOSE: Styles the shop/category page toolbar (search box + filter
   button) and the bottom-sheet filter panel (Sort By, Size, Price Range).
   Theme rule: white background / black text — no color anywhere.
   ========================================================================== */

.dc-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 0 16px 20px;
}

/* Search box — grows to fill available space */
.dc-shop-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    padding: 0 14px;
    height: 42px;
}
.dc-shop-search svg { width: 17px; height: 17px; color: #777; flex-shrink: 0; }
.dc-shop-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    color: #000;
    font-size: 13px;
    outline: none;
}
.dc-shop-search input::placeholder { color: #999; }
.dc-shop-search__clear {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.dc-shop-search__clear svg { width: 15px; height: 15px; }
.dc-shop-search__clear[hidden] { display: none; }

.dc-shop-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(0,0,0,.15);
    display: none;
}
.dc-shop-search__results:not([hidden]) { display: block; }

.dc-shop-sr-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #000;
    text-decoration: none;
}
.dc-shop-sr-item:last-child { border-bottom: none; }
.dc-shop-sr-item:hover { background: #fafafa; }
.dc-shop-sr-img {
    width: 44px; height: 44px;
    border-radius: 6px;
    background: #f0f0f0 center/cover no-repeat;
    flex-shrink: 0;
}
.dc-shop-sr-info { flex: 1; min-width: 0; }
.dc-shop-sr-name {
    font-size: 12.5px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}
.dc-shop-sr-price {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #000;
    margin-top: 2px;
}
.dc-shop-sr-msg {
    padding: 16px;
    text-align: center;
    color: #777;
    font-size: 12.5px;
}
.dc-shop-sr-more {
    display: block;
    padding: 12px;
    text-align: center;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
}
.dc-shop-sr-more:hover { background: #fafafa; }

/* Filter button — natural size, pushed flush to the right edge */
.dc-shop-filter-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid #000;
    border-radius: 12px;
    color: #000;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    margin-left: auto;
}
.dc-shop-filter-ico svg { width: 16px; height: 16px; }
.dc-shop-filter-ico:hover { background: #f5f5f5; }

/* Filter bottom-sheet */
.dc-filter-ov {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99997;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.dc-filter-ov.dc-open { display: flex; }
.dc-filter-box {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 20px 20px 26px;
    box-sizing: border-box;
    max-height: 82vh;
    overflow-y: auto;
}
.dc-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.dc-filter-head b { color: #000; font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.dc-filter-x {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dc-filter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #777;
    margin: 0 0 10px;
}
.dc-filter-group { margin-bottom: 22px; }
.dc-filter-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-filter-opt {
    padding: 10px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
    color: #000;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
.dc-filter-opt.is-on {
    border-color: #000;
    background: #000;
    color: #fff;
}
.dc-filter-price-manual {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.dc-filter-price-manual input {
    flex: 1 1 0;
    min-width: 0;
    background: #fafafa;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    color: #000;
    padding: 10px 12px;
    font-size: 12.5px;
}
.dc-filter-price-manual span { color: #777; font-size: 12px; }
.dc-filter-apply {
    width: 100%;
    min-height: 48px;
    background: #000;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 4px;
}
.dc-filter-clear {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #777;
    font-size: 11.5px;
    letter-spacing: .03em;
    background: none;
    border: 0;
    cursor: pointer;
    width: 100%;
}

@media (max-width: 640px) {
    .dc-shop-search { height: 42px; }
    .dc-shop-filter-ico { height: 42px; }
}