
/* Brick Studio Color 8.0.0 — visual specification based on supplied mobile cards */
.bsc-shell{
 --bsc-brown:#8b3f18;
 --bsc-brown-dark:#713014;
 --bsc-text:#1f1c1a;
 --bsc-muted:#756c67;
 --bsc-line:#e8e3df
 margin:16px auto
 background:#fff;
 border:1px solid #eee9e5
 color:var(--bsc-text);
 font-family:IRANYekan,IRANYekanX,IranYekan,"Yekan Bakh",Tahoma,Arial,sans-serif;
 direction:rtl

    width:100%;
    max-width:420px;
    height:auto;
    min-height:0;
    max-height:none;
    border-radius:18px;
    padding:17px 16px 16px;
    box-shadow:0 8px 28px rgba(53,37,26,.08);
    box-sizing:border-box;
    }
.bsc-shell *{box-sizing:border-box}
.bsc-heading-row{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 8px}
.bsc-heading-row h2{margin:0;font-size:18px;line-height:1.5;font-weight:800;letter-spacing:-.35px}
.bsc-palette{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#713b20;flex:0 0 30px}
.bsc-palette svg{width:30px;height:30px;display:block}
.bsc-subheading{text-align:center;margin:0 0 13px;color:#635b56;font-size:11px;line-height:1.8}
.bsc-color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:0 1px 12px}
.bsc-color-tile{position:relative;height:36px;padding:0;border:1px solid rgba(50,30,20,.14);border-radius:5px;overflow:hidden;background:var(--color);cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.bsc-brick-texture{position:absolute;inset:0;opacity:.3;background-image:linear-gradient(rgba(255,255,255,.62) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.45) 1px,transparent 1px);background-size:18px 11px,36px 11px;background-position:0 0,9px 0;mix-blend-mode:soft-light}
.bsc-color-tile.active{box-shadow:inset 0 0 0 2px #fff,0 0 0 1.5px var(--bsc-brown)}
.bsc-check{position:absolute;right:4px;top:3px;width:18px;height:18px;border-radius:50%;display:none;align-items:center;justify-content:center;background:var(--bsc-brown);color:#fff;font-size:11px;font-weight:900;line-height:18px;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.bsc-color-tile.active .bsc-check{display:flex}
.bsc-hero{width:100%;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:#f4f1ef;border:1px solid #eee4de;margin-bottom:14px}
.bsc-hero img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}
.bsc-hero-empty{width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:18px;color:#8a7d75;font-size:10px;line-height:1.9}
.bsc-products-section{margin:0 0 13px}
.bsc-products-title{font-size:13px;font-weight:800;margin:0 3px 8px;color:#29231f}
.bsc-products{display:flex;gap:9px;width:100%;overflow:hidden;direction:ltr;min-height:100px}
.bsc-product{direction:rtl;display:flex;align-items:center;gap:9px;flex:0 0 100%;min-width:100%;padding:7px;border:1px solid #eee7e2;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(55,33,20,.045);text-decoration:none;color:inherit}
.bsc-product-img{width:108px;height:82px;flex:0 0 108px;border-radius:8px;overflow:hidden;background:#f6f3f1}
.bsc-product-img img{width:100%;height:100%;display:block;object-fit:contain}
.bsc-product-info{min-width:0;flex:1;display:flex;flex-direction:column;justify-content:center;gap:3px}
.bsc-product-info strong{font-size:10px;line-height:1.75;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bsc-product-info small{font-size:8px;color:#9a8e87;line-height:1.5}
.bsc-product-info span{font-size:9px;color:#9b3d0b;font-weight:800;line-height:1.6}
.bsc-product-info span .woocommerce-Price-amount{font-size:9px}
.bsc-hint{width:100%;min-height:84px;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px;border:1px dashed #e6ddd7;border-radius:11px;color:#8b7e77;background:#fcfbfa;font-size:10px;line-height:1.9}
.bsc-more{width:100%;height:38px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--bsc-brown);border-radius:8px;background:var(--bsc-brown);color:#fff;text-decoration:none;font-size:11px;font-weight:800;transition:transform .16s ease,background .16s ease}
.bsc-more:hover{background:var(--bsc-brown-dark);color:#fff;transform:translateY(-1px)}
.bsc-more svg{width:17px;height:17px}
.bsc-empty{max-width:430px;margin:16px auto;padding:20px;border:1px solid #eee;border-radius:20px;background:#fff;text-align:center;font-family:inherit;color:#777}
.bsc-login-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:16px}
.bsc-login-modal.is-open{display:flex}
.bsc-modal-backdrop{position:absolute;inset:0;background:rgba(28,18,13,.54);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.bsc-login-dialog{position:relative;z-index:2;width:min(370px,100%);padding:26px 20px 19px;border:1px solid rgba(130,76,43,.14);border-radius:23px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.24);font-family:inherit}
.bsc-modal-close{position:absolute;left:11px;top:10px;width:30px;height:30px;border:0;border-radius:50%;background:#f6f0ec;color:#70422d;font-size:20px;cursor:pointer}
.bsc-login-mark{width:45px;height:45px;margin:0 auto 10px;border-radius:50%;background:#f4e9e2;color:#803d1d;display:flex;align-items:center;justify-content:center;font-size:19px;font-weight:900}
.bsc-login-dialog h3{text-align:center;margin:0 0 6px;font-size:17px}
.bsc-login-dialog>p{text-align:center;color:#756a64;font-size:10px;line-height:1.9;margin:0 0 15px}
.bsc-login-message{text-align:center;min-height:18px;color:#8a3d1c;font-size:10px;margin-bottom:2px}
.bsc-login-phone-step label,.bsc-login-code-step label{display:block;font-size:10px;font-weight:700;margin:0 0 6px}
.bsc-login-phone-step input,.bsc-login-code-step input{width:100%;height:45px;border:1px solid #ddd2ca;border-radius:11px;background:#fff;outline:0;padding:0 12px;font-family:inherit;font-size:14px}
.bsc-login-phone-step input{direction:ltr;text-align:left}
.bsc-login-code-step input{direction:ltr;text-align:center;letter-spacing:6px}
.bsc-login-phone-step input:focus,.bsc-login-code-step input:focus{border-color:#9a5936;box-shadow:0 0 0 3px rgba(139,63,24,.09)}
.bsc-login-primary{width:100%;height:44px;margin-top:10px;border:0;border-radius:11px;background:var(--bsc-brown);color:#fff;font-family:inherit;font-size:11px;font-weight:800;cursor:pointer}
.bsc-login-primary:disabled{opacity:.55;cursor:wait}
.bsc-countdown{text-align:center;color:#8d8079;font-size:9px;margin-top:9px;min-height:15px}
.bsc-resend-otp{display:block;margin:0 auto;border:0;background:transparent;color:#8b3f1c;font-family:inherit;font-size:10px;cursor:pointer}
.bsc-login-trust{margin-top:14px;padding-top:10px;border-top:1px solid #eee7e2;text-align:center;color:#9a8f88;font-size:8px;line-height:1.8}
@media(max-width:600px){
 .bsc-shell{max-width:430px;margin:10px autoborder-radius:18px
    width:100%;
    max-width:420px;
    height:auto;
    min-height:0;
    max-height:none;
    border-radius:18px;
    padding:17px 16px 16px;
    box-shadow:0 8px 28px rgba(53,37,26,.08);
    box-sizing:border-box;
    }
 .bsc-heading-row h2{font-size:17px}
 .bsc-color-grid{gap:6px}
 .bsc-color-tile{height:34px}
 .bsc-product-img{width:100px;height:76px;flex-basis:100px}
 .bsc-login-modal{align-items:flex-end;padding:0}
 .bsc-login-dialog{width:100%;max-height:92vh;overflow:auto;border-radius:23px 23px 0 0;padding-bottom:calc(19px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
 .bsc-shell{padding-left:9px;padding-right:9px
    width:100%;
    max-width:420px;
    height:auto;
    min-height:0;
    max-height:none;
    border-radius:18px;
    padding:17px 16px 16px;
    box-shadow:0 8px 28px rgba(53,37,26,.08);
    box-sizing:border-box;
    }
 .bsc-product-img{width:92px;height:72px;flex-basis:92px}
 .bsc-product-info strong{font-size:9px}
}
@media(min-width:601px){.bsc-shell{
    width:100%;
    max-width:420px;
    height:auto;
    min-height:0;
    max-height:none;
    border-radius:18px;
    padding:17px 16px 16px;
    box-shadow:0 8px 28px rgba(53,37,26,.08);
    box-sizing:border-box;
    }}
body.bsc-modal-open{overflow:hidden}


/* V8.0.2 — Exact requested card dimensions */
.ajm-price-card{
    position:relative;
    width:100%;
    background:#fff;
    border:1px solid #eee9e4;
    border-radius:18px;
    padding:17px 16px 16px;
    box-shadow:0 8px 28px rgba(53,37,26,.08);
    overflow:hidden;
}
.ajm-price-card-wrap,
.ajm-price-widget,
.ajm-price-container{
    direction:rtl;
    width:100%;
    max-width:420px;
    margin:0 auto;
}
.ajm-price-input,
.ajm-price-select{height:40px;}
.ajm-price-button{height:39px;}

@media (max-width:600px){
    .ajm-price-card{
        border-radius:16px;
        padding:15px 14px 14px;
    }
    .ajm-price-card-wrap,
    .ajm-price-widget,
    .ajm-price-container{
        width:100%;
        max-width:420px;
    }
    .ajm-price-input,
    .ajm-price-select{height:40px;}
    .ajm-price-button{height:39px;}
}
@media (max-width:380px){
    .ajm-price-card{padding:13px 12px;}
    .ajm-price-input,
    .ajm-price-select{
        height:38px;
        font-size:12px;
    }
    .ajm-price-button{
        height:38px;
        font-size:12px;
    }
}


/* V8.2.1 — Match the companion price card height and keep CTA inside the shell. */
.bsc-shell{
    overflow:hidden !important;
    display:flex !important;
    flex-direction:column !important;

    width:100%;
    max-width:420px;
    height:auto;
    min-height:0;
    max-height:none;
    border-radius:18px;
    padding:17px 16px 16px;
    box-shadow:0 8px 28px rgba(53,37,26,.08);
    box-sizing:border-box;
    }
.bsc-products-section{
    flex:0 0 auto !important;
}
.bsc-more{
    flex:0 0 38px !important;
    margin-top:auto !important;
}


/* V8.2.2 — Exact visual sync with the companion AJM price card. */
.bsc-shell.bsc-size-synced{
    margin-left:auto !important;
    margin-right:auto !important;

}
@media (max-width:600px){
    .bsc-shell.bsc-size-synced{max-width:none !important;}
}


/* V8.2.3 — Exact AJM card outer dimensions */
.bsc-shell{
    width:100% !important;
    max-width:420px !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    border-radius:18px !important;
    padding:17px 16px 16px !important;
    box-shadow:0 8px 28px rgba(53,37,26,.08) !important;
    box-sizing:border-box !important;
}


/* V8.2.4 — subtle separator under "محصولات این رنگ" */
.bsc-products-title{
    border-bottom:0.7px solid #eee9e4;
}


/* V8.2.5 — 0.3px spacing between products divider and product frame */
.bsc-products-title + .bsc-products{
    margin-top:0.3px !important;
}


/* V8.2.6 — main card height +0.2px */
.bsc-shell{
    min-height:0.2px !important;
}

/* V8.2.7 — main card height +0.2px from previous version */
.bsc-shell{
    min-height:calc(0.2px + 0.2px) !important;
}
/* افزایش فقط لبه پایین کادر به اندازه 0.2px */
.bsc-shell {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: 23px !important;
}