/* ===========================
   Hanso Bra Size Guide
===========================*/

:root{

--hanso-main:#e91e63;
--hanso-main-hover:#d81b60;
--hanso-bg:#ffffff;
--hanso-bg-soft:#fff6fa;
--hanso-border:#ececec;
--hanso-text:#222;
--hanso-text-light:#777;
--hanso-radius:18px;

}

.hanso-bra-wrap{

max-width:760px;
margin:40px auto;
padding:15px;
direction:rtl;

}

.hanso-card{

background:var(--hanso-bg);

border:1px solid var(--hanso-border);

border-radius:var(--hanso-radius);

padding:35px;

box-shadow:0 12px 35px rgba(0,0,0,.06);

transition:.3s;

}

.hanso-card:hover{

box-shadow:0 20px 45px rgba(0,0,0,.08);

}

.hanso-card h2{

margin:0;

font-size:30px;

font-weight:700;

text-align:center;

color:var(--hanso-text);

}

.hanso-desc{

margin-top:15px;

text-align:center;

font-size:15px;

color:var(--hanso-text-light);

line-height:1.9;

}

.hanso-field{

margin-top:35px;

}

.hanso-field label{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:15px;

font-size:16px;

font-weight:600;

color:#333;

}

.hanso-field label span{

color:var(--hanso-main);

font-size:18px;

font-weight:bold;

}

.hanso-field input[type=range]{

width:100%;

height:8px;

appearance:none;

background:#ececec;

border-radius:30px;

outline:none;

cursor:pointer;

}

.hanso-field input[type=range]::-webkit-slider-thumb{

appearance:none;

width:22px;

height:22px;

border-radius:50%;

background:var(--hanso-main);

cursor:pointer;

border:4px solid #fff;

box-shadow:0 2px 8px rgba(0,0,0,.2);

}

.hanso-field input[type=range]::-moz-range-thumb{

width:22px;

height:22px;

border:none;

border-radius:50%;

background:var(--hanso-main);

cursor:pointer;

}

.hanso-field input[type=number]{

margin-top:15px;

width:100px;

height:46px;

border-radius:12px;

border:1px solid #ddd;

text-align:center;

font-size:17px;

outline:none;

transition:.3s;

}

.hanso-field input[type=number]:focus{

border-color:var(--hanso-main);

box-shadow:0 0 0 3px rgba(233,30,99,.12);

}

.hanso-result{

margin-top:40px;

padding-top:35px;

border-top:1px solid var(--hanso-border);

}

/* ===========================
   Result Box
===========================*/

.hanso-result .row{

display:flex;
justify-content:space-between;
align-items:center;

margin-bottom:18px;

font-size:18px;

}

.hanso-result .row span{

color:#666;

}

.hanso-result .row strong{

font-size:30px;

font-weight:700;

color:var(--hanso-main);

}

.progress{

margin:30px 0;

}

.bar{

height:12px;

background:#ececec;

border-radius:30px;

overflow:hidden;

}

#progressBar{

height:100%;

width:0;

background:linear-gradient(90deg,#ff9ac0,var(--hanso-main));

transition:.4s;

}

.letters{

display:flex;

justify-content:space-between;

margin-top:10px;

font-size:14px;

font-weight:700;

color:#777;

}

.final{

background:var(--hanso-bg-soft);

padding:25px;

border-radius:16px;

margin:30px 0;

text-align:center;

}

.final span{

display:block;

margin-bottom:10px;

color:#777;

font-size:15px;

}

.final strong{

font-size:52px;

font-weight:800;

color:var(--hanso-main);

letter-spacing:1px;

}

.info{

display:flex;

justify-content:space-between;

align-items:center;

padding:18px 0;

border-top:1px dashed #ececec;

}

.info strong{

font-size:16px;

color:#333;

}

.info span{

font-size:17px;

font-weight:600;

color:#555;

}

.note{

margin-top:25px;

background:#fff8fb;

border:1px solid #ffd4e5;

padding:18px;

border-radius:14px;

font-size:14px;

line-height:1.8;

color:#666;

}

/* دکمه محصولات */

.hanso-products{

margin-top:30px;

}

.hanso-products a{

display:block;

text-align:center;

padding:15px;

background:var(--hanso-main);

color:#fff;

border-radius:14px;

font-weight:700;

text-decoration:none;

transition:.3s;

}

.hanso-products a:hover{

background:var(--hanso-main-hover);

transform:translateY(-2px);

}
/* ===========================
   Responsive
===========================*/

@media (max-width:768px){

.hanso-card{

padding:20px;

}

.hanso-card h2{

font-size:24px;

}

.hanso-field label{

font-size:15px;

flex-direction:column;
align-items:flex-start;
gap:8px;

}

.hanso-result .row{

font-size:16px;

}

.hanso-result .row strong{

font-size:24px;

}

.final{

padding:20px;

}

.final strong{

font-size:38px;

}

.info{

flex-direction:column;

align-items:flex-start;

gap:8px;

}

.info span{

font-size:16px;

}

.hanso-field input[type=number]{

width:100%;

}

}


/* Animation */

.hanso-card,
.hanso-result,
.final,
.info{

animation:hansoFade .35s ease;

}

@keyframes hansoFade{

from{

opacity:0;

transform:translateY(12px);

}

to{

opacity:1;

transform:none;

}

}


/* Woodmart Fix */

.wd-single-product .hanso-bra-wrap{

margin-top:30px;

margin-bottom:30px;

}

.elementor-widget-shortcode .hanso-bra-wrap{

max-width:100%;

}

.hanso-bra-wrap *{

box-sizing:border-box;

}

.hanso-bra-wrap input{

font-family:inherit;

}

.hanso-bra-wrap strong{

font-weight:700;

}

.hanso-bra-wrap .letters span{

flex:1;

text-align:center;

}

.hanso-bra-wrap .bar{

position:relative;

}

#progressBar{

position:absolute;

top:0;

right:0;

left:0;

}