/* font.css – ensures consistent and highly legible typography across the theme */
/* Font is managed by tema paneli via fontBilgileri() → currently Poppins */
/* This file normalises raw-content areas (product descriptions, category descriptions, static page contents) */

/* 1. Global font family normalization */
.raw-content,
.raw-content * {
    font-family: inherit !important;
}

/* 2. Base text elements color, weight, and line height normalization */
.raw-content,
.raw-content p,
.raw-content span,
.raw-content div,
.raw-content li,
.raw-content td,
.raw-content th {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #111111 !important; /* Perfect contrast charcoal-black */
    font-weight: 400 !important; /* Solid regular weight (no thin 300) */
    word-break: break-word;
}

/* 3. Ensure sizes are inherited correctly on nested inline elements to avoid double scaling */
.raw-content span,
.raw-content div,
.raw-content p,
.raw-content li,
.raw-content td,
.raw-content th {
    font-size: inherit !important;
}

/* 4. Restore bold styling on bold elements and headers */
.raw-content strong,
.raw-content strong *,
.raw-content b,
.raw-content b *,
.raw-content th {
    font-weight: 700 !important;
}

/* 5. Headers styling */
.raw-content h1,
.raw-content h1 *,
.raw-content h2,
.raw-content h2 *,
.raw-content h3,
.raw-content h3 *,
.raw-content h4,
.raw-content h4 * {
    color: #111111 !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
}

.raw-content h1 { font-size: 24px !important; }
.raw-content h2 { font-size: 22px !important; }
.raw-content h3 { font-size: 19px !important; }
.raw-content h4 { font-size: 17px !important; }

/* 6. List formatting */
.raw-content ul,
.raw-content ol {
    padding-left: 20px !important;
    margin-bottom: 15px !important;
}

.raw-content li {
    margin-bottom: 6px !important;
}

/* 7. Image presentation */
.raw-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* 8. Keep links prominent and clickable */
.raw-content a,
.raw-content a * {
    color: var(--main-color) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-weight: 600 !important; /* Slightly bolder links for visibility */
}

.raw-content a:hover,
.raw-content a:hover * {
    color: var(--main-color2) !important;
}

/* 9. Attributes table presentation */
.raw-content .table-attributes,
.table-attributes {
    font-size: 14px !important;
    line-height: 1.6 !important;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    margin-top: 16px;
}

.table-attributes td {
    padding: 10px 14px;
    vertical-align: middle;
    font-size: 14px !important;
    color: #333333 !important;
}

.table-attributes td:first-child {
    font-weight: 700 !important;
    color: #111111 !important;
    white-space: nowrap;
    width: 35%;
    background: #fafafa;
}

.table-attributes td:last-child {
    color: #444444 !important;
}

/* 10. Mobile responsiveness overrides */
@media (max-width: 768px) {
    .raw-content,
    .raw-content p,
    .raw-content span,
    .raw-content div,
    .raw-content li,
    .raw-content td,
    .raw-content th {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .raw-content h1, .raw-content h1 * { font-size: 21px !important; }
    .raw-content h2, .raw-content h2 * { font-size: 19px !important; }
    .raw-content h3, .raw-content h3 * { font-size: 17px !important; }
    .raw-content h4, .raw-content h4 * { font-size: 16px !important; }

    .table-attributes td {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}
