/* HXH-RPG: catalogue partagé par le port, le marché noir et la forge.
   Les lignes absorbent les descriptions longues sans décaler les achats. */
.hxh-site .hxh-shop-list {
    display:flex; flex-direction:column; gap:.75rem;
    width:100%; min-width:0; margin:0; padding:0; list-style:none;
}
.hxh-site .hxh-shop-list > .hxh-shop-row {
    display:grid; grid-template-columns:112px minmax(0,1fr) minmax(198px,230px);
    align-items:center; gap:1rem;
    width:100%; height:auto; min-height:130px; min-width:0;
    margin:0; padding:18px 20px; overflow:visible;
    background:linear-gradient(110deg,#fff8e8,#efe1bd); border:1px solid #bb995c; border-radius:6px;
    color:#5c3f1e; text-align:left; box-shadow:inset 0 0 0 3px #fff6de;
    transform:none; transition:border-color .16s,box-shadow .16s;
}
.hxh-site .hxh-shop-list > .hxh-shop-row:hover {
    border-color:#8c7350; box-shadow:inset 0 0 0 3px #fff6de,0 3px 12px #2636261d; transform:none;
}
.hxh-site .hxh-shop-list > .hxh-shop-row > .hxh-shop-row-visual {
    display:grid; place-items:center; flex:none;
    width:112px; height:112px; min-width:0; min-height:0; max-width:100%;
    margin:0; padding:.5rem; overflow:hidden;
    border:0; border-radius:4px; background:transparent;
    box-shadow:none;
}
.hxh-site .hxh-shop-list .hxh-shop-row-visual img {
    display:block; width:100%; height:100%; max-height:100%; max-width:100%;
    object-fit:contain; filter:none; transform:none;
}
.hxh-site .hxh-shop-list > .hxh-shop-row > .hxh-shop-row-copy {
    display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
    gap:.45rem; flex:initial; min-width:0; width:auto; height:auto; min-height:0;
    margin:0; padding:0; background:none; border:0;
    color:#51462e; text-align:left;
}
.hxh-site .hxh-shop-list .hxh-shop-row-copy :is(h3,h4,.item-name) {
    display:block; width:auto; min-height:0;
    margin:0; padding:0; background:none;
    font:700 1.04rem/1.4 'Cinzel',serif; color:#1c4b37;
    letter-spacing:normal; text-align:left; text-shadow:none;
    overflow:visible; overflow-wrap:anywhere; line-clamp:unset; -webkit-line-clamp:unset;
}
.hxh-site .hxh-shop-list .hxh-shop-row-copy :is(p,.item-description,.hxh-stock-description) {
    display:block; min-width:0; min-height:0; max-height:none; flex:initial;
    margin:0; padding:0; color:#705e42;
    font-size:.92rem; line-height:1.55; text-align:left;
    text-shadow:none; overflow:visible; overflow-wrap:anywhere;
    line-clamp:unset; -webkit-line-clamp:unset;
}
.hxh-site .hxh-shop-list .hxh-shop-row-copy :is(.hxh-stock-rarity,.rarity-badge) {
    display:inline-flex; align-self:flex-start; width:auto; max-width:100%;
    position:static; min-height:0; margin:0; padding:.12rem .45rem;
    color:#68512f; background:#f0e3c7; border:1px solid #d6bf92;
    border-radius:3px; box-shadow:none; transform:none; animation:none;
    font-size:.73rem; font-weight:700; letter-spacing:.04em; line-height:1.4; text-shadow:none;
}
.hxh-site .hxh-shop-list .hxh-shop-row-copy .hxh-stock-bonuses {
    display:flex; flex-wrap:wrap; gap:.3rem; margin:.2rem 0 0; padding:0;
}
.hxh-site .hxh-shop-list > .hxh-shop-row > .hxh-shop-row-purchase {
    display:grid; align-content:center; gap:.5rem; flex:initial;
    width:100%; min-width:0; min-height:0; height:auto; margin:0;
    padding:.25rem 0 .25rem 1rem; border:0; border-left:1px solid #ccb38b;
    background:transparent; border-radius:0; box-shadow:none;
    text-align:left; color:#4d4835;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase :is(.hxh-stock-price,.hxh-shop-price,.hxh-whale-product-price) {
    display:flex; gap:.4rem; flex-wrap:wrap; align-items:center;
    width:auto; margin:0; font-size:.94rem; line-height:1.4;
    font-weight:700; color:#31533b;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase :is(.hxh-shop-total,.hxh-whale-product-total) {
    display:block; margin:0; color:#5d523b; font-size:.85rem; line-height:1.45;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase :is(label,.hxh-stock-form label,.hxh-whale-buy-form label) {
    display:flex; align-items:center; justify-content:space-between; gap:.5rem;
    width:100%; min-width:0; min-height:0; margin:0; padding:0;
    color:#65553d; font-size:.85rem; font-weight:700;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase input[type=number] {
    width:84px; max-width:100%; min-height:42px; margin:0;
    background:#fffdf6; border:1px solid #bba278; border-radius:4px;
    padding:.35rem .55rem; color:#4d351d; font:inherit; text-align:center;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase :is(button,.hxh-button,.hxh-whale-action) {
    width:100%; min-width:0; min-height:42px; margin:0; padding:.55rem .8rem;
    text-align:center; font-size:.94rem;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase .hxh-stock-form {
    display:grid; gap:.45rem; width:100%; margin:0; padding:0;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase .hxh-stock-price-label {
    width:auto; font-size:.86rem;
}
.hxh-site .hxh-shop-list .hxh-shop-row-purchase .hxh-stock-price img {
    width:19px; height:19px; object-fit:contain;
}
/* Le marché noir conserve son ambiance dans le bandeau, pas sur les produits. */
.hxh-site .hxh-york-market-scene .hxh-shop-list > .hxh-shop-row {
    background:linear-gradient(110deg,#fff8e8,#efe1bd);
    border:1px solid #bb995c; border-radius:6px;
}
.hxh-site .hxh-york-market-scene .hxh-shop-list .hxh-shop-row-visual {
    background:transparent; border-color:transparent;
}
.hxh-site .hxh-york-market-scene .hxh-shop-list .shadow-overlay { display:none; }
.hxh-site .hxh-york-market-scene .hxh-shop-list .hxh-shop-row-purchase {
    background:transparent; border-left:1px solid #ccb38b;
}
.hxh-site .hxh-york-market-scene .hxh-shop-list .black-market-btn {
    border-radius:4px; box-shadow:none; transform:none;
}
@media(max-width:850px) {
    .hxh-site .hxh-shop-list > .hxh-shop-row {
        grid-template-columns:96px minmax(0,1fr); align-items:start;
    }
    .hxh-site .hxh-shop-list > .hxh-shop-row > .hxh-shop-row-visual {
        width:96px; height:96px;
    }
    .hxh-site .hxh-shop-list > .hxh-shop-row > .hxh-shop-row-purchase {
        grid-column:1/-1; width:100%;
        border-left:0; border-top:1px solid #dfcda8; padding:.75rem 0 0;
    }
    .hxh-site .hxh-york-market-scene .hxh-shop-list .hxh-shop-row-purchase {
        border-left:0;
    }
}
@media(max-width:520px) {
    .hxh-site .hxh-shop-list > .hxh-shop-row {
        grid-template-columns:76px minmax(0,1fr); gap:.65rem; padding:.75rem;
    }
    .hxh-site .hxh-shop-list > .hxh-shop-row > .hxh-shop-row-visual {
        width:76px; height:76px; padding:.3rem;
    }
    .hxh-site .hxh-shop-list .hxh-shop-row-copy :is(h3,h4,.item-name) { font-size:.98rem; }
}
@media(prefers-reduced-motion:reduce) {
    .hxh-site .hxh-shop-list > .hxh-shop-row { transition:none; }
}
