@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Customowe definicje kolorów "Wellness" nakładane częściowo z Tailwind */
.color-primary {
    color: #047857;
    /* Typowy szmaragdowy/zieleń */
}

.bg-primary {
    background-color: #047857;
}

.bg-primary-hover:hover {
    background-color: #065f46;
}

.border-primary {
    border-color: #047857;
}

/* Subtelny marker aktywnej podstrony w Menu (Dekstop) */
nav a.color-primary.font-bold {
    position: relative;
}

nav .hidden.lg\:flex a.color-primary.font-bold::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #047857;
    border-radius: 4px;
}

/* ==========================================================
   GLOBALNA STOPKA (FOOTER) - RYGORYSTYCZNA STRUKTURA GRID
   ========================================================== */
.global-footer {
    background-color: #ffffff;
    padding-top: 4rem;
    /* pt-16 */
    padding-bottom: 2rem;
    /* pb-8 */
    border-top: 1px solid #e5e7eb;
    /* border-gray-200 */
    margin-top: auto;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1280px;
    /* max-w-7xl */
    margin: 0 auto;
    padding: 0 1rem;
    /* px-4 */
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 1.5rem;
    }

    /* sm:px-6 */
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 0 2rem;
    }

    /* lg:px-8 */
}

/* Układ: 1 kolumna mobilnie, 2 na tabletach, 4 na PC */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* gap-12 */
    margin-bottom: 3rem;
    /* mb-12 */
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Kolumna 1: Marka */
.footer-brand h3,
.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #047857;
    /* color-primary */
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    margin-top: 0;
}

.footer-brand p {
    color: #6b7280;
    /* text-gray-500 */
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.625;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    /* space-x-4 */
}

.social-icon {
    height: 2.5rem;
    /* h-10 */
    width: 2.5rem;
    /* w-10 */
    border-radius: 9999px;
    /* zaokrąglone */
    background-color: #f9fafb;
    /* bg-gray-50 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    /* text-gray-400 */
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: #047857;
    /* bg-primary */
    color: #ffffff;
}

/* Pozostałe kolumny (Linki) */
.footer-col-title {
    color: #111827;
    /* text-gray-900 */
    font-weight: 700;
    margin-bottom: 1.25rem;
    /* mb-5 */
    text-transform: uppercase;
    font-size: 0.875rem;
    /* text-sm */
    letter-spacing: 0.05em;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* space-y-3 */
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-link {
    color: #6b7280;
    /* text-gray-500 */
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #047857;
    /* color-primary */
}

.footer-link-highlight {
    color: #047857;
    /* color-primary */
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.footer-link-highlight:hover {
    color: #047857;
    text-decoration: underline;
}

/* Kolumna 4: Kontakt (Ikony obok tekstu) */
.footer-contact li {
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: #047857;
    /* color-primary */
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-right: 0.75rem;
    /* mr-3 */
}

/* Dolny pasek Copyright */
.footer-bottom {
    border-top: 1px solid #f3f4f6;
    /* border-gray-100 */
    padding-top: 2rem;
    /* pt-8 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    /* text-xs */
    color: #9ca3af;
    /* text-gray-400 */
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom p {
    margin: 0;
}

.footer-legal-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    /* space-x-6 */
}

@media (min-width: 768px) {
    .footer-legal-links {
        margin-top: 0;
    }
}

.footer-legal-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: #4b5563;
    /* text-gray-600 */
}

body.is-editing a:not(.editor-tool),
body.is-editing button:not(.editor-tool),
body.is-editing .btn:not(.editor-tool) {
    cursor: not-allowed !important;
    opacity: 0.6;
}

body.is-editing .editor-modal button,
body.is-editing .editor-modal a,
body.is-editing .editor-tool {
    cursor: pointer !important;
    opacity: 1 !important;
}

/* Wzorzec New Price First */
.current-price.promo-active {
    color: #d32f2f;
    font-weight: bold;
}

.old-price {
    color: #888;
    text-decoration: line-through;
    font-size: 0.85em;
    margin-left: 8px;
}

/* Optymalizacja Banner Hero */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.25);
}

.banner-title {
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6), 0px 1px 3px rgba(0, 0, 0, 0.8);
}

.banner-desc {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Reset marginesów i modelu list */
.editable-element {
    text-align: left !important;
}

.editable-element ol,
.editable-element ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style-position: inside !important;
}

.editable-element b,
.editable-element strong {
    margin-left: 0 !important;
    padding-left: 0 !important;
    display: inline !important;
}

/* Flexbox Dynamic News Layout (Master-Detail) */
.single-news {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.single-news.img-left {
    flex-direction: row;
}

.single-news.img-right {
    flex-direction: row-reverse;
}

.single-news.img-top {
    flex-direction: column;
    align-items: stretch;
}

.single-news.img-top .news-image-wrapper {
    width: 100%;
}

.single-news img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    /* Slightly smoother */
}

/* Zabezpieczenie mobilne */
@media (max-width: 768px) {
    .single-news {
        flex-direction: column !important;
    }

    .single-news .news-image-wrapper {
        width: 100%;
    }
}

/* Empty State Hermetyzacja */
.empty-news-state {
    width: 100%;
    margin: 60px auto;
    text-align: center !important;
    padding: 20px;
    color: #666;
    /* Subtelny, wygaszony kolor dla pustego stanu */
    font-size: 1.1em;
}

/* Izolacja selektora dla linków w blokach tekstowych */
.editable-element p a,
.editable-element li a,
.editable-element a {
    color: #004b3a !important;
    /* Ciemna, firmowa zieleń Oriflame */
    text-decoration: underline !important;
    font-weight: 500;
    text-underline-offset: 4px;
    /* Odsunięcie linii od tekstu dla lepszej czytelności */
    text-decoration-thickness: 1px;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.editable-element p a:hover,
.editable-element li a:hover,
.editable-element a:hover {
    color: #007b5e !important;
    /* Jaśniejsza zieleń */
    text-decoration: none !important;
    transition: color 0.2s ease-in-out;
}