.product-detail-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    max-width: 1100px;
    margin: auto;
    content: "";
    clear: both;
}



.product-details-container {
    flex: 1;
    /* border: 1px solid #ddd; */
    background-color: #0000ff17;
    /* margin-top: 50px; */
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    padding: 20px;
    padding-left: 30px;
    width: 50%;
    /* border-radius: 8px; */
}


@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        text-align: center;
    }


    .product-details-container {
        width: 100%;
    }

    .product-details-container {
        margin-top: 0;
    }




    .product-detail-thumbnail {
        width: 50px;
        height: 50px;
    }

    .details-product-name {
        width: 70%;
        font-size: 18px;
    }

    .details-product-brand,
    .details-product-price {
        font-size: 16px;
    }

    .details-product-quantity-container {
        flex-direction: row;
        align-items: center;
    }

    .details-product-quantity-container span {
        font-size: 16px;
    }

    .details-product-button-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .buy-now-button {
        margin-top: -50px;
        margin-right: -50px;
        width: 100%;
    }

    .details-add-to-cart-product {
        width: 100%;
        margin-top: 50px;
        margin-left: -110px;
        font-size: 16px;
    }

    .details-add-to-cart-product:hover {
        background-image: linear-gradient(90.1deg, rgba(84, 212, 228, 1) 0.2%, rgba(68, 36, 164, 1) 99.9%);
        border-radius: 5px;
    }
}

.product-detail-thumbnail {
    width: 70px;
    height: 70px;
    cursor: pointer;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: border 0.3s ease-in-out;

    &:hover,
    &.active {
        border: 2px solid #c45500;
    }

    @media (max-width: 768px) {
        width: 50px;
        height: 50px;
    }
}

.product-detail-Thumbnail {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    background-color: rgb(129, 127, 255);

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
    }
}

.details-product-name {
    font-size: 25px;
    font-weight: bold;
    color: #0F1111;
    margin-bottom: 5px;
}

.details-product-brand {
    font-size: 18px;
    margin-top: 7px;
    font-weight: 600;
    color: #007185;
}

.details-product-price {
    font-size: 26px;
    color: #B12704;
    margin-top: 10px;
}

.details-product-quantity-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
    gap: 10px;
}

.details-product-quantity-container button {
    background-color: #FFD814;
    color: #111;
    border: 1px solid #a88734;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;

    &:hover {
        background-color: #F7CA00;
    }
}

.details-product-quantity-container span {
    font-size: 18px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.details-product-button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        /* Space between buttons */
    }
}


.buy-now-button {
    --width: 190px;
    --height: 45px;
    --button-color: linear-gradient(90.1deg, rgba(84, 212, 228, 1) 0.2%, rgba(68, 36, 164, 1) 99.9%);
    width: var(--width);
    height: var(--height);
    background: var(--button-color);
    position: relative;
    text-align: center;
    border-radius: 0.45em;
    font-family: "Arial";
    transition: background 0.3s;
}

.buy-now-button::before {
    position: absolute;
    font-size: 0.9rem;
    background-position: right center;
    color: #fff;
    border-radius: .25em;
}

.buy-now-button::after {
    position: absolute;
    content: '';
    width: 0;
    height: 0;
    background-position: right center;
    border: 10px solid transparent;
    left: calc(50% - 10px);
}

.buy-now-button::after,
.buy-now-button::before {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.buy-now-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-now-button-wrapper,
.buy-now-text,
.buy-now-icon {
    overflow: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    color: #fff;
}

.buy-now-text {
    top: 0;
}

.buy-now-text,
.buy-now-icon {
    transition: top 0.5s;
}

.buy-now-icon {
    color: #fff;
    top: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buy-now-icon svg {
    width: 24px;
    height: 24px;
}

.buy-now-button:hover {
    background: linear-gradient(90.1deg, rgba(84, 212, 228, 1) 0.2%, rgba(68, 36, 164, 1) 99.9%);
}

.buy-now-button:hover .buy-now-text {
    top: -100%;
}

.buy-now-button:hover .buy-now-icon {
    top: 0;
}

.buy-now-button:hover::before,
.buy-now-button:hover::after {
    opacity: 1;
    visibility: visible;
}

/* From Uiverse.io by dldrs */
.details-add-to-cart-product,
.details-add-to-cart-product:hover {
    background-image: linear-gradient(to right, #F09819 0%, #EDDE5D 51%, #F09819 100%);
    border-radius: 5px;
}



.product-page {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 25px auto;
    background-color: #7878eb1f;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.left-panel,
.right-panel {
    padding: 30px;
    flex: 1;
}

.left-panel {
    border-right: 1px solid #ddd;
}

.main-img {
    width: 100%;
    height: 370px;
    object-fit: contain;
    border-radius: 8px;
}

.thumbnail-slider-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 10px 0;
}

.thumbnail-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    min-width: max-content;
}

.thumbnail-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: border 0.2s;
}

.thumbnail-row img.active {
    border: 2px solid #000;
}








.section-label {
    /* width: 75%; */
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

.colors,
.sizes {
     display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: max-content;
}

.color-swatch,
.size-box {
    border: 1px solid #979797;
    background-color: #ffffffb0;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    min-width: 50px;
}

.color-swatch.selected,
.size-box.selected {
    border-color: black;
    background-color: #000;
    color: white;
}


.scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  width: 100%;
  padding-bottom: 10px;
}





/* Responsive Styles */
@media (max-width: 768px) {
    .product-page {
        flex-direction: column;
        margin: 0;
        border-radius: 0px;
    }

    .left-panel {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 20px;
    }

    .right-panel {
        padding: 20px;
    }

    .thumbnail-row {
        justify-content: center;
    }




    .color-swatch,
    .size-box {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {




    .color-swatch,
    .size-box {
        min-width: 40px;
        font-size: 0.85rem;
        padding: 6px 10px;
    }


}