/* catalogList_template.css */

/* ===========================================
   1. テキスト（商品名・価格・ブランド名）
   =========================================== */

:where(.catalogList)>li{
  /* 上書き前提のデフォルト */
  width:130px;
}

.catalogList .product-text {
  padding-top: 10px;
}
/* .product-text .brandName: BOEM-derived rule removed.
   LOCONDO canonical (smp/content-catalog.css) provides this. */

/* quickview.cssの影響を打ち消す */
html .catalogList .brandNameLine{
  margin-bottom:0;
}

.product-text .brandName:has(.trgMute:hover) {
  background: #dbdbdb;
  border-radius: 4px;
}

/* .product-text .commodityName: BOEM-derived rule removed.
   LOCONDO canonical (smp/content-catalog.css) provides this. */

/* .product-text .priceLine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.product-text .priceLine > p {
  width: 100%;
} */
@media (max-width: 769px) {
.site_reebok .product-text .priceLine > p {
  width: initial;
}
}
/* .product-text .regular_price / .special_price: BOEM-derived rule removed.
   LOCONDO canonical (smp/content-catalog.css) provides font-size / weight / letter-spacing. */

.product-text .special_price .-proper {
  display: none;
  font-size: .9em;
  color: #999;
  text-decoration-line: line-through;
}
/* .product-text .priceLine .icon-favItemAdd {
  position: absolute;
  right: 0;
} */
.product-text .regular_price {
  color: #333;
}
.product-text .special_price {
  color: #FF0030;
}
.product-text .suffixTax {
  display: inline-block;
  margin-left: 2px;
  font-size: 10px;
  transform-origin: center left;
}
.catalogList_item>a:hover .product-text {
  opacity: .6;
}
/* .catalogList .regular_price/.special_price .suffixTax: BOEM-derived color removed.
   LOCONDO canonical (smp/content-catalog.css) sets these to #333. */
/* 付与ポイント */
.acquisition_point{
  font-size: 11px;
  font-weight: 500;
  color: #cc0033;
}

/* モバイルビューポート (769px以下) */
@media (max-width: 769px) {
  /* .product-text padding / width: BOEM-derived rule removed.
     LOCONDO canonical (smp-content-catalog.css) handles padding. */
  .product-text .brandNameLine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .product-text .brandName {
    letter-spacing: .04em;
  }
  body:not(:has(#searchBrandName)) .product-text .brandName {
    width: calc(100% - 0px);
  }

  /* 価格行 */
  .product-text .priceLine {
    justify-content: flex-start;
  }
  .search-result .product-text .priceLine{
    font-size: 14px;
  }
  .site_docomo .search-result .priceLine :is(.regular_price, .special_price){
    margin-bottom: .6em;
  }
  .regular_price.special_price{
    color: #c03;
  }

  .product-text .special_price,
  .product-text .regular_price {
    letter-spacing: .02em;
    font-feature-settings: "palt";
  }
  .catalogList_item>a:hover .product-text {
    opacity: 1;
  }
}/* [LD-removed] /* ===========================================... */
/* [LD-removed] /* アイテム単位でトリミング制御（SKUコードに基づく） */... */

/* コンテナ */
.catalogList .product-image {
  box-sizing: border-box;
  background-color: #fefefe;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: var(--ratio, 1/1) !important;
}

/* オーバーレイ */
.catalogList .product-image::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 1/1) !important;
  background-color: rgba(0, 0, 0, .02);
  position: absolute;
  top: 0;
  left: 0;
}
/* カート投入モーダル内は catalogList 流用のため画像オーバーレイを抑止 */
#modal_cartInBtn .catalogList .product-image::before {
  content: none;
}
.catalogList .product-image.-square:hover::before {
  opacity: 0;
}

/* 画像 */
.catalogList .product-image > img {
  width: 100% !important;
  height: auto;
  max-width: initial !important;
  margin: 0 !important;
  aspect-ratio: var(--ratio, 1/1) !important;
  object-fit: var(--img-fit, cover) !important;
}
#catalog_list .catalogList .product-image > img,
#catalog_list.catalogList .product-image > img{
  width: 100% !important;
}

