.product-container {
    padding-top: 0.5rem;
}

.breadcrumbs {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeIn 0.8s ease backwards;
}

.breadcrumbs a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}


.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.main-image {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    overflow: hidden;
    width: 100%;
    max-width: 100%;

    animation: scaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}


.main-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0) 0%, rgba(99, 102, 241, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.main-image:hover::after {
    opacity: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-image:hover img {
    transform: scale(1.15) rotate(2deg);
}


@media (hover: none) {
    .main-image img {
        transition: none;
    }

    .main-image:hover img {
        transform: none;
    }

    .main-image::after {
        display: none;
    }
}


.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10;
    
}


@media (max-width: 768px) {
    .gallery-arrow {
        opacity: 0.8;
        background: rgba(0, 0, 0, 0.7);
        width: 38px;
        height: 38px;
    }
}

.main-image:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.15);

    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5),
        0 0 40px rgba(99, 102, 241, 0.3);
}

.gallery-arrow-left {
    left: 1rem;
}

.gallery-arrow-right {
    right: 1rem;
}

.thumbnails {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    padding: 0.5rem 0;
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.thumb {
    width: 70px;
    height: 70px;
    min-width: 70px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    background: var(--bg-card);
    opacity: 0.6;
    transition: all 0.25s ease;
    overflow: hidden;
    padding: 0;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.thumb.active {
    border-width: 2px;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


.product-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

.category-tag {
    text-transform: uppercase;
    color: #a855f7;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.badge-sale {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    vertical-align: middle;
}


.product-details .badge-sale {
    position: static !important;
    display: inline-block !important;
    margin-right: 0.5rem;
    animation: none !important;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    
    line-height: 1.1;
    
    min-height: unset;
    height: auto;
}

.price-block {
    margin-bottom: 1.5rem;
    
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    color: #a855f7;

    position: relative;
    display: inline-block;
}


.price-block:has(.old-price) .current-price {
    color: #a855f7;

    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3),
        0 0 40px rgba(168, 85, 247, 0.15);
    animation: priceGlow 2s ease-in-out infinite;
}


@keyframes priceGlow {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(168, 85, 247, 0.25),
            0 0 30px rgba(168, 85, 247, 0.12);
    }

    50% {
        text-shadow: 0 0 25px rgba(168, 85, 247, 0.4),
            0 0 50px rgba(168, 85, 247, 0.2);
    }
}

.old-price {
    font-size: 1.25rem;
    text-decoration: line-through;
    color: var(--text-muted);
}


@media (max-width: 768px),
(prefers-reduced-motion: reduce) {
    .price-block:has(.old-price) .current-price {
        animation: none;
        text-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
    }
}

.options-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.size-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.size-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.2);
    animation: pulse 0.3s ease;
}

.size-btn.active {
    background: var(--primary);
    color: var(--bg-card);
    border-color: var(--primary);
    transform: scale(1.15);

    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: rippleEffect 0.6s ease;
}

#version-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#version-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.actions-block {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
}

.quantity-selector button:hover {
    background: var(--bg-body);
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 600;
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-cart-lg {
    flex: 1;
    background: var(--primary);
    color: var(--bg-card);
    font-weight: 700;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}


.btn-add-cart-lg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-add-cart-lg:hover::before {
    left: 100%;
}

.btn-add-cart-lg:hover {
    transform: scale(1.02);

    box-shadow: 0 10px 35px rgba(99, 102, 241, 0.6),
        0 0 50px rgba(99, 102, 241, 0.4);
}


.btn-add-cart-lg:active {
    animation: pulse 0.2s ease,
        shakeSubtle 0.3s ease 0.1s;
}



.description-block h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.description-block p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.features-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.features-list i {
    color: #a855f7;
}


.related-products {
    position: relative;
    margin-top: 4rem;
    width: 100%;
    max-width: 100%;
    animation: fadeIn 1s ease 0.5s backwards;
}

.related-products h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

#related-grid {
    position: relative;
    width: 100%;
    display: block;
}

.carousel-container {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    padding: 0 3.5rem;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    
    transition: none;
    padding-top: 15px;
    margin-top: -15px;
    
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.carousel-track.dragging .product-card,
.carousel-track.dragging .product-image img {
    pointer-events: none;
    transition: none !important;
}


.carousel-track.dragging {
    
    will-change: transform;
}


.carousel-track.dragging>*,
.carousel-track.dragging .product-card,
.carousel-track.dragging .product-card *,
.carousel-track.dragging .product-image,
.carousel-track.dragging .product-image img,
.carousel-track.dragging .badge-sale,
.carousel-track.dragging .product-info,
.carousel-track.dragging .product-price .price {
    transition: none !important;
    animation: none !important;
}


.carousel-arrows {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.carousel-arrow {
    position: relative;
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    transform: none;
    background: var(--bg-card);
    border: 2px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.carousel-arrow:hover {
    background: var(--bg-body);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.15);
    transform: scale(1.15);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25), 0 0 15px rgba(99, 102, 241, 0.15);
}

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-arrow-left,
.carousel-arrow-right {
    position: static;
    transform: none;
}


.related-products .product-card {
    min-width: 220px;
    max-width: 220px;
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    animation: none;
}

.related-products .product-card:hover {
    z-index: 10;
}

.related-products .product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-body);
}


