html,
body {
    overflow-x: hidden;
}

.product-page-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 768px) {
    .product-page-container {
        padding-top: 0 !important;
        padding-bottom: 1.5rem !important;
    }

    /* Single white sheet look on mobile */
    .product-detail-shell {
        background: #fff;
    }

    .product-page-container .row.g-4 {
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
        margin: 0;
    }

    .product-page-container .row.g-4 > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .product-gallery-box,
    .product-info-box,
    .product-tabs-wrapper,
    .comment-card,
    .comment-form-card {
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent;
    }

    .productBigSwiper {
        padding: 0;
    }

    .big-img {
        border-radius: 0 !important;
        background: #fff;
    }

    .productThumbSwiper {
        padding: 10px 12px;
        background: #fff;
    }

    .product-info-box {
        padding: 16px 16px 10px;
    }

    .product-tabs-wrapper {
        margin-top: 10px !important;
    }

    .product-tabs-content {
        padding: 16px;
    }

    /* Let product title wrap naturally on mobile detail page (no ... truncation) */
    .product-page-container .product-title {
        font-size: 1.4rem;
        line-height: 1.25;
        height: auto;
        max-height: none;
        overflow: visible;
        white-space: normal;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: initial;
    }
}

.product-gallery-box {
    background: #fff;
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #eaeaea;
}

.productBigSwiper {
    padding: 0;
    overflow: hidden;
}

.productBigSwiper .swiper-wrapper {
    width: 100%;
}

.productBigSwiper .swiper-slide {
    width: 100% !important;
    padding: 14px;
    box-sizing: border-box;
}

.big-img {
    width: 100%;
    height: 400px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fafafa;
    border-radius: 12px;
}

.big-img.gallery-lightbox-trigger {
    cursor: pointer;
}

.product-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.product-gallery-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.product-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    cursor: pointer;
}

.product-gallery-lightbox-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    box-sizing: border-box;
}

.product-gallery-lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.product-gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.2s ease;
}

.product-gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.product-gallery-lightbox-prev,
.product-gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.2s ease;
}

.product-gallery-lightbox-prev:hover,
.product-gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.product-gallery-lightbox-prev {
    left: 20px;
}

.product-gallery-lightbox-next {
    right: 20px;
}

.product-gallery-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

@media (max-width: 767px) {
    .product-gallery-lightbox-content {
        padding: 50px 56px 70px;
    }

    .product-gallery-lightbox-content.is-video-vertical {
        padding: 0;
    }

    .product-gallery-lightbox-prev,
    .product-gallery-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
        left: 12px;
        right: 12px;
    }

    .product-gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

.productBigSwiper iframe {
    width: 100%;
    height: 400px;
    border-radius: 12px;
}

.product-media-slide {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.product-media-slide iframe,
.product-media-slide video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    border-radius: 12px;
    object-fit: contain;
}

/* Dikey (9:16) ürün videoları — yanlarda siyah şerit olmaması için yüksek portre kutusu */
.product-media-slide.is-video-vertical {
    width: 100%;
    max-width: min(100%, 380px);
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: min(72vh, 640px);
    margin-left: auto;
    margin-right: auto;
    background: transparent;
}

.product-media-slide.is-video-vertical iframe,
.product-media-slide.is-video-vertical video {
    object-fit: cover;
}

