/* KGN Single Product Layout */
.kgn-single-product-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: inherit;
}

.kgn-product-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.kgn-single-product-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.kgn-product-meta {
    color: #666;
    font-size: 1rem;
}

.kgn-product-category-name {
    font-weight: bold;
    color: #0073aa;
}

.kgn-product-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.kgn-product-main-image {
    flex: 1 1 400px;
    background: #fdfdfd;
    padding: 20px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kgn-product-main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.kgn-no-image-large {
    color: #aaa;
    font-size: 1.2rem;
    padding: 100px 0;
}

.kgn-product-details {
    flex: 1 1 400px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.kgn-product-description {
    /* removed white-space: pre-wrap to prevent layout breaking on HTML elements */
}

.kgn-product-description p {
    margin-bottom: 15px;
}

.kgn-product-description p:first-child {
    margin-top: 0;
}

.kgn-product-description p:last-child {
    margin-bottom: 0;
}

.kgn-product-description strong, 
.kgn-product-description b {
    font-weight: 700;
    color: #222;
}

.kgn-product-description h1,
.kgn-product-description h2,
.kgn-product-description h3,
.kgn-product-description h4,
.kgn-product-description h5,
.kgn-product-description h6 {
    font-weight: 700;
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.kgn-product-description h1:first-child,
.kgn-product-description h2:first-child,
.kgn-product-description h3:first-child,
.kgn-product-description h4:first-child,
.kgn-product-description h5:first-child,
.kgn-product-description h6:first-child {
    margin-top: 0;
}

.kgn-product-description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.kgn-product-description ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 15px;
}

.kgn-product-description li {
    margin-bottom: 8px;
}

.kgn-related-products {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eaeaea;
}

.kgn-related-products h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

/* WhatsApp Button */
.kgn-product-actions {
    margin-top: 30px;
}

.kgn-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.kgn-whatsapp-btn:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive adjustments for single product */
@media (max-width: 768px) {
    .kgn-product-body {
        flex-direction: column;
    }
}
