/* bottle-search.css — crafters-jin */

.bs-wrap {
    max-width: 1020px;
    margin: 0 auto;
    background: #F7F7F7;
    font-family: inherit;
}

/* ヒーロー */
.bs-hero { padding: 24px 28px 18px; border-bottom: 1px solid #e8e4de; }
.bs-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    color: #3B6D11;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bs-eyebrow::before { content: ''; width: 20px; height: 1px; background: #3B6D11; display: inline-block; }
.bs-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.bs-sub   { font-size: 13px; color: #1a1a1a; line-height: 1.6; }

/* レイアウト */
.bs-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 600px;
    align-items: start;
}

/* フィルター列 */
.bs-filter-col {
    border-right: 1px solid #e8e4de;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
}
.bs-filter-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #888780;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 0.5px solid #e8e4de;
}

/* サブラベル（地方・都道府県・蒸留所名の小見出し） */
.bs-sub-filter-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #888780;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bs-filter-search {
    width: 100%;
    background: #eeeeee;
    border: 1px solid #d3d1c7;
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1a1a1a;
    outline: none;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.bs-filter-search::placeholder { color: #888780; }

/* 地方セレクト */
.bs-region-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888780' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
    cursor: pointer;
}

.bs-cb-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.bs-cb-row  { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bs-cb {
    width: 14px;
    height: 14px;
    border: 1px solid #d3d1c7;
    border-radius: 3px;
    background: #F7F7F7;
    flex-shrink: 0;
    cursor: pointer;
}
.bs-cb.on    { background: #3B6D11; border-color: #3B6D11; }
.bs-cb-label { font-size: 13px; color: #1a1a1a; flex: 1; }
.bs-cb-count { font-size: 11px; color: #1a1a1a; }

/* スライダー */
.bs-slider-item { margin-bottom: 8px; }
.bs-slider-label-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.bs-slider-label { font-size: 13px; color: #1a1a1a; }
.bs-slider-val   { font-size: 12px; color: #3B6D11; font-weight: 500; }
.bs-slider { width: 100%; accent-color: #3B6D11; }

/* リセット */
.bs-reset {
    font-size: 12px;
    color: #1a1a1a;
    text-align: center;
    padding: 8px;
    border: 0.5px solid #d3d1c7;
    border-radius: 6px;
    cursor: pointer;
}
.bs-reset:hover { color: #3B6D11; border-color: #97C459; }

/* 結果列 */
.bs-result-col { padding: 16px 20px; }
.bs-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 0.5px solid #e8e4de;
}
.bs-result-count   { font-size: 13px; color: #1a1a1a; }
.bs-result-count b { font-size: 14px; color: #1a1a1a; font-weight: 700; }
.bs-sort-select {
    background: #eeeeee;
    border: 1px solid #d3d1c7;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: #1a1a1a;
    outline: none;
}

/* ボトルカード */
.bs-bottle-list { display: flex; flex-direction: column; gap: 8px; }
.bs-bottle-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border: 0.5px solid #e8e4de;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.bs-bottle-card:hover { background: #f7f9f4; border-color: #C0DD97; }

.bs-bottle-img {
    width: 48px;
    height: 60px;
    background: #eeeeee;
    border-radius: 6px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bs-bottle-img img  { width: 100%; height: 100%; object-fit: cover; }
.bs-img-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

.bs-bottle-body       { flex: 1; min-width: 0; }
.bs-bottle-distillery { font-size: 11px; color: #3B6D11; letter-spacing: 0.06em; margin-bottom: 2px; }
.bs-distillery-pref   { color: #888780; font-weight: 400; }
.bs-bottle-name       { font-size: 15px; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin-bottom: 6px; }
.bs-bottle-tags       { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }

.bs-tag       { font-size: 11px; padding: 3px 8px; border-radius: 8px; }
.bs-tag.green { background: #EAF3DE; color: #27500A; border: 1px solid #C0DD97; }
.bs-tag.gray  { background: #eeeeee; color: #1a1a1a; border: 1px solid #d3d1c7; }

.bs-bottle-chart { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.bs-bar    { width: 8px; border-radius: 2px 2px 0 0; background: #C0DD97; min-height: 2px; }
.bs-bar.hi { background: #3B6D11; }

.bs-bottle-meta  { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.bs-bottle-price { font-size: 14px; font-weight: 700; color: #1a1a1a; }
.bs-bottle-abv   { font-size: 12px; color: #1a1a1a; }
.bs-bottle-arrow { font-size: 13px; color: #3B6D11; margin-top: 4px; }
.bs-empty        { font-size: 13px; color: #1a1a1a; padding: 32px; text-align: center; }

/* スマホ用フィルターバー */
.bs-mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e8e4de;
    background: #F7F7F7;
}
.bs-mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #eeeeee;
    border: 1px solid #d3d1c7;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    color: #1a1a1a;
    cursor: pointer;
}
.bs-mobile-badge {
    background: #3B6D11;
    color: #EAF3DE;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
}
.bs-active-chips {
    display: none;
    gap: 5px;
    flex-wrap: wrap;
    padding: 8px 16px;
    border-bottom: 1px solid #e8e4de;
}
.bs-active-chip {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 10px;
    background: #EAF3DE;
    color: #27500A;
    border: 1px solid #C0DD97;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.bs-active-chip-x { font-size: 10px; color: #3B6D11; }

/* ドロワー */
.bs-drawer-overlay {
    display: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 100;
}
.bs-drawer-overlay.open { display: block !important; }

.bs-drawer {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #F7F7F7;
    border-radius: 16px 16px 0 0;
    z-index: 101;
    max-height: 85vh;
    overflow-y: auto;
}
.bs-drawer.open { display: block !important; }

.bs-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e4de;
    position: sticky;
    top: 0;
    background: #F7F7F7;
    z-index: 1;
}
.bs-drawer-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.bs-drawer-close { font-size: 13px; color: #888780; cursor: pointer; }
.bs-drawer-body  { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.bs-drawer-apply {
    width: 100%;
    background: #3B6D11;
    color: #EAF3DE;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
}
.bs-drawer-apply:hover { background: #27500A; }

/* レスポンシブ */
@media (max-width: 640px) {
    .bs-layout        { grid-template-columns: 1fr; }
    .bs-filter-col    { display: none !important; }
    .bs-mobile-bar    { display: flex !important; }
    .bs-active-chips  { display: flex; }
    .bs-result-col    { padding: 12px 16px; }
    .bs-hero          { padding: 16px; }
    .bs-result-header { display: none !important; }
}