.product_details {
    --tw-bg-opacity: 1;
    background: #fff;
    /*background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));*/
    padding: 2em;
}

.product-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 20px;
    background: #fff;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 300px 80px;
    grid-gap: 10px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    scroll-behavior: smooth;
    flex-direction: row;
    justify-content: center;
    overflow-x: scroll;
    overflow-y: unset;
    height: auto;
}

.thumbnails::-webkit-scrollbar {
    height: 6px;
}

.thumbnails::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnails img.active {
    border-color: black;
}

.main-image {
    max-height: 300px;
}

.main-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
}

.category {
    text-transform: uppercase;
    color: #0093c4;
}

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

.material-symbols-outlined {
    color: #111111;
    font-size: 22px;
    cursor: pointer;
}

.about p {
    font-size: 14px;
    margin: 0;
    color: #111111;
    font-weight: 500;
}

.about span {
    font-size: 14px;
    margin: 0;
    color: #68899a;
    font-weight: 500;
}

.details h3 {
    font-size: 0.85rem;
}

.reviews {
    font-size: 0.9rem;
    color: #8F9499;
}

.price {
    margin: 10px 0;
}

.amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.discount {
    font-size: 0.8rem;
    color: #8F9499;
}

.regular-price {
    text-decoration: line-through;
}

.old-price-discount {
    font-weight: 600;
    color: red;
}

.discount-price {
    display: inline-block;
    font-size: 40px;
    font-weight: 700;
}

.offer-info {
    font-size: 14px;
    color: gray;
}

.description ul {
    padding-left: 20px;
    font-size: 0.9rem;
    color: #8F9499;
}

.section-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.sizes,
.fabrics,
.colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.button {
    float: left;
    margin: 0 5px 0 0;
    width: 100px;
    height: 40px;
    position: relative;
}

.button label,
.button input {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.button input[type="radio"] {
    opacity: 0.011;
    z-index: 100;
}

.button input[type="radio"]:checked + label {
    background: #20b8be;
    border-radius: 4px;
    border: 1px solid rgb(0 0 0 / var(--tw-border-opacity, 1));
}

.button label {
    cursor: pointer;
    z-index: 90;
    line-height: 1.8em;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: center;
}

.button input[type="radio"]:hover + label {
    --tw-border-opacity: 1;
    border: 1px solid rgb(0 0 0 / var(--tw-border-opacity, 1));
}

.quantity-selector div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-selector div button,
.quantity-selector div input {
    padding: 0.5rem;
    border-width: 1px;
    border-style: solid;
    border-color: #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
}

.quantity-selector div button:hover {
    --tw-border-opacity: 1;
    border-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
}

.quantity-selector div input {
    text-align: center;
    width: 5rem;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cta-btn {
    background: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.add-to-cart {
    background: green;
}

.add-to-cart:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}

.add-to-wishlist {
    --tw-border-opacity: 1;
    border: 1px solid rgb(0 0 0 / var(--tw-border-opacity, 1));
    background-color: transparent;
    color: black;
}

.add-to-wishlist:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.clear-selection {
}

.clear-selection:hover,
.copy-product-link-btn:hover,
.share-product-link-btn:hover {
    opacity: 0.6;
}

.product-quote {
    background: #20b8be;
}

.product-quote:hover {
    opacity: 0.8;
}

/* ✅ Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    /*align-items: center;*/
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    margin-top: 60px;
    object-fit: scale-down;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Reviews */
.customer-reviews-sec {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 2em;
}

.reviews-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.reviews-header h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.customer-reviews {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customer-review {
    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    padding: 1.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    border-radius: 0.5rem;
}

.customer-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-stars {
    --tw-text-opacity: 1;
    color: rgb(250 204 21 / var(--tw-text-opacity, 1));
    display: flex;
    margin-bottom: 0.25rem;
}

.add-review {
    padding: 0.5em;
    border-radius: 5em;
    border: 1px solid rgb(0 0 0 / var(--tw-border-opacity, 1));
    cursor: pointer;
}

.add-review:hover {
    background: rgb(0 0 0 / var(--tw-border-opacity, 1));
    color: white;
}

/* ✅ Responsive */
@media (max-width: 768px) {
    .product_details {
        padding: 20px 0;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .gallery {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 200px 80px;
        grid-gap: 10px;
    }

    .main-image {
        max-height: 200px;
    }

    .cta-btn {
        padding: 5px 5px;
    }
}