#moreText {
    display: none;
}

#readMoreToggle:checked~#dots,
#readMoreToggle:checked~#readMoreBtn {
    display: none;
}

#readMoreToggle:checked~#moreText {
    display: inline;
}


.main-data {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
    background: #f6f6f6;
    width: 50%;
    font-size: 18px;
}




.main-data-table-data {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
}

.buy-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-top: var(--margin-top-20);
}

.buy-button:hover {
    background-color: rgb(85, 85, 85);
    ;
    color: var(--main-color);
    ;
}

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;
    }
}

.services-container {
    text-align: left;
    max-width: 65%;
    width: 100%;
    margin: 30px auto;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.services-container h4 {
    font-size: 22px;
    font-weight: bold;
    border-bottom: 3px solid #333;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.services-container p {
    font-size: 18px;
    color: #444;
    margin-bottom: 10px;
}

.service-list {
    list-style-type: disc;
    padding-left: 30px;
    font-size: 18px;
}

.service-list li {
    margin-bottom: 8px;
}

.contact-button {
    background-color: rgb(242, 190, 0);
    color: rgb(85, 85, 85);
    padding: 4px 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
}

.contact-button:hover {
    color: rgb(242, 190, 0);
    font-weight: bold;
    background-color: rgb(85, 85, 85);
}

.service-list {
    list-style: none;
    padding-left: 0;
}

.service-list li {
    font-size: 16px;
    margin-bottom: 5px;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: "•";
    color: black;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 600px) {
    .services-container {
        width: 90%;
        padding: 15px;
    }

    .service-list li {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

.company-factsheet {
    text-align: left;
    max-width: 65%;
    width: 100%;
    margin: 30px auto;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 80px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.company-factsheet h3 {
    border-bottom: 3px solid #333;
}

.company-factsheet h4 {
    border: none;
    margin-top: 30px;
    text-align: center;
}

.company-factsheet table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.inner-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}