.product-container {
    padding-top: 0.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

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

.breadcrumbs a:not([style*="display: none"])::after,
.breadcrumbs a:not([style*="display:none"])::after {
    content: " / ";
    color: var(--text-muted);
    margin: 0 0.25rem;
    text-decoration: none;
    display: inline-block;
}

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

.product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

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

.main-image {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    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(212, 175, 55, 0) 0%, rgba(212, 175, 55, 0.08) 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.08);
}


@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(212, 175, 55, 0.5),
        0 0 40px rgba(212, 175, 55, 0.3);
}

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

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

.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    gap: 0.75rem;
    padding: 0;
    max-width: 600px;
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--bg-card);
    opacity: 0.7;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    padding: 0;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--gold, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.thumb.active {
    border-width: 3px;
    border-color: var(--gold, #D4AF37);
}

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


.product-details {
    display: block;
    
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
}

.category-tag {
    text-transform: uppercase;
    color: var(--gold, #D4AF37);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
    display: block;
}



.product-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
    padding-bottom: 0;
    min-height: auto !important;
    height: auto !important;
}

.price-block {
    margin-top: 0;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.current-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gold, #D4AF37);
}

.price-block:has(.old-price) .current-price {
    color: var(--gold, #D4AF37);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.15);
}

@keyframes priceGlow {

    0%,
    100% {
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.25),
            0 0 30px rgba(212, 175, 55, 0.12);
    }

    50% {
        text-shadow: 0 0 25px rgba(212, 175, 55, 0.4),
            0 0 50px rgba(212, 175, 55, 0.2);
    }
}

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


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

.options-block {
    margin-bottom: 2rem;
}

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

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

.size-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.size-btn {
    flex: 1;
    min-width: 120px;
    height: 52px;
    padding: 0 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.size-btn:hover {
    border-color: var(--gold, #D4AF37);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.size-btn.active {
    background: var(--gold, #D4AF37);
    color: #000;
    border-color: var(--gold, #D4AF37);
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}



.actions-block {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    align-items: stretch;
    height: 56px;
}

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

.quantity-selector button {
    width: 48px;
    height: 100%;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: background 0.2s;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold, #D4AF37);
}

.quantity-selector input {
    width: 60px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
    -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(--gradient-primary);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-sm);
    font-size: 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 16px rgba(212, 175, 55, 0.25);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.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.3), transparent);
    transition: left 0.5s;
}

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

.btn-add-cart-lg:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4),
        0 0 40px rgba(212, 175, 55, 0.2);
}

.btn-add-cart-lg:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}


.box-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.box-option {
    position: relative;
    cursor: pointer;
}

.box-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.box-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    min-height: 70px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.box-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 0.25rem;
}

.box-price {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold, #D4AF37);
}

