/* Home hero only. Real links and a static first card remain without JavaScript. */
.ortho-hero-visual--deck { min-width: 0; }
.ortho-hero-deck {
    position: absolute;
    z-index: 4;
    left: 20px;
    bottom: 18px;
    width: calc(100% - 40px);
    max-width: 380px;
    color: #142f3a;
    isolation: isolate;
}
.ortho-hero-deck-rail { display: grid; grid-template-areas: "card"; align-items: end; }
.ortho-hero-deck .ortho-hero-deck-card {
    position: relative;
    inset: auto;
    grid-area: card;
    justify-self: center;
    display: flex;
    flex-direction: column;
    width: calc(100% - 40px);
    min-height: 0;
    height: auto;
    margin: 0;
    padding: 11px 14px 10px;
    border: 1px solid rgba(20, 47, 58, .16);
    border-radius: 20px;
    color: #142f3a;
    background: #fffdf9;
    box-shadow: 0 12px 28px rgba(20, 47, 58, .16);
    text-align: left;
    text-decoration: none;
    transform-origin: 50% 100%;
    transition: transform 240ms ease, opacity 240ms ease, box-shadow 180ms ease;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.ortho-hero-deck-card[data-state="current"] { z-index: 3; transform: none; opacity: 1; }
.ortho-hero-deck-card[data-state="previous"] { z-index: 1; transform: translate(-20px, -7px) rotate(-4deg) scale(.96); opacity: .88; }
.ortho-hero-deck-card[data-state="next"] { z-index: 2; transform: translate(20px, -7px) rotate(4deg) scale(.96); opacity: .88; }
.ortho-hero-deck .ortho-hero-deck-card[hidden],
.ortho-hero-deck [data-hero-controls][hidden] { display: none !important; }
.ortho-hero-deck .ortho-hero-product-label {
    position: static;
    margin: 0;
    padding: 0;
    color: #b4401b;
    background: transparent;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.ortho-hero-deck .ortho-hero-deck-card img {
    position: static;
    display: block;
    flex: none;
    width: 220px;
    max-width: 100%;
    height: 154px;
    margin: 3px auto 5px;
    object-fit: contain;
    object-position: center;
    filter: none;
}
.ortho-hero-deck-brand { color: #5d6a6b; font-size: 10px; line-height: 1.4; }
.ortho-hero-deck-name {
    display: block;
    min-width: 0;
    margin: 2px 0 5px;
    color: #142f3a;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.28;
    overflow-wrap: anywhere;
    white-space: normal;
}
.ortho-hero-deck-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.ortho-hero-deck-price { color: #142f3a; font-size: 17px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.ortho-hero-deck-open { display: inline-flex; align-items: center; gap: 7px; color: #92401f; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ortho-hero-deck-open > span { font-size: 20px; line-height: 1; }
.ortho-hero-deck-controls { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 10px; }
.ortho-hero-deck-controls button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid rgba(20, 47, 58, .16);
    border-radius: 50%;
    color: #142f3a;
    background: #fffdf9;
    box-shadow: 0 5px 14px rgba(20, 47, 58, .08);
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}
.ortho-hero-deck-count { min-width: 46px; padding: 5px 8px; border-radius: 20px; color: #142f3a; background: #fffdf9; font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.ortho-hero-deck-controls [data-hero-toggle] { width: auto; height: auto; min-height: 28px; padding: 3px 12px; font-size: 11px; }
.ortho-hero-deck-card:focus-visible,
.ortho-hero-deck-controls button:focus-visible,
.ortho-hero-deck-fallback:focus-visible { outline: 3px solid #142f3a; outline-offset: 4px; }
.ortho-hero-deck-controls button:hover { background: #f3e4d5; }
.ortho-hero-deck-card[data-state="current"]:hover { box-shadow: 0 16px 30px rgba(20, 47, 58, .24); }
.ortho-hero-deck-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ortho-hero-visual--deck .ortho-hero-float-bottom { top: 116px; right: 24px; bottom: auto; max-width: calc(100% - 48px); }
.ortho-hero-deck-fallback { position: absolute; left: 24px; right: 24px; bottom: 24px; padding: 18px; border-radius: 16px; background: #fffdf9; color: #142f3a; text-decoration: none; }
@media (max-width: 1100px) {
    .ortho-hero-visual--deck .ortho-hero-stamp,
    .ortho-hero-visual--deck .ortho-hero-float-bottom { display: none; }
    .ortho-hero-visual--deck .ortho-hero-float-top { top: 18px; left: 18px; right: 18px; width: auto; max-width: none; }
    .ortho-hero-visual--deck .ortho-hero-float-top p { min-width: 0; white-space: normal; }
    .ortho-hero-deck { left: 10px; bottom: 14px; width: calc(100% - 20px); }
    .ortho-hero-deck .ortho-hero-deck-card { width: calc(100% - 28px); padding-inline: 12px; }
    .ortho-hero-deck-card[data-state="previous"] { transform: translate(-13px, -6px) rotate(-3deg) scale(.97); }
    .ortho-hero-deck-card[data-state="next"] { transform: translate(13px, -6px) rotate(3deg) scale(.97); }
}
@media (max-width: 760px) {
    .ortho-hero-deck { left: 50%; width: calc(100% - 36px); max-width: 380px; transform: translateX(-50%); }
    .ortho-hero-deck .ortho-hero-deck-card { width: calc(100% - 36px); padding: 11px 14px 10px; }
    .ortho-hero-deck .ortho-hero-deck-card img { height: 128px; }
}
@media (prefers-reduced-motion: reduce) {
    .ortho-hero-deck .ortho-hero-deck-card { transition: none; }
}
