/*==================================================
    Local Fonts
==================================================*/

@font-face{
    font-family:"Vazirmatn";
    src:url("../fonts/vazirmatn-arabic-400-normal.woff2") format("woff2");
    font-weight:400;
    font-style:normal;
    font-display:swap;
    font-synthesis:none;
}

@font-face{
    font-family:"Vazirmatn";
    src:url("../fonts/vazirmatn-arabic-500-normal.woff2") format("woff2");
    font-weight:500;
    font-style:normal;
    font-display:swap;
    font-synthesis:none;
}

@font-face{
    font-family:"Vazirmatn";
    src:url("../fonts/vazirmatn-arabic-600-normal.woff2") format("woff2");
    font-weight:600;
    font-style:normal;
    font-display:swap;
    font-synthesis:none;
}


/*==================================================
    Variables
==================================================*/

:root{

    --bg:#fafafa;
    --text:#111;
    --muted:#777;
    --accent:#e46f1f;
    --border:#ddd;

}


/*==================================================
    Reset
==================================================*/

*{

    box-sizing:border-box;
    margin:0;
    padding:0;

}


/*==================================================
    HTML
==================================================*/

html{

    scroll-behavior:smooth;

}


/*==================================================
    Body
==================================================*/

body{

    font-family:"Vazirmatn",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
    max-width:480px;
    margin:auto;
    padding-bottom:20px;

}


/*==================================================
    Container
==================================================*/

.container{

    padding:12px;

}


/*==================================================
    HEADER
==================================================*/

.compact-header{

    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:4px;

}


.logo{

    width:100px;
    height:auto;

}


.logo2{

    width:auto;
    height:95px;

}


.header-text h1{

    font-size:1rem;
    font-weight:500;

}


.header-text span{

    font-size:.7rem;
    color:#888;

}


/*==================================================
    CATEGORY MENU
==================================================*/

.category-wrapper{

    position:sticky;
    top:0;
    z-index:999;
    background:#fafafa;
    padding:6px 0 0;

}


.category-nav{

    display:flex;
    align-items:flex-start;

    overflow-x:auto;
    overflow-y:hidden;

    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;

    gap:8px;

    padding:8px 9px 2px;

    border-bottom:1.2px solid #e8e8e8;

    scrollbar-width:none;
    scroll-padding-inline:18px;

    overscroll-behavior-x:contain;

    touch-action:pan-x;

    scroll-snap-type:x proximity;

}


.category-nav::-webkit-scrollbar{

    display:none;

}


.cat-item{

    flex:0 0 84px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;

    gap:5px;

    text-decoration:none;

    color:#555;

    font-size:.72rem;
    font-weight:400;
    line-height:1.3;

    transition:.25s;

    scroll-snap-align:center;

}


.cat-item span{

    text-align:center;

    min-height:22px;

    display:flex;

    align-items:center;

    justify-content:center;

    line-height:1.3;

}


.cat-icon{

    width:57px;
    height:57px;

    border-radius:50%;

    border:1px solid #222;

    display:flex;

    align-items:center;
    justify-content:center;

    background:#fff;

    box-shadow:
        0 0 7px rgba(228,111,31,.42),
        0 2px 2px rgba(0,0,0,.03);

    transition:
        border-color .25s,
        box-shadow .25s,
        transform .25s;

}


.cat-svg{

    width:30px;
    height:30px;

    stroke:var(--accent);

    stroke-width:.8;

    fill:none;

    transition:.25s;

}


.cat-item.active{

    color:#222;
    font-weight:410;

}


.cat-item.active .cat-icon{

    border-color:#111;

    box-shadow:
        0 6px 14px rgba(0,0,0,.18);

    transform:translateY(-1px);

}


.cat-item.active .cat-svg{

    stroke:#000;
    border-color:#000;

}


.cat-item:hover .cat-icon{

    transform:translateY(-1px);

    box-shadow:
        0 4px 12px rgba(0,0,0,.08);

}