/* Dikey video lightbox — ana sayfa #homeVideoModal ile aynı ölçüler */
.product-gallery-lightbox-content.is-video-vertical {
    max-width: min(92vw, 420px);
    width: min(92vw, 420px);
    height: auto;
    padding: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.product-gallery-lightbox-content.is-video-vertical .home-video-frame {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.product-gallery-lightbox-content.is-video-vertical .home-video-frame iframe,
.product-gallery-lightbox-content.is-video-vertical .home-video-frame video {
    border-radius: 0;
}

.product-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: rgba(0,0,0,0.18);
    color: #fff;
    cursor: pointer;
}

.product-media-play i {
    font-size: 56px;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

@media (max-width: 991.98px) {
    /* Prevent embedded players from hijacking swipe on mobile; play via overlay (lightbox) */
    .product-media-slide iframe,
    .product-media-slide video {
        pointer-events: none;
    }
}

.gallery-nav {
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    --swiper-navigation-size: 14px;
}

.product-gallery-box .gallery-nav::after {
    font-size: 14px;
}

.thumb-slide {
    width: 70px !important;
    height: 70px !important;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    border-radius: 10px;
    border: 2px solid transparent;
}

.swiper-slide-thumb-active .thumb-img {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.product-info-box {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #eaeaea;
}

.product-title {
    font-size: 1.9rem;
    font-weight: 700;
}

/* Product detail: always show full title (avoid global clamping rules) */
.product-page-container .product-title {
    height: auto;
    max-height: none;
    overflow: visible;
    white-space: normal;
    display: block;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-rating__value {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1;
}

.product-rating__count {
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-primary);
    text-decoration: none;
    line-height: 1;
}

.product-rating__count:hover {
    text-decoration: underline;
}

.product-rating__empty {
    font-size: 13px;
    font-weight: 500;
    color: #8a8a8a;
}

.product-social-proof {
    display: grid;
    gap: 6px;
}

.product-social-proof__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.product-social-proof__item i {
    font-size: 14px;
}

.product-social-proof__item--stock {
    color: #16a34a;
}

.product-social-proof__item--views {
    color: #f97316;
}

.product-features {
    border: 1px solid #eee;
    border-radius: 16px;
    background:
        radial-gradient(900px 240px at 0% 0%, color-mix(in srgb, var(--bs-primary) 10%, transparent), transparent 60%),
        #fff;
    padding: 14px 14px 12px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.product-features__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #111;
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.product-features__title i {
    color: var(--bs-primary);
    font-size: 16px;
}

.product-features__list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.product-features__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #2f2f2f;
    line-height: 1.35;
}

.product-features__item i {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: color-mix(in srgb, #16a34a 14%, transparent);
    color: #16a34a;
    font-size: 14px;
    margin-top: 1px; /* align with first text line */
}

@media (min-width: 992px) {
    .product-features__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 14px;
        row-gap: 10px;
    }
}

@media (max-width: 768px) {
    .product-features {
        border-radius: 14px;
        padding: 12px 12px 10px;
        box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
    }
    .product-features__item i {
        margin-top: 0; /* prevent mobile "shifted" look */
    }
}

.hb-old-price {
    color: #999;
    text-decoration: line-through;
}

.hb-new-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
}

.btn-add-cart {
    background: var(--bs-primary);
    color: #fff;
    border: 0;
    box-shadow: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 600;
    text-align: center;
    display: block;
}

.btn-add-cart:focus,
.btn-add-cart:active,
.btn-add-cart:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

.btn-buy-now {
    background: #fff;
    color: #111;
    border: 1px solid #e7e7e7;
    box-shadow: none;
    border-radius: 12px;
    padding: 15px;
    font-weight: 700;
    text-align: center;
    display: block;
}

.btn-buy-now:hover {
    background: #fff;
    border-color: var(--bs-primary);
    color: #111;
}

.btn-buy-now:focus,
.btn-buy-now:active,
.btn-buy-now:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-primary) 20%, transparent);
}

/* Add-to-cart row with quantity stepper */
.add-row {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: stretch;
}

.add-row__btn {
    width: 100%;
    margin: 0 !important;
}

.qty-stepper {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.qty-stepper__btn {
    height: 100%;
    border: 0;
    background: transparent;
    font-weight: 900;
    font-size: 18px;
    color: #111;
}

.qty-stepper__btn:hover {
    background: #f6f6f6;
}

.qty-stepper__input {
    width: 100%;
    height: 100%;
    border: 0;
    text-align: center;
    font-weight: 800;
    color: #111;
    background: transparent;
}

@media (max-width: 768px) {
    .add-row.add-row--mobile {
        grid-template-columns: 104px 1fr;
        gap: 10px;
    }
}

/* Quantity price campaign select (modern) */
.quantity-price__label {
    margin-bottom: 8px;
    color: #222;
}

.qty-select {
    position: relative;
}

.qty-select__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #e6e6e6;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
    font-weight: 700;
    color: #111;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.qty-select__btnText {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.qty-select__chev {
    font-size: 14px;
    color: #666;
    transition: transform 0.15s ease;
}

