.bf-stock-detail {
    max-width: 1440px;
    margin-inline: auto;
    padding: clamp(20px, 4vw, 54px);
    color: var(--bf-ink);
}
.bf-stock-detail h1 {
    margin: 16px 0 22px;
    font-size: clamp(1.65rem, 4vw, 3.1rem);
    line-height: 1.12;
}
.bf-stock-detail-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(20px, 4vw, 42px);
}
.bf-stock-detail-photo {
    display: block;
    width: min(100%, 680px);
    flex: 1 1 370px;
    min-width: 0;
    border-radius: 16px;
    object-fit: cover;
}
.bf-stock-detail-info { flex: 1 1 300px; min-width: 0; }
.bf-stock-detail-info .bf-stock-detail-price { margin-top: 0; font-size: 1.5rem; font-weight: 750; }
.bf-stock-detail dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}
.bf-stock-detail dt { color: var(--bf-muted); font-size: .88rem; }
.bf-stock-detail dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.bf-stock-detail h2 { font-size: 1.25rem; }
.bf-stock-detail-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.bf-stock-detail-back, .bf-stock-detail-links a:not(.bf-whatsapp) { color: var(--bf-action); text-underline-offset: 3px; }

.bf-stock-related { margin-top: clamp(32px, 5vw, 60px); }
.bf-stock-related h2 { margin: 0 0 16px; font-size: clamp(1.3rem, 2.5vw, 2rem); }
.bf-stock-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    max-width: 1080px;
}
.bf-stock-related-card {
    overflow: hidden;
    border: 1px solid var(--bf-line);
    border-radius: 14px;
    background: var(--bf-soft);
}
.bf-stock-related-image { display: block; aspect-ratio: 1.6; }
.bf-stock-related-image img { width: 100%; height: 100%; object-fit: cover; }
.bf-stock-related-copy { padding: 16px; }
.bf-stock-related-copy h3 { margin: 7px 0; font-size: 1.05rem; line-height: 1.3; }
.bf-stock-related-copy a { color: #006586; text-underline-offset: 2px; }
.bf-stock-related-copy p { margin: 0; color: var(--bf-muted); font-size: .86rem; }

.bf-unit-gallery { flex: 1 1 370px; min-width: 0; width: 100%; max-width: 680px; }
.bf-unit-gallery [hidden] { display: none !important; }
.bf-unit-gallery-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #edf2f8;
    color: #3e516d;
}
.bf-unit-gallery-frame p { margin: 0; padding: 24px; }
.bf-unit-gallery-photo { display: block; aspect-ratio: 4 / 3; touch-action: pan-y pinch-zoom; }
.bf-unit-gallery-arrow {
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 45%);
    border-radius: 50%;
    background: rgb(9 22 41 / 85%);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(9 22 41 / 25%);
}
.bf-unit-gallery-arrow[data-gallery-step="-1"] { inset-inline-start: 10px; }
.bf-unit-gallery-arrow[data-gallery-step="1"] { inset-inline-end: 10px; }
.bf-unit-gallery-arrow:hover { background: #091629; }
.bf-unit-gallery-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.bf-unit-gallery-photo .bf-stock-detail-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    object-fit: contain;
}
.bf-unit-gallery-count { margin: 9px 0; font-size: .84rem; color: #435773; }
.bf-unit-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 10px; }
.bf-unit-gallery-thumbs button {
    flex: 0 0 78px;
    height: 63px;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: #eef2f8;
    cursor: pointer;
}
.bf-unit-gallery-thumbs button[aria-pressed="true"] { border-color: #19375c; }
.bf-unit-gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; display: block; }
.bf-unit-gallery-dialog { padding: 12px; border: 0; border-radius: 14px; background: #132844; color: #fff; max-width: min(94vw, 1200px); }
.bf-unit-gallery-dialog::backdrop { background: #061225d9; }
.bf-unit-gallery-dialog form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.bf-unit-gallery-dialog button { border-radius: 6px; padding: 7px 12px; border: 0; cursor: pointer; font: inherit; }
.bf-unit-gallery-dialog img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; }

.bf-auction-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 44px;
    padding: 8px 15px;
    border: 1px solid #325174;
    border-radius: 9px;
    background: linear-gradient(135deg, #10243c, #24476b);
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.bf-auction-button:hover { background: #284e76; }
.bf-auction-button:focus-visible, .bf-auction-close:focus-visible {
    outline: 3px solid #d5a94d;
    outline-offset: 2px;
}
.bf-auction-dialog {
    box-sizing: border-box;
    width: min(calc(100% - 24px), 960px);
    height: min(88dvh, 920px);
    max-height: calc(100% - 24px);
    padding: 0;
    border: 1px solid #325174;
    border-radius: 14px;
    background: #10243c;
    color: #fff;
    overflow: hidden;
}
.bf-auction-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}
.bf-auction-dialog::backdrop { background: #061225d9; }
.bf-auction-header, .bf-auction-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
}
.bf-auction-header h2 { margin: 0; color: inherit; font-size: 1.1rem; }
.bf-auction-close {
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid #8b9ab1;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
.bf-auction-close:hover { background: #24476b; }
.bf-auction-dialog iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f6f8fb;
}
.bf-auction-footer a { color: #ffe1a1; font-size: .875rem; }

.bf-stock-detail-gallery,
.bf-stock-detail-info {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: clamp(12px, 2.1vw, 24px);
    border: 1px solid #dce4ee;
    border-radius: 16px;
    background: #fff;
}
.bf-stock-detail-gallery { flex: 1.15 1 360px; }
.bf-stock-detail-info { flex: 1 1 300px; }
.bf-stock-detail-gallery .bf-unit-gallery { max-width: none; }
.bf-stock-detail .bf-stock-section-title {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8f0;
    color: #152740;
    font-size: clamp(1.03rem, 1.8vw, 1.35rem);
    line-height: 1.25;
    font-weight: 750;
}
.bf-stock-detail-info .bf-stock-detail-price {
    margin: 0 0 12px;
    line-height: 1.15;
}
.bf-stock-detail-price small { display: block; margin-bottom: 4px; font-size: .8rem; }
.bf-stock-detail-info dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin: 0 0 12px;
}
.bf-stock-detail-info dl > div {
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid #e7edf4;
}
.bf-stock-detail-info dt { font-size: .77rem; line-height: 1.3; }
.bf-stock-detail-info dd { margin-top: 2px; font-size: .91rem; line-height: 1.3; font-weight: 600; }
.bf-stock-detail-spec { margin: 0 0 13px; }
.bf-stock-detail-spec h3 { margin: 0 0 5px; font-size: .95rem; line-height: 1.25; font-weight: 750; }
.bf-stock-detail-spec p { margin: 0; font-size: .87rem; line-height: 1.5; overflow-wrap: anywhere; }
.bf-stock-detail-info .bf-stock-detail-links { gap: 8px; }
@media (max-width: 700px) {
    .bf-stock-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .bf-stock-detail-gallery .bf-unit-gallery-frame { border-radius: 10px; }
    .bf-stock-detail-gallery .bf-unit-gallery-thumbs { gap: 5px; padding-bottom: 4px; }
    .bf-stock-detail-gallery .bf-unit-gallery-thumbs button { flex-basis: 56px; height: 46px; }
}

.bf-stock-detail-info .bf-stock-warranty {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: .55rem;
    margin: .65rem 0;
    padding: .55rem .75rem;
    border: 1px solid #2a4668;
    border-radius: 11px;
    background: #102947;
    color: #f4f7fc;
}
.bf-stock-warranty .bf-stock-warranty-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #f1cd76;
}
.bf-stock-warranty .bf-stock-warranty-title {
    display: block;
    margin: 0 0 .15rem;
    color: #f1cd76;
    font-size: 1rem;
    line-height: 1.25;
}
.bf-stock-warranty .bf-stock-warranty-copy {
    margin: 0;
    font-size: .875rem;
    line-height: 1.3;
}
.bf-stock-warranty .bf-stock-warranty-terms {
    display: block;
    margin-top: .15rem;
    color: #dce7f4;
    font-size: .8rem;
}
