@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
.bj-app{--bj-blue:#2788d8;--bj-purple:#6254f5;--bj-ink:#202b3c;--bj-muted:#78869a;--bj-line:#e8edf4;--bj-soft:#f4f8ff;font-family:Vazirmatn,Tahoma,sans-serif;color:var(--bj-ink);max-width:1240px;margin:24px auto;padding:0 12px 125px;direction:rtl}
.bj-app *{box-sizing:border-box}
.bj-hero{background:linear-gradient(115deg,#eaf6ff 0%,#f5f2ff 100%);border:1px solid #e5effb;border-radius:24px;padding:25px;display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:18px;position:relative;overflow:hidden}
.bj-hero:after{content:"";position:absolute;width:210px;height:210px;border-radius:50%;background:#fff7;left:-75px;top:-105px;pointer-events:none}
.bj-hero-copy{position:relative;z-index:1}.bj-eyebrow{display:inline-block;color:#6254f5;font-size:11px;font-weight:800;letter-spacing:.1px;margin-bottom:7px}
.bj-hero h2{font-size:25px;margin:0 0 8px;font-weight:800;color:#202b3c}.bj-hero p{margin:0;color:var(--bj-muted);font-size:13px;line-height:1.9}
.bj-budget{background:#fff;border:1px solid #e7eaf3;box-shadow:0 8px 25px #354a6b0c;border-radius:18px;padding:15px;min-width:280px;position:relative;z-index:1}
.bj-budget label{font-size:12px;color:var(--bj-muted);display:block;margin-bottom:8px}.bj-budget input{width:100%;border:1px solid var(--bj-line);border-radius:11px;padding:11px;font:inherit;outline:none;color:var(--bj-ink)}.bj-budget input:focus,.bj-filters input:focus,.bj-filters select:focus{border-color:#958cff;box-shadow:0 0 0 3px #6254f51a}
.bj-presets{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.bj-presets button,.bj-chip{border:1px solid #dce6f2;background:#fff;border-radius:30px;padding:6px 12px;font:inherit;font-size:11px;cursor:pointer;color:#526174}.bj-presets button.active{background:#6254f5;color:#fff;border-color:#6254f5}
.bj-primary{background:linear-gradient(100deg,#6254f5,#438fe9);border:0;border-radius:12px;color:#fff;padding:12px 20px;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 6px 16px #6254f52b;transition:transform .18s,box-shadow .18s,opacity .18s}.bj-primary:hover{transform:translateY(-1px);box-shadow:0 9px 20px #6254f538}.bj-primary:disabled{opacity:.48;cursor:not-allowed;box-shadow:none;transform:none}.bj-auto-build{width:100%;margin-top:11px;font-size:12px}
.bj-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:24px}.bj-stat{background:#fff;border:1px solid var(--bj-line);border-radius:16px;padding:13px 16px;box-shadow:0 3px 14px #1e315008}.bj-stat span{display:block;font-size:11px;color:var(--bj-muted);margin-bottom:5px}.bj-stat strong{font-size:17px;font-weight:800}
.bj-group{margin:27px 0}.bj-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.bj-group-heading h3{display:flex;align-items:center;gap:10px;margin:0;font-size:18px;font-weight:800}.bj-group-heading h3:before{content:"";width:5px;height:23px;border-radius:8px;background:linear-gradient(#2788d8,#6254f5)}.bj-group-heading>span{font-size:11px;color:var(--bj-muted);background:#f4f7fb;padding:5px 10px;border-radius:20px}
.bj-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bj-category-tile{position:relative;min-width:0;aspect-ratio:1/1;background:#fff;border:1px solid #e8edf4;border-radius:19px;overflow:hidden;box-shadow:0 5px 18px #20385808;transition:border-color .2s,box-shadow .2s,transform .2s}
.bj-category-tile:hover{border-color:#c8c2ff;box-shadow:0 10px 25px #6254f51a;transform:translateY(-2px)}
.bj-tile-main{width:100%;height:100%;border:0;background:transparent;padding:15px 13px 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;font:inherit;color:inherit;cursor:pointer}
.bj-tile-placeholder{width:76px;height:76px;display:flex;align-items:center;justify-content:center;color:#aeb8c7;background:linear-gradient(145deg,#f5f7fa,#edf1f6);border:1px solid #e8edf2;border-radius:23px;margin-bottom:4px}.bj-tile-placeholder svg{width:43px;height:43px}
.bj-tile-name{font-size:13px;font-weight:800;line-height:1.65;max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.bj-tile-empty-caption{font-size:10px;color:#98a3b3}.bj-tile-plus{position:absolute;bottom:36px;left:50%;transform:translateX(-50%);width:25px;height:25px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f0efff;color:#6254f5;font-size:19px;line-height:1}
.bj-tile-image{width:100%;height:55%;min-height:88px;display:flex;align-items:center;justify-content:center;padding:4px}.bj-tile-image img{width:100%;height:100%;object-fit:contain}.bj-category-tile.has-product .bj-tile-main{justify-content:flex-start;padding-top:12px;gap:4px}.bj-category-tile.has-product .bj-tile-name{font-size:11px;line-height:1.5}.bj-tile-variation{font-size:9px;color:#6b62d9;line-height:1.5;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bj-tile-price{font-size:12px;color:#202b3c;font-weight:800}.bj-tile-change{font-size:9px;color:#7b8798}.bj-tile-remove{position:absolute;top:8px;left:8px;width:25px;height:25px;border:0;border-radius:50%;background:#fff;color:#8792a2;box-shadow:0 2px 9px #1e31501a;font-size:18px;line-height:1;cursor:pointer;z-index:2}.bj-tile-remove:hover{background:#fff0f0;color:#d34b58}.bj-tile-stock{position:absolute;bottom:7px;right:0;left:0;text-align:center;font-size:9px;color:#a1aaba;pointer-events:none}
.bj-footer{position:fixed;left:50%;transform:translateX(-50%);bottom:13px;z-index:9998;background:#fff;border:1px solid #e3e8f1;box-shadow:0 10px 38px #1e31502b;border-radius:18px;padding:11px 15px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0;width:min(1216px,calc(100% - 28px));direction:rtl}.bj-footer-total small{color:var(--bj-muted);display:block;font-size:10px;margin-bottom:2px}.bj-footer-total strong{font-size:17px;font-weight:800}.bj-cart-button{min-width:255px;padding:12px 19px}.bj-cart-button span{margin-right:8px}.bj-cart-button.is-loading{opacity:.8;cursor:wait}
.bj-empty{padding:28px;text-align:center;color:var(--bj-muted);background:#f8fbff;border-radius:15px}.bj-loading{min-height:230px;padding:35px 20px;text-align:center;color:var(--bj-muted);background:linear-gradient(135deg,#f8fbff,#f8f6ff);border:1px solid #edf0f8;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.bj-loading strong{font-size:16px;color:#303b50}.bj-loading small{font-size:11px;color:#8b96a8}.bj-spinner,.bj-button-spinner{width:38px;height:38px;border:3px solid #e5e3ff;border-top-color:#6254f5;border-right-color:#438fe9;border-radius:50%;animation:bj-spin .8s linear infinite}.bj-button-spinner{display:inline-block;vertical-align:middle;width:17px;height:17px;border-width:2px;border-color:#ffffff66;border-top-color:#fff;margin-left:7px}@keyframes bj-spin{to{transform:rotate(360deg)}}
.bj-modal{position:fixed;inset:0;background:#101827a6;backdrop-filter:blur(4px);z-index:100000;display:flex;align-items:center;justify-content:center;padding:16px}.bj-modal-box{background:#fff;border-radius:22px;width:min(950px,100%);max-height:88vh;overflow:auto;padding:20px;box-shadow:0 20px 70px #07152b40}.bj-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.bj-modal-head h3{font-size:19px;margin:0;font-weight:800}.bj-modal-close{width:36px;height:36px;border:0;border-radius:11px;background:#f1f3f8;color:#586477;font-size:24px;line-height:1;cursor:pointer}.bj-filters{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:9px;margin-bottom:15px}.bj-filters input,.bj-filters select{min-width:0;width:100%;border:1px solid var(--bj-line);border-radius:11px;padding:10px;font:inherit;background:#fff;color:var(--bj-ink);outline:none}.bj-modal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bj-product{border:1px solid #edf0f5;border-radius:15px;padding:10px;min-width:0;position:relative;background:#fff;transition:box-shadow .2s,border-color .2s}.bj-product:hover{border-color:#c9c3ff;box-shadow:0 7px 20px #6254f514}.bj-product img{width:100%;height:130px;object-fit:contain;background:#f7f9fc;border-radius:11px}.bj-product h4{font-size:12px;line-height:1.8;margin:8px 0 5px;min-height:42px}.bj-product h4 a{color:inherit;text-decoration:none}.bj-brand{font-size:10px;color:var(--bj-muted);min-height:16px}.bj-price{font-weight:800;color:#202b3c;font-size:13px;margin:7px 0}.bj-variation-label{font-size:10px;line-height:1.8;color:#6254c9;background:#f5f3ff;border-radius:8px;padding:5px 7px;margin:5px 0;min-height:29px}.bj-variation-label span{font-weight:800}.bj-choose{width:100%;padding:9px 8px;font-size:11px}
.bj-auto-note{margin:10px 0 18px;padding:12px 15px;background:#eff8ff;border:1px solid #d7ebff;color:#286b9e;border-radius:12px;font-size:12px;line-height:1.9}
@media(max-width:900px){.bj-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bj-modal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.bj-app{padding:0 7px 120px}.bj-hero{display:block;padding:18px}.bj-hero h2{font-size:21px}.bj-budget{margin-top:16px;min-width:0}.bj-summary{gap:6px}.bj-stat{padding:10px}.bj-stat strong{font-size:12px}.bj-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.bj-tile-main{padding:12px 9px 26px}.bj-tile-placeholder{width:65px;height:65px}.bj-tile-image{height:50%;min-height:75px}.bj-category-tile.has-product .bj-tile-name{font-size:10px}.bj-tile-price{font-size:11px}.bj-footer{bottom:8px;width:calc(100% - 14px);padding:9px 10px;gap:8px;border-radius:15px}.bj-footer-total strong{font-size:13px}.bj-footer-total small{font-size:9px}.bj-cart-button{min-width:0;flex:1;padding:11px 8px;font-size:11px}.bj-filters{grid-template-columns:1fr 1fr}.bj-modal{padding:8px}.bj-modal-box{padding:13px;border-radius:17px;max-height:92vh}.bj-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bj-product{padding:8px}.bj-product img{height:105px}.bj-product h4{font-size:11px}}

/* v1.1.5: richer budget header, pack tiers, category icons and duplicate-category picker */
.bj-hero{display:block;padding:22px 24px 24px}
.bj-hero-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;position:relative;z-index:2}
.bj-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.bj-outline-action,.bj-clear-action{border:1px solid #dce5f2;background:#ffffffd9;color:#43536a;border-radius:11px;padding:8px 12px;font:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:.2s}
.bj-outline-action{color:#554be0;border-color:#d9d5ff;background:#fff}
.bj-outline-action:hover{background:#f3f1ff;border-color:#bcb5ff}
.bj-clear-action{color:#b64b5a;border-color:#f0d9de;background:#fff}
.bj-clear-action:hover{background:#fff2f3;border-color:#e9b9c2}
.bj-hero-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);align-items:center;gap:22px}
.bj-hero-copy{min-width:0}
.bj-pack-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:18px}
.bj-pack-type{min-width:0;border:1px solid #e4e8f2;background:#fff;border-radius:14px;padding:11px 9px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:right;font:inherit;cursor:pointer;transition:transform .18s,box-shadow .18s,border-color .18s}
.bj-pack-type:hover{transform:translateY(-2px);box-shadow:0 8px 20px #273c5c12}
.bj-pack-type>span{width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:14px;margin-bottom:2px}
.bj-pack-type strong{font-size:11px;color:#27364b;line-height:1.6}
.bj-pack-type small{font-size:9px;color:#8792a3;line-height:1.6}
.bj-pack-type.economic{border-color:#d9eee4}.bj-pack-type.economic>span{background:#eaf8f0;color:#24915c}
.bj-pack-type.special{border-color:#e1defb}.bj-pack-type.special>span{background:#f0eeff;color:#6756db}
.bj-pack-type.luxury{border-color:#f1e2c8}.bj-pack-type.luxury>span{background:#fff5e5;color:#b77b20}
.bj-budget{min-width:0;width:100%;padding:18px;border-radius:19px;box-shadow:0 10px 28px #354a6b12}
.bj-budget label{font-size:12px;font-weight:800;color:#46556b}
.bj-budget-input-wrap{position:relative}
.bj-budget-input-wrap input{width:100%;padding:13px 14px 13px 58px;border:1px solid #dfe6f1;border-radius:13px;background:#fbfcff;font:inherit;font-size:19px;font-weight:800;direction:ltr;text-align:right;color:#29374b;letter-spacing:.2px}
.bj-budget-input-wrap input:focus{border-color:#9289f7;box-shadow:0 0 0 4px #6254f515;outline:0;background:#fff}
.bj-budget-input-wrap>span{position:absolute;left:12px;top:50%;transform:translateY(-50%);font-size:10px;color:#7c8799;font-weight:700;pointer-events:none}
.bj-presets{gap:6px;margin-top:10px}
.bj-presets button{flex:1;min-width:0;padding:7px 6px;border-radius:9px;font-size:9px;line-height:1.6;white-space:normal}
.bj-summary{margin-top:16px}
.bj-category-emoji{font-size:38px;line-height:1;filter:grayscale(.72);opacity:.8;transition:transform .2s,filter .2s,opacity .2s}
.bj-category-tile:hover .bj-category-emoji{filter:grayscale(.15);opacity:1;transform:scale(1.08)}
.bj-tile-placeholder{border-radius:25px;background:linear-gradient(145deg,#f8faff,#edf1f8);border:1px solid #e6ebf3;box-shadow:inset 0 2px 5px #fff,0 5px 13px #273c5c0a}
.bj-add-category-box{max-width:720px}
.bj-add-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:62vh;overflow:auto;padding:2px}
.bj-add-category-option{display:grid;grid-template-columns:34px minmax(0,1fr) auto 20px;align-items:center;gap:8px;text-align:right;border:1px solid #e8edf4;background:#fff;border-radius:12px;padding:9px 10px;font:inherit;cursor:pointer;min-width:0;transition:.18s}
.bj-add-category-option:hover{border-color:#c8c1ff;background:#faf9ff}
.bj-add-category-option>span{width:32px;height:32px;border-radius:10px;background:#f3f5f9;display:flex;align-items:center;justify-content:center;font-size:19px;filter:grayscale(.45)}
.bj-add-category-option strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#354258}
.bj-add-category-option small{font-size:9px;color:#929dad;white-space:nowrap}
.bj-add-category-option b{font-size:17px;color:#6254f5}
.bj-category-tile.is-extra{border-style:dashed;border-color:#cfc9ff}
@media(max-width:900px){.bj-hero-layout{grid-template-columns:1fr}.bj-budget{max-width:none}.bj-pack-types{margin-top:14px}}
@media(max-width:650px){
 .bj-hero{padding:15px;border-radius:19px}
 .bj-hero-top{align-items:flex-start;flex-direction:column;margin-bottom:10px}
 .bj-top-actions{width:100%}
 .bj-outline-action,.bj-clear-action{flex:1;padding:9px 7px;font-size:10px}
 .bj-hero-layout{gap:13px}
 .bj-pack-types{gap:6px;margin-top:13px}
 .bj-pack-type{padding:9px 7px;border-radius:11px}
 .bj-pack-type strong{font-size:9px}
 .bj-pack-type small{font-size:8px}
 .bj-budget{padding:13px;border-radius:15px}
 .bj-budget-input-wrap input{font-size:17px;padding-top:11px;padding-bottom:11px}
 .bj-presets button{font-size:8px;padding:6px 3px}
 .bj-category-emoji{font-size:32px}
 .bj-add-category-list{grid-template-columns:1fr;max-height:68vh}
 .bj-add-category-option{grid-template-columns:32px minmax(0,1fr) auto 18px}
}

/* v1.1.6 refinements: budget action, per-tile duplicate action and restrained monochrome line icons */
.bj-custom-build{width:100%;margin-top:11px;padding:12px 14px;font-size:12px}
.bj-category-icon{display:block;width:56px;height:56px;color:#929cab;flex:0 0 auto;transition:transform .18s,color .18s}
.bj-category-tile:hover .bj-category-icon{color:#778395;transform:scale(1.05)}
.bj-tile-placeholder{width:88px;height:88px;border-radius:24px;background:#f5f7fa;border:1px solid #e7ebf0;box-shadow:inset 0 1px 0 #fff,0 5px 13px #273c5c08}
.bj-tile-actions{position:absolute;top:8px;left:8px;z-index:3;display:flex;gap:5px;align-items:center}
.bj-tile-actions .bj-tile-remove{position:static;width:27px;height:27px;display:flex;align-items:center;justify-content:center;font-size:18px}
.bj-tile-add{width:27px;height:27px;border:1px solid #dce7f1;border-radius:50%;background:#fff;color:#66758a;box-shadow:0 2px 9px #1e31501a;font:inherit;font-size:19px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.bj-tile-add:hover{background:#eef6ff;border-color:#b9d7f2;color:#287fc1}
.bj-add-category-option .bj-category-icon{width:30px;height:30px;color:#929cab}
@media(max-width:650px){.bj-category-icon{width:49px;height:49px}.bj-tile-placeholder{width:76px;height:76px}.bj-tile-actions{top:6px;left:6px;gap:4px}.bj-tile-actions .bj-tile-remove,.bj-tile-add{width:25px;height:25px}}