/* ===========================================
   3. レイアウト（ランキング・アイコン）
   =========================================== */

/* ランキング順位 */
:where(
  #brand_ranking_list,
  #brand_category_ranking,
  #category_ranking_list
) .catalogList > li{
  position:relative;
}
:where(
  #brand_ranking_list,
  #brand_category_ranking,
  #category_ranking_list
) .badge {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  background: #666;
  color: #fff;
  width: 20px;
  height: 20px;
  font-size:12px;
}
.catalogList li:nth-of-type(1) .badge {
  background-color: #FC0;
  color: #222;
}
.catalogList li:nth-of-type(2) .badge {
  background: #87ACAC;
}
.catalogList li:nth-of-type(3) .badge {
  background: #94684D;
}
.catalogList .badge em{
  font-style:normal;
}/* [LD-removed: BOEM site-specific rules omitted] */

/* ランキングのミュート お気に入りアイコン */
.section-ranking .-login .catalog-myBrandBtnSet{
  display: inline-flex;/* ログイン */
  visibility:visible !important;
  gap:0 4px;
  right:3px !important;
}/* [LD-removed: BOEM site-specific rules omitted] */

/* デスクトップビューポート (769px以上) */
@media (min-width: 769px) {
  .section-ranking .-login .catalog-myBrandBtnSet{
    gap:0 0;
    right:3px !important;
  }
  .site_fashionwalker .section-ranking .catalog-myBrandBtnSet{
    transform:translateY(-90%);
  }
  .site_waja .section-ranking .catalog-myBrandBtnSet{
    transform:translateY(-30%);
  }
}

