/* Lightbox Preview Styles - Enhanced Professional Version */
.lightbox-preview-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(8px);
}

.lightbox-preview-container.active {
    display: flex;
    opacity: 1;
}

.lightbox-preview-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 5px;
}

.lightbox-preview-container.active .lightbox-preview-content {
    transform: scale(1);
}

.lightbox-preview-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.lightbox-preview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.lightbox-preview-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-preview-close i {
    color: #fff;
    font-size: 24px;
}

/* Enhanced Professional Product image hover effect */
.img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.img-wrapper img {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

.lightbox-preview-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 5;
    cursor: zoom-in;
    border-radius: 8px;
}

.lightbox-preview-trigger:hover {
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.lightbox-preview-trigger::after {
    content: "\ea10"; /* Remix icon code for zoom-in */
    font-family: 'remixicon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 28px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: rgba(0, 0, 0, 0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox-preview-trigger:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Enhanced Animation for lightbox */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

@keyframes floatIn {
    0% { transform: translateY(20px) scale(0.95); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.lightbox-preview-container.active {
    animation: fadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.lightbox-preview-container.active .lightbox-preview-content {
    animation: floatIn 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Enhanced Product Options Modal Styles */
#modalProductImage {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: zoom-in;
    border-radius: 8px;
}

#modalProductImage:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

/* Gallery Section Styles */
.gallery-section .img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-section .img-wrapper img {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    height: auto;
}

.gallery-section .img-wrapper:hover img {
    transform: scale(1.05);
}

.gallery-section .border-portfolio {
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.gallery-section .border-portfolio:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.color-image-option img, .size-option img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.color-image-option:hover img, .size-option:hover img {
    transform: scale(1.05);
}

/* Enhanced zoom icon indicator on hover */
.product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.product-image::after {
    content: "\ea10"; /* Remix icon code for zoom-in */
    font-family: 'remixicon';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.product-image:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Hover preview for product images */
.hover-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hover-preview.active {
    opacity: 1;
}

.hover-preview-content {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 8px;
    max-width: 250px;
    max-height: 250px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 20;
}

.hover-preview.active .hover-preview-content {
    transform: translateX(-50%) translateY(calc(-100% - 10px));
}

.hover-preview-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 4px;
}
