:root{
    --fpb-primary:#a0003f;
    --fpb-accent:#b0004a;
    --fpb-page-bg:#f7f8fb;
    --fpb-card-bg:#ffffff;
    --fpb-text:#1f2430;
    --fpb-border:#e6e9f2;
    --fpb-radius:18px;
}
.fpb-floating-edit-btn{
    position:fixed;
    right:24px;
    bottom:92px;
    z-index:1065;
    border:0;
    border-radius:999px;
    padding:13px 22px;
    color:#fff;
    background:linear-gradient(135deg,var(--fpb-primary),var(--fpb-accent));
    font-weight:900;
    box-shadow:0 18px 46px rgba(160,0,63,.28);
    cursor:pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}
.fpb-floating-edit-btn:hover{transform:translateY(-3px);box-shadow:0 24px 58px rgba(160,0,63,.36);}
.fpb-editor{
    position:fixed;
    top:0;
    right:0;
    width:min(520px,100vw);
    height:100vh;
    z-index:1070;
    display:flex;
    flex-direction:column;
    background:#fff;
    color:#263044;
    box-shadow:-28px 0 70px rgba(15,23,42,.18);
    transform:translateX(105%);
    transition:transform .28s ease;
    direction:rtl;
}
.fpb-editor.is-open{transform:none;}
.fpb-editor__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:22px 24px;
    background:linear-gradient(135deg,var(--fpb-primary),#7d0030);
    color:#fff;
}
.fpb-editor__title{margin:0 0 4px;font-size:21px;font-weight:900;letter-spacing:-.02em;color:#fff;}
.fpb-editor__subtitle{font-size:13px;font-weight:700;opacity:.9;color:#fff;}
.fpb-editor__close{
    width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.13);color:#fff;font-size:29px;line-height:1;cursor:pointer;
}
.fpb-editor__body{flex:1;overflow:auto;padding:18px 20px 110px;background:#fbfcff;}
.fpb-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:16px;position:sticky;top:0;background:#fbfcff;z-index:2;padding-bottom:10px;}
.fpb-tab{
    border:1px solid var(--fpb-border);
    background:#fff;
    color:#263044;
    border-radius:999px;
    padding:9px 15px;
    font-weight:900;
    cursor:pointer;
    box-shadow:0 7px 18px rgba(15,23,42,.045);
}
.fpb-tab.active{background:var(--fpb-primary);border-color:var(--fpb-primary);color:#fff;box-shadow:0 12px 28px rgba(160,0,63,.22);}
.fpb-pane{display:none;animation:fpbFade .18s ease;}
.fpb-pane.active{display:block;}
@keyframes fpbFade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}
.fpb-info,.fpb-help{
    font-size:12px;
    line-height:1.7;
    color:#737c90;
}
.fpb-info{
    padding:12px 14px;
    border:1px solid #e7ebf5;
    background:#fff;
    border-radius:16px;
    margin-bottom:13px;
    font-weight:700;
}
.fpb-field{margin-bottom:14px;}
.fpb-label{display:block;font-size:13px;font-weight:900;color:#344055;margin-bottom:7px;}
.fpb-input,.fpb-textarea{
    width:100%;
    border:1px solid #cfd6e4;
    border-radius:15px;
    background:#fff;
    color:#1f2937;
    padding:12px 14px;
    outline:0;
    font-weight:700;
    transition:border-color .18s ease,box-shadow .18s ease;
}
.fpb-textarea{min-height:112px;resize:vertical;line-height:1.65;}
.fpb-input:focus,.fpb-textarea:focus{border-color:var(--fpb-primary);box-shadow:0 0 0 4px rgba(160,0,63,.08);}
.fpb-color-row{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center;}
.fpb-color-row input[type=color]{width:58px;height:48px;border:1px solid #cfd6e4;border-radius:15px;background:#fff;padding:5px;cursor:pointer;}
.fpb-switch-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:13px 15px;
    background:#fff;
    border:1px solid #e6eaf3;
    border-radius:16px;
    margin-bottom:11px;
    color:#2f394e;
    font-weight:900;
    box-shadow:0 8px 22px rgba(15,23,42,.035);
}
.fpb-switch{appearance:none;width:55px;height:31px;border-radius:999px;background:#d7dce8;position:relative;cursor:pointer;transition:background .2s ease;flex:0 0 auto;}
.fpb-switch:before{content:"";position:absolute;top:4px;left:4px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.24);transition:transform .2s ease;}
.fpb-switch:checked{background:var(--fpb-primary);}
.fpb-switch:checked:before{transform:translateX(24px);}
.fpb-section-title{margin:18px 0 12px;padding-bottom:8px;border-bottom:1px dashed #dfe4ef;color:#1f2937;font-size:14px;font-weight:1000;}
.fpb-actions{
    position:absolute;
    right:0;left:0;bottom:0;
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:12px;
    padding:16px 20px;
    background:linear-gradient(180deg,rgba(255,255,255,.86),#fff 35%);
    border-top:1px solid #e6eaf3;
    backdrop-filter:blur(12px);
}
.fpb-btn{
    border:0;
    border-radius:17px;
    min-height:52px;
    padding:0 18px;
    font-weight:1000;
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.fpb-btn:hover{transform:translateY(-2px);}
.fpb-btn:disabled{opacity:.65;cursor:not-allowed;transform:none;}
.fpb-btn-primary{background:linear-gradient(135deg,var(--fpb-primary),var(--fpb-accent));color:#fff;box-shadow:0 14px 34px rgba(160,0,63,.22);}
.fpb-btn-soft{background:#eef1f7;color:#1f2937;box-shadow:none;width:100%;margin-bottom:12px;}
.fpb-btn-danger{background:#fff0f3;color:#b0003d;width:100%;margin-top:8px;border:1px solid #ffd4df;}
.fpb-upload-box{display:grid;grid-template-columns:0 1fr;gap:0;align-items:center;}
.fpb-upload-box input[type=file]{width:0;height:0;opacity:0;overflow:hidden;}
.fpb-upload-preview{
    min-height:78px;
    border:1px dashed #cfd6e4;
    border-radius:15px;
    background:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    margin-top:10px;
    color:#737c90;
    font-weight:800;
    text-align:center;
}
.fpb-upload-preview img{display:block;max-width:100%;max-height:120px;object-fit:contain;}
.fpb-toast{
    position:fixed;
    left:50%;
    bottom:30px;
    transform:translate(-50%,18px);
    opacity:0;
    pointer-events:none;
    z-index:1080;
    padding:12px 20px;
    border-radius:999px;
    background:#162033;
    color:#fff;
    font-weight:900;
    box-shadow:0 16px 38px rgba(15,23,42,.25);
    transition:opacity .2s ease, transform .2s ease;
}
.fpb-toast.is-visible{opacity:1;transform:translate(-50%,0);}
.fpb-toast-error{background:#b42318;}
body.fpb-live-editing [data-fpb-key]:not(.fpb-editor [data-fpb-key]){
    outline:2px dashed rgba(160,0,63,.42);
    outline-offset:4px;
    border-radius:8px;
    cursor:text;
    transition:outline-color .18s ease, background .18s ease;
}
body.fpb-live-editing [data-fpb-key]:not(.fpb-editor [data-fpb-key]):hover{background:rgba(160,0,63,.055);outline-color:var(--fpb-primary);}
.fpb-empty-img{display:inline-flex;padding:10px 12px;color:#7a8497;font-size:12px;font-weight:800;text-align:center;}
.flagship-product-page{background:var(--fpb-page-bg,var(--fp-soft,#f7f8fb));color:var(--fpb-text,var(--fp-text,#1f2430));}
.flagship-product-page .fp-info-panel,
.flagship-product-page .fp-gallery-card,
.flagship-product-page .fp-side-card,
.flagship-product-page .fp-section-card,
.flagship-product-page .fp-product-description{background:var(--fpb-card-bg,var(--fp-card,#fff));border-color:var(--fpb-border,var(--fp-border,#edf0f5));border-radius:var(--fpb-radius);}
@media (max-width:575.98px){
    .fpb-editor{width:100vw;}
    .fpb-floating-edit-btn{right:14px;bottom:88px;padding:11px 16px;font-size:13px;}
    .fpb-editor__body{padding-left:14px;padding-right:14px;}
    .fpb-actions{grid-template-columns:1fr;}
    .fpb-color-row{grid-template-columns:52px minmax(0,1fr);}
}

/* FLAGSHIP 2026-06-25B: stronger SitePad-style live builder UX */
.fpb-editor{width:min(640px,100vw);max-width:100vw;}
.fpb-editor__header{padding:24px 28px;}
.fpb-editor__body{padding:20px 24px 124px;scrollbar-gutter:stable;}
.fpb-tabs{top:-1px;gap:10px;margin-left:-4px;margin-right:-4px;padding:0 4px 12px;box-shadow:0 10px 22px rgba(251,252,255,.92);}
.fpb-tab{min-height:40px;padding:9px 16px;white-space:nowrap;}
.fpb-pane.active{display:block;}
.fpb-field{background:#fff;border:1px solid #edf1f7;border-radius:18px;padding:12px 13px;box-shadow:0 9px 24px rgba(15,23,42,.035);}
.fpb-field .fpb-label{font-size:13.5px;color:#243047;}
.fpb-input,.fpb-textarea{border-radius:13px;font-weight:800;background:#fbfcff;}
.fpb-textarea{font-family:inherit;}
.fpb-upload-box{grid-template-columns:0 1fr;}
.fpb-upload-preview{min-height:112px;border-radius:16px;background:linear-gradient(135deg,#fff,#fbfcff);}
.fpb-upload-preview img{max-height:170px;border-radius:12px;box-shadow:0 10px 24px rgba(15,23,42,.08);}
.fpb-section-title{font-size:15px;margin-top:22px;color:#111827;}
.fpb-info{background:linear-gradient(135deg,#fff,#fff7fa);border-color:#f6dbe5;color:#394153;}
body.fpb-live-editing [data-fpb-key]:not(.fpb-editor [data-fpb-key]){outline-width:2px;outline-style:dashed;outline-color:rgba(160,0,63,.5);background:rgba(160,0,63,.035);}
body.fpb-live-editing [data-fpb-section]:not(.fpb-editor [data-fpb-section]){box-shadow:0 0 0 2px rgba(160,0,63,.08);}
.fpb-actions{padding:18px 24px;grid-template-columns:1.25fr .75fr;}
.fpb-actions .fpb-btn{min-height:56px;}
@media(max-width:575.98px){.fpb-editor__header{padding:20px 18px}.fpb-editor__body{padding:16px 14px 130px}.fpb-tabs{overflow-x:auto;flex-wrap:nowrap}.fpb-tab{flex:0 0 auto}.fpb-field{padding:10px}.fpb-actions{padding:14px;grid-template-columns:1fr}.fpb-upload-preview img{max-height:145px}}

/* Live Builder final polish: wider, clearer, better upload previews */
.fpb-editor{
    width:min(620px,100vw)!important;
}
.fpb-editor__body{
    padding:20px 22px 118px!important;
}
.fpb-tabs{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    scrollbar-width:thin;
    gap:8px!important;
    padding:2px 0 12px!important;
}
.fpb-tab{
    flex:0 0 auto;
    white-space:nowrap;
    padding:10px 16px!important;
}
.fpb-pane{
    border:1px solid #e8edf6;
    border-radius:20px;
    background:#fff;
    padding:16px;
    box-shadow:0 12px 30px rgba(15,23,42,.045);
}
.fpb-pane.active{display:block!important;}
.fpb-info{
    background:linear-gradient(135deg,#fff7fb,#fff)!important;
    border-color:#f5d3df!important;
    color:#5c1831!important;
}
.fpb-field{
    margin-bottom:16px!important;
}
.fpb-label{
    font-size:13px!important;
    margin-bottom:8px!important;
}
.fpb-input,.fpb-textarea{
    min-height:48px!important;
    border-radius:14px!important;
    font-size:14px!important;
}
.fpb-textarea{
    min-height:128px!important;
}
.fpb-upload-box{
    display:block!important;
}
.fpb-upload-box .fpb-btn{
    width:100%!important;
}
.fpb-upload-preview{
    min-height:110px!important;
    padding:10px!important;
    border-radius:18px!important;
    background:#f8fafc!important;
}
.fpb-upload-preview img{
    width:100%!important;
    height:120px!important;
    object-fit:contain!important;
    border-radius:14px!important;
    background:#fff!important;
}
.fpb-actions{
    grid-template-columns:1.2fr .8fr!important;
}
.fpb-btn-soft,
.fpb-soft-close{
    background:#eef1f7!important;
    color:#111827!important;
}
body.fpb-live-editing [data-fpb-key]:not(.fpb-editor [data-fpb-key]){
    outline:2px dashed rgba(160,0,63,.55)!important;
    outline-offset:5px!important;
    background:rgba(160,0,63,.045)!important;
}
@media(max-width:575.98px){
    .fpb-editor{width:100vw!important;}
    .fpb-editor__header{padding:18px 16px!important;}
    .fpb-editor__body{padding:14px 12px 150px!important;}
    .fpb-pane{padding:13px!important;border-radius:16px!important;}
    .fpb-actions{grid-template-columns:1fr!important;padding:12px!important;}
}

/* FLAGSHIP BUILDER UX PATCH 2026-06-25C */
.fpb-desc-tools .fpb-info{margin-bottom:12px;}
.fpb-toolbar{display:flex;flex-wrap:wrap;gap:8px;}
.fpb-toolbar button{border:1px solid #dfe5ef;background:#fff;color:#1f2937;border-radius:12px;padding:9px 12px;font-weight:900;cursor:pointer;transition:.18s ease;}
.fpb-toolbar button:hover{border-color:var(--fpb-primary);color:var(--fpb-primary);transform:translateY(-1px);}
.fpb-media-manager{display:grid;gap:10px;}
.fpb-media-empty{padding:18px;border:1px dashed #cfd7e6;border-radius:14px;text-align:center;color:#667085;font-weight:800;background:#fbfcff;}
.fpb-media-item{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;padding:10px;border:1px solid #edf1f7;border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.035);}
.fpb-media-thumb{width:72px;height:72px;border-radius:13px;background:#f7f8fb;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #eef2f7;}
.fpb-media-thumb img{width:100%;height:100%;object-fit:contain;display:block;}
.fpb-media-meta{min-width:0;}
.fpb-media-meta strong{display:block;font-size:13px;font-weight:1000;color:#152033;margin-bottom:3px;}
.fpb-media-meta small{display:block;color:#7b8495;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:left;}
.fpb-media-actions-inline{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;}
.fpb-media-actions-inline button{border:0;background:#eef1f7;color:#1f2937;border-radius:10px;padding:7px 10px;font-size:12px;font-weight:900;cursor:pointer;}
.fpb-media-actions-inline button:hover{background:#e3e7f0;}
.fpb-media-actions-inline button.danger{background:#fff0f3;color:#ad003d;}
body.fpb-live-editing [data-fpb-html="1"]{outline:2px dashed rgba(160,0,63,.5)!important;outline-offset:8px;background:rgba(160,0,63,.025);border-radius:14px;min-height:80px;}
body.fpb-live-editing .fpb-locked-price{outline:none!important;background:transparent!important;cursor:not-allowed;}
@media(max-width:560px){.fpb-media-item{grid-template-columns:60px minmax(0,1fr)}.fpb-media-thumb{width:60px;height:60px}.fpb-toolbar button{padding:8px 10px;font-size:12px}}

/* FLAGSHIP LIVE BUILDER 2026-06-25E: attribute colors + cleaner architect panel */
.fpb-editor{width:min(680px,100vw)!important;}
.fpb-editor__title{font-size:22px!important;}
.fpb-editor__subtitle{font-size:13px!important;}
.fpb-tabs{padding-bottom:14px!important;}
.fpb-tab{box-shadow:0 8px 20px rgba(15,23,42,.05)!important;}
.fpb-pane{padding:18px!important;}
.fpb-attr-card{
    border:1px solid #e8edf6;
    border-radius:18px;
    padding:14px;
    margin-bottom:14px;
    background:linear-gradient(180deg,#fff,#fbfcff);
    box-shadow:0 10px 24px rgba(15,23,42,.035);
}
.fpb-attr-switch{
    margin:0 0 12px!important;
    box-shadow:none!important;
    border-color:#eef2f7!important;
}
.fpb-attr-values{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(155px,1fr));
    gap:10px;
}
.fpb-attr-value{
    display:grid;
    grid-template-columns:minmax(0,1fr) 48px;
    gap:8px;
    align-items:center;
    padding:9px;
    border:1px solid #edf1f7;
    border-radius:14px;
    background:#fff;
}
.fpb-attr-chip{
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
    color:#263044;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.fpb-attr-chip i{
    flex:0 0 auto;
    width:23px;
    height:23px;
    border-radius:50%;
    display:inline-block;
    background:var(--attr-color,#f5f5f5);
    border:1px solid rgba(15,23,42,.14);
    box-shadow:inset 0 0 0 3px rgba(255,255,255,.65);
}
.fpb-attr-value input[type=color]{
    width:48px;
    height:38px;
    padding:4px;
    border:1px solid #d7deea;
    border-radius:12px;
    background:#fff;
    cursor:pointer;
}
body.fpb-live-editing .fp-attribute-choice[data-fpb-attribute-option]{
    outline:2px dashed rgba(160,0,63,.16)!important;
    outline-offset:3px;
}
@media(max-width:575.98px){
    .fpb-editor{width:100vw!important;}
    .fpb-attr-values{grid-template-columns:1fr;}
    .fpb-pane{padding:13px!important;}
}

/* FLAGSHIP LIVE BUILDER 2026-06-25F: clearer global attribute color controls */
.fpb-attr-card{border-color:#e3e9f3!important;background:#fff!important;}
.fpb-attr-switch span:after{content:' — يطبق على كل المنتجات';display:block;color:#8a93a6;font-size:11px;font-weight:800;margin-top:2px;}
.fpb-attr-chip i{box-shadow:inset 0 0 0 3px rgba(255,255,255,.72),0 4px 12px rgba(15,23,42,.08)!important;}
.fpb-attr-value{grid-template-columns:minmax(0,1fr) 54px!important;}
.fpb-attr-value input[type=color]{width:54px!important;height:42px!important;}
.fpb-info strong{font-weight:1000;color:#111827;}

/* FLAGSHIP LIVE BUILDER 2026-06-25H: clearer global attribute/color controls */
.fpb-attr-card{border:1px solid #e3e9f4!important;border-radius:18px!important;background:#fff!important;padding:14px!important;margin:12px 0!important;box-shadow:0 8px 24px rgba(15,23,42,.04)!important;}
.fpb-attr-switch{border:0!important;background:#f8fafc!important;border-radius:14px!important;margin:0 0 12px!important;padding:12px 14px!important;}
.fpb-attr-switch span{font-weight:1000!important;color:#111827!important;}
.fpb-attr-values{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
.fpb-attr-value{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:10px!important;align-items:center!important;border:1px solid #e8edf6!important;border-radius:14px!important;padding:9px 10px!important;background:#fff!important;}
.fpb-attr-chip{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;font-weight:900!important;color:#1f2937!important;font-size:12.5px!important;line-height:1.2!important;}
.fpb-attr-chip i{width:22px!important;height:22px!important;border-radius:999px!important;display:inline-block!important;background:var(--attr-color,#f5f5f5)!important;border:1px solid rgba(15,23,42,.16)!important;box-shadow:inset 0 0 0 3px rgba(255,255,255,.65)!important;flex:0 0 22px!important;}
.fpb-attr-value input[type=color]{width:44px!important;height:38px!important;border:0!important;background:transparent!important;padding:0!important;cursor:pointer!important;}
.fpb-info{border:1px solid #e8edf6!important;border-radius:14px!important;background:#f8fafc!important;color:#4b5563!important;padding:12px 14px!important;font-weight:800!important;line-height:1.55!important;}
@media(max-width:640px){.fpb-attr-values{grid-template-columns:1fr!important;}}


/* FLAGSHIP LIVE BUILDER v7: safer attribute editor */
.fpb-attr-values{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.fpb-attr-value{display:grid!important;grid-template-columns:minmax(110px,.7fr) minmax(160px,1fr) 46px!important;gap:8px!important;align-items:center!important;border:1px solid #e8edf6!important;border-radius:14px!important;padding:9px 10px!important;background:#fff!important;}
.fpb-attr-chip{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;font-weight:900!important;color:#1f2937!important;font-size:12.5px!important;line-height:1.2!important;}
.fpb-attr-chip b{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.fpb-attr-name-input{height:38px!important;font-size:12.5px!important;padding-inline:10px!important;}
.fpb-attr-card .fpb-field{margin-bottom:10px!important;}
.fpb-attr-value input[type=color]{width:44px!important;height:38px!important;border:0!important;background:transparent!important;padding:0!important;cursor:pointer!important;}
@media(max-width:640px){.fpb-attr-value{grid-template-columns:1fr 44px!important}.fpb-attr-chip{grid-column:1/-1!important}.fpb-attr-name-input{min-width:0!important;}}


/* FLAGSHIP LIVE BUILDER v7.1: global attribute editor architecture */
.fpb-editor{width:min(760px,100vw)!important;}
.fpb-tabs{gap:9px!important;}
.fpb-attr-card{border:1px solid #e4ebf5!important;border-radius:20px!important;background:linear-gradient(180deg,#fff,#fbfcff)!important;padding:16px!important;margin:14px 0!important;box-shadow:0 10px 26px rgba(15,23,42,.045)!important;}
.fpb-attr-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;background:#f7f9fc!important;border:1px solid #edf2f8!important;border-radius:16px!important;padding:13px 15px!important;margin:0 0 12px!important;}
.fpb-attr-title-field{background:#fff!important;border:1px solid #edf2f8!important;border-radius:16px!important;padding:12px!important;}
.fpb-attr-values{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:12px!important;}
.fpb-attr-value{display:grid!important;grid-template-columns:minmax(140px,.62fr) minmax(170px,1fr) 52px!important;gap:10px!important;align-items:center!important;border:1px solid #e8eef7!important;border-radius:16px!important;padding:10px!important;background:#fff!important;}
.fpb-attr-preview{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;background:#f8fafc!important;border:1px solid #eef3f8!important;border-radius:13px!important;padding:8px 10px!important;}
.fpb-attr-preview i{width:25px!important;height:25px!important;border-radius:999px!important;background:var(--attr-color,#f5f5f5)!important;border:1px solid rgba(15,23,42,.14)!important;box-shadow:inset 0 0 0 3px rgba(255,255,255,.70)!important;flex:0 0 25px!important;}
.fpb-attr-preview span{font-size:12.5px!important;font-weight:1000!important;color:#111827!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.fpb-attr-preview small{display:none!important;}
.fpb-attr-value .fpb-mini-label{display:none!important;}
.fpb-attr-name-input{height:40px!important;min-height:40px!important;font-size:13px!important;border-radius:12px!important;padding-inline:11px!important;}
.fpb-attr-value input[type=color]{width:52px!important;height:40px!important;border:1px solid #d9e1ee!important;border-radius:12px!important;background:#fff!important;padding:4px!important;cursor:pointer!important;}
body.fpb-live-editing .flagship-product-page .fp-attribute-choice[data-fpb-attribute-option]{outline:none!important;background:transparent!important;box-shadow:none!important;}
@media(max-width:640px){.fpb-editor{width:100vw!important}.fpb-attr-value{grid-template-columns:1fr 52px!important}.fpb-attr-preview{grid-column:1/-1!important}}

/* FLAGSHIP LIVE BUILDER PATCH 2026-06-25J: cleaner product-page editor and global attribute editor */
.fpb-editor{width:min(720px,100vw)!important;}
.fpb-tabs{gap:8px!important;overflow:auto!important;padding-bottom:6px!important;}
.fpb-tab{white-space:nowrap!important;}
.fpb-info{border:1px solid #e4eaf4;background:#fbfcff;border-radius:14px;padding:12px 14px;margin-bottom:12px;color:#344054;font-weight:800;line-height:1.5;}
.fpb-attr-card{border:1px solid #e2e8f0;background:#fff;border-radius:18px;padding:14px;margin:0 0 14px;box-shadow:0 8px 24px rgba(15,23,42,.04);}
.fpb-attr-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.fpb-attr-head h4{margin:0;font-size:14px;font-weight:1000;color:#101828;}
.fpb-attr-card>label{display:block;font-size:12px;font-weight:1000;color:#475467;margin:10px 0 5px;}
.fpb-attr-card input[type=text],.fpb-attr-card input[type=search]{height:44px;border:1px solid #d6deeb;border-radius:12px;padding:0 12px;font-weight:850;color:#101828;background:#fff;}
.fpb-attr-values{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;gap:12px!important;margin-top:12px;}
.fpb-attr-value{display:grid!important;grid-template-columns:minmax(0,1fr) 56px!important;gap:8px!important;align-items:end!important;border:1px solid #e6ebf3;border-radius:16px;background:#fbfcff;padding:12px;}
.fpb-attr-preview{grid-column:1/-1;display:flex;align-items:center;gap:10px;font-weight:950;color:#101828;min-width:0;}
.fpb-attr-preview i{width:34px;height:34px;border-radius:999px;background:var(--attr-color,#f5f5f5);border:1px solid rgba(15,23,42,.16);box-shadow:inset 0 0 0 4px rgba(255,255,255,.72),0 4px 12px rgba(15,23,42,.06);flex:0 0 34px;}
.fpb-attr-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fpb-attr-preview small{font-size:10px;color:#8a93a6;direction:ltr;font-weight:800;}
.fpb-mini-label{display:block;font-size:11px;font-weight:1000;color:#667085;margin:0 0 5px;}
.fpb-attr-value input[type=color]{width:56px;height:44px;border:1px solid #d6deeb;border-radius:12px;padding:4px;background:#fff;cursor:pointer;}
body.fpb-live-editing .flagship-product-page [data-fpb-key]:not(.fpb-editor [data-fpb-key]){outline:0!important;background:transparent!important;}
body.fpb-live-editing .flagship-product-page [data-fpb-key]:not(.fpb-editor [data-fpb-key]):hover{outline:2px solid rgba(160,0,63,.18)!important;outline-offset:3px!important;background:rgba(160,0,63,.025)!important;border-radius:8px;}
body.fpb-live-editing .flagship-product-page .fp-attribute-choice[data-fpb-attribute-option],
body.fpb-live-editing .flagship-product-page .fp-choice-pill,
body.fpb-live-editing .flagship-product-page .fp-choice-text,
body.fpb-live-editing .flagship-product-page .fp-option-label{outline:none!important;outline-offset:0!important;background:transparent!important;box-shadow:none!important;}
body.fpb-live-editing .flagship-product-page .fp-text-choice input:checked+.fp-choice-pill{box-shadow:0 0 0 1px var(--fp-primary,#a0003f),0 8px 18px rgba(160,0,63,.08)!important;background:#fff!important;}
body.fpb-live-editing .flagship-product-page .fp-color-choice input:checked+.fp-choice-pill{box-shadow:0 0 0 3px rgba(160,0,63,.14),0 8px 18px rgba(160,0,63,.10)!important;background:#fff!important;}

/* FLAGSHIP LIVE BUILDER v9: no-code visual spec/service editor */
.fpb-spec-editor{display:grid!important;gap:12px!important;margin:12px 0 18px!important;}
.fpb-spec-edit-card{border:1px solid #e5ebf5!important;border-radius:18px!important;background:linear-gradient(180deg,#fff,#fbfcff)!important;padding:13px!important;box-shadow:0 8px 22px rgba(15,23,42,.035)!important;}
.fpb-spec-edit-card .fpb-switch-row{margin:0 0 12px!important;border-radius:14px!important;background:#f8fafc!important;box-shadow:none!important;padding:10px 12px!important;}
.fpb-spec-edit-card .fpb-mini-label{display:block!important;margin:8px 0 6px!important;color:#475467!important;font-size:12px!important;font-weight:1000!important;}
.fpb-spec-edit-card .fpb-input{min-height:42px!important;height:42px!important;border-radius:12px!important;font-size:13px!important;background:#fff!important;}
.fpb-spec-visible span:after{content:' — يظهر/يختفي من الصفحة';display:block;font-size:10.5px;color:#8a93a6;font-weight:800;margin-top:2px;}
body.fpb-live-editing .flagship-product-page [data-fpb-spec-edit]{outline:0!important;background:transparent!important;cursor:text!important;}
body.fpb-live-editing .flagship-product-page [data-fpb-spec-edit]:hover,
body.fpb-live-editing .flagship-product-page [data-fpb-spec-edit]:focus{outline:2px solid rgba(160,0,63,.22)!important;outline-offset:4px!important;background:rgba(160,0,63,.03)!important;border-radius:8px!important;}
@media(max-width:575.98px){.fpb-spec-edit-card{padding:11px!important}.fpb-spec-edit-card .fpb-input{height:40px!important}}