.qty-select__btn:hover {
    border-color: color-mix(in srgb, var(--bs-primary) 35%, #e6e6e6);
}

.qty-select__btn:active {
    transform: translateY(1px);
}

.qty-select__btn:focus,
.qty-select__btn:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--bs-primary) 55%, #e6e6e6);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--bs-primary) 18%, transparent);
}

.qty-select__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 30;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(16, 24, 40, 0.14);
    padding: 6px;
    display: none;
    max-height: 320px;
    overflow: auto;
}

.qty-select.is-open .qty-select__menu {
    display: block;
}

.qty-select.is-open .qty-select__chev {
    transform: rotate(180deg);
}

.qty-select__option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.qty-select__optMain {
    font-weight: 800;
    color: #111;
}

.qty-select__optSub {
    font-weight: 700;
    color: var(--bs-primary);
    white-space: nowrap;
}

.qty-select__option:hover {
    background: color-mix(in srgb, var(--bs-primary) 9%, transparent);
}

.qty-select__option:focus,
.qty-select__option:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bs-primary) 35%, transparent);
}

/* Similar products (product detail bottom) */
.similar-products-section .section-header {
    margin-bottom: 12px;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sp-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 8px;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.sp-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--bs-primary) 30%, #eee);
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.10);
}

.sp-card__img {
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
    aspect-ratio: 1 / 1;
}

.sp-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sp-card__title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.25;
    min-height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sp-card__price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.sp-card__old {
    font-size: 12px;
    color: #9a9a9a;
    text-decoration: line-through;
    font-weight: 600;
}

.sp-card__new {
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

@media (max-width: 991.98px) {
    .similar-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .similar-products-section .section-header {
        padding: 0 16px;
    }

    .similar-products-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0;
        padding: 0 16px 10px;
        gap: 10px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        scroll-padding-left: 16px;
        scrollbar-width: none;
    }

    .similar-products-grid::-webkit-scrollbar {
        display: none;
    }

    .sp-card {
        flex: 0 0 128px;
        padding: 9px;
        border-radius: 13px;
        scroll-snap-align: start;
    }

    .sp-card__title {
        font-size: 12.5px;
        min-height: 30px;
    }

    .sp-card__new {
        font-size: 13px;
    }
}
.btn-add-cart:hover {
    background: var(--bs-primary);
    filter: brightness(0.9);
    color: #fff;
}

.product-tabs-wrapper {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #ececec;
}

.product-tabs-nav {
    display: flex;
    gap: 32px;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    list-style: none;
    margin: 0;
}

.product-tabs-nav li {
    cursor: pointer;
    font-weight: 600;
    color: #777;
    position: relative;
    padding-bottom: 10px;
}
.product-tabs-nav li.active {
    color: var(--bs-primary);
}

.product-tabs-nav li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 0;
    height: 3px;
    background: var(--bs-primary);
    border-radius: 3px;
    transition: width 0.25s ease;
}

.product-tabs-nav li.active::after {
    width: 100%;
}

.product-tabs-content {
    padding: 28px;
}

.tab-panel {
    display: none;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.tab-panel.active {
    display: block;
}

@media (max-width: 768px) {
    .product-tabs-nav {
        gap: 20px;
        padding: 14px 16px;
    }

    .product-tabs-content {
        padding: 20px;
    }
}
@media (max-width: 768px) {
    .product-tabs-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        gap: 20px;
        padding: 14px 16px;
        -webkit-overflow-scrolling: touch;
    }

    .product-tabs-nav li {
        flex: 0 0 auto;
    }
}
.star-rating-input {
    display: inline-flex;
    direction: rtl;
    gap: 6px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 26px;
    color: #ddd;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: #ffc107;
}
/* ===== COMMENTS UI ===== */

.product-comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.75rem;
    color: #999;
}

.comment-rating i {
    font-size: 14px;
}

