
/* ===== RESET ===== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;overflow-x:hidden;font-family:'Inter',system-ui,-apple-system,sans-serif;background:#f8fafc;color:#1e293b}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none}

/* ===== LAYOUT ===== */
.es-wrap{display:flex;flex-direction:column;min-height:100vh}
.es-main{flex:1}
.es-container{max-width:1320px;width:100%;margin:0 auto;padding:0 1.25rem}
@media(min-width:640px){.es-container{padding:0 2rem}}

/* ===== NAV ===== */
.es-nav{position:sticky;top:0;z-index:1000;background:#0f172a;border-bottom:1px solid rgba(255,255,255,.08)}
.es-nav-inner{display:flex;align-items:center;height:64px;gap:.5rem}
.es-logo{flex-shrink:0;display:flex;align-items:center}
.es-logo img{height:36px;width:auto}

/* ===== MOBILE NAV - CLOSED BY DEFAULT ===== */
.es-nav-menu{
    position:fixed;inset:0;z-index:9999;
    display:flex;             /* always flex */
    pointer-events:none;      /* blocked when closed */
    visibility:hidden;        /* hidden when closed */
}
.es-nav-menu-overlay{
    flex:1;background:rgba(0,0,0,.6);
    opacity:0;transition:opacity .3s;
}
.es-nav-menu-drawer{
    width:min(300px,85vw);
    background:#0f172a;
    height:100%;overflow-y:auto;
    transform:translateX(-100%);
    transition:transform .3s ease;
    padding:0;display:flex;flex-direction:column;
    border-right:1px solid rgba(255,255,255,.08);
}
/* OPEN STATE */
.es-nav-menu.open{
    pointer-events:all;
    visibility:visible;
}
.es-nav-menu.open .es-nav-menu-overlay{opacity:1}
.es-nav-menu.open .es-nav-menu-drawer{transform:translateX(0)}

/* DESKTOP: override mobile drawer to be inline */
@media(min-width:1024px){
    .es-nav-menu{
        position:static;
        visibility:visible;
        pointer-events:all;
        flex:1;
        inset:auto;
        background:transparent;
        z-index:auto;
    }
    .es-nav-menu-overlay{display:none!important}
    .es-nav-menu-drawer{
        transform:none!important;
        background:transparent;
        width:auto;height:auto;
        padding:0;flex-direction:row;
        align-items:center;gap:.15rem;
        border:none;overflow:visible;
    }
    .es-nav-links{flex-direction:row!important;gap:.1rem!important}
    .es-nav-menu-close,.es-nav-drawer-header,.es-hamburger{display:none!important}
}

/* ===== DROPDOWN ===== */
[data-es-dropdown]{position:relative}
[data-es-dropdown-menu]{
    display:none;position:absolute;z-index:600;
    box-shadow:0 8px 32px rgba(0,0,0,.25);
}
[data-es-dropdown-menu].es-dd-open{display:block!important}

/* ===== HERO ===== */
.es-hero{min-height:400px;display:flex;align-items:center;background:#0f172a center/cover no-repeat}
@media(max-width:640px){.es-hero{min-height:260px}}

/* ===== RADIUS SYSTEM - applied globally ===== */
:root{--r-sm:8px;--r-md:12px;--r-lg:16px;--r-xl:20px;--r-full:9999px}
.es-card{border-radius:var(--r-lg)!important}
.es-card-thumb{border-radius:0!important}/* thumb inside card, no double radius */
.es-card-thumb img{border-radius:0}
.es-btn{border-radius:var(--r-md)!important}
.es-search-form{border-radius:var(--r-lg)!important}
.es-search-btn{border-radius:0 var(--r-lg) var(--r-lg) 0!important}
.es-cat-card{border-radius:var(--r-lg)!important}
.es-auth-card{border-radius:var(--r-xl)!important}
.es-form-control{border-radius:var(--r-md)!important}
[data-es-dropdown-menu]{border-radius:var(--r-lg)!important}
.es-um-item{border-radius:var(--r-sm)!important}

/* ===== CARDS ===== */
.es-card{
    background:#fff;overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.07),0 0 0 1px rgba(0,0,0,.04);
    transition:box-shadow .2s,transform .2s;
    display:flex;flex-direction:column;height:100%;
}
.es-card:hover{
    box-shadow:0 12px 32px rgba(0,0,0,.13),0 0 0 1px rgba(0,0,0,.06);
    transform:translateY(-3px)
}
/* CRITICAL: fixed aspect ratio prevents image overflow */
.es-card-thumb{
    position:relative;width:100%;
    aspect-ratio:16/9;         /* explicit ratio */
    overflow:hidden;           /* clip anything that goes over */
    background:#e2e8f0;
    flex-shrink:0;
}
.es-card-thumb>a{display:block;width:100%;height:100%;overflow:hidden}
.es-card-thumb img{
    width:100%;height:100%;
    object-fit:cover;          /* fill without distortion */
    object-position:center top;
    display:block;
    transition:transform .35s ease;
}
.es-card:hover .es-card-thumb img{transform:scale(1.05)}
.es-card-body{padding:.875rem;flex:1;display:flex;flex-direction:column;gap:.35rem}

/* ===== BADGES ===== */
.es-badge{
    position:absolute;top:8px;left:8px;
    padding:4px 10px;border-radius:var(--r-md,12px);
    font-size:.68rem;font-weight:700;letter-spacing:.4px;
    z-index:2;pointer-events:none;
    backdrop-filter:blur(4px);
}
.es-badge-premium{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}
.es-badge-free{background:linear-gradient(135deg,#10b981,#059669);color:#fff}
.es-badge-sale{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}
.es-badge-trending{background:rgba(139,92,246,.9);color:#fff}

/* ===== PRICE & STARS ===== */
.es-price{font-size:.95rem;font-weight:700;color:var(--primary-color,#6366f1)}
.es-price-old{font-size:.78rem;color:#94a3b8;text-decoration:line-through}
.es-price-free{color:#10b981}
.es-stars{display:inline-flex;gap:1px;color:#f59e0b;font-size:.7rem}

/* ===== GRID ===== */
.es-grid{display:grid;gap:1rem}
.es-grid-4{grid-template-columns:repeat(4,1fr)}
.es-grid-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:1200px){.es-grid-4{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.es-grid-4,.es-grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:400px){.es-grid-4,.es-grid-3{grid-template-columns:repeat(2,1fr);gap:.6rem}}

/* ===== BUTTONS ===== */
.es-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
    padding:.55rem 1.25rem;font-size:.875rem;font-weight:600;
    cursor:pointer;border:none;transition:all .2s;min-height:40px;white-space:nowrap;
}
.es-btn-primary{background:var(--primary-color,#6366f1);color:#fff}
.es-btn-primary:hover{filter:brightness(1.1);color:#fff;transform:translateY(-1px)}
.es-btn-outline{background:transparent;border:1.5px solid var(--primary-color,#6366f1);color:var(--primary-color,#6366f1)}
.es-btn-outline:hover{background:var(--primary-color,#6366f1);color:#fff}
.es-btn-ghost{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.15)}
.es-btn-ghost:hover{background:rgba(255,255,255,.2);color:#fff}
.es-btn-premium{
    background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;
    box-shadow:0 2px 12px rgba(245,158,11,.3);
}
.es-btn-premium:hover{box-shadow:0 4px 20px rgba(245,158,11,.5);color:#fff;transform:translateY(-1px)}

/* ===== SEARCH ===== */
.es-search-form{display:flex;background:#fff;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.2);max-width:640px;width:100%}
.es-search-input{flex:1;border:none;padding:.875rem 1.25rem;font-size:1rem;outline:none;color:#1e293b;min-width:0;background:transparent}
.es-search-btn{padding:.875rem 1.5rem;background:var(--primary-color,#6366f1);color:#fff;border:none;font-weight:600;cursor:pointer;white-space:nowrap;transition:filter .2s;display:flex;align-items:center;gap:.4rem}
.es-search-btn:hover{filter:brightness(1.1)}

/* ===== USER MENU ===== */
.es-um-item{display:flex;align-items:center;gap:.6rem;padding:.5rem .75rem;color:#cbd5e1;text-decoration:none;font-size:.85rem;transition:background .15s;white-space:nowrap}
.es-um-item:hover{background:rgba(255,255,255,.08);color:#e2e8f0}
.es-um-item i{width:16px;text-align:center;font-size:.82rem;flex-shrink:0}

/* ===== AUTH ===== */
.es-auth-card{background:#fff;padding:2rem 2rem 1.75rem;box-shadow:0 8px 40px rgba(0,0,0,.15)}
.es-auth-title{font-size:1.4rem;font-weight:700;color:#0f172a;margin:0 0 .3rem}
.es-auth-subtitle{color:#64748b;font-size:.9rem;margin:0 0 1.5rem}
.es-form-label{display:block;font-size:.83rem;font-weight:600;color:#374151;margin-bottom:.4rem}
.es-form-control{
    width:100%;padding:.65rem .875rem;
    border:1.5px solid #e2e8f0;font-size:.9rem;color:#1e293b;
    outline:none;transition:border-color .2s,box-shadow .2s;background:#fff;
}
.es-form-control:focus{border-color:var(--primary-color,#6366f1);box-shadow:0 0 0 3px rgba(99,102,241,.12)}
.es-form-group{margin-bottom:1rem}

/* ===== SECTION ===== */
.es-section{padding:2.5rem 0}
.es-section-title{font-size:1.35rem;font-weight:700;margin:0;color:#0f172a}
.es-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem;gap:1rem;flex-wrap:wrap}
.es-section-link{font-size:.85rem;font-weight:600;color:var(--primary-color,#6366f1)}
.es-section-link:hover{text-decoration:underline}

/* ===== FOOTER ===== */
.es-footer{background:#0f172a;color:#94a3b8;padding:3rem 0 0}
.es-footer-grid{display:grid;grid-template-columns:1.6fr 2.4fr;gap:3rem;padding-bottom:2.5rem;align-items:start}
.es-footer-links-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.es-footer-bottom{border-top:1px solid rgba(255,255,255,.07);padding:1.25rem 0}
@media(max-width:900px){
    .es-footer-grid{grid-template-columns:1fr;gap:2rem}
    .es-footer-links-grid{grid-template-columns:repeat(2,1fr);gap:1.5rem}
}

/* ===== CATEGORY CARDS ===== */
.es-cat-card{
    display:flex;flex-direction:column;align-items:center;gap:.5rem;
    padding:.875rem .5rem;background:#fff;color:#374151;
    transition:all .2s;border:1.5px solid #e5e7eb;text-align:center;text-decoration:none;
}
.es-cat-card:hover{border-color:var(--primary-color,#6366f1);color:var(--primary-color,#6366f1);box-shadow:0 4px 16px rgba(99,102,241,.12);transform:translateY(-2px)}
.es-cat-card img{width:52px;height:52px;object-fit:contain}
.es-cat-card span{font-size:.75rem;font-weight:600;line-height:1.3;color:inherit}

/* ===== TABS ===== */
.es-tab{padding:.4rem 1rem;border:1.5px solid #e2e8f0;background:#fff;color:#64748b;font-size:.83rem;font-weight:600;cursor:pointer;transition:all .15s;border-radius:8px}
.es-tab:hover,.es-tab-active{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}

/* ===== COOKIE BANNER ===== */
.es-cookie{
    position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);
    width:calc(100% - 3rem);max-width:560px;
    background:#1e293b;border:1px solid rgba(255,255,255,.1);
    border-radius:var(--r-xl);padding:1.25rem 1.5rem;
    box-shadow:0 8px 32px rgba(0,0,0,.35);
    display:flex;flex-direction:column;gap:1rem;
    z-index:9998;animation:slideUp .3s ease;
}
@keyframes slideUp{from{opacity:0;transform:translateX(-50%) translateY(20px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
.es-cookie.hide{animation:slideDown .25s ease forwards}
@keyframes slideDown{to{opacity:0;transform:translateX(-50%) translateY(20px)}}
@media(min-width:600px){.es-cookie{flex-direction:row;align-items:center}}

/* ===== LAZY ===== */
img[loading="lazy"]{opacity:0;transition:opacity .35s ease}
img[loading="lazy"].es-loaded{opacity:1}

/* ===== TOUCH ===== */
@media(max-width:1023px){
    .es-nav-inner button,.es-nav-inner a{min-height:44px}
}

/* ===== UTILITY ===== */
.es-desktop-only{display:none!important}
.es-mobile-only{display:flex!important}
@media(min-width:1024px){
    .es-desktop-only{display:inline-flex!important}
    .es-mobile-only{display:none!important}
}

/* ===== USER BADGES - constrain size ===== */
.author-badge img{width:48px!important;height:48px!important;object-fit:contain!important;border-radius:var(--r-sm)!important}
.author-badge{width:48px;height:48px;display:flex;align-items:center;justify-content:center}
/* Workspace item badge images */
.item-badge img,.featured-badge img{max-width:32px!important;max-height:32px!important;object-fit:contain!important}
/* Any stray full-size badge */
[class*="badge"] img:not(.es-thumb):not(.logo img){max-width:56px!important;max-height:56px!important;object-fit:contain!important}


/* ===== CARDS ===== */
.es-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.07);transition:box-shadow .22s,transform .22s;display:flex;flex-direction:column;height:100%}
.es-card:hover{box-shadow:0 10px 32px rgba(0,0,0,.14);transform:translateY(-3px)}
.es-card-thumb{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:#f1f5f9;flex-shrink:0}
.es-thumb-link{display:block;width:100%;height:100%;overflow:hidden}
.es-thumb-link.es-audio-thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#1e293b,#334155)}
.es-thumb{width:100%;height:100%;object-fit:cover;object-position:center;display:block;transition:transform .35s ease}
.es-card:hover .es-thumb{transform:scale(1.05)}
.es-play-btn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.2)}
.es-play-btn i{width:44px;height:44px;background:rgba(255,255,255,.92);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.85rem;color:#374151;padding-left:3px}

/* Badge */
.es-badge{position:absolute;top:8px;left:8px;padding:4px 10px;border-radius:8px;font-size:.68rem;font-weight:700;letter-spacing:.4px;z-index:2;pointer-events:none;display:inline-flex;align-items:center;gap:.3rem}
.es-badge-premium{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}
.es-badge-free{background:linear-gradient(135deg,#10b981,#059669);color:#fff}
.es-badge-sale{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}
.es-badge-trending{background:rgba(139,92,246,.9);color:#fff}

/* Body */
.es-card-body{padding:.875rem;flex:1;display:flex;flex-direction:column;gap:.5rem}
.es-card-title{text-decoration:none;color:inherit;display:block}
.es-card-title-text{font-size:.82rem;font-weight:700;margin:0;line-height:1.4;color:#0f172a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;letter-spacing:.2px}
.es-card-meta{font-size:.76rem;color:#94a3b8}
.es-card-author{color:var(--primary-color,#6366f1);text-decoration:none;font-weight:600}
.es-card-author:hover{text-decoration:underline}
.es-card-cat{color:#64748b;text-decoration:none;font-weight:500}
.es-card-cat:hover{color:var(--primary-color,#6366f1)}

/* Footer */
.es-card-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:.5rem;margin-top:auto;padding-top:.5rem}
.es-card-price-block{display:flex;flex-direction:column;gap:.15rem}
.es-price-now{font-size:1rem;font-weight:800;color:#0f172a;line-height:1}
.es-price-old{font-size:.75rem;color:#94a3b8;text-decoration:line-through}
.es-price-free{font-size:1rem;font-weight:800;color:#10b981;line-height:1}
.es-sales-count{font-size:.7rem;color:#94a3b8;display:flex;align-items:center;gap:.25rem}
.es-card-btns{display:flex;gap:.4rem;flex-shrink:0}
.es-card-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:9px;text-decoration:none;font-size:.85rem;transition:all .18s}
.es-card-btn-cart{background:var(--primary-color,#6366f1);color:#fff}
.es-card-btn-cart:hover{background:var(--primary-dark,#4f46e5);color:#fff;transform:scale(1.08)}
.es-card-btn-view{background:#f1f5f9;color:#64748b;border:1.5px solid #e2e8f0}
.es-card-btn-view:hover{background:#e2e8f0;color:#374151;transform:scale(1.08)}



/* ===== NAVBAR ===== */
.es-nav{background:#0f172a;border-bottom:1px solid rgba(255,255,255,.06);position:sticky;top:0;z-index:1000}
.es-nav-inner{display:flex;align-items:center;height:62px;gap:1.5rem}
.es-logo{flex-shrink:0;display:flex;align-items:center;text-decoration:none}

/* Desktop links - row inline */
.es-nav-links-desktop{display:none;align-items:center;gap:.25rem;flex:1}
@media(min-width:1024px){.es-nav-links-desktop{display:flex}}

.es-nav-link{display:inline-flex;align-items:center;padding:.45rem .7rem;color:#94a3b8;text-decoration:none;font-size:.855rem;font-weight:500;border-radius:7px;transition:color .15s,background .15s;white-space:nowrap}
.es-nav-link:hover{color:#e2e8f0;background:rgba(255,255,255,.06)}
.es-nav-link-btn{display:inline-flex;align-items:center;gap:.35rem;padding:.45rem .7rem;color:#94a3b8;background:none;border:none;font-size:.855rem;font-weight:500;border-radius:7px;cursor:pointer;transition:color .15s,background .15s;white-space:nowrap}
.es-nav-link-btn:hover{color:#e2e8f0;background:rgba(255,255,255,.06)}
.es-nav-item-dd{position:relative}
.es-nav-dd-menu{position:absolute;top:calc(100% + 6px);left:0;background:#1e293b;border:1px solid rgba(255,255,255,.1);border-radius:12px;min-width:180px;padding:.4rem;box-shadow:0 10px 30px rgba(0,0,0,.3);z-index:600}
.es-nav-dd-item{display:block;padding:.45rem .75rem;color:#cbd5e1;text-decoration:none;border-radius:8px;font-size:.855rem;transition:background .15s}
.es-nav-dd-item:hover{background:rgba(255,255,255,.08);color:#fff}

/* Right actions */
.es-nav-actions{display:flex;align-items:center;gap:.35rem;margin-left:auto;flex-shrink:0}
.es-nav-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.07);color:#cbd5e1;text-decoration:none;font-size:.9rem;transition:background .2s;border:1px solid rgba(255,255,255,.06);flex-shrink:0}
.es-nav-icon-btn:hover{background:rgba(255,255,255,.15);color:#fff}
.es-cart-badge{position:absolute;top:-5px;right:-5px;background:#ef4444;color:#fff;font-size:.6rem;font-weight:700;min-width:17px;height:17px;border-radius:10px;display:flex;align-items:center;justify-content:center;padding:0 3px;border:1.5px solid #0f172a}
.es-hamburger{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.06);color:#cbd5e1;font-size:.95rem;cursor:pointer;transition:background .2s;flex-shrink:0}
.es-hamburger:hover{background:rgba(255,255,255,.15);color:#fff}
@media(min-width:1024px){.es-hamburger{display:none}}
.es-hide-sm{display:none}
@media(min-width:1024px){.es-hide-sm{display:inline}}

/* ===== MOBILE DRAWER ===== */
.es-mobile-drawer{position:fixed;inset:0;z-index:9999;pointer-events:none;visibility:hidden}
.es-mobile-drawer.open{pointer-events:all;visibility:visible}
.es-mobile-overlay{position:absolute;inset:0;background:rgba(0,0,0,.6);opacity:0;transition:opacity .3s}
.es-mobile-drawer.open .es-mobile-overlay{opacity:1}
.es-mobile-panel{position:absolute;left:0;top:0;bottom:0;width:min(300px,85vw);background:#0f172a;border-right:1px solid rgba(255,255,255,.08);transform:translateX(-100%);transition:transform .3s ease;display:flex;flex-direction:column;overflow-y:auto}
.es-mobile-drawer.open .es-mobile-panel{transform:translateX(0)}
.es-mobile-panel-head{display:flex;align-items:center;justify-content:space-between;padding:1.125rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.07)}
.es-mobile-close{background:none;border:none;color:#94a3b8;font-size:1.6rem;cursor:pointer;padding:.1rem;line-height:1}
.es-mobile-nav{display:flex;flex-direction:column;padding:.75rem .75rem}
.es-mob-link{display:block;padding:.65rem .75rem;color:#cbd5e1;text-decoration:none;font-size:.9rem;font-weight:500;border-radius:9px;transition:background .15s}
.es-mob-link:hover{background:rgba(255,255,255,.07);color:#fff}
.es-mobile-auth{padding:1rem 1.25rem;display:flex;flex-direction:column;gap:.5rem;margin-top:auto;border-top:1px solid rgba(255,255,255,.07)}

/* ===== CATBAR ===== */
.es-catbar{background:#1e293b;border-bottom:1px solid rgba(255,255,255,.05);overflow:visible;position:relative;z-index:999;isolation:auto}
.es-catbar::-webkit-scrollbar{display:none}
.es-catbar-inner{display:flex;align-items:center;gap:.125rem;padding:.3rem 0;white-space:nowrap;min-height:38px;overflow-x:auto;overflow-y:visible;scrollbar-width:none;position:relative;z-index:999}
.es-catbar-link{display:inline-flex;align-items:center;gap:.3rem;padding:.3rem .65rem;color:#64748b;text-decoration:none;font-size:.78rem;font-weight:500;border-radius:6px;transition:all .15s;white-space:nowrap;flex-shrink:0}
.es-catbar-link:hover{color:#cbd5e1;background:rgba(255,255,255,.05)}
.es-catbar-dd{position:absolute;top:calc(100% + 2px);left:0;background:#1e293b;border:1px solid rgba(255,255,255,.1);border-radius:10px;min-width:170px;padding:.35rem;box-shadow:0 8px 24px rgba(0,0,0,.3);z-index:2000}
.es-catbar-dd-item{display:block;padding:.4rem .7rem;color:#94a3b8;text-decoration:none;border-radius:7px;font-size:.8rem;transition:background .15s}
.es-catbar-dd-item:hover{background:rgba(255,255,255,.07);color:#e2e8f0}



/* ===== FOOTER ===== */
.es-footer{background:#0f172a;color:#64748b;margin-top:0}
.es-footer-newsletter{padding:2.5rem 0;border-bottom:1px solid rgba(255,255,255,.06)}
.es-footer-main{display:grid;grid-template-columns:1fr;gap:3rem;padding:3rem 0 2.5rem}
@media(min-width:768px){.es-footer-main{grid-template-columns:1.6fr 2.4fr}}

/* Brand */
.es-footer-brand{display:flex;flex-direction:column;gap:1rem}
.es-footer-logo{display:inline-flex;text-decoration:none}
.es-footer-about{font-size:.855rem;line-height:1.75;color:#475569;margin:0;max-width:320px}
.es-footer-socials{display:flex;gap:.45rem;flex-wrap:wrap}
.es-social-btn{width:34px;height:34px;border-radius:8px;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.8rem;text-decoration:none;transition:transform .18s,opacity .18s;flex-shrink:0}
.es-social-btn:hover{transform:translateY(-2px);opacity:.9}
.es-footer-stats{display:flex;gap:2rem;margin-top:.25rem}
.es-footer-stat{display:flex;flex-direction:column;gap:.15rem}
.es-footer-stat-n{font-size:1.15rem;font-weight:800;color:#e2e8f0;line-height:1}
.es-footer-stat-l{font-size:.72rem;color:#475569;text-transform:uppercase;letter-spacing:.5px}

/* Links */
.es-footer-links{display:grid;grid-template-columns:repeat(2,1fr);gap:2rem}
@media(min-width:900px){.es-footer-links{grid-template-columns:repeat(3,1fr)}}
.es-footer-col-title{font-size:.72rem;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.7px;margin:0 0 .875rem}
.es-footer-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}
.es-footer-link{color:#475569;text-decoration:none;font-size:.845rem;transition:color .15s}
.es-footer-link:hover{color:#94a3b8}

/* Payment */
.es-footer-payment{padding:1.25rem 0;border-top:1px solid rgba(255,255,255,.05)}
.es-footer-payment img{opacity:.4;filter:brightness(0) invert(1)}

/* Bottom */
.es-footer-bottom{background:#080f1d;padding:1rem 0}
.es-footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.78rem;color:#334155}
.es-footer-bottom-inner strong{color:#475569}


/* ===== RATING STARS (reviews page compat) ===== */
.ratings{display:flex;gap:.25rem}
.ratings .rating{cursor:pointer;color:#d1d5db;font-size:1.2rem;transition:color .15s}
.ratings-lg .rating{font-size:1.5rem}
.ratings-selective .rating:hover,.ratings-selective .rating:hover~.rating{color:#d1d5db}
.ratings-selective .rating.active,.ratings-selective .rating.active~.rating{color:#f59e0b}
.ratings-selective .rating:hover,.ratings-selective .rating.hovered{color:#f59e0b}
.ratings .rating input[type=radio]{display:none}
.es-stars{display:inline-flex;gap:2px;color:#f59e0b;font-size:.82rem}
.es-stars .fa-star,.es-stars .far.fa-star{font-size:.82rem}


/* ===== PRICE TAG ===== */
.es-price-tag{display:inline-flex;align-items:center;padding:.25rem .65rem;background:var(--primary-color,#6366f1);color:#fff;border-radius:6px;font-size:.85rem;font-weight:700;letter-spacing:.2px;line-height:1}
.es-price-free-tag{background:linear-gradient(135deg,#10b981,#059669)}
.es-price-old{font-size:.75rem;color:#94a3b8;text-decoration:line-through;display:inline-block;margin-left:.25rem}


/* ===== TESTIMONIALS ===== */
.es-testimonials-section{padding:4rem 0;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%)}
.es-section-center-header{text-align:center;margin-bottom:3rem}
.es-section-title-lg{font-size:clamp(1.4rem,3vw,2rem);font-weight:800;color:#0f172a;margin:0 0 .75rem;line-height:1.2}
.es-section-desc{color:#64748b;font-size:.95rem;max-width:580px;margin:0 auto;line-height:1.7}

.es-testimonials-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
@media(max-width:1024px){.es-testimonials-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.es-testimonials-grid{grid-template-columns:1fr}}

.es-testimonial-card{background:#fff;border-radius:16px;padding:1.75rem;box-shadow:0 2px 12px rgba(0,0,0,.07);display:flex;flex-direction:column;gap:1rem;border:1px solid rgba(0,0,0,.04);transition:transform .2s,box-shadow .2s}
.es-testimonial-card:hover{transform:translateY(-3px);box-shadow:0 8px 28px rgba(0,0,0,.12)}
.es-testimonial-quote-icon{color:var(--primary-color,#6366f1);opacity:.25;flex-shrink:0}
.es-testimonial-text{font-size:.9rem;line-height:1.75;color:#475569;margin:0;flex:1;font-style:italic}
.es-testimonial-footer{display:flex;align-items:center;gap:.875rem;padding-top:.875rem;border-top:1px solid #f1f5f9}
.es-testimonial-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #e2e8f0}
.es-testimonial-name{font-size:.875rem;font-weight:700;color:#0f172a;line-height:1.2}
.es-testimonial-role{font-size:.78rem;color:#94a3b8;margin-top:.2rem}

/* ===== FAQS ===== */
.es-faqs-section{padding:4rem 0;background:#fff}
.es-faqs-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem;max-width:1100px;margin:0 auto}
@media(max-width:768px){.es-faqs-grid{grid-template-columns:1fr}}

.es-faq-item{border:1.5px solid #e2e8f0;border-radius:12px;overflow:hidden;transition:border-color .2s,box-shadow .2s;background:#fff}
.es-faq-item.open{border-color:var(--primary-color,#6366f1);box-shadow:0 4px 16px rgba(99,102,241,.12)}
.es-faq-btn{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:1.1rem 1.25rem;background:none;border:none;cursor:pointer;text-align:left;transition:background .15s}
.es-faq-btn:hover{background:#f8fafc}
.es-faq-item.open .es-faq-btn{background:#fafaff}
.es-faq-question{font-size:.9rem;font-weight:600;color:#1e293b;line-height:1.4;flex:1}
.es-faq-item.open .es-faq-question{color:var(--primary-color,#6366f1)}
.es-faq-icon{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--primary-color,#6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.65rem;transition:transform .2s}
.es-faq-item.open .es-faq-icon{transform:rotate(180deg)}
.es-faq-plus{display:block}
.es-faq-minus{display:none}
.es-faq-item.open .es-faq-plus{display:none}
.es-faq-item.open .es-faq-minus{display:block}
.es-faq-body{border-top:1px solid #f1f5f9}
.es-faq-answer{padding:1rem 1.25rem;font-size:.875rem;color:#64748b;line-height:1.75}
.es-faq-answer p{margin:0 0 .5rem}
.es-faq-answer p:last-child{margin:0}

/* ===== CARD PRICE (updated) ===== */
.es-card-price-now{display:none} /* hide old style */
.es-price-tag{display:inline-flex;align-items:center;padding:.28rem .7rem;background:var(--primary-color,#6366f1);color:#fff;border-radius:7px;font-size:.85rem;font-weight:700;letter-spacing:.1px;line-height:1}
.es-price-free-tag{background:linear-gradient(135deg,#10b981,#059669)}
.es-price-old{font-size:.75rem;color:#94a3b8;text-decoration:line-through}
.es-sales-count{font-size:.7rem;color:#94a3b8;display:flex;align-items:center;gap:.25rem;margin-top:.2rem}


/* ===================================================
   SECTION HEADER SYSTEM - padrão unificado
   =================================================== */
.es-sh{display:flex;align-items:center;gap:1rem;justify-content:center;margin-bottom:2.25rem}
.es-sh-line{flex:1;height:1.5px;background:linear-gradient(90deg,transparent,#e2e8f0);max-width:120px}
.es-sh-line:last-child{background:linear-gradient(270deg,transparent,#e2e8f0)}
.es-sh-title{font-size:clamp(1.2rem,2.5vw,1.6rem);font-weight:800;color:#0f172a;margin:0;white-space:nowrap;text-align:center}
.es-sh-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:2rem;flex-wrap:wrap}
.es-sh-row .es-sh{margin-bottom:0;flex:1}

/* ===================================================
   FEATURED AUTHOR
   =================================================== */
.es-featured-author-section{padding:3.5rem 0;background:#f8fafc}
.es-fa-card{background:#fff;border-radius:20px;padding:0;box-shadow:0 4px 24px rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.05);display:grid;grid-template-columns:260px 1fr;gap:0;position:relative;overflow:hidden;align-items:stretch}
.es-fa-bg-accent{position:absolute;top:0;left:0;width:260px;bottom:0;background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);z-index:0}
.es-fa-profile{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.25rem;text-align:center;padding:2rem 1.5rem;width:100%;box-sizing:border-box}
.es-fa-avatar-wrap{position:relative;display:inline-block}
.es-fa-avatar{width:100px;height:100px;border-radius:50%;object-fit:cover;border:4px solid rgba(255,255,255,.2)}
.es-fa-star-badge{position:absolute;bottom:2px;right:2px;width:28px;height:28px;background:linear-gradient(135deg,#f59e0b,#d97706);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#fff;border:2px solid #fff}
.es-fa-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:rgba(255,255,255,.5)}
.es-fa-name{font-size:1.2rem;font-weight:800;color:#fff;text-decoration:none;display:block;line-height:1.2}
.es-fa-name:hover{color:#f59e0b}
.es-fa-since{font-size:.78rem;color:rgba(255,255,255,.4);display:flex;align-items:center;gap:.35rem;justify-content:center}
.es-fa-desc{font-size:.82rem;line-height:1.6;color:rgba(255,255,255,.5);margin:0;text-align:center}
.es-fa-actions{display:flex;flex-direction:column;gap:.5rem;width:100%}
.es-fa-items{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;align-content:start;padding:2rem}
@media(max-width:1024px){.es-fa-card{grid-template-columns:1fr}.es-fa-bg-accent{display:none}.es-fa-profile{background:#0f172a;border-radius:14px;padding:1.5rem}.es-fa-items{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.es-fa-items{grid-template-columns:1fr}}

/* ===================================================
   CATEGORIES
   =================================================== */
.es-cats-section{padding:2.5rem 0;background:#fff}

@media(max-width:1024px){}
@media(max-width:480px){}


.es-cat-icon-wrap{width:60px;height:60px;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.06);border:1px solid #f1f5f9;transition:all .2s;flex-shrink:0}
.es-cat-card-new:hover .es-cat-icon-wrap{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1)}
.es-cat-card-new:hover .es-cat-icon-wrap img{filter:brightness(0) invert(1)}
.es-cat-name{font-size:.78rem;font-weight:600;color:#374151;line-height:1.3}
.es-cat-card-new:hover .es-cat-name{color:var(--primary-color,#6366f1)}
.es-cat-count{font-size:.68rem;color:#94a3b8;font-weight:500}

/* Auto-scroll strip */
.es-cats-scroll-wrap{overflow:hidden;border-top:1px solid #f1f5f9;padding-top:1.25rem;position:relative}
.es-cats-scroll-wrap::before,.es-cats-scroll-wrap::after{content:'';position:absolute;top:0;bottom:0;width:60px;z-index:2;pointer-events:none}
.es-cats-scroll-wrap::before{left:0;background:linear-gradient(90deg,#fff,transparent)}
.es-cats-scroll-wrap::after{right:0;background:linear-gradient(270deg,#fff,transparent)}
.es-cats-scroll{display:flex;gap:.75rem;width:max-content;animation:esCatsScroll 30s linear infinite}
.es-cats-scroll:hover{animation-play-state:paused}
@keyframes esCatsScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.es-cat-scroll-item{display:flex;flex-direction:column;align-items:center;gap:.6rem;padding:1rem 1.1rem;background:#f8fafc;border-radius:14px;text-decoration:none;border:1.5px solid #f1f5f9;transition:border-color .2s,transform .2s,background .2s;min-width:100px;text-align:center;flex-shrink:0}
.es-cat-scroll-item:hover{border-color:var(--primary-color,#6366f1);background:#fff;transform:translateY(-3px);box-shadow:0 6px 18px rgba(99,102,241,.13)}

/* ===================================================
   TESTIMONIALS SLIDER
   =================================================== */
.es-testimonials-section{padding:4rem 0;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}
.es-test-slider-wrap{position:relative;overflow:hidden;padding:0;margin:0 2.75rem}
.es-test-track{display:flex;gap:1.25rem;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.es-testimonial-card{flex:0 0 calc(33.333% - .85rem);background:#fff;border-radius:16px;padding:1.75rem;box-shadow:0 2px 12px rgba(0,0,0,.07);display:flex;flex-direction:column;gap:1rem;border:1px solid rgba(0,0,0,.04)}
@media(max-width:1024px){.es-testimonial-card{flex:0 0 calc(50% - .625rem)}}
@media(max-width:640px){.es-testimonial-card{flex:0 0 100%}}
.es-testimonial-quote-icon{color:var(--primary-color,#6366f1);opacity:.2;flex-shrink:0}
.es-testimonial-text{font-size:.88rem;line-height:1.75;color:#475569;margin:0;flex:1;font-style:italic}
.es-testimonial-footer{display:flex;align-items:center;gap:.875rem;padding-top:.875rem;border-top:1px solid #f1f5f9}
.es-testimonial-avatar{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid #e2e8f0}
.es-testimonial-name{font-size:.875rem;font-weight:700;color:#0f172a;line-height:1.2}
.es-testimonial-role{font-size:.76rem;color:#94a3b8;margin-top:.15rem}

/* Slider nav */
.es-test-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;background:#fff;border:1.5px solid #e2e8f0;box-shadow:0 2px 8px rgba(0,0,0,.1);cursor:pointer;font-size:.8rem;color:#374151;z-index:5;transition:all .2s;display:flex;align-items:center;justify-content:center}
.es-test-nav:hover{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}
.es-test-prev{left:-2.75rem}
.es-test-next{right:-2.75rem}

/* Dots */
.es-test-dots{display:flex;justify-content:center;gap:.5rem;margin-top:1.5rem}
.es-test-dot{width:8px;height:8px;border-radius:4px;background:#e2e8f0;border:none;cursor:pointer;transition:all .25s;padding:0}
.es-test-dot.active{background:var(--primary-color,#6366f1);width:24px}

/* ===================================================
   FAQS
   =================================================== */
.es-faqs-section{padding:4rem 0;background:#fff}
.es-faqs-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.875rem;max-width:1100px;margin:0 auto}
@media(max-width:768px){.es-faqs-grid{grid-template-columns:1fr}}
.es-faq-item{border:1.5px solid #e2e8f0;border-radius:12px;overflow:hidden;transition:border-color .2s,box-shadow .2s;background:#fff}
.es-faq-item.open{border-color:var(--primary-color,#6366f1);box-shadow:0 4px 16px rgba(99,102,241,.1)}
.es-faq-btn{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:1.1rem 1.25rem;background:none;border:none;cursor:pointer;text-align:left;transition:background .15s}
.es-faq-btn:hover{background:#f8fafc}
.es-faq-item.open .es-faq-btn{background:#fafaff}
.es-faq-question{font-size:.875rem;font-weight:600;color:#1e293b;line-height:1.4;flex:1}
.es-faq-item.open .es-faq-question{color:var(--primary-color,#6366f1)}
.es-faq-icon{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--primary-color,#6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.65rem;transition:all .25s}
.es-faq-item.open .es-faq-icon{transform:rotate(45deg)}
.es-faq-body{border-top:1px solid #f1f5f9}
.es-faq-answer{padding:1rem 1.25rem;font-size:.875rem;color:#64748b;line-height:1.75}
.es-faq-answer p{margin:0 0 .5rem}.es-faq-answer p:last-child{margin:0}

/* ===================================================
   FEATURED ITEMS
   =================================================== */
.es-featured-items-section{padding:3.5rem 0;background:#fff;position:relative}
.es-featured-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin-bottom:2rem;flex-wrap:wrap}
.es-featured-title-block{flex:1}
.es-featured-eyebrow{display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:var(--primary-color,#6366f1);background:rgba(99,102,241,.08);padding:.3rem .75rem;border-radius:20px;margin-bottom:.6rem}
.es-featured-title{font-size:clamp(1.3rem,2.5vw,1.75rem);font-weight:800;color:#0f172a;margin:0 0 .4rem;line-height:1.2}
.es-featured-desc{font-size:.9rem;color:#64748b;margin:0}

/* ===================================================
   PREMIUM ITEMS
   =================================================== */
.es-premium-section{padding-bottom:3.5rem}
.es-premium-bg{background:linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#4c1d95 100%);padding:3rem 0 5rem;position:relative;overflow:hidden}
.es-premium-bg::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.es-premium-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;position:relative;z-index:1}
.es-premium-eyebrow{display:inline-flex;align-items:center;gap:.4rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.7px;color:#fbbf24;background:rgba(251,191,36,.12);padding:.3rem .75rem;border-radius:20px;margin-bottom:.6rem}
.es-premium-title{font-size:clamp(1.3rem,2.5vw,1.75rem);font-weight:800;color:#fff;margin:0 0 .4rem;line-height:1.2}
.es-premium-desc{font-size:.9rem;color:rgba(255,255,255,.65);margin:0}


/* ===== LATEST ITEMS SECTION ===== */
.es-latest-section{padding:3rem 0;background:#fff}
.es-empty-state{text-align:center;padding:3rem 1rem;color:#94a3b8}
.es-empty-state i{font-size:2.5rem;margin-bottom:.75rem;display:block;opacity:.4}
.es-empty-state p{margin:0;font-size:.9rem}

/* ===== TABS (updated) ===== */
.es-tab{padding:.4rem 1rem;border-radius:20px;border:1.5px solid #e2e8f0;background:#fff;color:#64748b;font-size:.83rem;font-weight:600;cursor:pointer;transition:all .15s}
.es-tab:hover,.es-tab-active{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}

/* ===== CATBAR dropdown fix ===== */
[data-es-dropdown].es-catbar-item{position:relative}

.es-cat-scroll-item:hover .es-cat-icon-wrap{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1)}
.es-cat-scroll-item:hover .es-cat-icon-wrap img{filter:brightness(0) invert(1)}
.es-cat-scroll-item .es-cat-name{font-size:.78rem;font-weight:600;color:#374151;transition:color .2s}
.es-cat-scroll-item:hover .es-cat-name{color:var(--primary-color,#6366f1)}


/* ===================================================
   CATEGORIES - single auto-scroll strip
   =================================================== */
.es-cats-section{padding:2.5rem 0;background:#fff}
.es-cats-strip-wrap{overflow:hidden;padding:.5rem 0;position:relative}
.es-cats-strip-wrap::before,.es-cats-strip-wrap::after{content:'';position:absolute;top:0;bottom:0;width:80px;z-index:2;pointer-events:none}
.es-cats-strip-wrap::before{left:0;background:linear-gradient(90deg,#fff,transparent)}
.es-cats-strip-wrap::after{right:0;background:linear-gradient(270deg,#fff,transparent)}
.es-cats-strip{display:flex;gap:1rem;width:max-content;animation:esCatScroll 35s linear infinite;padding:0 1rem}
.es-cats-strip:hover{animation-play-state:paused}
@keyframes esCatScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

.es-cat-pill{display:inline-flex;align-items:center;gap:.65rem;padding:.55rem 1rem;background:#f8fafc;border-radius:10px;text-decoration:none;border:1.5px solid #f1f5f9;transition:all .2s;white-space:nowrap;flex-shrink:0;font-size:.82rem;font-weight:600;color:#374151}
.es-cat-pill:hover{border-color:var(--primary-color,#6366f1);background:#fff;color:var(--primary-color,#6366f1);box-shadow:0 4px 12px rgba(99,102,241,.12);transform:translateY(-2px)}
.es-cat-pill-icon{width:36px;height:36px;border-radius:8px;background:#fff;border:1.5px solid #f1f5f9;display:flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;transition:all .2s}
.es-cat-pill:hover .es-cat-pill-icon{border-color:var(--primary-color,#6366f1);background:rgba(99,102,241,.05)}
.es-cat-pill-icon img{width:28px;height:28px;object-fit:contain}

/* ===================================================
   FEATURED AUTHOR - dark panel centering fix
   =================================================== */
.es-fa-card{background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 4px 24px rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.05);display:grid;grid-template-columns:280px 1fr;align-items:stretch}
.es-fa-profile{background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;text-align:center;padding:2.5rem 2rem}
.es-fa-avatar-wrap{position:relative;display:inline-block}
.es-fa-avatar{width:90px;height:90px;border-radius:50%;object-fit:cover;border:3px solid rgba(255,255,255,.2);display:block}
.es-fa-star-badge{position:absolute;bottom:2px;right:2px;width:26px;height:26px;background:linear-gradient(135deg,#f59e0b,#d97706);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.65rem;color:#fff;border:2px solid #0f172a}
.es-fa-info-center{display:flex;flex-direction:column;align-items:center;gap:.4rem;width:100%}
.es-fa-label{font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.8px;color:rgba(255,255,255,.4)}
.es-fa-name{font-size:1.1rem;font-weight:800;color:#fff;text-decoration:none;display:block;line-height:1.2}
.es-fa-name:hover{color:#f59e0b}
.es-fa-since{font-size:.75rem;color:rgba(255,255,255,.35);display:flex;align-items:center;gap:.3rem;justify-content:center}
.es-fa-desc{font-size:.8rem;line-height:1.6;color:rgba(255,255,255,.45);margin:.25rem 0 0;text-align:center;max-width:200px}
.es-fa-actions{display:flex;flex-direction:column;align-items:center;gap:.65rem;width:100%}
.es-fa-items{padding:2rem;display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;align-content:start;background:#f8fafc}
@media(max-width:1100px){.es-fa-items{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1024px){.es-fa-card{grid-template-columns:1fr}.es-fa-profile{border-radius:16px 16px 0 0;padding:2rem 1.5rem}.es-fa-items{grid-template-columns:repeat(2,1fr);border-radius:0 0 16px 16px}}
@media(max-width:640px){.es-fa-items{grid-template-columns:1fr}}

/* ===================================================
   LATEST ITEMS section styling
   =================================================== */
.es-latest-section{padding:3rem 0;background:#fff}

/* ===================================================
   CATBAR DROPDOWN FIX - above all page sections
   =================================================== */
.es-catbar{position:sticky;top:62px;z-index:998;background:#1e293b;border-bottom:1px solid rgba(255,255,255,.06);overflow:visible}
.es-catbar-inner{position:relative;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;display:flex;align-items:center;gap:.125rem;padding:.3rem 0;scrollbar-width:none;min-height:40px}
.es-catbar-inner::-webkit-scrollbar{display:none}
[data-es-dropdown]:has(.es-catbar-dd){overflow:visible}
.es-catbar-dd{position:absolute;top:calc(100% + 4px);left:0;background:#1e293b;border:1px solid rgba(255,255,255,.12);border-radius:10px;min-width:180px;padding:.4rem;box-shadow:0 12px 32px rgba(0,0,0,.5);z-index:2000;display:none}

.es-catbar-dd.es-dd-open{display:block!important}

/* ===================================================
   ITEM PAGE
   =================================================== */
.es-item-page{padding:2rem 0 4rem}
.es-item-breadcrumbs{margin-bottom:1.5rem;font-size:.82rem;color:#64748b}
.es-item-grid{display:grid;grid-template-columns:1fr 380px;gap:2.5rem;align-items:start}
@media(max-width:1100px){.es-item-grid{grid-template-columns:1fr 340px}}
@media(max-width:900px){.es-item-grid{grid-template-columns:1fr}}

/* Preview */
.es-item-preview-card{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.07);border:1px solid #f1f5f9;position:relative;margin-bottom:1rem}
.es-item-preview-img{line-height:0}
.es-item-video{width:100%;border-radius:12px;display:block}
.es-item-audio{padding:1.5rem;background:#f8fafc;border-radius:12px}
.es-item-screenshots{position:relative;padding:.75rem;background:#f8fafc}
.es-screenshot-thumb img{width:100%;height:80px;object-fit:cover;border-radius:8px;border:2px solid #e2e8f0;transition:border-color .2s}
.es-screenshot-thumb:hover img{border-color:var(--primary-color,#6366f1)}
.es-swiper-prev,.es-swiper-next{position:absolute;top:50%;transform:translateY(-50%);width:32px;height:32px;background:#fff;border-radius:50%;border:1px solid #e2e8f0;box-shadow:0 2px 6px rgba(0,0,0,.1);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:5;font-size:.75rem;color:#374151}
.es-swiper-prev{left:4px}
.es-swiper-next{right:4px}

/* Item badge on preview */
.es-item-badge{position:absolute;top:12px;left:12px;padding:5px 12px;border-radius:8px;font-size:.75rem;font-weight:700;letter-spacing:.3px;z-index:3;display:inline-flex;align-items:center;gap:.35rem}
.es-item-badge-premium{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}
.es-item-badge-free{background:linear-gradient(135deg,#10b981,#059669);color:#fff}
.es-item-badge-sale{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}
.es-item-badge-trending{background:rgba(139,92,246,.9);color:#fff}

/* Tabs */
.es-item-tabs{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:1rem}
.es-item-tab{display:inline-flex;align-items:center;gap:.4rem;padding:.5rem 1rem;border-radius:8px;font-size:.83rem;font-weight:600;color:#64748b;text-decoration:none;border:1.5px solid #e2e8f0;background:#fff;transition:all .15s}
.es-item-tab:hover{border-color:var(--primary-color,#6366f1);color:var(--primary-color,#6366f1)}
.es-item-tab.active{background:var(--primary-color,#6366f1);border-color:var(--primary-color,#6366f1);color:#fff}
.es-tab-count{background:rgba(255,255,255,.3);border-radius:10px;padding:.05rem .4rem;font-size:.72rem}
.es-item-tab.active .es-tab-count{background:rgba(255,255,255,.25)}

/* Content card */
.es-item-content-card{background:#fff;border-radius:16px;padding:1.75rem;border:1px solid #f1f5f9;box-shadow:0 2px 8px rgba(0,0,0,.05);margin-bottom:1rem}
.es-item-content-card .description,.es-item-content-card .item-single-paragraph{font-size:.9rem;line-height:1.8;color:#374151}
.es-item-content-card p{margin:0 0 1rem}
.es-item-content-card img{max-width:100%;border-radius:8px}

/* Author card */
.es-author-card{background:#fff;border-radius:14px;padding:1.25rem;border:1px solid #f1f5f9;margin-bottom:1rem}
.es-author-card-inner{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.es-author-avatar-link{flex-shrink:0}
.es-author-avatar{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid #e2e8f0}
.es-author-info{flex:1;min-width:0}
.es-author-name{font-size:.95rem;font-weight:700;color:#0f172a;text-decoration:none;display:block}
.es-author-name:hover{color:var(--primary-color,#6366f1)}
.es-author-since{font-size:.76rem;color:#94a3b8}
.es-author-badges{display:flex;gap:.35rem;margin-top:.35rem}
.es-author-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-left:auto}

/* Share */
.es-item-share{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.es-item-share-label{font-size:.82rem;font-weight:600;color:#64748b;display:flex;align-items:center;gap:.35rem}

/* ===== SIDEBAR ===== */
.es-item-sidebar{position:sticky;top:108px;display:flex;flex-direction:column;gap:1rem}
.es-item-header{background:#fff;border-radius:14px;padding:1.25rem;border:1px solid #f1f5f9}
.es-item-title{font-size:1.2rem;font-weight:800;color:#0f172a;margin:0 0 .75rem;line-height:1.3}
.es-item-meta-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.es-item-stars{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;font-size:.8rem;color:#f59e0b}
.es-item-meta-chip{display:inline-flex;align-items:center;gap:.3rem;font-size:.75rem;color:#64748b;background:#f1f5f9;padding:.2rem .6rem;border-radius:6px}
.es-chip-updated{color:#10b981;background:rgba(16,185,129,.08)}

/* Purchase blocks */
.es-purchase-block{background:#fff;border-radius:14px;padding:1.25rem;border:1px solid #f1f5f9}
.es-purchase-premium-active{border-color:var(--primary-color,#6366f1);background:linear-gradient(135deg,#f8f7ff,#fff)}
.es-purchase-premium-cta{border-color:#f59e0b;background:linear-gradient(135deg,#fffbeb,#fff)}
.es-purchase-free{border-color:#10b981}
.es-purchase-icon{font-size:2rem;color:var(--primary-color,#6366f1);margin-bottom:.5rem}
.es-premium-crown{font-size:2.5rem;background:linear-gradient(135deg,#f59e0b,#d97706);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}
.es-purchase-block h3{font-size:1rem;font-weight:700;color:#0f172a;margin:0 0 .4rem}
.es-purchase-block p{font-size:.83rem;color:#64748b;margin:0 0 1rem;line-height:1.5}
.es-purchase-price-row{margin-bottom:.75rem}
.es-item-price-big{font-size:1.6rem;font-weight:800}
.es-price-free-color{color:#10b981}
.es-license-link{display:block;text-align:center;font-size:.78rem;color:#94a3b8;text-decoration:none;margin-top:.75rem}
.es-license-link:hover{color:var(--primary-color,#6366f1)}

/* License options */
.es-license-options{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}
.es-license-option{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border:1.5px solid #e2e8f0;border-radius:10px;cursor:pointer;transition:all .15s}
.es-license-option:has(input:checked){border-color:var(--primary-color,#6366f1);background:rgba(99,102,241,.04)}
.es-license-option input{display:none}
.es-license-info{flex:1}
.es-license-name{display:block;font-size:.875rem;font-weight:600;color:#0f172a}
.es-license-desc{display:block;font-size:.75rem;color:#94a3b8}
.es-license-price{text-align:right;flex-shrink:0}
.es-price-main{font-size:1rem;font-weight:700;color:#0f172a;display:block}
.es-price-crossed{font-size:.78rem;color:#94a3b8;text-decoration:line-through;display:block}

/* Support */
.es-support-box{background:#f8fafc;border-radius:10px;padding:.875rem;margin-bottom:1rem}
.es-support-option{display:flex;align-items:center;gap:.6rem;padding:.4rem 0;cursor:pointer;font-size:.83rem;color:#374151}
.es-support-price{margin-left:auto;font-weight:600;color:#0f172a;font-size:.83rem}

/* Price total + buy buttons */
.es-price-total-row{display:flex;align-items:baseline;gap:.5rem;margin-bottom:.875rem}
.es-price-total{font-size:1.5rem;font-weight:800;color:#0f172a}
.es-price-total-old{font-size:.9rem;color:#94a3b8;text-decoration:line-through}
.es-buy-btn{width:100%;justify-content:center;font-size:.95rem;padding:.75rem;margin-bottom:.5rem}

/* Trust badges */
.es-trust-badges{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #f1f5f9}
.es-trust-item{font-size:.75rem;color:#64748b;display:flex;align-items:center;gap:.3rem}
.es-trust-item i{color:#10b981;font-size:.8rem}
.es-trust-no i{color:#ef4444}

/* Details card */
.es-item-details-card{background:#fff;border-radius:14px;padding:1.25rem;border:1px solid #f1f5f9}
.es-details-title{font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:#94a3b8;margin:0 0 .875rem}
.es-details-list{margin:0;padding:0}
.es-details-row{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;padding:.5rem 0;border-bottom:1px solid #f8fafc;font-size:.82rem}
.es-details-row:last-child{border-bottom:none}
.es-details-row dt{color:#94a3b8;font-weight:500;flex-shrink:0}
.es-details-row dd{margin:0;color:#374151;text-align:right;font-weight:500}
.es-details-row a{color:var(--primary-color,#6366f1);text-decoration:none}
.es-tags-list{display:flex;flex-wrap:wrap;gap:.3rem;justify-content:flex-end}
.es-tag{display:inline-block;padding:.15rem .5rem;background:#f1f5f9;border-radius:5px;font-size:.72rem;color:#64748b;text-decoration:none}
.es-tag:hover{background:var(--primary-color,#6366f1);color:#fff}

/* Featured badge card */
.es-featured-badge-card{background:#fff;border-radius:14px;padding:1rem 1.25rem;border:1px solid #f1f5f9;display:flex;align-items:center;gap:.875rem}
.es-featured-badge-card strong{display:block;font-size:.875rem;color:#0f172a}
.es-featured-badge-card span{display:block;font-size:.75rem;color:#94a3b8}

/* Related sections */
.es-related-section{padding:2.5rem 0;border-top:1px solid #f1f5f9}

/* Demo button */
.es-demo-btn{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem 1rem;border-radius:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#cbd5e1;font-size:.82rem;text-decoration:none;transition:all .2s}
.es-demo-btn:hover{background:rgba(255,255,255,.16);color:#fff}

@media(max-width:900px){
    .es-item-sidebar{position:static}
    .es-author-actions{width:100%}
}
