/* public/js/front/pages/product-view.css
   Extracted verbatim from resources/js/index/pages/product/productview.vue <style>
   (non-scoped in the original). */
.zoom_card_box {
    background-color: #ffffff;
    margin-bottom: 30px;
    border-radius: 15px;
    border: 1px solid #ececec;
    overflow: hidden;
}

.zoom_card_box .iiz {
    display: block;
    cursor: crosshair !important;
}

.zoom_card_box .iiz__img,
.zoom_card_box .iiz__zoom-img {
    cursor: crosshair !important;
}

.swiper-thumbs img {
    max-width: 100%;
}

.gallry_thumbs .swiper-slide img {
    border-radius: 17px;
    transition: all 0.3s ease 0s;
    border: 2px solid #dddddd;
}

.gallry_thumbs .swiper-slide-thumb-active img {
    border: 2px solid #005F85;
}

/* Custom Arrows */
.gallry_thumbs {
    position: relative;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.custom-prev,
.custom-next {
    margin: 0;
    border: 0;
    background: #F2F3F4;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    z-index: 9;
    color: #7E7E7E;
    transition: background-color 0.3s ease;
    position: absolute;
    top: calc(50% - 24px);
    opacity: 0;
}

.custom-prev {
    left: -20px;
}

.custom-next {
    right: -20px;
}

.gallry_thumbs:hover .custom-prev,
.gallry_thumbs:hover .custom-next {
    background-color: #005F85;
    color: #ffffff;
    opacity: 1;
}

.default-thumb {
    max-width: 120px;
    border-radius: 17px;
    border: 2px solid #005F85;
}

.custom-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6); /* semi-transparent white */
    backdrop-filter: blur(2px); /* optional: blur background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.attr-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.attr-detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-swatches {
    display: flex;
    gap: 8px;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #dddddd;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden; /* ensures image stays inside circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch img.swatch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-swatch.active {
    border-color: #000000;
    transform: scale(1.1);
}

/* For AR View In 3D */
.ar-icon {
    margin-right: 10px;
    margin-bottom: -5px;
    height: 20px;
    width: 20px;
}

.btn-view-in-3d {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    background-color: #d7dde0;
    color: #000000 !important;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px #333030;
    transition: all 0.2s ease-out;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    transition: background-color 0.2s ease-out, box-shadow 0.2s ease-out, transform 0.2s ease-out;
}

.btn-view-in-3d:hover {
    background-color: #e1e3e4;
    box-shadow: 0 6px #c8cdcf;
    transform: translateY(-2px);
    color: #333030 !important;
    text-decoration: none;
}

.btn-view-in-3d:active {
    background-color: #d7dde0;
    box-shadow: 0 2px #adb5bd;
    transform: translateY(2px);
    text-decoration: none;
}

.btn-view-in-3d:disabled {
    background-color: #e9ecef;
    color: #6c757d !important;
    box-shadow: 0 4px #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.btn-view-in-3d .spinner-border {
    width: 1rem;
    height: 1rem;
    margin-left: 10px;
    border-width: 2px;
    color: white;
}

.btn-view-in-3d .btnText {
    font-family: inherit;
    }


.alert.alert-danger {
    margin-top: 0.5rem;
}

.modal-dialog.modal-lg {
        max-width: 800px;
}
#spin[src]:not([src=""]) {
    display: block !important;
}
#spin {
        display: none;
        width: 100%;
        height: 500px;
        background-color: #f0f0f0;
        border-radius: 8px;
}

#spin::part(ar-button) {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 8px 15px !important;
    font-weight: bold !important;
    margin: 10px !important;
}

#model-viewer-ar-button {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    padding: 8px 15px !important;
    font-weight: bold !important;
    margin: 10px !important;
}
.fontw {
    font-weight: 500;
}

.related-products-slot {
    min-height: 520px;
}

@media (max-width: 991.98px) {
    .related-products-slot {
        min-height: 380px;
    }
}
.custom-prev, .custom-next {
    display: flex;
    align-items: center;
    justify-content: center;
}