.comment-body {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.comment-form-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 20px;
}
.wishlist-btn {
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wishlist-btn i {
    font-size: 20px;
    color: var(--bs-primary);
    transition: all 0.2s ease;
}

.wishlist-btn:hover i {
    color: var(--bs-primary);
    transform: scale(1.12);
}

.wishlist-btn:active i {
    transform: scale(0.95);
}

.wishlist-btn:hover {
    background: color-mix(in srgb, var(--bs-primary) 10%, transparent);
}

.wishlist-btn:hover i {
    color: var(--bs-primary);
    transform: scale(1.1);
}

.wishlist-btn.active i {
    color: var(--bs-primary);
}

.wishlist-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bs-primary) 25%, transparent);
}

#cartToast {
    background: #e6f7ee;
    border-left: 6px solid #28a745;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

#cartToast .toast-body {
    font-size: 1rem;
    color: #155724;
    display: flex;
    align-items: center;
    gap: 10px;
}

#cartToast .toast-body::before {
    content: "✔";
    font-size: 20px;
    color: #28a745;
}

.btn-add-cart.added {
    background: #28a745 !important;
    color: #fff;
    cursor: default;
}

.btn-add-cart.added i {
    display: none;
}

.product-gallery-box .swiper {
    height: auto !important;
}

.product-gallery-box .swiper-slide {
    height: auto !important;
}

.productThumbSwiper {
    height: 70px !important;
}

.productThumbSwiper .swiper-wrapper {
    height: 70px !important;
}

.breadcrumb-wrapper {
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
}

.breadcrumb-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #999;
    margin: 0 2px;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}
.star-rating {
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}

.star-rating-back {
    color: #ddd;
}

.star-rating-front {
    color: #ffc107;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
}

.star-rating i {
    margin-right: 1px;
}

.review-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;

    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: 600;

    cursor: pointer;
    z-index: 5;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.review-nav-btn:hover {
    background: rgba(0, 0, 0, 0.65);
    transform: translateY(-50%) scale(1.05);
}

.review-prev {
    left: 12px;
}

.review-next {
    right: 12px;
}

.modal-backdrop {
    opacity: 0.6 !important;
}

body:not(.modal-open) .modal-backdrop {
    display: none !important;
}

.mobile-quick-buy {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-quick-buy.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-quick-buy__btn {
    width: 100%;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.16);
}

@media (max-width: 768px) {
    .mobile-quick-buy {
        left: 10px;
        right: 10px;
    }
    .mobile-quick-buy__btn {
        padding: 13px;
        border-radius: 12px;
    }
}

.variant-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variant-radio {
    display: none;
}

.variant-chip {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--bs-primary);
    background: #fff;
    color: var(--bs-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-chip:hover {
    background: rgba(var(--bs-primary-rgb), 0.08);
}

.variant-radio:checked + .variant-chip {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.variant-chip--selected {
    background: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.variant-chip--disabled,
.variant-chip:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #adb5bd;
    color: #adb5bd;
    background: #f8f9fa;
    text-decoration: line-through;
}
.btn-primary {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--bs-primary) 90%, black) !important;
    border-color: color-mix(in srgb, var(--bs-primary) 90%, black) !important;
}

.btn-primary:focus,
.btn-primary:active {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* Pasted marketplace descriptions: fixed px widths — scale to column, don’t clip */
.product-tabs-wrapper,
.product-tabs-content,
.tab-panel {
    min-width: 0;
    max-width: 100%;
}

.product-description-html {
    min-width: 0;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    /* If anything is still wider than the column, scroll — don’t rely on body clipping */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Let wide tables shrink with the viewport (fixed layout was squeezing/clipping some cells) */
.product-description-html table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    height: auto !important;
    border-collapse: collapse;
}

.product-description-html td,
.product-description-html th {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.product-description-html #productDescriptionContent {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Inline max-width on pasted <p> blocks */
.product-description-html p {
    max-width: 100% !important;
    box-sizing: border-box;
}

/*
 * Shrink oversized images to the column (override inline 700px etc.).
 * Use max-width only — width:100% would stretch small icons in the same HTML.
 */
.product-description-html img,
.product-description-html svg {
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    box-sizing: border-box;
}

.product-description-html video {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

.product-description-html iframe {
    max-width: 100% !important;
}
