/*=========================================
SELLER STORE
=========================================*/

:root {

    --primary: #1976ff;
    --primary-light: #eef5ff;

    --green: #18c37e;
    --red: #ff5d73;

    --text: #18263f;
    --muted: #7b8ba3;

    --card: #fff;
    --border: #e8eef8;

    --shadow:
        0 8px 25px rgba(18, 38, 63, .08);

}

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

body {

    direction: rtl;
    font-family: "Vazirmatn", sans-serif;

    background: #f4f8fd;

    color: var(--text);

}

button,
input,
textarea {

    font-family: inherit;

}

.page {

    max-width: 700px;

    margin: auto;

    padding: 18px;

    padding-bottom: 90px;

}



/*=========================
HEADER
=========================*/

.header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;

}

.header h1 {

    font-size: 22px;

    font-weight: 900;

}

.header p {

    margin-top: 4px;

    color: var(--muted);

    font-size: 13px;

}

.icon-btn {

    width: 46px;

    height: 46px;

    border: none;

    border-radius: 16px;

    background: #fff;

    color: var(--primary);

    font-size: 20px;

    box-shadow: var(--shadow);

}



/*=========================
CARD
=========================*/

.card {

    background: #fff;

    border-radius: 22px;

    padding: 18px;

    margin-bottom: 18px;

    box-shadow: var(--shadow);

}

.card h2 {

    font-size: 17px;

    font-weight: 900;

    margin-bottom: 18px;

}



/*=========================
FORM
=========================*/

.form-group {

    margin-bottom: 16px;

}

.form-group label {

    display: block;

    font-size: 13px;

    color: var(--muted);

    margin-bottom: 7px;

}

.form-group input,
.form-group textarea {

    width: 100%;

    border: 1px solid var(--border);

    background: #fafcff;

    border-radius: 15px;

    padding: 13px;

    font-size: 14px;

    outline: none;

    color: var(--text);

}

.form-group input:focus,
.form-group textarea:focus {

    border-color: #1976ff;

}

.form-group textarea {

    resize: none;

    height: 120px;

}

input[readonly] {

    background: #f2f6fb;

    color: #6f8098;

}



/*=========================
SECTION TITLE
=========================*/

.section-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 16px;

}

.section-title h2 {

    margin: 0;

}



/*=========================
UPLOAD BUTTON
=========================*/

.upload-btn {

    display: flex;

    align-items: center;

    gap: 6px;

    height: 40px;

    padding: 0 15px;

    border-radius: 13px;

    background: var(--primary);

    color: #fff;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

}



/*=========================
IMAGE BOX
=========================*/

#logoBox,
#bannerBox,
#menuImageBox {

    position: relative;

    overflow: hidden;

    border-radius: 18px;

    background: #eef5ff;

    border: 1px solid var(--border);

}

#logoBox {

    width: 120px;

    height: 120px;

}

#bannerBox {

    width: 100%;

    height: 170px;

}

#menuImageBox {

    width: 100%;

    height: 230px;

}




/*=========================
GALLERY
=========================*/

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

}

.gallery-item {

    position: relative;

    height: 105px;

    border-radius: 16px;

    overflow: hidden;

    background: #eef5ff;

}

.gallery-item img {

    width: 100%;
    height: 100%;
    object-fit: cover;

}

.gallery-item button {

    position: absolute;

    top: 6px;

    left: 6px;

    width: 28px;

    height: 28px;

    border: none;

    border-radius: 50%;

    background: #ff5d73;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

}

.gallery-item.new {

    border: 2px solid #1976ff;

}

.new-badge {

    position: absolute;

    bottom: 6px;

    right: 6px;

    background: #1976ff;

    color: #fff;

    font-size: 11px;

    padding: 4px 8px;

    border-radius: 12px;

}



/*=========================
SAVE BUTTON
=========================*/

.save-btn {

    width: 100%;

    height: 56px;

    border: none;

    border-radius: 18px;

    background: linear-gradient(135deg,
            #1976ff,
            #4f93ff);

    color: #fff;

    font-size: 16px;

    font-weight: 900;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    box-shadow:
        0 12px 30px rgba(25, 118, 255, .28);

}



/*=========================
RESPONSIVE
=========================*/

@media(max-width:480px) {

    .gallery-grid {

        grid-template-columns: repeat(3, 1fr);

        gap: 10px;

    }

    #logoBox {

        width: 130px;
        height: 130px;

        margin: auto;

    }

    #bannerBox {

        height: 145px;

    }

    #menuImageBox {

        height: 180px;

    }

}

/*=========================
DYNAMIC IMAGES
=========================*/

.preview-image {

    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

}

.empty-image {

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;

    color: #9aacbf;

    font-size: 13px;

}

.empty-image i {

    font-size: 34px;

}



/*=========================
GALLERY ITEM
=========================*/

.gallery-item {

    position: relative;

    height: 105px;

    overflow: hidden;

    border-radius: 16px;

    background: #eef5ff;

}