.related-products .product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}


.related-products .product-image img.primary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.4s ease;
    z-index: 2;
}


.related-products .product-image img.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}


.related-products .product-card:hover .product-image img.primary-image {
    opacity: 0;
}

.related-products .product-card:hover .product-image img.secondary-image {
    opacity: 1;
}


@media (hover: none) {

    .related-products .product-image img.primary-image,
    .related-products .product-image img.secondary-image {
        transition: none;
    }

    .related-products .product-card:hover .product-image img.primary-image {
        opacity: 1;
    }

    .related-products .product-card:hover .product-image img.secondary-image {
        opacity: 0;
    }

    .related-products .product-card:hover .product-image img {
        transform: none;
    }
}

.related-products .product-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    flex-grow: 1;
}

.related-products .product-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    min-height: 2.6em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-products .product-price {
    font-size: 0.95rem;
    font-weight: 700;
}

.related-products .price-old {
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.related-products .badge-sale {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}


@media (max-width: 768px) {
    .product-container {
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .product-gallery {
        width: 100%;
        max-width: 100%;
    }

    .main-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1;
    }

    .main-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover;
    }

    .product-title {
        font-size: 2rem;
    }

    .actions-block {
        flex-direction: column;
    }


    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-selector button {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .quantity-selector input {
        flex: 1;
        text-align: center;
    }

    .btn-add-cart-lg {
        padding: 1rem;
    }


    .carousel-container {
        padding: 0 1rem;
        padding-right: 0;
        
        overflow: hidden;
        
    }

    .carousel-container::-webkit-scrollbar {
        display: none;
    }

    .carousel-track {
        
        scroll-snap-align: start;
        padding-right: 1rem;
        
    }

    .carousel-track .product-card {
        scroll-snap-align: start;
    }

    .carousel-arrow {
        display: none;
    }

    .related-products .product-card {
        min-width: 45vw;
        max-width: 45vw;
        width: 45vw;
    }

    
    .related-products {
        position: relative;
    }

    .related-products::after {
        content: '';
        position: absolute;
        top: 60px;
        right: 0;
        width: 50px;
        height: calc(100% - 60px);
        background: linear-gradient(to left, var(--bg-body) 0%, transparent 100%);
        pointer-events: none;
        z-index: 5;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }

    
    .related-products.scrolled::after {
        opacity: 0;
    }

    .related-products .carousel-container {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 0.75rem;
    }

    .related-products .product-card {
        min-width: 45vw;
        max-width: 45vw;
        width: 45vw;
    }
}


.toast-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    min-width: 300px;
    justify-content: center;
}

.toast-notification.show {
    bottom: 2rem;
    animation: slideUp 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification i {
    color: #10b981;

    font-size: 1.2rem;
}


.size-guide-link {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.size-guide-link:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(2px);
}

.size-guide-link i {
    font-size: 0.9rem;
}


.size-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.size-guide-modal.active {
    display: flex;
}

.size-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.size-guide-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    max-width: 600px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid var(--border);
}

.size-guide-content h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-main);
}

.size-guide-content img {
    width: 100%;
    max-height: calc(85vh - 100px);
    object-fit: contain;
    border-radius: var(--radius-md);
}

.size-guide-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-body);
    border: 1px solid var(--border);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s ease;
    z-index: 10;
}

.size-guide-close:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(90deg);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}




.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    animation: fadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 2rem;
    font-weight: 300;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

.lightbox-content {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    
    margin-bottom: 5vh;
}

.lightbox-image-wrapper {
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
    
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.lightbox-image-wrapper.dragging {
    cursor: grabbing;
}

.lightbox-image-wrapper.zoomed {
    cursor: move;
}

#lightbox-image {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform-origin: center center;
    
    will-change: transform;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    z-index: 10;
    max-width: 90vw;
    overflow-x: auto;
    scrollbar-width: none;
}

.lightbox-thumbnails::-webkit-scrollbar {
    display: none;
}

.lightbox-thumb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.lightbox-thumb:hover,
.lightbox-thumb.active {
    opacity: 1;
    border-color: white;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-zoom-hint {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-zoom-hint.hidden {
    opacity: 0;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.zoom-control {
    position: absolute;
    right: 1.5rem;
    top: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
    z-index: 15;
}

.zoom-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.zoom-slider-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    transform: rotate(-90deg);
    cursor: pointer;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}

.zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.zoom-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.zoom-level {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}


@media (max-width: 768px) {
    .lightbox-content {
        
        margin-bottom: 0;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    #lightbox-image {
        max-width: 95vw;
        max-height: 70vh;

    }

    .lightbox-thumbnails {
        bottom: 0.75rem;
        padding: 0.4rem 0.6rem;
        gap: 0.25rem;
    }

    .lightbox-thumb {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .zoom-control {
        right: 0.5rem;
        top: auto;
        bottom: 5rem;
        transform: none;
        flex-direction: row-reverse;

        padding: 0.5rem;
    }

    .zoom-slider-container {
        height: auto;
        width: 80px;
    }

    .zoom-slider {
        transform: none;
        width: 70px;
    }
}