* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #1f2937;
    background: #f8fafc;
}
a { color: inherit; }
.ep-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.ep-header {
    background: var(--theme-primary, #0f172a);
    color: var(--theme-text-on-primary, #ffffff);
    position: sticky;
    top: 0;
    z-index: 40;
}
.ep-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
}
.ep-brand { color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
.ep-brand img { max-height: 36px; }
.ep-nav { display: flex; align-items: center; }
.ep-nav a {
    color: inherit;
    text-decoration: none;
    margin-left: 24px;
    opacity: 0.85;
    font-size: 14px;
}
.ep-nav a:hover { opacity: 1; }
.ep-nav-cta {
    background: var(--theme-accent, #2563eb);
    padding: 8px 16px;
    border-radius: 6px;
    opacity: 1 !important;
    font-weight: 600;
}

.ep-hero {
    background: var(--theme-primary, #0f172a);
    color: var(--theme-text-on-primary, #ffffff);
    padding: 64px 24px 96px;
}
.ep-hero-inner { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.ep-hero h1 { font-size: 38px; line-height: 1.2; margin: 0 0 16px; }
.ep-hero p { font-size: 17px; opacity: 0.85; margin: 0; }

.ep-search-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    margin-top: -48px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25);
    color: #1f2937;
}
.ep-search-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.ep-search-tab {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f1f5f9;
}
.ep-search-tab.is-active { background: var(--theme-primary, #0f172a); color: #fff; }
.ep-search-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.ep-search-input {
    flex: 2 1 220px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
}
.ep-search-input-sm { flex: 1 1 140px; }

.ep-btn {
    display: inline-block;
    background: var(--theme-accent, #2563eb);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 14px;
}
.ep-btn-light { background: #fff; color: var(--theme-primary, #0f172a); }
.ep-btn-outline { background: transparent; color: var(--theme-primary, #0f172a); border: 1px solid #cbd5e1; }
.ep-btn-whatsapp { background: #22c55e; }
.ep-btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }

.ep-stats { background: #eef2f7; padding: 32px 24px; }
.ep-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    text-align: center;
}
.ep-stats-grid strong { display: block; font-size: 24px; color: var(--theme-primary, #0f172a); }
.ep-stats-grid span { font-size: 13px; color: #64748b; }

.ep-section { padding: 64px 24px; }
.ep-section h2 { font-size: 28px; margin: 0 0 32px; text-align: center; }
.ep-section-alt { background: #eef2f7; }
.ep-empty { text-align: center; color: #64748b; }

.ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.ep-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ep-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,23,42,0.12); }
.ep-card-media {
    height: 180px;
    background: linear-gradient(135deg, var(--theme-primary, #0f172a), var(--theme-accent, #2563eb));
    background-size: cover;
    background-position: center;
    position: relative;
}
.ep-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.ep-product-info .ep-badge { position: static; display: inline-block; margin-bottom: 12px; background: var(--theme-primary, #0f172a); }
.ep-card-body { padding: 18px; }
.ep-card-price { font-size: 19px; font-weight: 700; color: var(--theme-primary, #0f172a); margin-bottom: 4px; }
.ep-card-body h3 { margin: 0 0 6px; font-size: 16px; }
.ep-card-location { margin: 0 0 10px; color: #64748b; font-size: 13px; }
.ep-card-facts { display: flex; gap: 12px; font-size: 13px; color: #475569; }

.ep-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.ep-category-tile {
    background: #fff;
    border-radius: 10px;
    padding: 28px 16px;
    text-align: center;
    text-decoration: none;
    color: #1f2937;
    font-size: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ep-category-tile span { display: block; font-size: 14px; font-weight: 600; margin-top: 10px; }

.ep-why {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    text-align: center;
}
.ep-why h3 { margin: 0 0 8px; color: var(--theme-accent, #2563eb); }
.ep-why p { margin: 0; color: #475569; font-size: 14px; }

.ep-cta { background: var(--theme-primary, #0f172a); color: #fff; padding: 48px 24px; }
.ep-cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.ep-cta h2 { margin: 0 0 8px; font-size: 24px; text-align: left; }
.ep-cta p { margin: 0; opacity: 0.8; }

.ep-page-header { background: #eef2f7; padding: 32px 24px; }
.ep-page-header h1 { margin: 0 0 6px; font-size: 26px; }
.ep-page-header p { margin: 0; color: #64748b; }

.ep-listing-grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.ep-filters { background: #fff; border-radius: 10px; padding: 20px; }
.ep-filters h4 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; color: #64748b; }
.ep-filters h4:first-child { margin-top: 0; }
.ep-filter-list { list-style: none; margin: 0; padding: 0; }
.ep-filter-list li a { display: block; padding: 6px 0; text-decoration: none; color: #475569; font-size: 14px; }
.ep-filter-list li.is-active a { color: var(--theme-accent, #2563eb); font-weight: 600; }
.ep-filters .ep-search-input { width: 100%; margin-bottom: 10px; }

.ep-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; }
.ep-page-link { text-decoration: none; color: var(--theme-accent, #2563eb); font-weight: 600; font-size: 14px; }
.ep-page-link.is-disabled { color: #cbd5e1; }
.ep-page-current { font-size: 14px; color: #64748b; }

.ep-breadcrumb { color: #64748b; font-size: 13px; margin-bottom: 20px; }
.ep-breadcrumb a { text-decoration: none; color: #64748b; }
.ep-product-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.ep-gallery-main {
    height: 380px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}
.ep-gallery-placeholder { display: flex; align-items: center; justify-content: center; color: #94a3b8; }
.ep-gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.ep-gallery-thumb { width: 72px; height: 56px; border-radius: 8px; background-size: cover; background-position: center; }
.ep-product-price { font-size: 28px; font-weight: 700; color: var(--theme-primary, #0f172a); margin: 8px 0 20px; }
.ep-price-strike { font-size: 16px; color: #94a3b8; text-decoration: line-through; margin-left: 10px; font-weight: 400; }
.ep-key-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; background: #f8fafc; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.ep-key-facts strong { display: block; font-size: 18px; }
.ep-key-facts span { font-size: 12px; color: #64748b; }
.ep-cta-row { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ep-product-desc { color: #475569; font-size: 15px; line-height: 1.6; margin-bottom: 16px; }

.ep-footer {
    background: var(--theme-primary, #0f172a);
    color: var(--theme-text-on-primary, #ffffff);
    padding: 48px 24px 20px;
}
.ep-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.ep-footer-col h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; opacity: 0.7; }
.ep-footer-col a { display: block; text-decoration: none; color: inherit; opacity: 0.85; margin-bottom: 8px; font-size: 14px; }
.ep-footer-tag { opacity: 0.7; font-size: 13px; margin-top: 10px; }
.ep-copyright { text-align: center; opacity: 0.6; font-size: 13px; margin-top: 28px; }

.ep-whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--theme-whatsapp, #22c55e);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    z-index: 50;
}

@media (max-width: 860px) {
    .ep-nav a:not(.ep-nav-cta) { display: none; }
    .ep-listing-grid, .ep-product-layout { grid-template-columns: 1fr; }
    .ep-footer-grid { grid-template-columns: 1fr; }
}
