/* Prekės aprašymo stiliai - Product Description Styles */

/* Lentelės stiliai */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow: hidden; /* Ensure rounded corners apply */
}

th, td {
    border: 0.07143rem solid #d6d0c4;
    padding: 12px 15px; /* Increased padding */
    text-align: left;
}

th {
    background-color: #f8f6f2;
}

/* Table row hover effect */
tbody tr:hover {
    background-color: #f8f6f2; /* Soft highlight on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}

/* Container styles */
.container-item {
    max-width: 100%;
    padding: 20px 0;
    margin: 0 auto;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 20px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

.item .text {
    flex-basis: 100%;
    font-size: 18px;
    font-weight: 300;
    padding-bottom: 20px;
    line-height: 1.6;
    margin: 0;
    color: #444;
}

.item .text h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    transition: color 0.3s ease;
}

.image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Didelių ekranų korekcijos */
@media (min-width: 768px) {
    .item {
        flex-direction: row;
        align-items: center;
    }
    .item .text, .item .image {
        flex-basis: 48%;
    }
    .item.reverse .text {
        order: 2;
    }
    .item.reverse .image {
        order: 1;
    }
}

/* Antraštės stiliai */
h2 {
    font-family: "Poppins", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #111;
    margin: 20px 0;
}

h3 {
    font-family: "Poppins", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #111;
    margin: 20px 0 15px 0;
}

/* Pastraipos stiliai */
.text p {
    margin-bottom: 15px;
}

p, .text div {
    color: #202020;
    line-height: 1.6;
    font-family: "DM Sans", sans-serif;
}

/* Dokumentacijos stiliai */
.documentation-section {
    margin-top: 30px;
}

.documentation-section a {
    text-decoration: none;
    color: #111;
}

.documentation-section a:hover {
    color: #666;
    transition: color 0.3s ease;
}

.pdf-link {
    display: inline-block;
    margin-bottom: 15px;
}

.website-link {
    font-weight: 500;
}

/* Responsive design improvements */
@media (max-width: 767px) {
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
    }
}
