/* --- General & Responsive Layout --- */
.product-details .row {
    align-items: flex-start;
}

@media (max-width: 991px) {
    .product-details .col-lg-6 {
        width: 100%;
    }
    .product-info-wrapper {
        padding-top: 2rem;
    }
}

/* --- Image Gallery & Zoom --- */
.product-image-gallery {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.img-zoom-container {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    max-width: 480px;
    cursor: zoom-in;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

#product-main-image {
    width: 100%;
    display: block;
}

.img-zoom-result {
    border: 1px solid #d4d4d4;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 105%;
    background-repeat: no-repeat;
    display: none;
    z-index: 100;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

@media (max-width: 991px) {
    .img-zoom-result {
        display: none !important;
    }
    .img-zoom-container {
        cursor: default;
    }
}

/* --- Thumbnail Slider --- */
.gallery-thumbnails {
    width: 100%;
    max-width: 480px;
    padding: 0 35px;
    box-sizing: border-box;
}

.gallery-thumbnails .swiper-slide {
    cursor: pointer;
    border: 2px solid #eee;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    padding: 2px;
    overflow: hidden;
}

.gallery-thumbnails .swiper-slide img {
    border-radius: 3px;
    display: block;
    width: 100%;
}

.gallery-thumbnails .swiper-slide.active-thumbnail {
    border-color: #007bff;
}

.swiper-button-next, .swiper-button-prev {
    color: #007bff;
    --swiper-navigation-size: 24px;
}

/* --- Product Details Section --- */
.product-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-brand {
    font-size: 1rem;
    color: #6c757d;
}

/* --- Color & Size Badges --- */
.color-circle {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #ddd;
    margin-right: 5px;
    vertical-align: middle;
}

.product-sizes .badge {
    font-size: 0.9rem;
    padding: 0.5em 0.75em;
}

/* --- Offcanvas & Stepper (Copied from original for completeness) --- */
.lens-selection-offcanvas {
    --bs-offcanvas-width: 450px;
}

@media (max-width: 576px) {
    .lens-selection-offcanvas {
        --bs-offcanvas-width: 95vw;
    }
    #prescription-step .col-sm-4 {
        margin-bottom: 0.5rem;
    }
}
.lens-stepper {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #f8f9fa;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}
.step-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #6c757d;
    margin-bottom: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}
.step-item.active {
    color: var(--bs-primary);
}
.step-item.active span {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}
.step-item.completed span {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    color: #fff;
}
.step-item.completed::after {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    margin-top: 2px;
    font-size: 14px;
    color: white;
}
.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #dee2e6;
    margin: 0 10px;
    transform: translateY(-8px);
}
.lens-step {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.lens-step.active-step {
    display: block;
    opacity: 1;
}
