/* ==========================================================================
   Wholesale listing detail
   ========================================================================== */

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .86rem; color: var(--muted); padding: 1.25rem 0 0; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--orange-dark); }
.crumbs span[aria-hidden] { opacity: .5; }

.ld { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; padding: 1.25rem 0 2.5rem; }
@media (max-width: 960px) { .ld { grid-template-columns: 1fr; gap: 1.5rem; } }

.gallery { display: grid; gap: .75rem; position: sticky; top: 92px; }
@media (max-width: 960px) { .gallery { position: static; } }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); }
.gallery__main svg { width: 52%; height: auto; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.gallery__thumbs button { aspect-ratio: 1; border-radius: var(--radius-sm); border: 2px solid transparent; display: grid; place-items: center; cursor: pointer; padding: 0; overflow: hidden; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--orange); }
.gallery__thumbs svg { width: 60%; }
.gallery__note { font-size: .8rem; color: var(--muted); margin: 0; }

.ld-info { display: grid; gap: 1.1rem; }
.ld-info h1 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 0; }
.ld-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.ld-supplier { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; font-size: .92rem; color: var(--muted); }
.ld-supplier a { color: var(--charcoal); font-weight: 600; }
.ld-supplier .icon { width: 16px; height: 16px; }
.ld-supplier span { display: inline-flex; align-items: center; gap: .3rem; }

.ld-price { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.ld-price b { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--charcoal); line-height: 1; }
.ld-price small { color: var(--muted); font-size: 1rem; font-weight: 600; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
@media (max-width: 620px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .8rem; font-size: .78rem; color: var(--muted); }
.facts b { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--charcoal); }

.tiers-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.tiers-table th, .tiers-table td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); }
.tiers-table th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream); }
.tiers-table tr:last-child td { border-bottom: 0; }
.tiers-table tr.is-active td { background: var(--orange-soft); font-weight: 700; }
.tiers-table td:last-child { text-align: right; }

/* Order box */
.order { background: var(--paper); border: 2px solid var(--charcoal); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .9rem; }
.order h2 { font-size: 1.2rem; margin: 0; }
.stepper-in { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.stepper-in button { width: 48px; border: 0; background: var(--cream); font-size: 1.3rem; font-weight: 700; cursor: pointer; color: var(--charcoal); }
.stepper-in button:hover { background: var(--cream-2); }
.stepper-in input, .stepper-in select { flex: 1; min-width: 0; border: 0; padding: .7rem .8rem; font-size: 1.05rem; font-weight: 600; text-align: center; background: #fff; }
.stepper-in input:focus, .stepper-in select:focus { outline: 0; }
.stepper-in:focus-within { outline: 2px solid var(--orange); outline-offset: 1px; }
.stepper-in .qty-suffix { display: flex; align-items: center; padding: 0 .8rem; background: var(--cream); color: var(--muted); font-size: .85rem; white-space: nowrap; border-left: 1px solid var(--line); }
.order-sum { display: grid; gap: .35rem; font-size: .92rem; }
.order-sum div { display: flex; justify-content: space-between; gap: 1rem; }
.order-sum div span:first-child { color: var(--muted); }
.order-sum .total { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .2rem; font-size: 1.05rem; }
.order-sum .total b { font-family: var(--font-display); font-size: 1.4rem; }
.order-sum .save { color: var(--green); font-weight: 600; }
.order-msg { margin: 0; font-size: .88rem; padding: .55rem .75rem; border-radius: var(--radius-sm); }
.order-msg--err { background: #f3d6cf; color: #8a2f1b; }
.order-msg--tip { background: var(--orange-soft); color: var(--orange-dark); }
.order-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.order .fine { font-size: .8rem; color: var(--muted); margin: 0; }

/* Sections below */
.ld-more { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; padding-bottom: 3rem; }
@media (max-width: 960px) { .ld-more { grid-template-columns: 1fr; } }
.ld-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .9rem; }
.ld-block h2 { font-size: 1.3rem; margin: 0; }
.spec-list { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; font-size: .92rem; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--charcoal); font-weight: 600; }
.terms { display: grid; gap: .75rem; }
.term { display: flex; gap: .75rem; align-items: start; }
.term .tile__icon { width: 40px; height: 40px; flex-shrink: 0; }
.term .tile__icon svg { width: 20px; height: 20px; }
.term b { display: block; color: var(--charcoal); }
.term span { font-size: .9rem; color: var(--muted); }
.sup-box { display: flex; gap: .9rem; align-items: center; }
.sup-box .sup-logo { width: 56px; height: 56px; }
.sup-box h3 { margin: 0 0 .15rem; }
.ask textarea { min-height: 90px; }

.not-found { text-align: center; padding: 5rem 0; }