.box-option:hover .box-card {
    border-color: var(--gold, #D4AF37);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.box-option input[type="radio"]:checked~.box-card {
    border-color: var(--gold, #D4AF37);
    border-width: 3px;
    background: rgba(212, 175, 55, 0.08);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

.box-option input[type="radio"]:checked~.box-card .box-name {
    color: var(--gold, #D4AF37);
}

.box-option input[type="radio"]:checked~.box-card .box-price {
    font-weight: 800;
}

.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.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-main);
    line-height: 1.5;
}

.features-list i {
    color: var(--gold, #D4AF37);
    margin-top: 0.35rem;
    font-size: 0.9rem;
}


.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(212, 175, 55, 0.25), 0 0 15px rgba(212, 175, 55, 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.has-secondary: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;
    font-family: var(--font-main);
    
}

.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) {

    
    
    html,
    body {
        overflow-x: hidden;
        
    }

    
    .product-container *,
    .product-description *,
    .description-block * {
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        hyphens: auto;
    }

    
    .product-container img,
    .product-container video,
    .product-container iframe,
    .product-container table,
    .product-container pre,
    .product-container code {
        max-width: 100% !important;
        height: auto !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    
    .product-container {
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100vw;
        padding-top: 0;
    }

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

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

    .main-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1;
        border-radius: var(--radius-md);
        box-shadow: none;
        border: none;
        background: transparent;
        overflow: hidden;
    }

    .main-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: contain;
        border-radius: var(--radius-md);
    }

    
    .gallery-arrow {
        display: flex !important;
        opacity: 1;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }

    .gallery-arrow-right {
        right: 10px;
    }

    .gallery-arrow-left {
        left: 10px;
    }

    .thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.5rem;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        border-radius: var(--radius-sm);
    }

    
    .product-title {
        font-size: clamp(1.5rem, 5vw, 1.8rem);
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .price-block {
        margin-bottom: 1.5rem;
        gap: 0.75rem;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .current-price {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }

    .old-price {
        font-size: 1.1rem;
    }

    
    .box-selector {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .box-card {
        padding: 0.75rem 0.5rem;
        min-height: auto;
        height: 100%;
        justify-content: center;
    }

    .box-name {
        font-size: 0.8rem;
        line-height: 1.3;
        white-space: normal;
    }

    
    .size-selector {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .size-btn {
        flex: 1 1 calc(33% - 0.75rem);
        min-width: 80px;
        height: 44px;
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    
    .actions-block {
        flex-direction: row;
        align-items: center;
        height: auto;
        gap: 0.75rem;

        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;

        z-index: 1000;
        background: var(--bg-card);
        padding: 0.75rem 1rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        margin: 0;

        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
        border-top: 1px solid var(--border);
        border-radius: 12px 12px 0 0;

        backdrop-filter: blur(10px);
    }

    .quantity-selector {
        width: auto;
        min-width: 140px;
        height: 48px;
        margin-bottom: 0;
        flex-shrink: 0;
        gap: 0;
    }

    .quantity-selector button {
        width: 45px;
        height: 100%;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .quantity-selector input {
        width: 50px;
        min-width: 50px;
        text-align: center;
        font-size: 1.1rem;
        flex-shrink: 0;
        opacity: 1;
        color: var(--text-main);
        padding: 0;
    }

    .btn-add-cart-lg {
        height: 48px;
        font-size: 0.95rem;
        width: 100%;
        flex-grow: 1;
        padding: 0 0.5rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }


    .carousel-container {
        padding: 0 1rem;
        padding-right: 0;
        overflow-x: auto;
        overflow-y: hidden;

        
        touch-action: pan-x;
        
        -webkit-overflow-scrolling: touch;

        
        width: 100%;
        
        height: calc(45vw + 160px);
        min-height: 320px;

        scrollbar-width: none;
        display: flex;
        align-items: flex-start;
    }

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

    .carousel-track {
        scroll-snap-type: x mandatory;
        padding-right: 1rem;
        display: flex;
        gap: 1rem;
        width: max-content;
        height: 100%;
    }

    .carousel-track .product-card {
        scroll-snap-align: start;
        flex: 0 0 auto;
        height: auto;
    }

    .carousel-arrow {
        display: none;
    }

    
    .product-container {
        padding-bottom: 90px !important;
    }

    .related-products {
        padding-bottom: 0;
        margin-bottom: 0;
        overflow: hidden;
        
    }

    .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;
    }

    
    .product-description,
    .description-block {
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .product-description img,
    .product-description video,
    .product-description iframe {
        max-width: 100% !important;
        height: auto !important;
    }

    
    .related-products .product-image img {
        object-position: top center !important;
    }
}

@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;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.lightbox-image-wrapper {
    position: relative;
    cursor: grab;
    touch-action: none;
    user-select: none;
    border-radius: 0;
    overflow: visible;
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

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

#lightbox-image {
    max-width: 98vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    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);
    }
}


.btn-quick-view {
    display: none !important;
}


.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: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 150px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transform: rotate(-90deg);
    cursor: pointer;
}

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

.zoom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--gold, #D4AF37);
}

.zoom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.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;
    }
}