.shop-detail-heading { display: flex; align-items: center; gap: 16px; }
.shop-detail-heading > div { min-width: 0; }
.shop-detail-heading > img { flex: 0 0 auto; object-fit: contain; }
.shop-stock-layout {
    display: grid;
    grid-template-columns: clamp(12rem, 22vw, 16rem) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}
.shop-stock-main { min-width: 0; }
.shop-stock-main:only-child { grid-column: 1 / -1; }
.shop-departments {
    position: sticky;
    top: 12px;
    min-width: 0;
    border: 1px solid #584b34;
    border-radius: 3px;
    background: #151d16;
}
#products .shop-departments-title {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #584b34;
    color: #e3c797;
    font-size: 1rem;
}
#products .shop-departments ul {
    max-block-size: min(66vh, 38rem);
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}
.shop-departments li + li { border-top: 1px solid #363a2d; }
.shop-departments a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 7px 10px;
    border-inline-start: 2px solid transparent;
    color: #f1ddb8;
    font-size: .93em;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.shop-departments a:hover { background: #25271a; }
.shop-departments a[aria-current="page"] {
    border-inline-start-color: #d4ac70;
    background: #2d2920;
    color: #ffebc9;
    font-weight: 700;
}
.shop-departments small { flex: 0 0 auto; color: #c6b698; font-weight: 400; font-variant-numeric: tabular-nums; }
.shop-departments a:focus-visible { outline: 2px solid #e4c18c; outline-offset: -3px; }

.shop-stock-controls { display: flex; flex-wrap: wrap; gap: 10px; max-width: 840px; }
.shop-stock-controls > div { flex: 1 1 118px; min-width: 0; }
.shop-stock-controls > :first-child { flex: 3 1 230px; }
.shop-stock-controls label { display: block; }
.shop-stock-controls input,
.shop-stock-controls select { box-sizing: border-box; width: 100%; min-height: 44px; }
.shop-stock-controls select {
    padding: 9px 12px;
    color: #f4ead8;
    background: #0b120f;
    border: 1px solid #69553a;
    border-radius: 3px;
    font: inherit;
}
.shop-stock-controls select:disabled { color: #b6a78d; }
.shop-stock-count:empty { display: none; }

#products .city-shop-products { display: grid; gap: 6px; }
#products .city-shop-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 12px;
    border: 1px solid #51452f;
    background: #111a14;
}
#products .city-shop-product.shop-offer-no-image { grid-template-columns: minmax(0, 1fr); }
.shop-offer-icon { display: grid; place-items: center; min-height: 64px; }
.shop-offer-icon img { width: 64px; height: 64px; object-fit: contain; }
.shop-offer-content { min-width: 0; }
.shop-offer-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 6px 18px; }
.shop-offer-header > div { min-width: min(100%, 12rem); }
#products .shop-offer-name { margin: 0; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.shop-offer-name a { text-decoration: none; }
.shop-offer-name a:hover { text-decoration: underline; }
.shop-offer-header .shop-offer-price {
    margin: 0;
    color: #f1d39f;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.shop-offer-price span { margin-right: 4px; color: #c7b596; font-weight: 400; }
.shop-offer-role { display: inline-block; margin: 3px 0 0; color: #dac8a4; font-size: .85em; }
.shop-offer-details { color: #ddd0b8; font-size: .9em; overflow-wrap: anywhere; }
.shop-offer-details:empty { display: none; }
.shop-offer-details p { margin: 6px 0 0; white-space: pre-line; }
.shop-offer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
    gap: 6px 20px;
    margin: 8px 0 0;
    border-top: 1px solid #3c3b2a;
    padding-top: 7px;
}
.shop-offer-stats:empty { display: none; }
.shop-offer-stats dt { color: #e3c797; font-weight: 600; line-height: 1.4; }
.shop-offer-stats dd { margin: 2px 0 0; white-space: pre-line; line-height: 1.42; }

.city-shop-product .shop-quality { display: inline-block; padding: 0 4px; border-radius: 2px; font-size: .85em; font-weight: 700; line-height: 1.35; }
.shop-quality-vp { background: #aaa; color: #111; }
.shop-quality-p { background: #616161; color: #fff; }
.shop-quality-f { background: #659ba3; color: #101b1c; }
.shop-quality-vf { background: #34729a; color: #fff; }
.shop-quality-ef { background: #884ea2; color: #fff; }
.shop-quality-r { background: #95486d; color: #fff; }
.shop-quality-vr { background: #b5ae0b; color: #171600; }
.shop-quality-er { background: #e0af29; color: #211700; }
.shop-quality-u { background: #d26720; color: #1c1009; }
.shop-quality-l { background: #c20c0c; color: #fff; }
.shop-offer-level { font-size: .85em; color: #c7b395; font-weight: 400; white-space: nowrap; }

@media (max-width: 760px) {
    .shop-stock-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .shop-departments { position: static; }
    #products .shop-departments ul { max-block-size: 11rem; }
}
@media (max-width: 600px) {
    .shop-detail-heading { gap: 10px; }
    .shop-detail-heading > img { width: 48px; height: 48px; }
    .shop-stock-controls > :first-child { flex-basis: 100%; }
    #products .city-shop-product { grid-template-columns: 42px minmax(0, 1fr); gap: 9px; padding: 9px; }
    .shop-offer-icon { min-height: 42px; }
    #products .shop-offer-icon img { width: 42px; height: 42px; }
    .shop-offer-content { display: contents; }
    .shop-offer-details { grid-column: 1 / -1; }
}
