﻿.admin-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.Desc-section {
    padding-top: 50px;
}

.Desc-left-side {
    padding-top: 10px;
}

    .Desc-left-side .Desc1,
    .Desc-left-side .Desc2,
    .Desc-left-side .Desc3,
    .Desc-left-side .Desc4 {
        margin: auto;
        border-radius: 10px;
        cursor: pointer;
        position: relative;
    }

        .Desc-left-side .Desc1 img,
        .Desc-left-side .Desc2 img,
        .Desc-left-side .Desc3 img,
        .Desc-left-side .Desc4 img {
            width: 100%;
            border-radius: 10px;
        }

    .Desc-left-side .sold-out img {
        filter: grayscale(100%);
    }

    .Desc-left-side .Desc2 {
        margin: 10px 0px;
    }

    .Desc-left-side .Desc4 {
        margin: 10px 0px 0px 0px;
    }

.Desc-mid {
    margin-top: 7px;
    position: relative; /* Ensure positioning context for magnifier */
}

    .Desc-mid img {
        border-radius: 10px;
        width: 100%;
        height: 640px;
        object-fit: cover;
        display: block;
    }

    .Desc-mid .sold-out img {
        filter: grayscale(100%);
    }

.Desc-right-side {
    padding: 50px 45px;
}

.discription-title {
    display: flex;
    gap: 60px;
}

    .discription-title .i-star {
        font-size: 20px;
        padding-top: 11px;
        cursor: pointer;
        transition: color 0.3s;
    }

.i-star.active {
    color: black;
}

.Desc-price {
    font-size: 18px;
    padding: 20px 0px 5px 0px;
}

.size,
.color {
    margin-bottom: 25px;
}

.Desc-color,
.Desc-size {
    font-size: 20px;
}

.size-option {
    display: inline-block;
    padding: 5px 8px;
    margin: 0 5px;
    background-color: rgb(214, 211, 211);
    border-radius: 7px;
    cursor: pointer;
    color: black;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    position: relative;
}

    .size-option:hover {
        background-color: rgb(0, 0, 0);
        color: white;
        transform: scale(1.05);
    }

    .size-option.active {
        background-color: rgb(0, 0, 0);
        color: white;
    }

    .size-option.sold-out {
        cursor: not-allowed;
        opacity: 0.6;
        pointer-events: none;
    }

        .size-option.sold-out::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 1px;
            background-color: red;
            transform: translateY(-50%) rotate(-45deg);
            transform-origin: center;
        }

    .size-option.low-stock {
        position: relative;
    }

        .size-option.low-stock::before {
            content: attr(data-stock) ' Left!';
            position: absolute;
            bottom: -20px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 12px;
            color: red;
            white-space: nowrap;
            background-color: rgba(255, 255, 255, 0.9);
            padding: 1px 3px;
            border-radius: 2px;
            z-index: 10;
        }

.color-option {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 7px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.3s;
    position: relative;
}

    .color-option.sold-out {
        cursor: not-allowed;
        opacity: 0.6;
        pointer-events: none;
    }

        .color-option.sold-out::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: red;
            transform: rotate(-45deg);
            transform-origin: center;
        }

.color1 {
    background-color: black;
}

.color2 {
    background-color: rgb(119, 119, 119);
}

.color3 {
    background-color: rgb(17, 72, 99);
}

.color-option:hover {
    border-color: rgb(0, 0, 0);
    transform: translateY(-5px) scale(1.1);
}

.color-option.active {
    border: 2px solid rgb(0, 0, 0);
    transform: translateY(-5px) scale(1.1);
    transition: transform 0.2s ease-in-out, border-color 0.3s;
}

.Desc-links {
    margin-top: 30px;
}

.Desc-Cart,
.Desc-Buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    font-size: 21px;
    position: relative;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .Desc-Cart.disabled,
    .Desc-Buy.disabled {
        cursor: not-allowed;
        opacity: 0.5;
        pointer-events: none;
    }

