@charset "UTF-8";

/* =========================================================
   1. 共通レイアウト：スライダー完全無力化 ＆ 4列グリッド
   対象: ロングセラー(#long_seller_all), 新着(#new_arrival_all)
========================================================= */
#long_seller_all .fs-c-productListCarousel,
#long_seller_all .fs-c-productListCarousel__list,
#long_seller_all .slick-list,
#new_arrival_all .fs-c-productListCarousel,
#new_arrival_all .fs-c-productListCarousel__list,
#new_arrival_all .slick-list {
    display: block !important;
    overflow: visible !important;
    height: auto !important;
    padding: 0 !important;
}

#long_seller_all .fs-c-productListCarousel__ctrl,
#new_arrival_all .fs-c-productListCarousel__ctrl {
    display: none !important;
}

#long_seller_all .slick-track,
#new_arrival_all .slick-track {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    transform: none !important;
    opacity: 1 !important;
}

#long_seller_all .slick-track::before,
#long_seller_all .slick-track::after,
#new_arrival_all .slick-track::before,
#new_arrival_all .slick-track::after {
    content: none !important;
}

/* =========================================================
   2. 共通レイアウト：商品枠・テキスト・お気に入りボタンの装飾
========================================================= */
#long_seller_all article.fs-c-productListItem,
#new_arrival_all article.fs-c-productListItem {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    position: relative !important;
    padding-top: 35px !important; /* バッジ用の余白 */
    padding-bottom: 15px !important;
}

/* 商品名 */
#long_seller_all .fs-c-productListItem__productName,
#long_seller_all .fs-c-productListItem__productName a,
#long_seller_all .fs-c-productName__name,
#new_arrival_all .fs-c-productListItem__productName,
#new_arrival_all .fs-c-productListItem__productName a,
#new_arrival_all .fs-c-productName__name {
    font-size: 14px !important;
    font-weight: normal !important;
    color: #333333 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

/* 商品名の2行カット */
#long_seller_all .fs-c-productListItem__productName,
#new_arrival_all .fs-c-productListItem__productName {
    margin-top: 10px !important;
    margin-bottom: 5px !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important; 
    overflow: hidden !important;
}

/* 価格 */
#long_seller_all .fs-c-productListItem__prices,
#new_arrival_all .fs-c-productListItem__prices {
    padding-right: 35px !important;
    box-sizing: border-box !important;
}

#long_seller_all .fs-c-price__currencyMark,
#new_arrival_all .fs-c-price__currencyMark,
#long_seller_all .fs-c-productPrice__main__label, 
#long_seller_all .fs-c-productPrice__addon,
#new_arrival_all .fs-c-productPrice__main__label, 
#new_arrival_all .fs-c-productPrice__addon {
    display: none !important;
}

#long_seller_all .fs-c-price__value,
#new_arrival_all .fs-c-price__value {
    font-size: 16px !important; 
    color: #8a6c65 !important;
    font-weight: bold !important;
}

#long_seller_all .fs-c-price__value::after,
#new_arrival_all .fs-c-price__value::after {
    content: "円(税込)" !important;
    font-size: 70% !important;
    font-weight: normal !important;
    margin-left: 2px !important;
}

/* ハートアイコン */
#long_seller_all .fs-c-button--addToWishList--icon,
#new_arrival_all .fs-c-button--addToWishList--icon {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    position: absolute !important;
    right: 5px !important;
    bottom: 5px !important;
    z-index: 20 !important;
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
}

#long_seller_all .fs-c-button--addToWishList--icon .fs-c-button__label,
#new_arrival_all .fs-c-button--addToWishList--icon .fs-c-button__label {
    display: none !important;
}

#long_seller_all .fs-c-button--addToWishList--icon::before,
#new_arrival_all .fs-c-button--addToWishList--icon::before {
    content: "\f004" !important;
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 400 !important;
    font-size: 20px !important;
    color: #8a6c65 !important;
    display: block !important;
}


/* =========================================================
   3. 差分：ロングセラー（ランキング）専用の装飾（1〜4位の王冠）
========================================================= */
#long_seller_all article.fs-c-productListItem::before {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    font-family: serif;
    font-size: 1.4rem !important;
    font-weight: 500;
    line-height: 1;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    padding-left: 35px !important;
    height: 22px !important;
}

#long_seller_all .slick-track > *:nth-child(1) article.fs-c-productListItem::before { content: "1位"; background-image: url(https://belleandsofa.itembox.design/item/image/crown-no1.png); }
#long_seller_all .slick-track > *:nth-child(2) article.fs-c-productListItem::before { content: "2位"; background-image: url(https://belleandsofa.itembox.design/item/image/crown-no2.png); }
#long_seller_all .slick-track > *:nth-child(3) article.fs-c-productListItem::before { content: "3位"; background-image: url(https://belleandsofa.itembox.design/item/image/crown-no3.png); }
#long_seller_all .slick-track > *:nth-child(4) article.fs-c-productListItem::before { content: "4位"; background-image: url(https://belleandsofa.itembox.design/item/image/crown-no4.png); }


/* =========================================================
   4. 差分：新着（NEW ARRIVALS）専用の装飾（NEWバッジ）
========================================================= */
#new_arrival_all article.fs-c-productListItem::before {
    content: "NEW";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    background-color: #8a6c65; /* ★色を変えたい場合はここを修正（現在ブラウン） */
    color: #ffffff; /* ★文字色（現在ホワイト） */
    font-size: 12px !important;
    font-weight: bold;
    padding: 4px 10px !important;
    border-radius: 2px;
    line-height: 1;
}


/* =========================================================
   5. スマートフォン表示用のレイアウト調整（画面幅768px以下）
========================================================= */
@media screen and (max-width: 768px) {
    #long_seller_all .slick-track,
    #new_arrival_all .slick-track {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    #long_seller_all .fs-c-productListItem__productName,
    #long_seller_all .fs-c-productListItem__productName a,
    #long_seller_all .fs-c-productName__name,
    #new_arrival_all .fs-c-productListItem__productName,
    #new_arrival_all .fs-c-productListItem__productName a,
    #new_arrival_all .fs-c-productName__name {
        font-size: 12px !important;
    }

    #long_seller_all .fs-c-price__value,
    #new_arrival_all .fs-c-price__value {
        font-size: 14px !important;
    }
}