/* Aura Moda — допълнителни стилове върху Tailwind */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; word-spacing: 0.1em; }
h1, h2, h3, .font-headline { word-spacing: normal; }
::selection { background: #e4dfff; color: #141839; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f4f2ff; }
::-webkit-scrollbar-thumb { background: #c8c4d7; border-radius: 999px; border: 2px solid #f4f2ff; }
::-webkit-scrollbar-thumb:hover { background: #8C9EFF; }

.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

details summary::-webkit-details-marker { display: none; }
details[open] summary .accordion-chevron { transform: rotate(180deg); }
details summary .accordion-chevron { transition: transform .2s ease; }

#mobile-nav-drawer { will-change: transform; }
#cart-drawer { will-change: transform; }

.will-change-transform { will-change: transform; }

/* Типография на статични страници, блог и продуктови описания */
.page-content, .prose { color: #474554; line-height: 1.75; }
.page-content h2, .prose h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 1.3; font-weight: 600; color: #141839; margin: 1.8rem 0 .7rem; }
.page-content h3, .prose h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1.02rem; font-weight: 600; color: #141839; margin: 1.3rem 0 .45rem; }
.page-content p, .prose p { margin: .65rem 0; }
.page-content ul, .page-content ol, .prose ul, .prose ol { margin: .65rem 0 .9rem 1.35rem; }
.page-content ul, .prose ul { list-style: disc; }
.page-content ol, .prose ol { list-style: decimal; }
.page-content li, .prose li { margin: .3rem 0; }
.page-content a, .prose a { color: #5341cd; text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover, .prose a:hover { color: #6c5ce7; }
.page-content strong, .prose strong { color: #141839; font-weight: 600; }
.page-content table, .prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .82rem; }
.page-content th, .page-content td, .prose th, .prose td { border: 1px solid #e4e6f4; padding: .5rem .65rem; text-align: left; }
.page-content th, .prose th { background: #f4f2ff; font-weight: 600; color: #141839; }
.page-content blockquote, .prose blockquote { border-left: 3px solid #8C9EFF; background: #f4f2ff; padding: .6rem 1rem; margin: 1rem 0; border-radius: 0 .5rem .5rem 0; }

/* Продуктова галерия */
.js-gallery-thumb { transition: border-color .2s ease, opacity .2s ease; }
.js-gallery-thumb:hover { opacity: .85; }

/* Checkout стъпки */
.checkout-panel { animation: aura-fade .25s ease; }
@keyframes aura-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Toast */
.aura-toast { animation: aura-toast-in .25s ease both; }
@keyframes aura-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Скриване на стрелките при number input в количката */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* Достъпност */
:focus-visible { outline: 2px solid #6c5ce7; outline-offset: 2px; }
a, button, input, select, textarea { outline-color: #6c5ce7; }

/* Line clamp fallback за стари браузъри */
.line-clamp-1, .line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* Скриване при печат на служебни елементи */
@media print {
    header, footer, #cart-drawer, #cart-drawer-backdrop, #mobile-nav-drawer, #mobile-nav-backdrop, #toast-container { display: none !important; }
    body { background: #fff; }
}