.Desc-Buy {
    margin-left: 19px;
}

    .Desc-Cart:hover,
    .Desc-Buy:hover {
        color: black;
        border: none;
    }

    .Desc-Cart::after,
    .Desc-Buy::after {
        position: absolute;
        content: "";
        bottom: 0;
        left: 0;
        width: 0;
        height: 0.5px;
        background-color: black;
        transition: 0.2s ease-in-out;
    }

    .Desc-Cart:hover::after,
    .Desc-Buy:hover::after {
        width: 100%;
    }

    .Desc-Cart:active,
    .Desc-Buy:active {
        border: none;
    }

.Desc-more {
    margin: 100px 0px 50px 0px;
    text-align: center;
}

    .Desc-more a {
        font-size: 27px;
    }

.Also-like {
    color: black;
    text-decoration: none;
    font-size: 21px;
    position: relative;
    padding-bottom: 3px;
}

    .Also-like:hover {
        color: black;
    }

    .Also-like::after {
        position: absolute;
        content: "";
        bottom: 0;
        left: 0;
        width: 0;
        height: 0.5px;
        background-color: black;
        transition: 0.2s ease-in-out;
    }

    .Also-like:hover::after {
        width: 100%;
    }

@media (max-width: 540px) {
    .Desc-mid img {
        height: 480px;
    }
}

@media (width: 360px) {
    .Desc-mid img {
        height: 420px;
    }
}

@media (min-width: 540px) and (max-width: 820px) {
    .Desc-Buy {
        display: block;
        margin-left: 0px;
        margin-top: 15px;
    }

    .Desc-mid img {
        height: 680px;
    }

    .Desc-left-side .Desc2 {
        margin: 15px 0px;
    }

    .Desc-left-side .Desc4 {
        margin: 15px 0px 0px 0px;
    }
}

@media (min-width: 820px) and (max-width: 1024px) {
    .Desc-Buy {
        display: block;
        margin-left: 0px;
        margin-top: 15px;
    }

    .Desc-mid img {
        height: 680px;
    }

    .Desc-left-side .Desc2 {
        margin: 15px 0px;
    }

    .Desc-left-side .Desc4 {
        margin: 15px 0px 0px 0px;
    }
}

@media (width: 1024px) {
    .Desc-Buy {
        display: block;
        margin-left: 0px;
        margin-top: 15px;
    }

    .Desc-mid img {
        height: 850px;
    }

    .Desc-left-side .Desc2 {
        margin: 10px 0px;
    }

    .Desc-left-side .Desc4 {
        margin: 10px 0px 0px 0px;
    }
}

@media (width: 912px) {
    .Desc-Buy {
        display: block;
        margin-left: 0px;
        margin-top: 15px;
    }

    .Desc-mid img {
        height: 770px;
    }

    .Desc-left-side .Desc2 {
        margin: 10px 0px;
    }

    .Desc-left-side .Desc4 {
        margin: 10px 0px 0px 0px;
    }
}

.Desc-mid img {
    border-radius: 10px;
    width: 100%;
    height: 640px;
    transition: opacity 0.2s ease-in-out;
}

.cart-count, .cart-item-count {
    display: none;
}

    .cart-count:not(:empty), .cart-item-count:not(:empty) {
        display: inline-block;
    }

.thumbnail-wrapper {
    transition: opacity 0.3s ease-in-out;
}

    .thumbnail-wrapper.selected {
        border: 2px solid #000;
        border-radius: 10px;
        opacity: 1;
    }

    .thumbnail-wrapper:not(.selected) {
        opacity: 0.7;
    }

        .thumbnail-wrapper:not(.selected):hover {
            opacity: 0.9;
        }

    .thumbnail-wrapper.sold-out {
        opacity: 0.5;
    }

.magnify {
    cursor: zoom-in;
}

.magnifier {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 0.1px solid #000;
    background-color: rgba(255, 255, 255, 0.2);
    background-repeat: no-repeat;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
    pointer-events: none;
}

@media (max-width: 768px) {
    .magnifier {
        display: none !important;
    }

    .magnify {
        cursor: default;
    }
}
