/* Premium product card — 1:1 reference layout */

/* Grid column: не вылезать за пределы карточки */
.page-content__card > .page-content__inner,
.page-content__card > .product-premium-card {
    min-width: 0;
    max-width: 100%;
}

.page-content__card:has(.product-premium-card) {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    gap: 24px;
    align-items: start;
}

.product-premium-card.page-content__box {
    background: #fff;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Brand logo */
.product-premium-card__brand {
    margin: 0 0 16px;
}

.product-premium-card__brand[hidden] {
    display: none !important;
}

.product-premium-card__brand-link {
    display: inline-flex;
    align-items: center;
    max-width: 200px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.product-premium-card__brand-link:hover {
    opacity: 0.78;
}

.product-premium-card__brand-picture {
    display: block;
    line-height: 0;
}

.product-premium-card__brand-img {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 48px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

/* Category */
.product-premium-card__category {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #999;
    text-transform: lowercase;
}

/* Title — serif, one line like reference */
.product-premium-card__title.page-content__title {
    margin: 0 0 14px !important;
    padding: 0;
    font-family: Georgia, 'Times New Roman', Times, serif !important;
    font-size: 32px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
    color: #111;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-premium-card__title.page-content__title span {
    display: none !important;
}

.product-premium-card__title a {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
}

.product-premium-card__title a:hover {
    opacity: 0.85;
}

/* Yandex Market rating */
.product-market-rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.3;
    color: #666;
}

.product-market-rating--link {
    cursor: pointer;
    border: 0;
    background: transparent;
    padding: 0;
    margin-bottom: 14px;
    text-align: left;
    width: 100%;
    transition: opacity 0.2s ease;
}

.product-market-rating--link:hover {
    opacity: 0.75;
}

.product-market-rating--link:focus-visible {
    outline: 2px solid #ffe500;
    outline-offset: 4px;
    border-radius: 6px;
}

.product-market-rating__stars {
    color: #ffc400;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1;
}

.product-market-rating__score {
    font-weight: 700;
    font-size: 15px;
    color: #111;
}

.product-market-rating__divider {
    width: 1px;
    height: 14px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.product-market-rating__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-market-rating__ym-text {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.product-market-rating__count {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2em;
    font-size: 15px;
    color: #666;
}

.product-market-rating__count-label {
    white-space: nowrap;
}

/* Meta: article + favorites */
.product-premium-card__meta.page-content__contains {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 22px !important;
    width: 100%;
}

.product-premium-card__article.page-content__article {
    margin: 0 !important;
    margin-right: 0 !important;
    font-size: 14px;
    line-height: 1.4;
    color: #999 !important;
}

.product-premium-card__article span {
    color: #666;
}

.product-premium-card__article span#acticle {
    display: inline;
}

.product-premium-card__meta-top {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.product-premium-card__favorites.page-content__favorites {
    margin: 0 !important;
    gap: 6px;
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

.product-premium-card__favorites .page-content__favorites-text {
    color: #999;
    font-size: 14px;
}

.product-premium-card__authenticity {
    gap: 6px;
    margin-left: auto;
    font-size: 14px;
    line-height: 1.4;
    color: #999;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.product-premium-card__authenticity:hover,
.product-premium-card__authenticity:focus-visible {
    color: #666;
    text-decoration: none;
}

.product-premium-card__authenticity-icon {
    flex-shrink: 0;
    color: rgba(34, 34, 34, 0.5);
}

.product-premium-card__authenticity-text {
    color: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Price + quantity + specs card */
.product-premium-price-card {
    margin: 0 0 0;
    border: 1px solid #ececec;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.product-premium-price-card__main {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 22px 28px;
    box-sizing: border-box;
    min-height: 108px;
}

/* Fallback, если в шаблоне нет __main */
.product-premium-price-card:not(:has(.product-premium-price-card__main)) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    padding: 22px 28px;
    min-height: 108px;
}

.product-premium-price-card:not(:has(.product-premium-price-card__main)) > .product-premium-price-card__price {
    flex: 1 1 auto;
    min-width: 0;
}

.product-premium-price-card:not(:has(.product-premium-price-card__main)) > .product-premium-price-card__divider {
    width: 1px;
    align-self: stretch;
    background: #ececec;
    margin: 0 24px;
    flex-shrink: 0;
}

.product-premium-price-card:not(:has(.product-premium-price-card__main)) > .product-premium-price-card__qty {
    flex: 0 0 150px;
    margin-left: 0;
}

.product-premium-price-card__price {
    flex: 1 1 auto;
    min-width: min(100%, 9rem);
    padding-right: 24px;
    overflow-wrap: normal;
    word-break: normal;
}

.product-premium-price__current.page-content__price {
    display: block;
    font-size: clamp(24px, 5.5vw, 36px) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #111 !important;
    letter-spacing: -0.02em;
    margin: 0 !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.product-premium-price__old-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 8px;
}

.product-premium-price__old.page-content__old {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: #aaa !important;
    text-decoration: line-through !important;
}

.product-premium-price__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    background: #e8f7ec;
    color: #1e8e3e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0;
}

.product-premium-price__badge:empty {
    display: none;
}

.product-premium-price__economy.price-precent {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #1e8e3e !important;
    white-space: normal;
}

.product-premium-price-card[data-can-buy="0"] .product-premium-price-card__divider,
.product-premium-price-card[data-can-buy="0"] .product-premium-price-card__qty {
    display: none !important;
}

.product-premium-price-card[data-can-buy="0"] .product-premium-price-card__price {
    padding-right: 0;
}

.product-premium-price-card__divider {
    width: 1px;
    align-self: stretch;
    min-height: 72px;
    background: #ececec;
    flex-shrink: 0;
    margin: 0 24px;
}

.product-premium-price-card__qty {
    flex: 0 0 150px;
    width: 150px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.product-premium-qty__label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
    color: #999;
}

.product-premium-qty {
    display: inline-flex;
    align-items: stretch;
    width: 132px;
    max-width: 132px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.product-premium-qty__btn {
    flex: 0 0 40px;
    width: 40px;
    min-height: 42px;
    border: 0 !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.product-premium-qty__btn:hover {
    background: #f7f7f7 !important;
}

/* Не использовать псевдоэлементы Bitrix — мешают клику и дублируют «−» / «+» */
.product-premium-qty__btn.product-item-amount-field-btn-plus::after,
.product-premium-qty__btn.product-item-amount-field-btn-minus::after {
    display: none !important;
    content: none !important;
}

.product-premium-qty__input.page-content__counter-coint {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 40px;
    min-height: 42px !important;
    height: 42px !important;
    border: 0 !important;
    border-left: 1px solid #e5e5e5 !important;
    border-right: 1px solid #e5e5e5 !important;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    background: #fff !important;
    -moz-appearance: textfield;
    padding: 0;
}

.product-premium-qty__input::-webkit-outer-spin-button,
.product-premium-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Specs: 3 равные колонки, разделители по центру */
.product-premium-specs.page-content__informations,
.product-premium-price-card__specs.product-premium-specs.page-content__informations {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch !important;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px !important;
    padding: 0;
    box-sizing: border-box;
}

.product-premium-specs.page-content__informations {
    border: 1px solid #ececec;
    border-radius: 16px;
    overflow: hidden;
}

.product-premium-price-card__specs.product-premium-specs.page-content__informations {
    margin: 0 !important;
    border-top: 1px solid #ececec;
    border-radius: 0;
}

.product-premium-specs__item.page-content__size {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 16px 22px;
    margin: 0 !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-weight: 400 !important;
    font-size: inherit !important;
}

.product-premium-specs__item + .product-premium-specs__item {
    border-left: 1px solid #ececec;
}

.product-premium-specs .page-content__size img,
.product-premium-specs__icon {
    display: block;
    margin: 0 auto 10px !important;
}

.product-premium-specs__title.page-content__size--title {
    order: 1;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #111;
}

.product-premium-specs__icon {
    order: 2;
    width: 80px;
    height: auto;
    margin: 0 0 10px !important;
}

.product-premium-specs__value {
    order: 3;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

/* Color variants */
.product-color-variants {
    margin-bottom: 24px;
}

.product-color-variants__title.page-content__characteristics {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
}

.product-color-variants__slider {
    position: relative;
}

.product-color-variants__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 40px 4px 0;
}

.product-color-variants__track::-webkit-scrollbar {
    display: none;
}

.product-color-card {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-color-card:hover {
    transform: translateY(-2px);
    border-color: #ccc;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-color-card--active {
    border: 2px solid #111;
    padding: 9px 7px 11px;
}

.product-color-card--loading {
    opacity: 0.55;
    pointer-events: none;
}

.product-premium-gallery--loading {
    opacity: 0.55;
    transition: opacity 0.15s ease;
}

.product-color-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
}

.product-color-card__img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

.product-color-card__placeholder {
    font-size: 10px;
    color: #bbb;
}

.product-color-card__meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 16px;
}

.product-color-card__label {
    font-size: 11px;
    font-weight: 500;
    text-align: left;
    line-height: 1.25;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-color-card__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.product-color-variants__next {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #bbb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-color-variants__next:hover {
    color: #666;
}

/* Cart CTA */
.product-premium-card__actions {
    margin-top: 0;
    width: 100%;
}

.product-premium-card__actions--after-price {
    margin: 20px 0 24px;
}

.product-premium-card__actions--after-price + .product-premium-specs.page-content__informations {
    margin-top: 0 !important;
}

.product-premium-card__actions [id$="_not_avail"],
.product-premium-card__actions [id$="_basket_actions"] {
    display: block;
    width: 100%;
}

.product-premium-cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100% !important;
    min-height: 54px !important;
    padding: 16px 24px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: #ffe500 !important;
    color: #111 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: none !important;
}

.product-premium-cart-btn:hover:not(.product-premium-cart-btn--in-cart) {
    background: #f5d900 !important;
    border: 0 !important;
    transform: translateY(-1px);
}

.product-premium-cart-btn--in-cart,
.product-premium-cart-btn.product-premium-cart-btn--in-cart {
    background: #40CFFF !important;
    color: #111 !important;
    border: 0 !important;
    cursor: pointer;
}

.product-premium-cart-btn--in-cart:hover {
    background: #2eb8e6 !important;
    color: #111 !important;
    transform: translateY(-1px);
}

.product-premium-cart-btn--in-cart .product-premium-cart-btn__icon {
    display: none;
}

.product-premium-cart-btn__icon {
    flex-shrink: 0;
}

.product-premium-notify.page-content__sjop-click,
.product-premium-notify.btn.product-item-detail-buy-button {
    -webkit-appearance: none;
    appearance: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 54px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 16px 24px !important;
    position: static !important;
    border: 1px solid #111 !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    text-align: center;
    text-transform: none !important;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.product-premium-notify.page-content__sjop-click:hover,
.product-premium-notify.btn.product-item-detail-buy-button:hover {
    background: #f7f7f7 !important;
    border-color: #111 !important;
    color: #111 !important;
}

/* Hide legacy sidebar pieces */
.product-premium-card .page-content__wrap,
.product-premium-card .page-content__border,
.product-premium-card .page-content__info {
    display: none !important;
}

/* Large tablet / small desktop */
@media (max-width: 1199px) {
    .page-content__card:has(.product-premium-card) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
    }
}

/* Tablet — одна колонка страницы, но цена и количество в ряд как в макете */
@media (max-width: 991px) {
    .page-content__card:has(.product-premium-card) {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .product-premium-card__title.page-content__title {
        font-size: 28px !important;
    }
}

/* Узкая колонка сайдбара */
@media (max-width: 420px) {
    .product-premium-price-card__main {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px 16px;
    }

    .product-premium-price-card__divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .product-premium-price-card__qty {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }
}

/* Tablet / mobile — артикул + избранное в ряд, гарантия отдельной строкой */
@media (max-width: 991px) {
    .product-premium-card__meta.page-content__contains {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    .product-premium-card__meta-top {
        width: 100%;
        flex: none;
    }

    .product-premium-card__article.page-content__article {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

    .product-premium-card__favorites.page-content__favorites {
        flex-shrink: 0;
    }

    .product-premium-card__authenticity {
        width: 100%;
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .product-premium-card__title.page-content__title {
        font-size: 24px !important;
    }

    .product-market-rating {
        font-size: 14px;
        gap: 0 10px;
    }

    .product-premium-price-card__main,
    .product-premium-price-card:not(:has(.product-premium-price-card__main)) {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 16px;
        gap: 18px;
    }

    .product-premium-price-card__price,
    .product-premium-price-card:not(:has(.product-premium-price-card__main)) > .product-premium-price-card__price {
        flex: none;
        width: 100%;
        min-width: 0;
        padding-right: 0;
    }

    .product-premium-price-card__divider,
    .product-premium-price-card:not(:has(.product-premium-price-card__main)) > .product-premium-price-card__divider {
        width: 100%;
        height: 1px;
        min-height: 0;
        margin: 0;
        align-self: stretch;
    }

    .product-premium-price-card__qty,
    .product-premium-price-card:not(:has(.product-premium-price-card__main)) > .product-premium-price-card__qty {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: none;
        padding-left: 0;
    }

    .product-premium-qty {
        max-width: 140px;
    }

    .product-premium-price__current.page-content__price {
        font-size: clamp(26px, 7vw, 34px) !important;
    }

    .product-premium-specs.page-content__informations,
    .product-premium-price-card__specs.product-premium-specs {
        grid-template-columns: 1fr;
    }

    .product-premium-specs__item + .product-premium-specs__item {
        border-left: 0;
        border-top: 1px solid #ececec;
    }
}

@media (max-width: 480px) {
    .product-market-rating__count {
        white-space: normal;
    }

    .product-premium-price__current.page-content__price {
        font-size: clamp(22px, 8vw, 30px) !important;
    }
}

@media (max-width: 359px) {
    .product-premium-price__current.page-content__price {
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* Gallery thumbs stay inside the card column; arrows scroll the overflow */
.page-content__card > .page-content__inner {
    min-width: 0;
    max-width: 100%;
}

.page-content__inner .product-item-detail-slider-container,
.page-content__inner .page-content__product,
.page-content__inner .product-item-detail-slider-image img,
.page-content__inner .page-content__image {
    max-width: 100%;
    min-width: 0;
}

.page-content__inner .page-content__sliders {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 16px;
    box-sizing: border-box;
}

.page-content__card .page-content__container,
.page-content__sliders .page-content__container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
}

.product-gallery-thumbs {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.product-gallery-thumbs__viewport {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
}

.product-gallery-thumbs__viewport::-webkit-scrollbar {
    display: none;
}

.product-gallery-thumbs--scrollable .product-gallery-thumbs__viewport {
    width: auto;
    margin: 0 44px;
    padding: 0;
}

.product-gallery-thumbs:not(.product-gallery-thumbs--scrollable) .product-gallery-thumbs__viewport {
    overflow-x: hidden;
    display: block;
}

.product-gallery-thumbs__viewport .product-item-detail-slider-controls-block {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    width: max-content;
    max-width: none;
    text-align: left;
    vertical-align: top;
}

.product-gallery-thumbs:not(.product-gallery-thumbs--scrollable) .product-gallery-thumbs__viewport .product-item-detail-slider-controls-block {
    width: auto;
    justify-content: center;
}

/* Фиксированный размер миниатюр: 23% внутри inline-flex даёт ширину 0 */
.product-gallery-thumbs__viewport .product-item-detail-slider-controls-image {
    display: block;
    flex: 0 0 100px;
    width: 100px !important;
    max-width: 100px;
    min-width: 100px;
    height: 100px;
    margin-top: 0;
    box-sizing: border-box;
    outline: none !important;
    border: 1px solid #e0e6ec;
    border-radius: 6px;
}

.product-gallery-thumbs__viewport .product-item-detail-slider-controls-image:hover {
    border-color: #c5d5e3;
}

.product-gallery-thumbs__viewport .product-item-detail-slider-controls-image.active {
    border-color: #40cfff;
}

.bx-no-retina .product-gallery-thumbs__viewport .product-item-detail-slider-controls-image.active,
.bx-retina .product-gallery-thumbs__viewport .product-item-detail-slider-controls-image,
.bx-retina .product-gallery-thumbs__viewport .product-item-detail-slider-controls-image.active {
    outline: none !important;
}

.product-gallery-thumbs__viewport .product-item-detail-slider-controls-image img {
    max-width: 96px;
    max-height: 96px;
}

.product-gallery-thumbs__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 50%;
    background: #fff;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.product-gallery-thumbs__arrow--prev {
    left: 0;
}

.product-gallery-thumbs__arrow--next {
    right: 0;
}

.product-gallery-thumbs__arrow:hover:not(:disabled) {
    background: #f7f7f7;
    border-color: #ccc;
}

.product-gallery-thumbs__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.product-gallery-thumbs__arrow[hidden] {
    display: none !important;
}

@media (max-width: 700px) {
    .product-gallery-thumbs__viewport .product-item-detail-slider-controls-image {
        flex-basis: 88px;
        width: 88px !important;
        max-width: 88px;
        min-width: 88px;
        height: 88px;
    }
}