.section-ranking .catalog-myBrandBtnSet span {
  cursor: pointer;
}
.section-ranking .catalog-myBrandBtnSet span i{
  /* color: #aaa;
  width: 20px;
  height: 20px;
  font-size: 20px;
  background: transparent; */
}
.section-ranking .catalog-myBrandBtnSet span i:hover{
  opacity:.7;
}
.section-ranking .catalog-myBrandBtnSet{
  display: none;/* 未ログイン */
  position:absolute;
  right: 2px;
  bottom: 2px;
}
.section-ranking .btn_addMyBrand i:before,
.section-ranking .btn_addMuteBrand i:before{
  content:"";
  display: block;
  background-image: url(//media.aws.locondo.jp/contents/img/common/topPage/icon_ranking_btnMyBrand.png);
  width: 21px;
  height: 21px;
  background-size: 130%;
  background-position:center;
  cursor: pointer;
}
.section-ranking .btn_addMuteBrand i:before{
  background-image:url('https://media.aws.locondo.jp/contents/img/common/topPage/icon_ranking_btnMuteBrand.png');
}

/* マイブランド・ミュートブランドの表示 */
/* ※マイページのfavorite-listに従う */
/* ※マイブランド: トップあり・カタログなし */
/* ※ミュートブランド: トップ・カタログあり */

/* マイブランドありサイト - !isOneBrand */

/* ミュートブランド (.trgMute) は正版 pc/quickview.css / sp/smp-content-catalog.css で定義（重複回避のためここでは持たない） */

/* ===========================================
   5. 直営系サイト用 カタログ美化（[data-icon-layout="below-price"] スコープでラップ）
      正版は content-catalog.css / smp-content-catalog.css の 4/23 リリースブロック
      （CRE_DEV-597 カタログ美化（CSS-only 先行）コメント配下）。
      ここでは 4/23 版をそのまま移植し、各セレクタに [data-icon-layout="below-price"]
      プレフィックスを付けて refined モード時のみ発動するよう限定する。
   =========================================== */

/* デスクトップビューポート (769px以上) — content-catalog.css の 4/23 版を移植 */
@media (min-width: 769px) {
  [data-icon-layout="below-price"] .catalogList .product-text {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
      "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
      sans-serif;
    margin-top: 0;
    padding-top: 10px;
  }
  [data-icon-layout="below-price"] .product-text .brandNameLine {
    margin-bottom: 6px;
  }
  [data-icon-layout="below-price"] .catalogList .product-text .brandName {
    font-weight: 700;
    color: #333;
  }
  [data-icon-layout="below-price"] .catalogList .product-text .commodityName {
    color: #333;
    margin-bottom: 6px;
  }
  [data-icon-layout="below-price"] .catalogList .product-text .regular_price,
  [data-icon-layout="below-price"] .catalogList .product-text .special_price,
  [data-icon-layout="below-price"] .catalogList .product-text .member_price,
  [data-icon-layout="below-price"] .catalogList .product-text .regular_price.member_price,
  [data-icon-layout="below-price"] .catalogList .product-text .special_price.member_price {
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
  }
  [data-icon-layout="below-price"] .catalogList .product-text .regular_price {
    color: #333;
  }
  [data-icon-layout="below-price"] .catalogList .regular_price .suffixTax,
  [data-icon-layout="below-price"] .catalogList .product-text .suffixTax {
    color: #333;
  }
  [data-icon-layout="below-price"] .catalogList .product-icon {
    position: static;
    margin-top: 4px;
    /* CRE_DEV-569: 空(アイコン無)時も行高を予約してカード間の高さズレを防ぐ。Phase C で外した固定 height の代替。
       height だと複数アイコン折返し時にクリップするため min-height で（>li は 16px 固定なのでアイコンは16pxのまま）。 */
    height: 16px;
    margin-bottom: 1.5px;
  }
  /* #4 高さ統一: container の height:17.5px を撤去し、li/span を 15px に直接サイジング（_assets と同値・.catalog-campaignGroup と同寸）。
     base PC の .product-icon>li { height:17.5px; transform:scale(.9) }（実効15.75px）を打ち消す。
     #3: besthit も :not(.icon-manual) に含めて同じ高さに揃える（手動アイコン=画像はサイズ維持のため除外）。 */
  [data-icon-layout="below-price"] .catalogList .product-icon > li:not(.icon-manual),
  [data-icon-layout="below-price"] .catalogList .product-icon > span:not(.icon-manual) {
    /* #3/#4: scale(.9) 撤去後は固定幅(通常47.5px / besthit60.5px)が scale 分だけ広く残るため、
       text-natural（auto幅＋min-width＋padding）に統一。内側余白が全アイコンで揃い、
       besthit の余白過多も解消。小数点幅も不要。_assets の Phase C と同方針。 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 39px;
    padding: 0 .3em;
    box-sizing: border-box;
    height: 16px;
    line-height: 1;
    font-size: 9px;
    white-space: nowrap;
    transform: none;
  }
  [data-icon-layout="below-price"] .catalogList .product-discountIcon {
    transform: translateY(0);
  }
  [data-icon-layout="below-price"] .catalogList .icon_discountRate,
  [data-icon-layout="below-price"] .catalogList .icon_discountRate_timeSale {
    background-color: rgba(237, 20, 61, .8);
  }
  [data-icon-layout="below-price"] .catalogList .icon_couponRate {
    background-color: rgba(255, 218, 31, .8);
  }
  [data-icon-layout="below-price"] .catalog_bottom_contents .catalog-campaignGroup {
    top: 0;
    margin-top: 4px;
  }
  [data-icon-layout="below-price"] #right_content .catalog_bottom_contents .brand_category_ranking .catalogList:has(.catalog-campaignGroup) .product-text {
    margin-top: 0;
  }
}

/* モバイルビューポート (769px以下) — smp-content-catalog.css の 4/23 版を移植 */
@media (max-width: 769px) {
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .catalogList_item a {
    padding-bottom: 24px;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
      "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
      sans-serif;
    margin-top: 0;
    padding-top: 10px;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents .wrap_brand_category_ranking) .product-text .brandNameLine .brandName,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents .wrap_brand_category_ranking) .product-text .brandName {
    font-weight: 700;
    color: #333;
    letter-spacing: 0;
    margin-bottom: 6px;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents .wrap_brand_category_ranking) .product-text .commodityName {
    color: #333;
    margin-bottom: 6px;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text .regular_price,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text .special_price,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text .member_price,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text .regular_price.special_price,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text .regular_price.member_price {
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .regular_price .suffixTax,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-text .suffixTax {
    color: #333;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-icon {
    position: static;
    margin: 4px 0 1.5px;
    height: 14px;
  }
  /* #4 高さ統一(SP): 旧 scale(.74) を撤去し 15px 直接サイジングへ（_assets と同値・.catalog-campaignGroup と同寸）。
     base SP の .product-icon>li { height:20px; transform:scale(...) } を打ち消す。#3: besthit も :not(.icon-manual) に含め同高に。 */
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-icon > li:not(.icon-manual),
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-icon > span:not(.icon-manual) {
    /* #3/#4: scale(.74) 撤去後は固定幅(通常 / besthit70px)が scale 分だけ広く残るため、
       text-natural（auto幅＋min-width＋padding）に統一。内側余白が全アイコンで揃い、
       besthit の余白過多も解消。小数点幅も不要。_assets の Phase C と同方針。 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 39px;
    padding: 0 .3em;
    box-sizing: border-box;
    height: 14px;
    line-height: 1;
    font-size: 8.4px;
    white-space: nowrap;
    transform: none;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-icon>li:not(.icon_besthit) {
    background: rgba(155, 173, 185, .7);
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .product-discountIcon {
    transform: none;
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .icon_discountRate,
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .icon_discountRate_timeSale {
    background-color: rgba(237, 20, 61, .8);
  }
  [data-icon-layout="below-price"] :is(.catalog_contents, .catalog_bottom_contents) .icon_couponRate {
    background-color: rgba(255, 218, 31, .8);
  }
  [data-icon-layout="below-price"] .catalog_bottom_contents .catalog-campaignGroup {
    top: 0;
    margin-top: 4px;
  }
  [data-icon-layout="below-price"] .catalog_bottom_contents .catalogList:has(.catalog-campaignGroup) .product-text {
    margin-top: 0;
  }
}

/* groupByModel 未選択時はカラーチップリストを隠す（PC/SP 共通） */
[data-icon-layout="below-price"]:has(#groupByModel[value=""]) .config-colortip_list,
[data-icon-layout="below-price"]:has(#groupByModel:not([value])) .config-colortip_list {
  display: none;
}

/* CRE_DEV-569 #39F: LD カートページ（cart.jsp）の product-icon スタイル。
   カートは elm_catalogList_template.jsp を使わず独自 handlebars テンプレートを持ち、
   DOM が .catalogList ではなく .product_detail_reco (PC reco/fav) / .cartRemindList (SP recently) /
   #AdditionalItems_wrap (追加提案モーダル) 配下のため、カート固有セレクタが必要。
   below-price 値と同一（PC 16px/9px、SP 14px/8.4px）。
   CRE_DEV-569: 商品詳細の viewerReco（.commodity_viewerReco 配下、ul#viewerRecoList.catalog-list）も
   同じく .catalogList を使わず catalog 系CSS(色/背景/サイズの基底)を読まないため、同型の自己完結ルールを
   このカート reco スコープに合流させる。base 色/背景/サイズはこのルールが自前で持つので catalog 系CSS非依存。 */

/* --- PC (min-width:769px) --- */
@media (min-width: 769px) {
  [data-icon-layout="below-price"] :is(.product_detail_reco, #AdditionalItems_wrap, #AdditionalItemsCare_wrap) .product-icon {
    position: static;
    display: flex;
    margin-top: 4px;
    height: 16px;
    margin-bottom: 1.5px;
  }
  [data-icon-layout="below-price"] :is(.product_detail_reco) .product-icon {
    justify-content: center;
  }
  [data-icon-layout="below-price"] :is(.product_detail_reco, #AdditionalItems_wrap, #AdditionalItemsCare_wrap, .commodity_viewerReco) .product-icon > li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 39px;
    padding: 0 .3em;
    box-sizing: border-box;
    height: 15px;
    line-height: 1;
    font-size: 8.4px;
    letter-spacing: .05em;
    text-align: center;
    white-space: nowrap;
    color: #fff;
    background: rgba(155, 173, 185, .7);
    border: none;
    text-indent: 0;
    transform: none;
  }
}
/* --- SP (max-width:769px) --- */
@media (max-width: 769px) {
  [data-icon-layout="below-price"] :is(.cartRemindList, .product_detail_reco, #AdditionalItems_wrap, #AdditionalItemsCare_wrap, .commodity_viewerReco) .product-icon {
    position: static;
    margin: 4px 0 1.5px;
    height: 14px;
  }
  [data-icon-layout="below-price"] :is(.cartRemindList, .product_detail_reco, #AdditionalItems_wrap, #AdditionalItemsCare_wrap, .commodity_viewerReco) .product-icon > li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 39px;
    padding: 0 .3em;
    box-sizing: border-box;
    height: 14px;
    line-height: 1;
    font-size: 8.4px;
    letter-spacing: .05em;
    text-align: center;
    white-space: nowrap;
    color: #fff;
    background: rgba(155, 173, 185, .7);
    border: none;
    text-indent: 0;
    transform: none;
  }
}

/* CRE_DEV-569: viewerReco（商品詳細 .commodity_viewerReco）固有調整。
   PC は cart reco の中央寄せと違い左寄せ。reco 面の icon-manual は幅制限(省略表示)を付与。
   reco の > li(inline-flex)を li.icon-manual で詳細度を上げ inline-block に上書きし ellipsis を効かせる。 */
@media (min-width: 769px) {
  [data-icon-layout="below-price"] .commodity_viewerReco .product-icon {
    position: static;
    display: flex;
    justify-content: flex-start;
    margin-top: 4px;
    height: 16px;
    margin-bottom: 1.5px;
  }
  [data-icon-layout="below-price"] :is(.product_detail_reco, #AdditionalItems_wrap, #AdditionalItemsCare_wrap, .commodity_viewerReco) .product-icon > li.icon-manual {
    display: inline-block;
    width: auto;
    max-width: 6em;
    height: 15px;
    line-height: 15px;
    padding: 0 .3em;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}
@media (max-width: 769px) {
  [data-icon-layout="below-price"] :is(.cartRemindList, .product_detail_reco, .commodity_viewerReco) .product-icon > li.icon-manual {
    display: inline-block;
    width: auto;
    max-width: 6em;
    height: 14px;
    line-height: 14px;
    padding: 0 .3em;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
  }
}

[data-icon-layout="below-price"] :is(#AdditionalItems_wrap, #AdditionalItemsCare_wrap) .product-icon {
  display: none;
}

/* CRE_DEV-569: 人気アイテム(#category_ranking_list / #brand_ranking_list)に common-locondo_style.css が当てる
   clearfix（#product_contents #..._ranking_list ul:after{content:"";clear:both;display:block} 詳細度2,0,2）が、
   ネストした ul.product-icon にも適用され余分なブロックを生むため無効化（詳細度2,1,1で上書き）。 */
#product_contents :is(#category_ranking_list, #brand_ranking_list) .product-icon:after {
  content: none;
  display: none;
  clear: none;
}

/* CRE_DEV-569: 最近チェックしたアイテム(view-history #viewHistory)の catalog-campaignGroup は上の余白を詰める。
   グローバル base(.catalog-campaignGroup{margin-top:4px} campaignGroup.css)を #viewHistory スコープ(詳細度1,1,0)で 0 に上書き(PC/SP共通)。 */
#viewHistory .catalog-campaignGroup {
  margin-top: 0;
}

/* CRE_DEV-569: reco 面 auto-sale 非表示（Lambda が icon_css_classes 未供給のため icon-auto-sale フォールバック対策）
   正典クラス icon_sale には既に非表示指定あり。旧クラスにも同等の非表示を適用して SALE leak を防止。
   below-price 横断 OFF ポリシー（v1.5）の CSS 側セーフティネット。 */
.product-icon .icon-auto-sale {
  display: none !important;
}

/* CRE_DEV-569: カート横お気に入り(#fav)・カートインモーダルのクーポンアシスト(#couponAssistRecoList) — 全商品アイコン無しなら product-icon 行を非表示 */
#fav:not(:has(.product-icon li)) .product-icon,
#couponAssistRecoList:not(:has(.product-icon li)) .product-icon {
  display: none;
}
