/* Shared finish for storefront, account and operations screens. */
:root {
    --ep-background: #f5f6f8;
    --ep-text: #202731;
    --ep-text-muted: #616975;
    --ep-charcoal: #17212b;
    --ep-primary-dark: #806100;
    --ep-glass: rgba(255,255,255,.9);
    --ep-glass-border: #d3d9e0;
    --ep-radius-md: 14px;
    --ep-shadow-raised: 0 6px 24px rgba(25,35,50,.12);
    --ep-shadow-raised-sm: 0 2px 8px rgba(25,35,50,.10);
    --ep-shadow-inset: inset 0 1px 2px rgba(25,35,50,.05);
    --ep-shadow-float: 0 20px 60px rgba(25,35,50,.20);
}
body { line-height: 1.6; }
html, body { overflow-x: hidden; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
img { max-width: 100%; }
:where(:focus-visible) { outline: 3px solid #947200; outline-offset: 4px; }
::selection { background: #ffe888; color: #17212b; }
.ep-container {
    width: 100%;
    max-width: none;
    padding-inline: clamp(16px, 3vw, 48px);
}
h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.025em; }
p { line-height: 1.7; }
.ep-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.ep-directional { width: 18px; height: 18px; }
[dir="rtl"] .ep-directional { transform: scaleX(-1); }
.ep-skip-link { position: fixed; inset-block-start: 8px; inset-inline-start: 16px; transform: translateY(-160%); z-index: 400; background: #ffcc00; color: #17212b; padding: 10px 20px; border-radius: 8px; font-weight: 700; }
.ep-skip-link:focus { transform: none; }
#main-content:focus { outline: none; }
[id] { scroll-margin-top: calc(var(--ep-header-height, 80px) + 24px); }
.ep-header { border-bottom: 1px solid #d3d9e0; background: rgba(255,255,255,.92); box-shadow: 0 4px 20px rgba(25,35,50,.10); }
.ep-header__inner { gap: 22px; padding-block: 16px; }
.ep-logo { flex-shrink: 0; }
.ep-logo img { width: auto; max-width: 160px; height: 44px; object-fit: contain; }
.ep-nav { gap: 18px; white-space: nowrap; font-size: .84rem; }
.ep-nav a { padding-block: 8px; }
.ep-header__actions { gap: 8px; flex-shrink: 0; }
.ep-lang-switch { border: 1px solid #d3d9e0; background: #f6f7f9; border-radius: 10px; padding: 3px; gap: 2px; white-space: nowrap; }
.ep-lang-switch span { display: none; }
.ep-lang-switch a { padding: 6px 8px; border-radius: 7px; opacity: 1; color: #616975; }
.ep-lang-switch a.is-active { color: #202731; background: #fff; box-shadow: 0 1px 4px #19233215; }
.ep-icon-link { border-radius: 10px; background: transparent; box-shadow: none; width: 40px; height: 40px; }
.ep-icon-link .ep-icon { width: 21px; height: 21px; }
.ep-icon-link:hover { background: #f4f5f7; transform: none; }
.ep-search { min-width: 0; border-color: #d3d9e0; background: #f6f7f9; border-radius: 11px; box-shadow: none; }
.ep-search__input { min-width: 0; padding: 8px 10px; }
.ep-search__button { box-shadow: none; border-radius: 8px; }
.ep-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 112px); background: radial-gradient(ellipse at 80% 0%, #364859 0%, transparent 65%), #17212b; }
.ep-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .12; background-image: linear-gradient(#a7b8c8 1px, transparent 1px),linear-gradient(90deg,#a7b8c8 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, black, transparent); }
.ep-hero > * { position: relative; }
.ep-hero h1 { font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 800; letter-spacing: -.045em; max-width: 1000px; margin-inline: auto; margin-bottom: 20px; }
.ep-hero p { font-size: 1.06rem; color: #cbd3db; max-width: 660px; margin-bottom: 32px; }
.ep-hero-search { max-width: 760px; background: #fff; border: 0; border-radius: 14px; padding: 7px; box-shadow: 0 14px 40px #0003; }
.ep-hero-search input { color: #202731; min-width: 0; }
.ep-hero-search input::placeholder { color: #727b87; }
.ep-hero-search button { border-radius: 9px; min-height: 48px; }
.ep-section { padding-block: 36px; }
.ep-section__head { gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ep-section__head h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.ep-section__head a { display: inline-flex; align-items: center; gap: 8px; }
.ep-card { border-color: #d3d9e0; }
.ep-card:hover { transform: none; box-shadow: var(--ep-shadow-raised); }
a.ep-card:hover, .ep-product-card:hover { border-color: #bfc7d0; box-shadow: 0 8px 24px rgba(25,35,50,.14); }
.ep-category-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; }
.ep-category-card .ep-category-icon { background: #fff6d5; color: #816100; border-radius: 14px; margin-bottom: 4px; }
.ep-brand-card { border-bottom: 2px solid #ffcc00; }
.ep-value-card { padding: 24px; flex-direction: row; align-items: center; gap: 16px; }
.ep-value-icon { flex-shrink: 0; color: #52697c; background: #edf2f6; }
.ep-product-card__image { background: #fff; border-bottom: 1px solid #edf0f3; padding: 20px; }
.ep-product-card__image img { transition: transform .2s; }
.ep-product-card__image:hover img { transform: scale(1.04); }
.ep-product-placeholder { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; color: #9ba6b3; background: #f5f7f9; }
.ep-product-placeholder .ep-icon { width: 36px; height: 36px; }
.ep-product-card__body { padding: 20px; flex: 1; gap: 8px; }
.ep-product-name { line-height: 1.5; overflow-wrap: anywhere; }
.ep-part-number { overflow-wrap: anywhere; }
.ep-price-row { gap: 8px; flex-wrap: wrap; margin-top: auto; padding-block: 8px; }
.ep-stock-badge { white-space: nowrap; font-size: .66rem; }
.ep-product-card__actions { gap: 8px; }
.ep-btn { min-height: 44px; border: 1px solid #dce1e7; box-shadow: none; line-height: 1.4; }
.ep-btn--primary { border-color: #edbd00; }
.ep-btn:hover { transform: none; background: #edf0f4; border-color: #b9c2ce; }
.ep-btn--primary:hover { background: #f2c100; border-color: #dbae00; }
.ep-btn--whatsapp { border-color: #25D366; }
.ep-btn--whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; }
.ep-btn:disabled, button:disabled { cursor: default; opacity: .6; transform: none; }
.ep-form-card { margin-block: 64px; width: calc(100% - 32px); max-width: 460px; border: 1px solid #d3d9e0; padding: 36px; border-top: 4px solid #ffcc00; }
.ep-form-card h1 { font-size: 1.8rem; margin-bottom: 20px; }
.ep-form-group { margin-bottom: 22px; }
.ep-form-group input, .ep-form-group select, .ep-form-group textarea { background: #fcfcfd; border-color: #d5dce4; box-shadow: none; min-height: 46px; }
.ep-form-group input:focus, .ep-form-group select:focus, .ep-form-group textarea:focus { box-shadow: 0 0 0 3px #ffcc0033; }
.ep-user-form-card { width: 100%; max-width: none; padding: clamp(24px, 3vw, 40px); }
.ep-user-form { width: 100%; }
.ep-user-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.ep-user-form__field { min-width: 0; }
.ep-user-form__field--wide { grid-column: 1 / -1; }
.ep-user-form__hint { display: block; margin-top: 6px; color: var(--ep-text-muted); font-size: .8rem; line-height: 1.5; }
.ep-user-form__hint--block { margin: -2px 0 14px; max-width: 900px; }
.ep-user-form__status { min-height: 46px; display: flex; align-items: center; }
.ep-branch-picker__toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ep-branch-picker__search { flex: 1 1 320px; min-height: 42px; padding: 9px 12px; border: 1px solid #d5dce4; border-radius: 10px; background: #fff; color: var(--ep-text); font: inherit; }
.ep-branch-picker__search:focus { outline: none; border-color: #d8aa00; box-shadow: 0 0 0 3px #ffcc0033; }
.ep-branch-picker__count { min-width: 56px; color: var(--ep-text-muted); font-size: .8rem; text-align: end; }
.ep-branch-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #d5dce4;
    border-radius: 14px;
    background: #f8fafc;
}
.ep-branch-picker__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: var(--ep-text);
    font-size: .9rem;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.ep-branch-picker__item:hover { border-color: #e2b900; background: #fffdf3; }
.ep-branch-picker__item input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #d8aa00; }
.ep-branch-picker__item span { min-width: 0; overflow-wrap: anywhere; }
.ep-branch-picker__item small { color: var(--ep-text-muted); font-size: .78rem; }
.ep-branch-picker__item[hidden] { display: none; }
.ep-user-form__actions { display: flex; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #e1e5ea; }
.ep-user-form__actions .ep-btn { min-width: 116px; }
.ep-empty-state { border: 1px dashed #cdd5de; border-radius: 16px; background: #ffffff80; padding: 48px 24px; }
.ep-empty-icon .ep-icon { width: 40px; height: 40px; color: #8795a5; }
.ep-gallery-main { max-width: 380px; width: 100%; border: 1px solid #d3d9e0; padding: 24px; }
.ep-gallery-thumbs { overflow-x: auto; max-width: 100%; padding: 4px; }
.ep-product-title-block { border: 1px solid #d3d9e0; padding: 32px; }
.ep-spec-grid__item { border: 1px solid #d3d9e0; box-shadow: none; }
.ep-pagination { flex-wrap: wrap; }
.ep-pagination a, .ep-pagination span { min-width: 40px; height: 40px; border: 1px solid #d3d9e0; box-shadow: none; }
.ep-filter-pills { flex-wrap: wrap; }
.ep-filter-pill { border: 1px solid #d3d9e0; box-shadow: none; }
.ep-catalog-layout { grid-template-columns: 230px minmax(0, 1fr); }
.ep-admin-shell { grid-template-columns: 220px minmax(0, 1fr); }
.ep-admin-main, .ep-product-layout > *, .ep-catalog-layout > * { min-width: 0; }
.ep-admin-main { overflow: hidden; }
.ep-admin-main > .ep-filter-bar { position: relative; z-index: 30; }
.ep-admin-main .ep-dropdown-filter { z-index: 40; }
.ep-admin-main .ep-dropdown-filter__panel { z-index: 100; background: #fff; }
.ep-page-search { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 12px; border: 1px solid #d3d9e0; border-radius: 12px; background: #fff; }
.ep-page-search__icon { color: var(--ep-text-muted); font-size: 1.25rem; line-height: 1; }
.ep-page-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ep-text); font: inherit; }
.ep-page-search input::placeholder { color: #8993a0; }
.ep-page-search:focus-within { border-color: #d8aa00; box-shadow: 0 0 0 3px #ffcc0033; }
.ep-page-search__count { color: var(--ep-text-muted); font-size: .78rem; white-space: nowrap; }
.ep-admin-main [hidden] { display: none !important; }
.ep-admin-nav { box-shadow: none; border-color: #d3d9e0; background: #fff; }
.ep-admin-nav a { font-size: .85rem; padding: 11px 14px; }
.ep-admin-nav__search { padding: 0 4px 12px; }
.ep-admin-nav__search input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #d5dce4; border-radius: 9px; background: #f8fafc; color: var(--ep-text); font: inherit; font-size: .82rem; }
.ep-admin-nav__search input:focus { outline: none; border-color: #d8aa00; box-shadow: 0 0 0 3px #ffcc0033; background: #fff; }
.ep-admin-nav a[hidden] { display: none; }
.ep-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ep-page-head { flex-wrap: wrap; }
.ep-page-head h1 { font-size: 1.75rem; }
.ep-admin-table th { background: #f4f6f8; }
.ep-admin-table td { padding-block: 16px; }
.ep-admin-filter-search { display: flex; align-items: center; gap: 8px; flex: 1 1 360px; min-width: min(100%, 300px); }
.ep-admin-filter-search input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 9px 12px; border: 1px solid #d5dce4; border-radius: 10px; background: #fff; color: var(--ep-text); font: inherit; }
.ep-admin-filter-search input:focus { outline: none; border-color: #d8aa00; box-shadow: 0 0 0 3px #ffcc0033; }
.ep-admin-filter-search .ep-btn { flex: 0 0 auto; }
.ep-products-filter-controls { flex-wrap: nowrap; gap: 10px; }
.ep-products-filter-controls .ep-filter-pills { flex: 0 0 auto; gap: 6px; }
.ep-products-filter-controls .ep-filter-pill { padding-inline: 14px; white-space: nowrap; }
.ep-products-filter-controls .ep-admin-filter-search { flex: 1 1 280px; min-width: 220px; }
.ep-products-filter-controls > form:not(.ep-admin-filter-search),
.ep-products-filter-controls > .ep-dropdown-filter,
.ep-products-filter-controls > .ep-btn { flex: 0 0 auto; }
.ep-products-filter-controls .ep-btn--export { background: #f4f6f8; border-color: #cbd3dc; }
.ep-products-filter-controls .ep-btn--export:hover { background: #e8edf2; }
.ep-products-filter-controls .ep-filter-spacer { flex: 0 0 auto; margin-inline-start: auto; white-space: nowrap; }
.ep-user-management-controls { flex-wrap: nowrap; gap: 10px; }
.ep-user-management-controls .ep-filter-pills { flex: 0 0 auto; gap: 6px; }
.ep-user-management-controls .ep-filter-pill { padding-inline: 14px; white-space: nowrap; }
.ep-user-management-controls .ep-admin-filter-search { flex: 1 1 280px; min-width: 220px; }
.ep-user-management-controls .ep-filter-spacer { flex: 1 1 auto; min-width: 0; }
.ep-user-management-controls > .ep-btn { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 1180px) {
    .ep-products-filter-controls { flex-wrap: wrap; }
    .ep-products-filter-controls .ep-admin-filter-search { flex-basis: 320px; }
    .ep-products-filter-controls .ep-filter-spacer { margin-inline-start: auto; }
    .ep-user-management-controls { flex-wrap: wrap; }
    .ep-user-management-controls .ep-admin-filter-search { flex: 1 1 320px; }
}
.ep-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid #d3d9e0; border-radius: 14px; -webkit-overflow-scrolling: touch; }
.ep-table-scroll .ep-admin-table { min-width: 680px; }
.ep-table-scroll .ep-admin-table { box-shadow: none; border-radius: 0; }
.ep-chart-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.ep-modal { background: #fff; border: 1px solid #d3d9e0; padding: 28px; max-height: calc(100dvh - 32px); }
.ep-modal__close { width: 40px; height: 40px; font-size: 1.4rem; box-shadow: none; background: #f1f3f6; }
.ep-modal__header { gap: 16px; }
.ep-modal__header h3 { line-height: 1.5; }
.ep-footer { background: #17212b; margin-top: 48px; padding-block: 48px 24px; }
.ep-footer__grid { gap: 48px; }
.ep-footer a { opacity: 1; color: #bfc9d3; padding-block: 3px; }
.ep-footer a:hover { color: #ffcc00; }
.ep-footer p { max-width: 350px; }
@media (max-width: 1180px) {
    .ep-header__inner { flex-wrap: wrap; gap: 12px 20px; }
    .ep-header .ep-search { order: 3; flex-basis: 100%; max-width: none; }
    .ep-nav { order: 0; width: auto; min-width: 0; overflow-x: auto; }
}
@media (max-width: 900px) {
    .ep-catalog-layout, .ep-admin-shell { grid-template-columns: minmax(0, 1fr); }
    .ep-admin-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; border-radius: 12px; -webkit-overflow-scrolling: touch; }
    .ep-admin-nav__search { flex: 0 0 190px; padding: 0; }
    .ep-admin-nav a { flex-shrink: 0; margin: 0; white-space: nowrap; }
    .ep-admin-nav > h4 { display: none; }
    .ep-product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ep-gallery-main { max-width: 460px; }
}
@media (max-width: 600px) {
    .ep-header__inner { gap: 10px; padding-block: 12px; }
    .ep-logo img { height: 34px; max-width: 120px; }
    .ep-header__actions { gap: 2px; }
    .ep-icon-link { width: 34px; height: 38px; }
    .ep-lang-switch { font-size: .74rem; }
    .ep-lang-switch a { padding-inline: 5px; }
    .ep-nav { order: 4; width: 100%; justify-content: flex-start; gap: 20px; font-size: .8rem; padding-bottom: 2px; scrollbar-width: none; }
    .ep-nav::-webkit-scrollbar { display: none; }
    .ep-nav a { padding-block: 2px; }
    .ep-search__input { font-size: 16px; }
    .ep-hero { padding-block: 48px; }
    .ep-hero h1 { font-size: 2.2rem; }
    .ep-hero p { font-size: .95rem; }
    .ep-hero-search { flex-direction: column; gap: 4px; padding: 8px; }
    .ep-hero-search input { width: 100%; padding: 12px 8px; font-size: 16px; }
    .ep-hero-search button { padding: 12px; }
    .ep-section { padding-block: 26px; }
    .ep-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ep-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ep-product-card__body { padding: 12px; }
    .ep-product-card__image { padding: 12px; }
    .ep-product-card .ep-btn { font-size: .78rem; padding: 10px 6px; }
    .ep-product-card .ep-btn--half { font-size: .62rem; padding: 0 4px; }
    .ep-product-card .ep-part-number { font-size: .95rem; }
    .ep-product-name { font-size: .8rem; }
    .ep-price { font-size: .95rem; }
    .ep-value-card { padding: 18px 14px; flex-direction: column; align-items: flex-start; font-size: .85rem; }
    .ep-form-card { padding: 24px; margin-block: 32px; }
    .ep-user-form-card { padding: 20px 16px; }
    .ep-user-form__grid { grid-template-columns: 1fr; }
    .ep-user-form__field--wide { grid-column: auto; }
    .ep-branch-picker { grid-template-columns: 1fr; max-height: 420px; padding: 10px; }
    .ep-branch-picker__toolbar { align-items: stretch; flex-direction: column; gap: 6px; }
    .ep-branch-picker__count { text-align: start; }
    .ep-user-form__actions { flex-direction: column; }
    .ep-user-form__actions .ep-btn { width: 100%; }
    .ep-admin-filter-search { order: 10; flex-basis: 100%; }
    .ep-form-group input, .ep-form-group select, .ep-form-group textarea { font-size: 16px; }
    .ep-product-title-block { padding: 22px; }
    .ep-modal-overlay { padding: 12px; }
    .ep-modal { padding: 22px; max-height: calc(100dvh - 24px); }
    .ep-admin-pagination { padding: 12px; gap: 12px; }
    .ep-admin-pagination__nav { gap: 8px; flex-wrap: wrap; }
    .ep-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .ep-footer__grid > :first-child { grid-column: 1 / -1; }
    .ep-table-scroll .ep-admin-table { min-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.ep-field-input, .ep-phone-input input, .ep-phone-input select { min-height: 46px; min-width: 0; padding: 11px 12px; border: 1px solid #d5dce4; border-radius: 10px; background: #fcfcfd; color: var(--ep-text); font-size: 16px; box-shadow: none; }
.ep-phone-input input { width: 100%; }
.ep-phone-input select { max-width: 120px; }
[data-cart-row] { flex-wrap: wrap; }
[data-cart-row] > * { min-width: 0; }
@media (max-width: 600px) {
    [data-cart-row] .ep-part-number { font-size: .95rem; }
    .ep-admin-kpi-grid { grid-template-columns: minmax(0, 1fr); }
}
.ep-account-shortcut { padding: 24px; display: flex; gap: 14px; align-items: center; }
.ep-account-shortcut > .ep-directional { margin-inline-start: auto; color: var(--ep-text-muted); }
@media (max-width: 600px) {
    .ep-account-shortcut { padding: 16px; flex-wrap: wrap; }
    .ep-account-shortcut strong { font-size: .9rem; }
}

/* User icon dropdown (account / logout) */
.ep-user-menu { position: relative; }
.ep-user-menu__panel {
    display: none; position: absolute; inset-inline-end: 0; top: 100%; min-width: 160px; z-index: 50;
    padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.ep-user-menu:hover .ep-user-menu__panel,
.ep-user-menu:focus-within .ep-user-menu__panel { display: block; }
.ep-user-menu__panel a { display: block; padding: 10px 12px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.ep-user-menu__panel a:hover { background: #f4f5f7; }
