/* ============================================
   サイドバーブロック共通スタイル
   ============================================ */

/* 共通ブロック */
.ec-sidebarBlock {
    margin-bottom: 30px;
}
.ec-sidebarBlock__title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 12px 0;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #333;
}
.ec-sidebarBlock__empty {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

/* ============================================
   キーワード検索ブロック
   ============================================ */
.ec-sidebarSearch__keyword,
.ec-sidebarSearch__category {
    margin-bottom: 10px;
}
.ec-sidebarSearch__input,
.ec-sidebarSearch__select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 8px;
}
.ec-sidebarSearch__input:focus,
.ec-sidebarSearch__select:focus {
    border-color: #333;
    outline: none;
}
.ec-sidebarSearch__btn {
    display: block;
    width: 100%;
    padding: 8px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.ec-sidebarSearch__btn:hover {
    background: #555;
}

/* ============================================
   カテゴリー一覧ブロック
   ============================================ */
.ec-sidebarCategory__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ec-sidebarCategory__item {
    border-bottom: 1px solid #eee;
}
.ec-sidebarCategory__item:last-child {
    border-bottom: none;
}
.ec-sidebarCategory__item a {
    display: block;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.ec-sidebarCategory__item a:hover {
    color: #999;
}

/* 子カテゴリのインデント */
.ec-sidebarCategory__item--level1 a {
    padding-left: 15px;
    font-size: 13px;
}
.ec-sidebarCategory__item--level2 a {
    padding-left: 30px;
    font-size: 12px;
}

/* ネストされたリスト */
.ec-sidebarCategory__item .ec-sidebarCategory__list {
    border-top: none;
}

/* ============================================
   新着商品ブロック
   ============================================ */
.ec-sidebarNewArrival__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ec-sidebarNewArrival__item {
    border-bottom: 1px solid #eee;
}
.ec-sidebarNewArrival__item:last-child {
    border-bottom: none;
}
.ec-sidebarNewArrival__item a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s;
}
.ec-sidebarNewArrival__item a:hover {
    opacity: 0.7;
}
.ec-sidebarNewArrival__image {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    margin-right: 10px;
}
.ec-sidebarNewArrival__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.ec-sidebarNewArrival__info {
    flex: 1;
    min-width: 0;
}
.ec-sidebarNewArrival__name {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ec-sidebarNewArrival__price {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    color: #de5d50;
}

/* ============================================
   特集ブロック
   ============================================ */
.ec-sidebarFeatured__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ec-sidebarFeatured__item {
    margin-bottom: 12px;
}
.ec-sidebarFeatured__item:last-child {
    margin-bottom: 0;
}
.ec-sidebarFeatured__item a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s;
}
.ec-sidebarFeatured__item a:hover {
    opacity: 0.7;
}
.ec-sidebarFeatured__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}
.ec-sidebarFeatured__name {
    margin: 6px 0 0 0;
    font-size: 13px;
    line-height: 1.4;
}
