/*
 * kshop-products.css
 * render_products() の出力に当たるスタイルを一元管理。
 * ショップトップ（page-for-shoptop.php）で読み込む。
 * dcsearchnavi は触らない。
 */

/* ============================================================
   製品リンク
   ============================================================ */
a.koike {
    text-decoration: none;
    color: #444 !important;
    display: block;
}

/* ============================================================
   製品グリッドコンテナ
   ============================================================ */
div#product-list {
    margin-top: 2rem;
}

.custom-product3s {
    display: grid;
    gap: 0;
    transition: opacity 0.2s ease;
}

.custom-product3s.loading {
    opacity: 0.5;
}

/* ============================================================
   AJAX ローディング
   ============================================================ */
.loading-message {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    position: absolute;
    height: 0;
    opacity: 0;
    overflow: hidden;
    background: #fff;
    z-index: 999999;
    transition: opacity 0.3s ease, height 0.3s ease;
}

.loading-message.visible {
    height: 100vh;
    opacity: 1;
}

/* ============================================================
   製品アイテム行（render_products の result-item）
   ============================================================ */
.result-item {
    margin: 0 .5rem;
    border-bottom: dashed #ccc .75px;
    padding: 1.5rem 1.8rem 1.5rem 1.5rem;
    transition: background .5s;
}

.result-item:hover {
    background: #f8f8f8;
}

/* ============================================================
   製品画像
   ============================================================ */
.manuresult-img {
    border: none;
    padding: 0;
    max-width: calc(100% - 1rem);
    max-height: 200px;
    min-height: 200px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

img.manuresult-img {
    max-height: 180px;
    max-width: 180px;
    min-height: 100px;
    object-fit: contain;
    object-position: center;
}

img.manuresult-img.iconchan {
    width: 48px !important;
    max-width: 48px;
    max-height: 48px !important;
    height: auto !important;
    object-fit: contain !important;
    min-height: 0 !important;
}

a.siteallimga.iconthumb {
    min-width: 48px;
    width: 48px;
}

.result-item:hover img.siteallimg.manuresult-img.iconchan {
    transform: none !important;
}

/* ============================================================
   製品タイトル
   ============================================================ */
h3.result-title {
    margin: 0 !important;
    font-size: 88%;
    font-weight: bold;
    border: none !important;
    position: relative;
    top: 0 !important;
    padding: 0 !important;
    color: #174f9e;
    text-decoration: underline;
}

/* ============================================================
   メタ情報（価格・タイプ）
   ============================================================ */
.result-meta {
    margin: .5rem 0 0 .5rem;
}

.result-meta span.caten {
    font-size: 11px;
}

/* ============================================================
   属性スペックリスト（ul.wooton）
   ============================================================ */
.dlcontent {
    font-size: .88rem;
    padding: .5rem;
    opacity: .89;
    line-height: 1.4rem;
}

ul.wooton {
    padding: 0 0 0 1rem;
    margin: 0;
}

ul.wooton li {
    font-size: .84rem;
    color: #454545;
    letter-spacing: .0001rem;
}

span.dien {
    font-weight: 600;
    color: #555;
    margin-right: .25rem;
}

/* dlcontent の p（ショートディスクリプション fallback）を wooton li に合わせる */
.dlcontent p {
    font-size: .84rem;
    color: #454545;
    margin: 0;
    line-height: 1.4rem;
    letter-spacing: .0001rem;
}

/* ============================================================
   インターフェースタグ（dcsearchnavi と共通スタイル）
   ============================================================ */
.navi-interface-tags {
    margin: .5rem 0 .25rem;
}

.gpi-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
    margin-left: .5rem;
}

.gpi-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-family: "Gill Sans", "Gill Sans MT", sans-serif;
    font-weight: 400;
    color: #1a1a1a;
}

.gpi-box {
    border: .5px solid #1a1a1a;
    padding: 3px 10px;
    display: inline-block;
    background: none;
    margin-top: 8px;
}

.gpi-text {
    font-size: 12px;
    letter-spacing: -.33px;
    line-height: 1;
    margin: 0;
    text-transform: uppercase;
}

.option-text {
    font-size: 7px;
    font-weight: 400;
    margin-top: 5px;
    letter-spacing: .16px;
    line-height: 1;
    visibility: visible;
    color: #777;
}

.option-text.hidden {
    visibility: hidden;
}

.gpi-box-lxi {
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    margin-top: 5px;
}

.gpi-box-lxi .mark-lxi {
    height: 30px !important;
    width: auto;
    display: block;
    margin-top: -2px;
}

/* CE / UKCA 認証マーク */
.marks-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 4px .5rem;
    margin-top: .5rem;
    margin-left: auto;
    margin-right: 0;
}

.marks-row img {
    height: 25px !important;
    width: auto;
    margin-right: 5px;
}

/* ============================================================
   製品タグ（proterm）
   ============================================================ */
ul.product-tags-list {
    padding: 0;
    margin: 0;
}

ul.product-tags-list li {
    list-style-type: none;
    display: inline-block;
    padding: .2rem 1rem;
    margin-right: .4rem !important;
    border-radius: 1rem;
    font-size: .7rem;
    color: #333;
    background: #fff;
    border: .5px solid #ccc;
}

/* マルチアナライザ・試験器タイプバッジ */
p.anates {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
    font-weight: bold;
}

.proterm.anates.multianalyzer {
    border: solid 1px red !important;
    background: crimson;
    color: #fff;
    padding-right: .8rem;
    padding-left: .8rem;
    text-align: center;
}

.proterm.anates.tester {
    border: solid 1px #174f9e !important;
    background: #174f9e;
    color: #fff;
    padding-right: .8rem;
    padding-left: .8rem;
    text-align: center;
}

/* ============================================================
   タブ UI（ktablist は tab.css でグローバル定義済み）
   ============================================================ */
#primary ul.ktablist {
    display: block;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media screen and (max-width: 768px) {
    img.manuresult-img {
        max-height: none;
        min-height: 80px;
    }

    .result-item {
        padding: 1rem .75rem;
    }

    h3.result-title {
        font-size: .95rem;
    }
}
