#moreText {
    display: none;
}

#readMoreToggle:checked~#dots,
#readMoreToggle:checked~#readMoreBtn {
    display: none;
}

#readMoreToggle:checked~#moreText {
    display: inline;
}

dialog {
    width: 50%;
    max-width: 900px;
    padding: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 0px 40px 12px rgba(0, 0, 0, 0.7);
    background: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    /* font-family: 'Poppins', sans-serif; */
}
/* Dark overlay when open */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
/* Popup Content Layout */
.popup-box {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    height: 100%;
    padding: 10px;
    /* Ensures content doesn't touch edges */
}
/* Left Section: Product Details */
.popup-left {
    background-color: #F6F6F6;
    padding: 20px;
    border-radius: 10px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0px 0px 10px 2px rgba(12, 45, 98, 0.5);
}
/* Ensure Image Fits Properly */
.popup-left img {
    width: 100%;
    max-height: 250px;
    /* Adjusted for better visibility */
    object-fit: contain;
    border-radius: 10px;
}
/* Product Details Text */
.product-name {
    font-size: 22px;
    /* Slightly increased for better readability */
    font-weight: bold;
    margin: 15px 0;
    color: rgb(12, 45, 98);
}
.product-price {
    font-size: 18px;
    color: #FF5722;
    font-weight: bold;
}
.sold-by {
    font-size: 16px;
    margin-top: 8px;
}
.seller-name {
    color: #007BFF;
    font-weight: bold;
}
.product-specs span {
    display: block;
    font-size: 16px;
    margin-top: 6px;
}
/* Right Section: Form */
.popup-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 20px;
    width: 60%;
    border-radius: 12px;
    box-shadow: 0px 0px 10px 2px rgba(12, 45, 98, 0.5);
    /* Ensures the right side uses full available space */
}
/* Ensure Proper Spacing */
.popup-right h3 {
    margin-bottom: 15px;
    font-size: 22px;
}
.popup-right p {
    font-size: 16px;
    margin-bottom: 12px;
}
label {
    font-weight: bold;
    font-size: 16px;
}
/* Input Field */
input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 12px;
    border: 2px solid rgb(12, 45, 98);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.3);
}
/* Contact Message */
.contact-msg {
    font-size: 14px;
    color: #666;
}
/* Buttons */
.submit-btn,
.close-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}
.submit-btn {
    background: #28A745;
    color: white;
}
.submit-btn:hover {
    background: #218838;
}
/* Close Button */
.close-btn {
    background: #D9534F;
    color: white;
}
.close-btn:hover {
    background: #C9302C;
}
dialog {
    display: none;
    /* Hide by default */
}
dialog[open] {
    display: flex;
    /* Show when open */
    flex-direction: column;
    visibility: visible;
    opacity: 1;
}
@media (max-width: 1132px) {
    .popup-box {
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
    }
    .popup-left,
    .popup-right {
        width: 100%;
        padding: 10px;
    }
    .popup-left img {
        max-height: 200px;
    }
    .product-name {
        font-size: 18px;
    }
    .product-specs span {
        font-size: 14px;
    }
    input,
    .submit-btn,
    .close-btn {
        font-size: 14px;
        padding: 10px;
    }
}


.product-videos h2 {
    font-weight: 900;
    color: var(--main-color-two);
    text-transform: uppercase;
    margin-bottom: var(--margin-bottom-10);
    align-self: center;
}

.video-container {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    justify-content: center;
}

.video-box {
    background: #f6f6f6;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0px 0px 10px 2px rgba(12, 45, 98, 0.3);
    width: 314px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
}

.video-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 12px 3px rgba(12, 45, 98, 0.5);
}

.video-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(12, 45, 98, 0.2);
}

.video-box h3 {
    margin: 10px;
    font-size: 18px;
    color: rgb(12, 45, 98);
    font-weight: bold;
}

.video-box a {
    text-decoration: none;
    color: var(--main-color-two);
    font-size: 18px;
}

.video-box a:hover {
    text-decoration: underline;
}

.video-box button {
    background-color: rgb(242, 190, 0);
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    position: relative;
    font-weight: 700;
    display: inline-block;
    color: var(--main-color);
    color: rgb(85, 85, 85);
    font-size: var(--font-14);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.video-box .btn:hover {
    background-color: rgb(85, 85, 85);
    ;
    color: var(--main-color);
    ;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .video-container {
        flex-direction: column;
        align-items: center;
    }

    .video-box {
        width: 90%;
    }
}

.rating-section {
    background: linear-gradient(135deg, #f6f6f6 0%, #e3e8ff 100%);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0px 6px 18px rgba(12, 45, 98, 0.3);
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
    transition: all 0.3s ease-in-out;
}

.rating-score {
    font-size: 30px;
    font-weight: bold;
    color: rgb(12, 45, 98);
    text-shadow: 2px 2px 5px rgba(12, 45, 98, 0.2);
    margin-bottom: 10px;
}

.stars {
    font-size: 28px;
    color: gold;
    margin: 10px 0;
    display: flex;
    justify-content: start;
    gap: 6px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.rating-breakdown, .reviews {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.bar {
    display: inline-block;
    background: linear-gradient(90deg, rgb(12, 45, 98) 0%, rgb(70, 130, 180) 100%);
    height: 16px;
    margin: 0 12px;
    border-radius: 8px;
    transition: width 0.4s ease-in-out;
}

.review {
    padding: 20px;
    border-bottom: 1px solid rgba(12, 45, 98, 0.15);
    text-align: left;
    background: white;
    border-radius: 12px;
    box-shadow: 0px 3px 10px rgba(12, 45, 98, 0.2);
    margin-bottom: 15px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.review:hover {
    transform: scale(1.03);
    box-shadow: 0px 5px 12px rgba(12, 45, 98, 0.3);
}

.review strong {
    font-size: 22px;
    color: rgb(12, 45, 98);
}

.view-more {
    text-decoration: none;
    color: white;
    font-weight: bold;
    display: inline-block;
    margin-top: 25px;
    padding: 14px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgb(12, 45, 98) 0%, rgb(70, 130, 180) 100%);
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(12, 45, 98, 0.3);
}

.view-more:hover {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(12, 45, 98) 100%);
    transform: translateY(-4px);
    box-shadow: 0px 6px 14px rgba(12, 45, 98, 0.4);
}

