/* Text column: full width (no float squeeze) */
.product-detail-row > .col-lg-4,
.product-detail-row > .col-md-12 {
    min-width: 0;
}

.product-detail-row .title-boat.float-start,
.product-detail-row .title-boat.float-end {
    float: none !important;
    width: 100%;
    max-width: 100%;
}

.product-detail-row h1.title-boat {
    margin: 0 0 0.5rem;
}

.product-detail-row h4.title-boat.float-end {
    margin: 0 0 1rem;
}

.product-detail-row .product-detail-tabs {
    width: 100%;
    clear: both;
}

.product-detail-row .product-detail-tabs .nav-boat {
    flex-wrap: wrap;
    width: 100%;
}

.product-detail-row .col-12 {
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Product detail gallery — visible carousel arrows on light photos */
.product-detail-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    min-width: 0;
    justify-self: center;
}

/* Fixed height for all slides (thumbs 400×300) — no jump on switch */
.product-detail-carousel .carousel-inner {
    height: 300px;
    background-color: #fafafa;
}

.product-detail-carousel .carousel-item {
    height: 300px;
    width: 100%;
}

.product-detail-carousel .carousel-item img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
}

.product-detail-carousel .carousel-control-prev,
.product-detail-carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 44px;
    height: 44px;
    opacity: 1;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.product-detail-carousel .carousel-control-prev {
    left: 12px;
}

.product-detail-carousel .carousel-control-next {
    right: 12px;
}

.product-detail-carousel .carousel-control-prev-icon,
.product-detail-carousel .carousel-control-next-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.product-detail-carousel .carousel-control-prev:hover,
.product-detail-carousel .carousel-control-prev:focus,
.product-detail-carousel .carousel-control-next:hover,
.product-detail-carousel .carousel-control-next:focus {
    opacity: 1;
    background: rgba(240, 122, 36, 0.9);
}

/* Single tab panel: show even if loadBoatDetails failed (missing sibling tabs) */
.product-detail-tabs > .boat-dops:only-of-type {
    display: block;
}

/* Tab content (characteristics, equipment) + full-row description */
.product-detail-tabs .boatContent,
.product-detail-description .boatContent {
    width: 100%;
    max-width: 100%;
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: justify;
    max-height: unset;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: block;
    position: relative;
}

.product-detail-description {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
}

.product-detail-tabs .boatContent p,
.product-detail-description .boatContent p {
    text-align: justify;
}

.product-detail-tabs .boatContent table,
.product-detail-description .boatContent table {
    width: 100%;
    margin: 0 0 1rem;
    border-collapse: collapse;
}

.product-detail-tabs .boatContent table th,
.product-detail-tabs .boatContent table td,
.product-detail-description .boatContent table th,
.product-detail-description .boatContent table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    vertical-align: top;
    text-align: left;
}

.product-detail-tabs .boatContent table th,
.product-detail-description .boatContent table th {
    background-color: #f5f5f5;
    font-weight: 600;
    width: 40%;
}

.product-detail-tabs .boatContent table tr:nth-child(even) td,
.product-detail-description .boatContent table tr:nth-child(even) td {
    background-color: #fafafa;
}

.product-detail-tabs .boatContent ul,
.product-detail-tabs .boatContent ol,
.product-detail-description .boatContent ul,
.product-detail-description .boatContent ol {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.product-detail-tabs .boatContent img,
.product-detail-description .boatContent img {
    max-width: 100%;
    height: auto;
}


.product-detail-tabs {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .mb-size {
        background-color: var(--set-gray-kf);
    }
}