.gallery-item img {

    width: 100%;
    height: 100%;
    object-fit: cover;

}

.gallery-item button {

    position: absolute;

    top: 6px;

    left: 6px;

    width: 28px;

    height: 28px;

    border: none;

    border-radius: 50%;

    background: #ff5d73;

    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

}

.gallery-item.new {

    border: 2px solid #1976ff;

}

.new-badge {

    position: absolute;

    bottom: 6px;

    right: 6px;

    background: #1976ff;

    color: #fff;

    padding: 3px 8px;

    border-radius: 10px;

    font-size: 11px;

}

.new-image{

    position:absolute;

    bottom:6px;
    right:6px;

    background:#1976ff;
    color:#fff;

    padding:4px 8px;

    border-radius:10px;

    font-size:11px;

    font-weight:700;

}

#galleryBox{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:12px;

}

.gallery-item{

    position:relative;

    width:100%;

    aspect-ratio:1/1;

    border-radius:16px;

    overflow:hidden;

    background:#eef5ff;

    border:1px solid var(--border);

}

.gallery-item img{

    width:100%;
    height:100%;

    object-fit:cover;

    display:block;

}

.gallery-item button{

    position:absolute;

    top:6px;
    left:6px;

    width:30px;
    height:30px;

    border:none;

    border-radius:50%;

    background:#ff5d73;

    color:#fff;

    display:flex;

    align-items:center;
    justify-content:center;

    cursor:pointer;

}

.gallery-item.new{

    border:2px solid var(--primary);

}

.save-btn.loading{

    pointer-events:none;

    opacity:.9;

}

.save-btn.loading i{

    display:none;

}

.save-btn.loading::before{

    content:"";

    width:20px;
    height:20px;

    border:3px solid rgba(255,255,255,.35);
    border-top-color:#fff;

    border-radius:50%;

    animation:spin .8s linear infinite;

    margin-left:10px;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}
/*=========================
BACKGROUND EFFECT
=========================*/

body{

    position:relative;

    overflow-x:hidden;

}


body::before{

    content:"";

    position:fixed;

    width:320px;
    height:320px;

    top:-120px;
    right:-120px;

    background:
        radial-gradient(
            circle,
            rgba(25,118,255,.18),
            transparent 70%
        );

    z-index:-1;

    animation:
        floatBg 8s ease-in-out infinite;

}


body::after{

    content:"";

    position:fixed;

    width:280px;
    height:280px;

    bottom:-100px;
    left:-100px;

    background:
        radial-gradient(
            circle,
            rgba(24,195,126,.15),
            transparent 70%
        );

    z-index:-1;

    animation:
        floatBg 10s ease-in-out infinite reverse;

}



@keyframes floatBg{

    0%{

        transform:translate(0,0);

    }

    50%{

        transform:translate(20px,30px);

    }

    100%{

        transform:translate(0,0);

    }

}




/*=========================
CARD ANIMATION
=========================*/


.card{

    animation:

        cardShow .45s ease both;

}


.card:nth-child(2){

    animation-delay:.08s;

}


.card:nth-child(3){

    animation-delay:.16s;

}


.card:nth-child(4){

    animation-delay:.24s;

}


@keyframes cardShow{


from{

    opacity:0;

    transform:
        translateY(25px);

}


to{

    opacity:1;

    transform:
        translateY(0);

}


}



/*=========================
CARD HOVER
=========================*/


.card{

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.card:hover{

    transform:
        translateY(-3px);

    box-shadow:

        0 14px 35px rgba(18,38,63,.12);

}



/*=========================
IMAGE ANIMATION
=========================*/


.gallery-item{

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.gallery-item:hover{

    transform:
        translateY(-5px)
        scale(1.03);


    box-shadow:

        0 10px 25px rgba(25,118,255,.18);

}


.gallery-item img{

    transition:
        transform .4s ease;

}


.gallery-item:hover img{

    transform:
        scale(1.08);

}



/*=========================
INPUT ANIMATION
=========================*/


.form-group input,
.form-group textarea{


    transition:

        .25s ease;

}


.form-group input:focus,
.form-group textarea:focus{


    background:#fff;


    transform:
        translateY(-2px);


    box-shadow:

        0 8px 20px rgba(25,118,255,.12);

}




/*=========================
UPLOAD BUTTON
=========================*/


.upload-btn{


    transition:

        .25s ease;

}


.upload-btn:hover{


    transform:
        translateY(-3px);


    box-shadow:

        0 10px 25px rgba(25,118,255,.25);

}


.upload-btn:active{

    transform:
        scale(.95);

}




/*=========================
SAVE BUTTON
=========================*/


.save-btn{


    transition:

        .3s ease;

}


.save-btn:hover{


    transform:

        translateY(-4px);


    box-shadow:

        0 18px 35px rgba(25,118,255,.35);

}


.save-btn:active{


    transform:

        scale(.97);

}