/*==================================================
    PRODUCT SECTION
==================================================*/

.product-section{

    margin-top:8px;

    scroll-margin-top:110px;

}


.section-title{

    display:flex;

    align-items:center;

    margin-bottom:2px;

    padding-bottom:1px;

    border-bottom:1px solid #eee;

}


.section-line{

    width:4px;
    height:30px;

    background:var(--accent);

    border-radius:3px;

    margin-left:10px;

}


.section-info{

    flex:1;

}


.section-info h2{

    font-size:.8rem;
    font-weight:500;

}


.section-info span{

    font-size:.7rem;
    color:#999;

}


/*==================================================
    GRID
==================================================*/

.product-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:2px;

}


.product-card{

    position:relative;

    aspect-ratio:3/4;

    background:white;

    border-radius:3px;

    overflow:hidden;

    border:1px solid #eee;

    cursor:pointer;

}


.product-card img{

    display:block;

    width:100%;
    height:100%;

    object-fit:cover;

    padding:1.5px;

    -webkit-user-drag:none;
    user-select:none;

    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;

    transform:translateZ(0);

}


/*==================================================
    ANIMATION
==================================================*/

.fade{

    opacity:0;

    transform:translateY(15px);

    transition:.6s;

}


.fade.show{

    opacity:1;

    transform:none;

}


/*==================================================
    LIGHTBOX v2
==================================================*/

.lightbox{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;
    align-items:center;

    background:rgba(0,0,0,.88);

    opacity:0;
    visibility:hidden;

    transition:.25s;

    z-index:3000;

    overflow:hidden;

    overscroll-behavior:none;

    touch-action:none;

}


.lightbox.active{

    opacity:1;

    visibility:visible;

}


/* ---------- Stage ---------- */

.lightbox-stage{

    position:relative;

    display:flex;

    justify-content:center;
    align-items:center;

    max-width:92vw;
    max-height:82vh;

    overflow:hidden;

}


/* ---------- Image Wrapper ---------- */

.lightbox-image-wrapper{

    position:relative;

    display:flex;

    justify-content:center;
    align-items:center;

    max-width:92vw;
    max-height:82vh;

    transform-origin:center;

    transition:
        transform .25s ease;

}


/* ---------- Image ---------- */

#lightboxImage{

    display:block;

    user-select:none;

    -webkit-user-drag:none;

    pointer-events:auto;

    touch-action:none;

    opacity:1;

    max-width:92vw;
    max-height:82vh;

    object-fit:contain;

    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;

    transform:translateZ(0);

    border-radius:10px;

    position:relative;

    z-index:2;

}


/* ---------- Watermark ---------- */

.lightbox-watermark{

    position:absolute;

    inset:0;

    width:100%;
    height:100%;

    pointer-events:none;

    background-image:
        url("images/watermark/watermark.png");

    background-size:420px;

    opacity:.10;

    background-repeat:repeat;

    background-position:center;

    z-index:3;

}


/* ---------- Loader ---------- */

.lightbox-loader{

    position:absolute;

    width:38px;
    height:38px;

    border:3px solid rgba(255,255,255,.15);

    border-top-color:white;

    border-radius:50%;

    animation:spin .8s linear infinite;

    display:none;

    z-index:4;

}


.lightbox.loading
.lightbox-loader{

    display:block;

}


@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}


/* ---------- Close ---------- */

.lightbox-close{

    position:absolute;

    top:22px;
    right:22px;

    background:none;

    border:none;

    color:var(--accent);

    font-size:34px;

    cursor:pointer;

    z-index:20;

    opacity:.75;

    transition:.2s;

}


.lightbox-close:hover{

    opacity:1;

}


/* ---------- Prev / Next ---------- */

.lightbox-prev,
.lightbox-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    color:var(--accent);

    cursor:pointer;

    font-size:40px;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:6px;

    opacity:.7;

    transition:.2s;

    z-index:20;

}


.lightbox-prev{

    right:18px;

}


.lightbox-next{

    left:18px;

}


