:root{
    --bg:#f6f7f8;--card:#fff;--text:#141414;--muted:#707070;
    --primary:#ff6b00;--primary2:#ff8a00;--line:#e8e8e8;
    --danger:#d93025;--success:#128a4a;--radius:22px;
    --shadow:0 12px 34px rgba(0,0,0,.08)
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:50;height:64px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line)}
.brand{display:flex;gap:9px;align-items:center;font-weight:900;font-size:21px;letter-spacing:-.5px}
.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff}
.top-actions{display:flex;gap:14px;font-size:14px;font-weight:700}
.page{max-width:1180px;margin:auto;padding:18px 14px 90px}
.hero{background:#111;color:#fff;border-radius:30px;padding:28px 20px;overflow:hidden;position:relative;box-shadow:var(--shadow)}
.hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;background:var(--primary);right:-90px;top:-90px;opacity:.92}
.hero h1{font-size:clamp(30px,8vw,56px);line-height:.98;margin:0 0 12px;letter-spacing:-2px;max-width:760px}
.hero p{margin:0 0 20px;color:#ddd;max-width:620px;font-size:16px}
.search-box{position:relative;z-index:2;background:#fff;border-radius:18px;padding:7px;display:flex;gap:8px;box-shadow:0 12px 24px rgba(0,0,0,.2)}
.search-box input{border:0;outline:0;padding:13px 12px;width:100%;font-size:17px}
.search-box button{border:0;border-radius:13px;background:var(--primary);color:#fff;font-weight:900;padding:0 18px}
.section-title{display:flex;justify-content:space-between;align-items:end;margin:26px 2px 12px}
.section-title h2{margin:0;font-size:22px;letter-spacing:-.6px}
.muted{color:var(--muted)}
.chips{display:flex;gap:9px;overflow:auto;padding:2px 1px 10px;scrollbar-width:none}
.chip{white-space:nowrap;border:1px solid var(--line);background:#fff;padding:10px 14px;border-radius:999px;font-weight:800;font-size:14px}
.chip.active,.chip:hover{background:#111;color:#fff;border-color:#111}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-card{background:var(--card);border-radius:20px;overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column;min-width:0}
.product-img{aspect-ratio:1/1;background:#eee;display:grid;place-items:center;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-img .placeholder{font-size:48px}
.product-body{padding:12px;display:flex;flex-direction:column;gap:7px;flex:1}
.store-name{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-weight:900}
.product-title{font-size:15px;font-weight:900;line-height:1.2;min-height:36px}
.product-price{font-size:20px;font-weight:950}
.stock{font-size:12px;color:var(--success);font-weight:800}
.add-btn,.btn{border:0;background:var(--primary);color:#fff;font-weight:950;border-radius:14px;padding:12px 14px;text-align:center;display:inline-flex;justify-content:center;align-items:center;gap:7px}
.btn.dark{background:#111}.btn.light{background:#fff;color:#111;border:1px solid var(--line)}.btn.danger{background:var(--danger)}.btn.full{width:100%}
.add-btn:disabled{opacity:.4;cursor:not-allowed}
.cart-fab{position:fixed;right:16px;bottom:18px;z-index:60;background:#111;color:#fff;box-shadow:0 12px 34px rgba(0,0,0,.28);border-radius:999px;padding:14px 18px;font-weight:950}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 6px 20px rgba(0,0,0,.04)}
.form-card{max-width:620px;margin:24px auto}
.form-grid{display:grid;gap:14px}
label{font-weight:850;font-size:14px}
.input,textarea,select{width:100%;border:1px solid #ddd;background:#fff;border-radius:14px;padding:13px 14px;outline:0}
.input:focus,textarea:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(255,107,0,.12)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.qty{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.qty button{border:0;background:#f2f2f2;width:38px;height:38px;font-weight:900}
.qty span{min-width:38px;text-align:center;font-weight:900}
.cart-row{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.cart-row img{width:64px;height:64px;border-radius:14px;object-fit:cover;background:#eee}
.summary{display:grid;gap:8px}.summary .line{display:flex;justify-content:space-between}.summary .total{font-size:22px;font-weight:950;padding-top:10px;border-top:1px solid var(--line)}
.table-wrap{overflow:auto;background:#fff;border-radius:18px;border:1px solid var(--line)}
table{width:100%;border-collapse:collapse;min-width:720px}
th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}
th{font-size:12px;text-transform:uppercase;color:var(--muted);letter-spacing:.5px}
.badge{display:inline-block;padding:6px 9px;border-radius:999px;background:#eee;font-weight:850;font-size:12px}
.badge.pending{background:#fff0dc;color:#a84d00}.badge.accepted{background:#e2f0ff;color:#075a9c}.badge.preparing{background:#eee7ff;color:#5b35a8}.badge.on_the_way{background:#fff6c9;color:#725c00}.badge.delivered{background:#def7e8;color:#0d7040}.badge.cancelled{background:#ffe2e0;color:#9f241d}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px}.stat strong{font-size:26px;display:block}
.admin-nav{display:flex;gap:8px;overflow:auto;margin-bottom:15px}.admin-nav a{background:#fff;border:1px solid var(--line);border-radius:999px;padding:10px 14px;white-space:nowrap;font-weight:800}
.toast{position:fixed;top:72px;left:50%;transform:translateX(-50%);z-index:100;max-width:90vw;padding:12px 16px;border-radius:12px;color:#fff;font-weight:850;box-shadow:var(--shadow)}
.toast.ok{background:var(--success)}.toast.error{background:var(--danger)}
.empty{text-align:center;padding:36px 16px;color:var(--muted)}
.row-actions{display:flex;gap:7px;flex-wrap:wrap}.small{font-size:12px}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}
@media(min-width:700px){.page{padding:26px 22px 100px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stats{grid-template-columns:repeat(4,1fr)}.hero{padding:42px}}
@media(min-width:980px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.topbar{padding:0 28px}}


/* YESGO V2 */
.map-box{height:330px;border-radius:20px;overflow:hidden;background:#e8e8e8;border:1px solid var(--line)}
.location-card{border:1px dashed #ccc;border-radius:18px;padding:14px;background:#fafafa}
.delivery-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:18px 0}
.delivery-step{padding:10px 6px;border-radius:13px;background:#eee;text-align:center;font-size:11px;font-weight:900}
.delivery-step.done{background:#def7e8;color:#0d7040}
.delivery-step.current{background:#111;color:#fff}
.order-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;margin-bottom:12px}
.order-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.big-status{font-size:24px;font-weight:950;letter-spacing:-.6px}
.courier-panel{background:#111;color:#fff;border-radius:24px;padding:20px}
.courier-panel .muted{color:#bbb}
.online-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#39d77c;margin-right:6px}
.offline-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#aaa;margin-right:6px}
.kpi-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{padding:14px;border-radius:16px;background:#f6f6f6}
.kpi strong{display:block;font-size:22px}
.price-breakdown{display:grid;gap:7px;padding:12px;border-radius:16px;background:#f7f7f7}
.price-breakdown>div{display:flex;justify-content:space-between;gap:12px}
.price-breakdown .final{font-size:19px;font-weight:950;border-top:1px solid #ddd;padding-top:9px}
.status-actions{display:grid;gap:9px}
.notice{padding:12px 14px;border-radius:14px;background:#fff7e8;border:1px solid #ffe1aa;color:#724800;font-size:14px}
@media(max-width:520px){
    .delivery-flow{grid-template-columns:repeat(2,1fr)}
    .two{grid-template-columns:1fr}
}


/* ======================================================
   YESGO V3 · Venta y publicación
   ====================================================== */

.sell-link{
    background:#111!important;
    color:#fff!important;
    padding:9px 13px;
    border-radius:12px;
}

.seller-hero{
    background:linear-gradient(135deg,#111 0%,#1b1b1b 100%);
    color:#fff;
    border-radius:30px;
    padding:30px 22px;
    display:grid;
    gap:24px;
    box-shadow:var(--shadow);
}

.seller-hero h1{
    margin:7px 0 10px;
    font-size:clamp(38px,9vw,64px);
    letter-spacing:-2px;
    line-height:.95;
}

.seller-hero p{
    color:#d4d4d4;
    max-width:650px;
    font-size:17px;
    line-height:1.5;
}

.seller-kicker{
    display:inline-block;
    font-size:11px;
    font-weight:950;
    letter-spacing:1.5px;
    color:var(--primary);
}

.seller-steps{
    display:grid;
    gap:10px;
}

.seller-steps>div{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid #333;
    border-radius:16px;
    background:#181818;
}

.seller-steps strong{
    display:grid;
    place-items:center;
    min-width:36px;
    height:36px;
    border-radius:50%;
    background:var(--primary);
}

.seller-card{
    margin-top:16px;
}

.seller-primary{
    background:linear-gradient(135deg,var(--primary),var(--primary2));
}

.home-seller-strip{
    margin-top:16px;
    padding:17px;
    border-radius:20px;
    background:#fff;
    border:1px solid var(--line);
    display:flex;
    flex-direction:column;
    gap:13px;
}

.home-seller-strip strong{
    display:block;
    font-size:20px;
    margin-top:4px;
}

.home-seller-strip small{
    display:block;
    color:var(--muted);
    margin-top:3px;
}

.home-seller-strip a{
    display:block;
    padding:13px 16px;
    border-radius:14px;
    background:#111;
    color:#fff;
    text-align:center;
    font-weight:950;
}

.seller-main-cta{
    margin-top:16px;
    display:flex;
    align-items:center;
    gap:15px;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff;
    padding:20px;
    border-radius:22px;
    box-shadow:0 13px 30px rgba(255,107,0,.22);
}

.seller-main-plus{
    display:grid;
    place-items:center;
    min-width:54px;
    height:54px;
    border-radius:17px;
    background:rgba(255,255,255,.2);
    font-size:34px;
}

.seller-main-cta strong{
    display:block;
    font-size:22px;
}

.seller-main-cta small{
    display:block;
    opacity:.88;
    margin-top:3px;
}

.merchant-page-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:14px;
    margin:8px 0 18px;
}

.merchant-page-head h1{
    margin:5px 0 0;
    font-size:clamp(30px,7vw,44px);
    letter-spacing:-1.4px;
}

.product-publish-card{
    margin-top:0;
}

.photo-upload{
    margin-top:7px;
    border:2px dashed #d8d8d8;
    border-radius:18px;
    min-height:106px;
    display:flex;
    align-items:center;
    gap:13px;
    padding:16px;
    cursor:pointer;
    background:#fafafa;
}

.photo-upload:hover{
    border-color:var(--primary);
    background:#fff8f2;
}

.photo-upload-icon{
    display:grid;
    place-items:center;
    min-width:52px;
    height:52px;
    border-radius:15px;
    background:#fff0e5;
    font-size:25px;
}

.photo-upload strong,
.photo-upload small{
    display:block;
}

.photo-upload small{
    color:var(--muted);
    margin-top:4px;
}

.photo-upload input{
    position:absolute;
    width:1px;
    height:1px;
    opacity:0;
}

.current-product-image{
    margin:8px 0;
    width:120px;
    height:120px;
    border-radius:18px;
    overflow:hidden;
    background:#eee;
}

.current-product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.advanced-fields{
    border:1px solid var(--line);
    border-radius:16px;
    padding:12px 14px;
}

.advanced-fields summary{
    cursor:pointer;
    font-weight:900;
}

.visibility-toggle{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:13px;
    border-radius:15px;
    background:#f7f7f7;
}

.visibility-toggle input{
    margin-top:3px;
    transform:scale(1.25);
}

.visibility-toggle strong,
.visibility-toggle small{
    display:block;
}

.visibility-toggle small{
    color:var(--muted);
    margin-top:3px;
}

.publish-big{
    min-height:56px;
    font-size:17px;
}

.price-input{
    font-size:20px;
    font-weight:900;
}

@media(min-width:760px){
    .seller-hero{
        grid-template-columns:1.5fr 1fr;
        align-items:center;
        padding:42px;
    }

    .home-seller-strip{
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }

    .home-seller-strip a{
        min-width:190px;
    }
}

@media(max-width:600px){
    .top-actions{
        gap:7px;
        font-size:12px;
    }

    .top-actions a{
        white-space:nowrap;
    }

    .merchant-page-head{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* YESGO V4 · Multimedia */
.media-manager{
    border:1px solid var(--line);
    border-radius:18px;
    padding:14px;
    background:#fcfcfc;
}
.media-title-row strong,.media-title-row small{display:block}
.media-title-row small{color:var(--muted);margin-top:3px}
.media-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
    margin:12px 0;
}
.media-thumb{
    border:1px solid var(--line);
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    padding-bottom:9px;
}
.media-thumb img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    display:block;
    margin-bottom:8px;
}
.primary-radio,.delete-media{
    display:flex;
    gap:6px;
    align-items:center;
    padding:3px 9px;
    font-size:12px;
}
.existing-video video{
    width:100%;
    max-height:300px;
    background:#000;
    border-radius:14px;
    margin:10px 0 6px;
}
.product-detail{
    display:grid;
    gap:18px;
}
.product-gallery,.product-info-panel{
    background:#fff;
    border:1px solid var(--line);
    border-radius:24px;
    padding:16px;
}
.product-main-media{
    background:#f0f0f0;
    border-radius:18px;
    overflow:hidden;
}
.product-main-media img{
    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;
    display:block;
}
.product-no-image{
    min-height:300px;
    display:grid;
    place-items:center;
    font-size:70px;
}
.product-thumbs{
    display:flex;
    gap:8px;
    overflow:auto;
    margin-top:10px;
}
.thumb-btn{
    min-width:72px;
    width:72px;
    height:72px;
    padding:0;
    overflow:hidden;
    border:2px solid var(--line);
    border-radius:13px;
    background:#fff;
}
.thumb-btn:focus,.thumb-btn:hover{border-color:var(--primary)}
.thumb-btn img{width:100%;height:100%;object-fit:cover}
.product-video-block{
    margin-top:16px;
}
.product-video-block strong{display:block;margin-bottom:8px}
.product-video-block video{
    width:100%;
    max-height:480px;
    border-radius:16px;
    background:#000;
}
.product-info-panel h1{
    font-size:clamp(28px,7vw,44px);
    letter-spacing:-1.4px;
    line-height:1.02;
    margin:8px 0 16px;
}
.product-detail-price{
    font-size:34px;
    font-weight:950;
    margin-bottom:8px;
}
.product-description{
    line-height:1.55;
    color:#444;
    margin:18px 0;
}
@media(min-width:760px){
    .media-grid{grid-template-columns:repeat(4,1fr)}
    .product-detail{
        grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
        align-items:start;
    }
    .product-info-panel{position:sticky;top:82px}
}


/* ======================================================
   YESGO V5 · Moderación de productos
   ====================================================== */

.moderation-filters{
    margin-bottom:14px;
}

.moderation-list{
    display:grid;
    gap:14px;
}

.moderation-card{
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    gap:14px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:22px;
    padding:14px;
}

.moderation-image{
    width:110px;
    height:110px;
    border-radius:17px;
    overflow:hidden;
    background:#eee;
    display:grid;
    place-items:center;
}

.moderation-image img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.moderation-image .placeholder{
    font-size:38px;
}

.moderation-body{
    min-width:0;
}

.moderation-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:flex-start;
}

.moderation-head h3{
    margin:3px 0 0;
    font-size:20px;
}

.moderation-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:10px 0;
}

.moderation-meta span{
    background:#f4f4f4;
    border-radius:999px;
    padding:6px 9px;
    font-size:12px;
    font-weight:800;
}

.moderation-description{
    color:#444;
    line-height:1.45;
}

.moderation-pending{
    background:#fff0dc!important;
    color:#a84d00!important;
}

.moderation-approved{
    background:#def7e8!important;
    color:#0d7040!important;
}

.moderation-rejected{
    background:#ffe2e0!important;
    color:#9f241d!important;
}

.moderation-paused{
    background:#eee!important;
    color:#555!important;
}

.reject-box{
    margin-top:10px;
    padding:11px 13px;
    border-radius:13px;
    background:#fff0ef;
    color:#8a211b;
}

.moderation-media{
    margin-top:12px;
    border:1px solid var(--line);
    border-radius:14px;
    padding:10px 12px;
}

.moderation-media summary{
    cursor:pointer;
    font-weight:900;
}

.moderation-media-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:10px;
}

.moderation-media-grid img,
.moderation-media-grid video{
    width:100%;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:12px;
    background:#000;
}

.moderation-actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    align-items:center;
    margin-top:13px;
}

.reject-form{
    display:flex;
    gap:7px;
    flex:1 1 360px;
}

.reject-form .input{
    min-width:180px;
}

.approve-btn{
    background:#128a4a;
}

.moderation-seller-status{
    padding:13px 15px;
    border-radius:15px;
    margin-bottom:16px;
    line-height:1.4;
}

.moderation-seller-status.pending{
    background:#fff4df;
    color:#754600;
}

.moderation-seller-status.approved{
    background:#e3f8eb;
    color:#0d7040;
}

.moderation-seller-status.rejected{
    background:#ffe5e2;
    color:#8f251e;
}

.store-admin-form{
    min-width:250px;
    display:grid;
    gap:8px;
}

.auto-approve-check{
    display:flex;
    gap:7px;
    align-items:flex-start;
}

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

@media(max-width:650px){
    .moderation-card{
        grid-template-columns:1fr;
    }

    .moderation-image{
        width:100%;
        height:auto;
        aspect-ratio:16/9;
    }

    .moderation-head{
        flex-direction:column;
    }

    .reject-form{
        flex-direction:column;
    }

    .moderation-actions form,
    .moderation-actions button{
        width:100%;
    }
}
