/* Filter Transition */
.filter-submenu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 1000px; /* Arbitrary large height for transition */
    opacity: 1;
    overflow: hidden;
}
.filter-submenu.collapsed {
    max-height: 0;
    opacity: 0;
}
.rotate-icon {
    transition: transform 0.3s;
}
.rotate-icon.rotated {
    transform: rotate(-90deg);
}

/* Input Number Hide Arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* Product Details: Custom Styles for Swiper and Tabs */
.swiper {
    width: 100%;
    height: 100%;
}
.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    border-radius: 0.5rem;
    overflow: hidden;
}
/* Product Details: Main Image Slider - Renamed for Specificity */
.productMainSwiper {
    height: 400px; /* Default height */
    width: 100%;
    margin-bottom: 10px;
    background-color: transparent;
}
/* Product Details: Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease-in-out;
}
.lightbox.active {
    display: flex;
}
.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    user-select: none;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10001;
}
.lightbox-close:hover {
    color: #ccc;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: 0.2s;
    opacity: 0.6;
    z-index: 10000;
    outline: none;
}
.lightbox-nav:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.lightbox-nav.prev { left: 10px; }
.lightbox-nav.next { right: 10px; }
/* Product Details: Thumbnails Slider - Renamed for Specificity */
.productThumbsSwiper {
    height: 100px;
    box-sizing: border-box;
    padding: 10px 0;
    background-color: transparent;
}
.productThumbsSwiper .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.productThumbsSwiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #5C795E;
}
/* Product Details: Tab Active State */
.tab-btn.active {
    color: #5C795E;
    border-bottom: 3px solid #5C795E;
    font-weight: 600;
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Hide number input arrows */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
@media (max-width: 640px) {
    .productMainSwiper {
        height: 300px;
    }
}