.lightbox-prev:hover,
.lightbox-next:hover{

    opacity:1;

}


.lightbox-prev span,
.lightbox-next span{

    font-size:.6rem;

    font-weight:500;

    color:var(--accent);

    margin-top:-2px;

    font-family:Vazirmatn;

}


/* ---------- Counter ---------- */

.lightbox-counter{

    position:absolute;

    top:24px;

    left:50%;

    transform:translateX(-50%);

    font-size:.8rem;

    color:white;

    opacity:.8;

    z-index:20;

}


/* ---------- Caption ---------- */

.lightbox-caption{

    position:absolute;

    bottom:22px;

    left:50%;

    transform:translateX(-50%);

    width:90%;

    text-align:center;

    color:white;

    font-size:.9rem;

    line-height:1.8;

    z-index:20;

}


/*==================================================
    BOTTOM NAV
==================================================*/

.bottom-nav{

    position:fixed;

    bottom:0;

    left:0;
    right:0;

    height:56px;

    background:white;

    border-top:1px solid #ddd;

    display:flex;

    justify-content:space-around;

    align-items:center;

    z-index:1000;

}


.bottom-nav a{

    text-decoration:none;

    color:#555;

    font-size:.80rem;

    font-weight:400;

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:4px;

    transition:.25s;

}


.icon{

    width:23px;

    height:23px;

    stroke:var(--accent);

    stroke-width:1;

    fill:none;

}


/*==================================================
    FOOTER
==================================================*/

.footer{

    text-align:center;

    font-size:.65rem;

    color:#999;

    padding:20px;

    margin-top:20px;

    margin-bottom:20px;

}


/*==================================================
    ABOUT PAGE
==================================================*/


/* ---------- Category Description ---------- */

.category-desc{

    background:white;

    border:1px solid #eee;

    border-radius:12px;

    padding:14px 16px;

    margin-top:8px;

    margin-bottom:24px;

    box-shadow:0 2px 8px rgba(0,0,0,.03);

}


.desc-title{

    margin:0 0 8px;

    font-size:.85rem;

    font-weight:700;

    color:#222;

}


.desc-text{

    margin:0;

    font-size:.72rem;

    font-weight:400;

    line-height:1.9;

    color:#999;

    text-align:justify;

}


.desc-link{

    display:flex;

    justify-content:flex-start;

    margin-top:12px;

    font-size:.72rem;

    font-weight:600;

    color:var(--accent);

    text-decoration:none;

}


.desc-link:hover{

    opacity:.75;

    padding-right:4px;

}


/*==================================================
    ABOUT CARDS
==================================================*/

.about-card{

    background:#fff;

    border:1px solid #eee;

    border-radius:12px;

    padding:14px;

    margin-bottom:12px;

    transition:.25s;

}


.about-card:hover{

    border-color:#ddd;

}


.about-card-header{

    display:flex;

    align-items:flex-start;

    gap:12px;

}


.about-card-header .icon{

    width:28px;

    height:28px;

    flex-shrink:0;

    margin-top:4px;

}


.about-card-header h3{

    font-size:.85rem;

    font-weight:700;

    color:#222;

    margin-bottom:6px;

}


.about-caption{

    font-size:.72rem;

    line-height:2;

    color:#999;

    margin:0;

}


.about-caption a{

    color:var(--accent);

    text-decoration:none;

    font-size:.7rem;

    font-weight:600;

}


.about-caption a:hover{

    opacity:.7;

}


/*==================================================
    ABOUT HEADER
==================================================*/

.about-header{

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:14px;

    margin-bottom:18px;

}


.about-logo{

    width:50px;

    height:auto;

    flex-shrink:0;

}


.about-header .header-text{

    flex:1;

}


/*==================================================
    ABOUT HERO
==================================================*/

.about-hero{

    width:100%;

    height:240px;

    border-radius:14px;

    overflow:hidden;

    margin:18px 0 24px;

    background:#eee;

}


.about-hero img{

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center;

    display:block;

}


