/* ===== Product Gallery ===== */
.product-tabs {
    margin-top: 30px;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    width: 100%;
    height: 50vh !important;
    border-radius: 12px;
    object-fit: cover;
}

.product-thumb-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-thumb-image.swiper-slide-thumb-active {
    border-color: var(--theme-color);
}

/* ===== Product Info ===== */
.product-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.price-current {
    font-weight: 700;
}

.price-old {
    font-size: 1.125rem;
}

/* ===== Features ===== */
.feature-item {
    color: var(--gray-700);
}

.feature-item i {
    font-size: 1.25rem;
}

/* ===== Tabs ===== */
.common-tab .nav-link {
    border-radius: 8px 8px 0 0;
    color: var(--gray-600);
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-bottom: 2px solid transparent;
}

.common-tab .nav-link.active {
    color: var(--theme-color);
    border-bottom-color: var(--theme-color);
    background: transparent;
}

.product-content-box,
.product-specs-box {
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 0 12px 12px 12px;
}

/* ===== Specs Table ===== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

.specs-table th {
    width: 40%;
    font-weight: 500;
    color: var(--gray-600);
}

/* ===== Similar Products ===== */
.product-card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: border-color 0.2s, transform 0.2s;
}

.product-card:hover {
    border-color: var(--theme-color);
    transform: translateY(-4px);
}

.product-card__thumb {
    display: block;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-card__thumb img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-card__thumb img {
    transform: scale(1.05);
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.product-card__title a {
    color: inherit;
    text-decoration: none;
}

.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.product-card__price .price {
    font-weight: 700;
    color: var(--theme-color);
}

.product-card__price .price-old {
    color: var(--gray-400);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-detail-swiper-thumbs {
    /* height: 12vh; */
}

.product-detail-swiper-thumbs .swiper-slide {
    border: 2px solid transparent;
    border-radius: 6px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;

    .product-thumb-image {
        object-fit: cover !important;
        height: 100%;
    }
}

.product-detail-swiper-thumbs .swiper-slide.thumb-active {
    border-color: var(--theme-color);
}

/* Контейнер стрелок — по центру по вертикали справа/слева */
.product-detail-swiper-main {
    position: relative;
}

.product-gallery__nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.329);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.product-gallery__arrow:hover {
    background: var(--theme-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-gallery__arrow--prev {
    left: 12px;
}

.product-gallery__arrow--next {
    right: 12px;
}

.product-gallery__arrow i {
    font-size: 14px;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: none !important;
}

.product-detail-swiper-main .swiper-slide {
    height: 50vh;
}

.product-detail-wrapper {
    max-width: 100vw;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .product-title {
        font-size: 1.5rem;
    }

    .product-gallery {
        margin-bottom: 32px;
    }
}