
body{
background:#f4f4f4;
font-family:Arial,sans-serif;
}

#sbm-app{
max-width:720px;
margin:auto;
padding:20px;
}

.sbm-screen{
display:none;
}

.sbm-screen.active{
display:block;
}

.sbm-header h1{
font-size:46px;
margin-bottom:35px;
}

.sbm-dashboard{
display:grid;
gap:16px;
}

.sbm-dashboard-btn{
border:none;
background:#fff;
padding:28px;
border-radius:22px;
font-size:28px;
font-weight:700;
cursor:pointer;
color:#000;
}

.sbm-topbar{
margin-bottom:20px;
}

.sbm-back-btn{
border:none;
background:#fff;
padding:14px 20px;
border-radius:14px;
font-size:18px;
cursor:pointer;
}

h2{
font-size:38px;
margin-bottom:25px;
}

.sbm-upload-box{
display:block;
border:2px dashed #ccc;
border-radius:24px;
padding:60px 20px;
text-align:center;
background:#fff;
margin-bottom:20px;
cursor:pointer;
}

.sbm-camera{
font-size:72px;
margin-bottom:15px;
}

.sbm-upload-title{
font-size:28px;
font-weight:700;
margin-bottom:10px;
}

.sbm-upload-subtitle{
font-size:18px;
color:#777;
}

#sbm-preview{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-bottom:20px;
}

.sbm-image{
position:relative;
width:90px;
height:120px;
}

.sbm-image img{
width:100%;
height:100%;
object-fit:cover;
border-radius:12px;
border:2px solid #ddd;
}

.sbm-featured{
border:3px solid #000 !important;
}

.sbm-remove-image{
position:absolute;
top:-8px;
right:-8px;
width:28px;
height:28px;
border:none;
border-radius:50%;
background:#000;
color:#fff;
cursor:pointer;
}

.sbm-field{
margin-bottom:20px;
}

.sbm-field label,
.sbm-multiple-label{
display:block;
margin-bottom:10px;
font-weight:700;
font-size:20px;
}

.sbm-field input,
.sbm-field textarea,
.sbm-field select{
width:100%;
padding:18px;
font-size:18px;
line-height:1.4;
min-height:60px;
border-radius:16px;
border:1px solid #ddd;
box-sizing:border-box;
background:#fff;
color:#000;
}

.sbm-field textarea{
min-height:120px;
}

.sbm-size-row{
display:flex;
gap:10px;
margin-top:10px;
}

#sbm-add-size{
width:70px;
border:none;
background:#000;
color:#fff;
font-size:32px;
border-radius:16px;
cursor:pointer;
}

.sbm-size-card{
display:flex;
justify-content:space-between;
align-items:center;
background:#fff;
padding:16px;
border-radius:16px;
margin-top:15px;
}

.sbm-size-right{
display:flex;
gap:10px;
align-items:center;
}

.sbm-size-right input{
width:80px;
min-height:auto;
padding:10px;
}

.sbm-remove-size{
width:36px;
height:36px;
border:none;
border-radius:50%;
background:#000;
color:#fff;
cursor:pointer;
}

.sbm-main-button{
width:100%;
padding:22px;
border:none;
background:#000;
color:#fff;
font-size:24px;
border-radius:18px;
margin-top:30px;
cursor:pointer;
}


#sbm-loader,
#sbm-success{
position:fixed;
inset:0;
background:rgba(0,0,0,.55);
display:flex;
align-items:center;
justify-content:center;
z-index:999999;
opacity:0;
pointer-events:none;
transition:.2s;
}

#sbm-loader.active,
#sbm-success.active{
opacity:1;
pointer-events:auto;
}

.sbm-loader-box,
.sbm-success-box{
background:#fff;
padding:35px;
border-radius:24px;
width:85%;
max-width:360px;
text-align:center;
}

.sbm-spinner{
width:60px;
height:60px;
border:5px solid #ddd;
border-top:5px solid #000;
border-radius:50%;
margin:0 auto 20px;
animation:sbmspin 1s linear infinite;
}

@keyframes sbmspin{
100%{
transform:rotate(360deg);
}
}

.sbm-loader-text{
font-size:22px;
font-weight:700;
}

.sbm-success-icon{
font-size:52px;
margin-bottom:15px;
}

.sbm-success-title{
font-size:28px;
font-weight:700;
margin-bottom:12px;
}

.sbm-success-message{
font-size:20px;
line-height:1.5;
}


#sbm-search-results{
margin-top:20px;
display:grid;
gap:14px;
}

.sbm-search-card{
display:flex;
gap:14px;
background:#fff;
padding:14px;
border-radius:18px;
align-items:center;
}

.sbm-search-left img,
.sbm-no-image{
width:80px;
height:120px;
object-fit:cover;
border-radius:12px;
background:#eee;
display:flex;
align-items:center;
justify-content:center;
font-size:12px;
}

.sbm-search-right{
flex:1;
}

.sbm-search-title{
font-size:22px;
font-weight:700;
margin-bottom:8px;
}

.sbm-search-meta{
font-size:16px;
margin-bottom:6px;
}

.sbm-edit-btn{
border:none;
background:#000;
color:#fff;
padding:12px 18px;
border-radius:12px;
font-size:16px;
cursor:pointer;
margin-top:8px;
}


/* SBM v0.7.0 Frontend Commerce Layer */

.sbm-frontend-sizes{
    margin:20px 0;
}

.sbm-size-title{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.sbm-size-pills{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.sbm-size-pill{
    min-width:48px;
    height:48px;
    border-radius:14px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    font-weight:600;
}

.sbm-size-pill.active{
    background:#111;
    color:#fff;
    border-color:#111;
}
