body {
    background-color: rgb(249 250 251);
}
.productDetailsPage {
    padding: 20px;
}
.path {
    margin: 30px;
    color: rgba(235, 27, 27);
}
.path a {
    text-decoration: none;
    color: rgba(235, 27, 27);
    width: fit-content;
}
.product-box,
.product-description,
.product-overView {
    background-color: white;
    width: 100%;
    height: fit-content;
    padding: 20px 0;
    border-radius: 10px;
    margin: 20px 0;
    font-family: var(--main-text);
}
.product-overView {
    padding: 10px !important;
    width: calc(100% - 20px);
}
.product-overView h1 {
    margin-top: 0;
}
.product-description > * {
    margin: 20px;
}
.product-description p,
.product-description li {
    line-height: 1.6;
}
.product-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.product-images {
    width: 40%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.product-img {
    width: 100%;
    display: flex;
    justify-content: center;
}
.product-img img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
}
.other-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 80px; /* fixed width so it doesn't collapse */
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) #e0e0e0;
    padding-right: 10px;
}
.other-images img {
    width: 100%;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 6px;
    transition: border 0.3s;
}
.selected-image {
    border: 1px solid #9747ff;
    border-radius: 10px;
}
.product-price-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sale-price {
    color: red;
    font-weight: bold;
    font-size: 1.1rem;
}

.original-price {
    color: #888;
    font-size: 0.95rem;
}

.strikethrough {
    text-decoration: line-through;
}

.sale-badge-box {
    background-color: red;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-detail {
    width: 40%;
}
.product-detail-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    font-family: var(--main-text);
    font-weight: 600;
}
.quantity,
.quantity-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price {
    color: #2a2670;
}
.quantity-btns button {
        color: black;

    background: none;
    border: 1.5px solid #2a2670;
    font-size: 20px;
    font-weight: 800;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.order-btns {
     -webkit-appearance: none;
    appearance: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}
.order-btns button {
    color:black;
    border: none;
    border-radius: 10px;
    width: 20%;
    min-width: 120px;
    height: 40px;
    font-family: "Poppins";
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.add-cart {
    background-color: #9747ff33;
}
.buy-now {
    color:white !important;
    background-color: red;
}
.order-btns button:hover {
    background-color: var(--main-color);
    color: white;
}
.quantity-input {
    width: 17px;
    border: none;
    font-size: 15px;
}
.toggle-btn {
    display: none;
}
.gameTypes {
    color: red;
    font-weight: 600;
}
@media (max-width: 950px) {
    .product-images {
        flex-direction: column-reverse;
    }
    .other-images {
        flex-direction: row;
        height: auto;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        scroll-snap-type: x mandatory;
        padding: 10px 0;
    }

    .other-images img {
        width: 20%;
        min-width: 60px;
        max-height: 100px;
        scroll-snap-align: start;
    }
}
@media (max-width: 768px) {
    .small-description {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        transition: all 0.3s ease;
    }

    .small-description.expanded {
        -webkit-line-clamp: unset;
        max-height: none;
    }
    .product-overView h1 {
        font-size: 18px;
    }
    .product-overView p {
        font-size: 13px;
    }
    .toggle-btn {
        display: block;
        background: none;
        border: none;
        color: #9747ff;
        font-weight: 600;
        font-size: 14px;
        cursor: pointer;
        margin-left: 20px;
        margin-bottom: 10px;
    }
    .product-box {
        flex-direction: column;
    }
    .product-images,
    .other-images {
        width: 100%;
    }
    .product-images img {
        max-height: 400px;
    }
    .other-images img {
        max-height: 200px;
    }
    .product-detail {
        width: 90%;
    }
    .product-description {
        max-height: 500px;
        overflow-y: auto;
        padding-right: 10px;
    }
}
@media (max-width: 430px) {
    .path {
        font-size: 14px;
    }
}