/*==================================================
    MOBILE
==================================================*/

@media(max-width:480px){

    .about-hero{

        height:200px;

    }

}


/*==================================================
    CONTACT
==================================================*/

.contact-form{

    display:flex;

    flex-direction:column;

    gap:14px;

    margin-top:4px;

}


.contact-form input,
.contact-form textarea{

    width:100%;

    padding:14px;

    border:1px solid #ddd;

    border-radius:12px;

    font-family:Vazirmatn;

    font-size:.85rem;

    background:#fff;

    outline:none;

    transition:.25s;

}


.contact-form input:focus,
.contact-form textarea:focus{

    border-color:var(--accent);

}


.contact-form textarea{

    resize:vertical;

    min-height:110px;

}


.contact-form button{

    height:48px;

    border:none;

    border-radius:12px;

    background:var(--accent);

    color:#fff;

    font-family:Vazirmatn;

    font-size:.9rem;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}


.contact-form button:hover{

    opacity:.9;

}


.contact-form button:disabled{

    opacity:.6;

    cursor:not-allowed;

}


#status{

    margin-top:5px;

    font-size:.78rem;

    font-weight:600;

    text-align:center;

}


/*==================================================
    HIDDEN IMAGES
==================================================*/

.hidden-image{

    opacity:0;

    height:0;

    transform:scale(.8);

    pointer-events:none;

    overflow:hidden;

    transition:
        opacity .35s ease,
        transform .35s ease,
        height .35s ease;

}


.hidden-image.show-image{

    opacity:1;

    height:auto;

    transform:scale(1);

    pointer-events:auto;

    animation:galleryReveal .35s ease;

}


@keyframes galleryReveal{

    from{

        opacity:0;

        transform:translateY(15px) scale(.95);

    }

    to{

        opacity:1;

        transform:none;

    }

}


@keyframes fadeImage{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:none;

    }

}


/*==================================================
    SHOW MORE
==================================================*/

.show-more{

    width:100%;

    height:38px;

    margin-top:7px;

    border:none;

    background:#fff;

    border:1px solid #ddd;

    border-radius:24px;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    font-family:Vazirmatn;

    font-size:.78rem;

    cursor:pointer;

    transition:.25s;

    position:relative;

    overflow:hidden;

}


.show-more:after{

    content:"";

    position:absolute;

    width:0;

    height:100%;

    background:rgba(228,111,31,.08);

    left:50%;

    top:0;

    transform:translateX(-50%);

    transition:.3s;

}


.show-more:hover:after{

    width:100%;

}


.show-more:hover{

    border-color:var(--accent);

    color:var(--accent);

}


.more-icon{

    display:inline-block;

    transition:.3s;

}


.show-more.open .more-icon{

    transform:rotate(180deg);

}


/*==================================================
    ZOOM GUIDE
==================================================*/

.zoom-guide{

    position:absolute;

    bottom:70px;

    left:50%;

    transform:translateX(-50%);

    background:rgba(0,0,0,.65);

    color:white;

    padding:8px 18px;

    border-radius:20px;

    font-size:.75rem;

    white-space:nowrap;

    opacity:0;

    z-index:50;

    animation:guideShow 8s ease forwards;

}


@keyframes guideShow{

    0%{

        opacity:0;

    }

    20%{

        opacity:1;

    }

    80%{

        opacity:1;

    }

    100%{

        opacity:0;

    }

}


/*==================================================
    SECTION DESCRIPTION
==================================================*/

.section-description{

    background:#fff;

    border:1px solid #eee;

    border-radius:10px;

    padding:8px 10px;

    margin:5px 0 10px;

    font-size:.65rem;

    line-height:1.8;

    color:#888;

    text-align:justify;

    box-shadow:0 2px 6px rgba(0,0,0,.03);

}


/*==================================================
    ABOUT TEXT
==================================================*/

.about-text{

    max-width:980px;

    font-size:.76rem;

    line-height:2.2;

    color:#444;

}
