/* Ellies SEO pages: product pages and blog. Matches the shop brand. */
:root {
    --brand-navy: #0B5D38;
    --brand-pink: #FF7A00;
    --brand-cream: #FFF8EF;
    --ink: #14281d;
    --muted: #5c6b63;
    --line: #e9eee9;
    --card: #ffffff;
    --radius: 20px;
    --page: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ep-body {
    margin: 0;
    background: var(--brand-cream);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-navy); }

.ep-skip {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--brand-navy); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 10px 0;
}
.ep-skip:focus { left: 0; }

/* Header */
.ep-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.ep-header-inner {
    max-width: var(--page); margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
    padding: 0.55rem 16px;
}
.ep-logo { flex-shrink: 0; line-height: 0; }
.ep-logo img { height: 48px; width: auto; }
.ep-search {
    flex: 1 1 auto; min-width: 0; max-width: 560px; margin: 0 auto;
    display: flex; align-items: center;
    background: #f4f6f4; border: 1.5px solid transparent; border-radius: 999px;
    padding: 0 0.35rem 0 1rem; transition: border-color 0.2s, background 0.2s;
}
.ep-search:focus-within { background: #fff; border-color: var(--brand-pink); }
.ep-search input {
    flex: 1; min-width: 0; border: 0; background: transparent;
    font: inherit; font-size: 0.92rem; padding: 0.65rem 0; color: var(--ink); outline: none;
}
.ep-search button, .ep-cart {
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-pink); color: #fff; cursor: pointer; text-decoration: none; flex-shrink: 0;
}
.ep-cart { position: relative; background: var(--brand-navy); }
.ep-cart-count {
    position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--brand-pink); color: #fff; border: 2px solid #fff;
    font-size: 0.66rem; font-weight: 800; line-height: 15px; text-align: center;
}
.ep-cart-count.is-zero { display: none; }
.ep-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px);
    display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.1rem; border-radius: 14px;
    background: #0f1f17; color: #fff; font-size: 0.88rem; font-weight: 600;
    box-shadow: 0 18px 40px -12px rgba(0,0,0,0.4); opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ep-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ep-toast a { color: #ffb35c; font-weight: 800; text-decoration: none; }
.ep-nav { border-top: 1px solid var(--line); }
.ep-nav-inner {
    max-width: var(--page); margin: 0 auto; padding: 0 16px;
    display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none;
}
.ep-nav-inner::-webkit-scrollbar { display: none; }
.ep-nav a {
    white-space: nowrap; text-decoration: none; color: var(--muted);
    font-size: 0.86rem; font-weight: 700; padding: 0.65rem 0.8rem;
    border-bottom: 2px solid transparent;
}
.ep-nav a:hover { color: var(--brand-navy); }
.ep-nav a.is-active { color: var(--brand-navy); border-bottom-color: var(--brand-pink); }

/* Layout */
.ep-main { max-width: var(--page); margin: 0 auto; padding: 1rem 16px 3rem; }
.ep-main-narrow { max-width: 1080px; }

.ep-crumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin: 0.25rem 0 1.25rem; padding: 0; font-size: 0.8rem; color: var(--muted);
}
.ep-crumbs li { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; }
.ep-crumbs li + li::before { content: "›"; color: #a7b3ac; }
.ep-crumbs a { color: var(--muted); text-decoration: none; }
.ep-crumbs a:hover { color: var(--brand-navy); }
.ep-crumbs li[aria-current] { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.ep-eyebrow, .ep-post-cat {
    display: inline-block; align-self: flex-start;
    padding: 0.28rem 0.7rem; border-radius: 999px;
    background: rgba(11, 93, 56, 0.08); color: var(--brand-navy);
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
    text-decoration: none;
}

.ep-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    height: 52px; padding: 0 1.4rem; border-radius: 14px;
    font: inherit; font-weight: 800; font-size: 0.95rem; text-decoration: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ep-btn-primary {
    background: linear-gradient(135deg, #ff7a00, #ff9a33); color: #fff; border: 0;
    box-shadow: 0 10px 24px rgba(255, 122, 0, 0.28);
}
.ep-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255, 122, 0, 0.34); }
.ep-btn-outline { background: #fff; color: var(--brand-pink); border: 2px solid var(--brand-pink); }
.ep-btn-outline:hover { background: #fff6ee; }

.ep-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.15rem, 3vw, 2rem); margin-top: 1.25rem;
}
.ep-card h2, .ep-section-head h2, .ep-more h2 {
    margin: 0 0 1rem; font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
}
.ep-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ep-section-head h2 { margin: 0; }
.ep-section-head a { font-size: 0.86rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Product page */
.ep-product {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem);
    background: var(--card); border: 1px solid var(--line); border-radius: 24px;
    padding: clamp(1rem, 3vw, 2rem);
}
.ep-product-media { position: relative; }
.ep-product-frame {
    position: sticky; top: 120px; aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center; padding: 2rem;
    border-radius: 20px; border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 38%, #fff 0%, #f5f7f5 72%);
}
.ep-product-frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ep-badge {
    position: absolute; top: 14px; left: 14px; padding: 0.35rem 0.8rem; border-radius: 999px;
    background: var(--brand-pink); color: #fff; font-size: 0.78rem; font-weight: 800;
}
.ep-product-info { display: flex; flex-direction: column; min-width: 0; }
.ep-product-info h1 {
    margin: 0.7rem 0 0.75rem; font-size: clamp(1.45rem, 3.2vw, 2.1rem); line-height: 1.2;
    font-weight: 800; letter-spacing: -0.025em; overflow-wrap: anywhere;
}
.ep-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.9rem; }
.ep-price { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 800; color: var(--brand-pink); letter-spacing: -0.03em; }
.ep-was { color: #94a3b8; font-weight: 600; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.ep-chip {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px;
    background: #f1f5f3; color: var(--muted); font-size: 0.76rem; font-weight: 700;
}
.ep-chip-ok { background: #ecf7f0; color: var(--brand-navy); }
.ep-chip-warn { background: #fdf1e7; color: #b45309; }
.ep-dot { width: 7px; height: 7px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 3px rgba(34, 168, 97, 0.18); }
.ep-lead { margin: 0 0 1.25rem; color: #3f4b45; font-size: 0.98rem; }
.ep-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.7rem; }
.ep-wa-link {
    display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.9rem 0 1.25rem;
    font-size: 0.88rem; font-weight: 700; color: #128c4a; text-decoration: none;
}
.ep-wa-link i { font-size: 1.15rem; }
.ep-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.ep-perks li {
    display: flex; align-items: center; gap: 0.85rem; padding: 0.75rem 0.9rem;
    border-radius: 14px; background: #fffaf3; border: 1px solid #f0ebe2;
    font-size: 0.82rem; color: var(--muted);
}
.ep-perks i { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--brand-pink); flex-shrink: 0; }
.ep-perks strong { display: block; color: var(--ink); font-size: 0.88rem; }

/* Prose (descriptions + articles) */
.ep-prose { color: #36433c; font-size: 1rem; line-height: 1.78; }
.ep-prose > :first-child { margin-top: 0; }
.ep-prose p { margin: 0 0 1rem; }
.ep-prose h2 { margin: 2.2rem 0 0.8rem; font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.02em; scroll-margin-top: 120px; }
.ep-prose h3 { margin: 1.5rem 0 0.6rem; font-size: 1.05rem; color: var(--ink); }
.ep-prose a { color: var(--brand-navy); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(11, 93, 56, 0.3); text-underline-offset: 3px; }
.ep-prose a:hover { color: var(--brand-pink); text-decoration-color: currentColor; }
.ep-prose ul, .ep-prose ol { margin: 0 0 1.2rem; padding-left: 0; list-style: none; display: grid; gap: 0.55rem; }
.ep-prose ul li { position: relative; padding-left: 1.75rem; }
.ep-prose ul li::before {
    content: ""; position: absolute; left: 0; top: 0.3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
    background: rgba(11, 93, 56, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5d38' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 0.62rem no-repeat;
}
.ep-prose ol { counter-reset: ep; }
.ep-prose ol li { counter-increment: ep; position: relative; padding-left: 2.2rem; }
.ep-prose ol li::before {
    content: counter(ep); position: absolute; left: 0; top: 0.1em; width: 1.55rem; height: 1.55rem; border-radius: 50%;
    background: var(--brand-navy); color: #fff; font-size: 0.78rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.ep-prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1.4rem; font-size: 0.9rem; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.ep-prose thead th { background: var(--brand-navy); color: #fff; text-align: left; font-weight: 700; }
.ep-prose th, .ep-prose td { padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.ep-prose tbody tr:nth-child(even) td { background: #fafcfa; }
.ep-prose tbody tr:last-child td { border-bottom: 0; }

.ep-faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.ep-faq details:last-child { border-bottom: 0; }
.ep-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ep-faq summary::-webkit-details-marker { display: none; }
.ep-faq summary::after { content: "+"; color: var(--brand-pink); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.ep-faq details[open] summary::after { content: "−"; }
.ep-faq p { margin: 0.6rem 0 0; color: var(--muted); }

/* Product cards */
.ep-related, .ep-inline-shop, .ep-more { margin-top: 2.25rem; }
.ep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ep-pcard {
    position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ep-pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(11, 31, 22, 0.08); }
.ep-pcard-img { aspect-ratio: 1 / 1; border-radius: 12px; background: #f6f8f6; display: flex; align-items: center; justify-content: center; padding: 0.75rem; margin-bottom: 0.7rem; }
.ep-pcard-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ep-pcard-badge { position: absolute; top: 1rem; left: 1rem; background: var(--brand-pink); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 999px; }
.ep-pcard-name { font-weight: 700; font-size: 0.88rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ep-pcard-price { margin-top: 0.4rem; color: var(--brand-pink); font-weight: 800; }
.ep-pcard-price s { color: #94a3b8; font-weight: 600; font-size: 0.8rem; margin-left: 0.3rem; }

/* Blog index */
.ep-blog-head { text-align: center; max-width: 720px; margin: 0.5rem auto 2rem; }
.ep-blog-head h1 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 4.5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.15; }
.ep-blog-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.ep-featured {
    display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 24px; margin-bottom: 1.5rem;
    transition: box-shadow 0.25s;
}
.ep-featured:hover { box-shadow: 0 18px 40px rgba(11, 31, 22, 0.1); }
.ep-featured-img { min-height: 100%; }
.ep-featured-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.ep-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.ep-featured-title { font-size: clamp(1.3rem, 2.8vw, 1.85rem); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em; }
.ep-featured-excerpt { color: var(--muted); }
.ep-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ep-post-card {
    display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform 0.2s, box-shadow 0.2s;
}
.ep-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(11, 31, 22, 0.09); }
.ep-post-img { overflow: hidden; }
.ep-post-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.45s; }
.ep-post-card:hover .ep-post-img img { transform: scale(1.04); }
.ep-post-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.1rem 1.15rem 1.25rem; flex: 1; }
.ep-post-title { font-weight: 800; font-size: 1.05rem; line-height: 1.32; letter-spacing: -0.01em; }
.ep-post-excerpt { color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-post-meta { margin-top: auto; color: #8a9790; font-size: 0.78rem; font-weight: 600; }

/* Article */
.ep-article-head { max-width: 820px; }
.ep-article-head h1 { margin: 0.75rem 0 0.75rem; font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.16; letter-spacing: -0.03em; }
.ep-article-excerpt { margin: 0 0 1rem; font-size: 1.08rem; color: var(--muted); }
.ep-article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; color: #6f7d75; font-size: 0.84rem; font-weight: 600; }
.ep-article-meta i { color: var(--brand-pink); margin-right: 0.25rem; }
.ep-article-hero { margin: 1.5rem 0 2rem; }
.ep-article-hero img { width: 100%; border-radius: 22px; aspect-ratio: 16 / 9; object-fit: cover; }
.ep-article-hero figcaption { margin-top: 0.45rem; font-size: 0.74rem; color: #8a9790; text-align: right; }
.ep-article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.ep-article-layout > .ep-article-body:only-child { grid-column: 1 / -1; max-width: 760px; }
.ep-toc {
    position: sticky; top: 120px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.1rem 1.2rem; font-size: 0.85rem;
}
.ep-toc strong { display: block; margin-bottom: 0.6rem; font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand-navy); }
.ep-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.ep-toc a { color: var(--muted); text-decoration: none; line-height: 1.4; display: block; }
.ep-toc a:hover { color: var(--brand-pink); }
.ep-article-body { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.25rem, 3.5vw, 2.5rem); }

.ep-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
    margin-top: 2rem; padding: clamp(1.25rem, 3.5vw, 2rem); border-radius: 24px;
    background: linear-gradient(135deg, #0b5d38, #0e7a4a); color: #fff;
}
.ep-cta h2 { margin: 0 0 0.35rem; font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: #fff; }
.ep-cta p { margin: 0; color: rgba(255, 255, 255, 0.85); }

.ep-empty { text-align: center; padding: 4rem 1rem; }
.ep-empty h1 { margin: 0 0 0.5rem; }
.ep-empty p { color: var(--muted); margin: 0 0 1.5rem; }

.ep-whatsapp {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90;
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem;
    background: #25d366; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 800;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
}
.ep-whatsapp i { font-size: 1.25rem; }

/* Responsive */
@media (max-width: 960px) {
    .ep-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ep-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ep-article-layout { grid-template-columns: minmax(0, 1fr); }
    .ep-toc { position: static; }
}
@media (max-width: 760px) {
    .ep-product { grid-template-columns: 1fr; }
    .ep-product-frame { position: relative; top: 0; aspect-ratio: auto; height: min(70vw, 360px); padding: 1.25rem; }
    .ep-featured { grid-template-columns: 1fr; }
    .ep-grid, .ep-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
    .ep-logo img { height: 38px; }
    .ep-search { padding-left: 0.8rem; }
    .ep-search input { font-size: 16px; }
    .ep-header-inner { gap: 0.6rem; }
}
@media (max-width: 560px) {
    .ep-post-grid { grid-template-columns: 1fr; }
    .ep-actions { grid-template-columns: 1fr; }
    .ep-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .ep-whatsapp span { display: none; }
    .ep-whatsapp { padding: 0.8rem; }
}
