/* ================================================================
   FINAL SHOWCASE — scoped to .final-showcase-section only
   Palette: #E8621A / #111111 / #FFFFFF / #F5F5F5 / #E0E0E0 / #FFF3EC
================================================================ */

[dir='ltr'] .final-showcase-widget__badge {
    margin-inline-start: auto;
}

[dir='rtl'] .final-showcase-widget__badge {
    margin-inline-end: auto;
}

.final-showcase-section.section-wrap {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
    background: #f5f5f5;
    overflow-anchor: none;
}

.final-showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.85rem, 2vw, 1.15rem);
    align-items: stretch;
}

@media (min-width: 768px) {
    .final-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .final-showcase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* —— Widget shell —— */

.final-showcase-widget {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 1rem;
    padding: 0.65rem 0.65rem 0.5rem;
    box-shadow: 0 1px 3px rgba(17, 17, 17, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.final-showcase-widget:hover {
    border-color: rgba(232, 98, 26, 0.22);
    box-shadow: 0 10px 28px -14px rgba(17, 17, 17, 0.12);
}

.final-showcase-widget__badge {
    display: block;
    width: fit-content;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.62rem;
    border-radius: 0.4rem;
    background: #e8621a;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.final-showcase-widget__empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 12rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(17, 17, 17, 0.5);
}

.final-showcase-widget__body {
    display: flex;
    gap: 0.55rem;
    min-width: 0;
    flex: 1;
}

/* —— Vertical thumbnails —— */

.final-showcase-widget__thumbs {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.38rem;
    width: 4.35rem;
    padding: 0.1rem 0;
}

.final-showcase-widget__thumb-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1.5px solid #c8c8c8;
    border-radius: 0.4rem;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.final-showcase-widget__thumb-arrow:hover:not(:disabled) {
    background: #fff3ec;
    border-color: rgba(232, 98, 26, 0.35);
}

.final-showcase-widget__thumb-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.final-showcase-widget__thumb-track {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 10.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    scrollbar-width: none;
}

.final-showcase-widget__thumb-track::-webkit-scrollbar {
    display: none;
}

.final-showcase-widget__thumb {
    flex-shrink: 0;
    width: 3.2rem;
    height: 3.2rem;
    padding: 0.28rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.45rem;
    background: #f5f5f5;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.final-showcase-widget__thumb:hover {
    border-color: rgba(232, 98, 26, 0.45);
    background: #fff3ec;
}

.final-showcase-widget__thumb.is-active {
    border-color: #e8621a;
    box-shadow: 0 0 0 1px rgba(232, 98, 26, 0.25);
}

.final-showcase-widget__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.final-showcase-widget__thumb-ph {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 0.2rem;
    background: #e0e0e0;
}

/* —— Main slide area —— */

.final-showcase-widget__main {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 13.25rem;
}

.final-showcase-slide {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    animation: final-showcase-fade 0.28s ease;
}

.final-showcase-slide.is-hidden {
    display: none !important;
}

@keyframes final-showcase-fade {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-showcase-slide__media-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.final-showcase-slide__media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.final-showcase-slide__media {
    position: relative;
    aspect-ratio: 5 / 4;
    min-height: 9.85rem;
    flex-shrink: 0;
    background: #111111;
    border-radius: 0.5rem 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.45rem;
    overflow: hidden;
}

.final-showcase-slide__discount {
    position: absolute;
    top: 0.4rem;
    inset-inline-start: 0.4rem;
    z-index: 2;
    padding: 0.15rem 0.38rem;
    border-radius: 0.25rem;
    background: #e63030;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}

.final-showcase-slide__img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.final-showcase-slide__img-ph {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.final-showcase-slide__promo {
    background: #111111;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 0.2rem 0.38rem;
}

.final-showcase-slide__promo-text {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* —— Product info —— */

.final-showcase-slide__info {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
    padding: 0;
}

.final-showcase-slide__title {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.28;
    color: #111111;
}

.final-showcase-slide__title a {
    color: inherit;
    text-decoration: none;
}

.final-showcase-slide__title a:hover {
    color: #e8621a;
}

.final-showcase-slide__desc {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.32;
    color: rgba(17, 17, 17, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.final-showcase-slide__price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.22rem;
    flex-wrap: wrap;
}

.final-showcase-slide__prices {
    display: flex;
    flex-direction: column;
    gap: 0.06rem;
    min-width: 0;
}

.final-showcase-slide__price-current {
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.05;
    color: #e8621a;
    font-variant-numeric: tabular-nums;
}

.final-showcase-slide__currency {
    font-size: 0.72rem;
    font-weight: 700;
}

.final-showcase-slide__price-old {
    font-size: 0.68rem;
    color: #9e9e9e;
    text-decoration: line-through;
    font-variant-numeric: tabular-nums;
}

.final-showcase-slide__vat {
    font-size: 0.58rem;
    color: rgba(17, 17, 17, 0.45);
}

.final-showcase-slide__rating {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #111111;
}

.final-showcase-slide__star {
    color: #e8621a;
    fill: #e8621a;
}

.final-showcase-slide__cart-form {
    margin: 0;
    padding: 0;
}

.final-showcase-slide__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    width: 100%;
    min-height: 2rem;
    margin-top: 0.05rem;
    padding: 0.32rem 0.55rem;
    border: none;
    border-radius: 0.45rem;
    background: #111111;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.final-showcase-slide__cta:hover:not(:disabled) {
    background: #e8621a;
}

.final-showcase-slide__cta--disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

.final-showcase-widget__cycle {
    align-self: center;
    margin-top: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    color: #111111;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.final-showcase-widget__cycle:hover {
    background: #fff3ec;
    border-color: rgba(232, 98, 26, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .final-showcase-slide {
        animation: none;
    }

    .final-showcase-widget,
    .final-showcase-slide__cta,
    .final-showcase-widget__thumb-arrow {
        transition: none;
    }
}
