/* Ürün açıklaması — admin editör + vitrin */
.product-description-textarea {
    min-height: 280px;
    width: 100%;
    font-family: ui-monospace, monospace;
    font-size: 13px;
}

.tox-tinymce {
    border-radius: 0.75rem !important;
    border-color: #d1d5db !important;
    position: relative;
    z-index: 1;
    isolation: isolate;
    max-width: 100%;
}

.dark .tox-tinymce {
    border-color: #4b5563 !important;
}

.product-description-content {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #374151;
    word-wrap: break-word;
}

.dark .product-description-content {
    color: #d1d5db;
}

.product-description-content h1,
.product-description-content h2,
.product-description-content h3,
.product-description-content h4,
.product-description-content h5,
.product-description-content h6 {
    font-weight: 700;
    color: #111827;
    margin: 1.25em 0 0.5em;
    line-height: 1.3;
}

.dark .product-description-content h1,
.dark .product-description-content h2,
.dark .product-description-content h3,
.dark .product-description-content h4,
.dark .product-description-content h5,
.dark .product-description-content h6 {
    color: #f9fafb;
}

.product-description-content h1 { font-size: 1.75rem; }
.product-description-content h2 { font-size: 1.5rem; }
.product-description-content h3 { font-size: 1.25rem; }
.product-description-content h4 { font-size: 1.125rem; }

.product-description-content p {
    margin: 0.75em 0;
}

.product-description-content ul,
.product-description-content ol {
    margin: 0.75em 0;
    padding-left: 1.5em;
}

.product-description-content li {
    margin: 0.35em 0;
}

.product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1em 0;
}

/* Editör görsel alt yazıları vitrinde gösterilmez */
.product-description-content figcaption,
.product-description-content .image-caption,
.product-description-content p.mce-caption {
    display: none;
}

/* Tek galeri görseli varken açıklamadaki tekrarlayan görseller gizlenir */
.product-description-content--single-image figure:has(img),
.product-description-content--single-image p:has(> img:only-child) {
    display: none;
    margin: 0;
}

.product-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
}

.product-description-content table td,
.product-description-content table th {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.dark .product-description-content table td,
.dark .product-description-content table th {
    border-color: #4b5563;
}

.product-description-content blockquote {
    border-left: 4px solid #1E5AA8;
    margin: 1em 0;
    padding: 0.75em 1em;
    background: #f0f7ff;
    color: #374151;
    border-radius: 0 0.5rem 0.5rem 0;
}

.product-description-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.8125rem;
}

.product-description-content code {
    background: #f3f4f6;
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.product-description-content hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 1.5em 0;
}

.product-description-content iframe {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    margin: 1em 0;
}

.product-description-content a {
    color: #1E5AA8;
    text-decoration: underline;
}

.product-description-content a:hover {
    color: #164080;
}

/* Vitrin (public site) — her zaman açık tema */
html.light .product-description-content,
html.light .blog-article-body {
    color: #374151 !important;
}

html.light .product-description-content h1,
html.light .product-description-content h2,
html.light .product-description-content h3,
html.light .product-description-content h4,
html.light .product-description-content h5,
html.light .product-description-content h6,
html.light .blog-article-body h1,
html.light .blog-article-body h2,
html.light .blog-article-body h3,
html.light .blog-article-body h4,
html.light .blog-article-body h5,
html.light .blog-article-body h6 {
    color: #111827 !important;
}

html.light .product-description-content p,
html.light .product-description-content li,
html.light .blog-article-body p,
html.light .blog-article-body li {
    color: #374151 !important;
}

html.light .product-description-content blockquote {
    background: #f0f7ff;
    color: #374151 !important;
}
