/* ===================================
   PhoneLab - Style Sheet
   فروشگاه و مرکز تخصصی تعمیرات موبایل فون‌لب
=================================== */

:root{
    --orange: #ff7a00;
    --orange-dark: #e56700;
    --orange-light: #fff1e0;
    --white: #ffffff;
    --text-dark: #2b2b2b;
    --text-gray: #6b6b6b;
    --border-orange: #ffb066;

    /* ===== توکن‌های طراحی مدرن (فقط جلوه بصری - بدون تغییر منطق) ===== */
    --grad-brand: linear-gradient(135deg, #ff9433, var(--orange) 55%, var(--orange-dark));
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-xs: 0 2px 8px rgba(30,20,10,.06);
    --shadow-sm: 0 6px 18px rgba(30,20,10,.08);
    --shadow-md: 0 14px 34px rgba(255,122,0,.16);
    --shadow-lg: 0 24px 60px rgba(20,15,10,.18);
    --ease: cubic-bezier(.4,0,.2,1);
    --ease-bounce: cubic-bezier(.34,1.56,.64,1);
    --header-h: 92px;
    --header-h-scrolled: 66px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
    background:var(--white);
    color:var(--text-dark);
    direction:rtl;
    line-height:1.8;
    -webkit-font-smoothing:antialiased;
}

a{
    text-decoration:none;
    color:inherit;
}

ul{
    list-style:none;
}

img{
    max-width:100%;
    display:block;
}

.container{
    max-width:1180px;
    margin:0 auto;
    padding:0 20px;
}

/* ===== Header ===== */
.top-bar{
    background:var(--grad-brand);
    color:var(--white);
    font-size:13.5px;
    padding:8px 0;
    max-height:40px;
    overflow:hidden;
    transition:max-height .35s var(--ease), padding .35s var(--ease), opacity .3s var(--ease);
}
.top-bar .container{
    display:flex;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:6px;
}

header.main-header{
    background:rgba(255,255,255,.9);
    -webkit-backdrop-filter:saturate(180%) blur(14px);
    backdrop-filter:saturate(180%) blur(14px);
    border-bottom:1px solid rgba(255,122,0,.18);
    box-shadow:0 1px 0 rgba(0,0,0,.02);
    position:sticky;
    top:0;
    z-index:400;
    transition:box-shadow .3s var(--ease);
}
header.main-header::after{
    content:"";
    position:absolute;
    right:0; left:0; bottom:-3px;
    height:3px;
    background:var(--grad-brand);
}
header.main-header.is-scrolled{
    box-shadow:var(--shadow-sm);
}
header.main-header.is-scrolled .top-bar{
    max-height:0;
    padding-top:0;
    padding-bottom:0;
    opacity:0;
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
    gap:16px;
    transition:padding .3s var(--ease);
}
header.main-header.is-scrolled .header-inner{
    padding:9px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}
.logo .logo-box{
    background:var(--grad-brand);
    color:#fff;
    width:48px;
    height:48px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    font-size:20px;
    box-shadow:var(--shadow-sm);
    transition:all .3s var(--ease);
}
.logo h1{
    font-size:clamp(18px,2.4vw,22px);
    color:var(--text-dark);
    transition:font-size .3s var(--ease);
}
.logo h1 span{
    color:var(--orange);
}
.logo small{
    display:block;
    font-size:12px;
    color:var(--text-gray);
    font-weight:normal;
    transition:all .3s var(--ease);
    overflow:hidden;
}
header.main-header.is-scrolled .logo .logo-box{
    width:36px;
    height:36px;
    font-size:15px;
    border-radius:9px;
}
header.main-header.is-scrolled .logo small{
    max-height:0;
    opacity:0;
    transform:translateY(-6px);
}

nav.main-nav ul{
    display:flex;
    gap:4px;
    align-items:center;
}
nav.main-nav a{
    display:flex;
    align-items:center;
    gap:4px;
    padding:10px 16px;
    font-weight:600;
    font-size:14.5px;
    color:var(--text-dark);
    border-radius:var(--radius-sm);
    transition:all .25s var(--ease);
    position:relative;
}
nav.main-nav a:hover{
    background:var(--orange-light);
    color:var(--orange-dark);
}
nav.main-nav a.active{
    background:var(--grad-brand);
    color:#fff;
    box-shadow:var(--shadow-sm);
}

.header-call{
    display:flex;
    align-items:center;
    gap:10px;
}
.header-call a.btn-call{
    background:var(--grad-brand);
    color:#fff;
    padding:10px 18px;
    border-radius:var(--radius-sm);
    font-weight:bold;
    white-space:nowrap;
    box-shadow:0 4px 14px rgba(255,122,0,.22);
    transition:all .25s var(--ease);
}
.header-call a.btn-call:hover{
    filter:brightness(1.06);
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(255,122,0,.3);
}
.header-call a.btn-call-muted{
    background:#555 !important;
    box-shadow:none;
}

.menu-toggle{
    display:none;
    font-size:26px;
    color:var(--orange);
    background:none;
    border:none;
    cursor:pointer;
    z-index:610;
}

/* ===== پوشش تیره پشت منوی موبایل (Off-canvas) ===== */
.nav-overlay{
    position:fixed;
    inset:0;
    background:rgba(20,15,10,.45);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    opacity:0;
    visibility:hidden;
    transition:opacity .3s var(--ease);
    z-index:590;
}
.nav-overlay.open{
    opacity:1;
    visibility:visible;
}
.nav-close{
    display:none;
}

/* ===== Hero ===== */
.hero{
    background:linear-gradient(135deg, var(--orange-light), #ffffff);
    padding:60px 0;
    border-bottom:1px solid var(--border-orange);
}
.hero-inner{
    display:flex;
    align-items:center;
    gap:40px;
    flex-wrap:wrap;
}
.hero-text{
    flex:1;
    min-width:280px;
}
.hero-text h2{
    font-size:32px;
    margin-bottom:16px;
    color:var(--text-dark);
}
.hero-text h2 span{
    color:var(--orange);
}
.hero-text p{
    color:var(--text-gray);
    margin-bottom:20px;
    font-size:16px;
}
.hero-buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}
.btn{
    display:inline-block;
    padding:12px 26px;
    border-radius:var(--radius-sm);
    font-weight:bold;
    transition:all .25s var(--ease);
    border:2px solid var(--orange);
}
.btn-primary{
    background:var(--grad-brand);
    color:#fff;
    border-color:transparent;
    box-shadow:0 6px 16px rgba(255,122,0,.25);
}
.btn-primary:hover{
    filter:brightness(1.05);
    transform:translateY(-2px);
    box-shadow:0 10px 22px rgba(255,122,0,.32);
}
.btn-outline{
    background:transparent;
    color:var(--orange);
}
.btn-outline:hover{
    background:var(--orange);
    color:#fff;
}
.hero-image{
    flex:1;
    min-width:260px;
    text-align:center;
}
.hero-image .placeholder{
    background:var(--orange);
    color:#fff;
    border-radius:16px;
    padding:60px 20px;
    font-size:18px;
    font-weight:bold;
}

/* ===== Section Titles ===== */
.section{
    padding:60px 0;
}
.section-title{
    text-align:center;
    margin-bottom:40px;
}
.section-title h3{
    font-size:26px;
    color:var(--text-dark);
    position:relative;
    display:inline-block;
    padding-bottom:12px;
}
.section-title h3:after{
    content:"";
    position:absolute;
    bottom:0;
    right:50%;
    transform:translateX(50%);
    width:70px;
    height:4px;
    background:var(--orange);
    border-radius:4px;
}
.section-title p{
    color:var(--text-gray);
    margin-top:10px;
}

/* ===== Tables (جداول نارنجی) ===== */
.table-wrapper{
    overflow-x:auto;
    margin-bottom:30px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
}
table.orange-table{
    width:100%;
    border-collapse:collapse;
    background:var(--white);
    min-width:600px;
}
table.orange-table thead{
    background:var(--orange);
    color:#fff;
}
table.orange-table thead th{
    padding:14px 16px;
    text-align:right;
    font-size:15px;
}
table.orange-table tbody td{
    padding:12px 16px;
    border-bottom:1px solid #ffe3c2;
    font-size:14px;
    color:var(--text-dark);
}
table.orange-table tbody tr:nth-child(even){
    background:var(--orange-light);
}
table.orange-table tbody tr:hover{
    background:#ffe6cc;
}
table.orange-table td.price{
    color:var(--orange-dark);
    font-weight:bold;
}

/* ===== Services Cards ===== */
.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
    gap:22px;
}
.service-card{
    background:var(--white);
    border:1px solid var(--border-orange);
    border-radius:12px;
    padding:26px 20px;
    text-align:center;
    transition:.2s;
}
.service-card:hover{
    transform:translateY(-6px);
    box-shadow:0 10px 24px rgba(255,122,0,.18);
    border-color:var(--orange);
}
.service-card .icon{
    width:60px;
    height:60px;
    line-height:60px;
    background:var(--orange-light);
    color:var(--orange);
    border-radius:50%;
    margin:0 auto 16px;
    font-size:26px;
    font-weight:bold;
}
.service-card h4{
    margin-bottom:10px;
    font-size:18px;
}
.service-card p{
    color:var(--text-gray);
    font-size:14px;
}

/* ===== Coverage / Cities Box ===== */
.coverage-box{
    background:var(--orange-light);
    border:1px dashed var(--orange);
    border-radius:14px;
    padding:30px;
    text-align:center;
}
.coverage-box h4{
    color:var(--orange-dark);
    margin-bottom:14px;
    font-size:20px;
}
.city-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    margin-top:16px;
}
.city-tags span{
    background:var(--orange);
    color:#fff;
    padding:8px 16px;
    border-radius:20px;
    font-size:14px;
    font-weight:600;
}

/* ===== Why Us ===== */
.why-us{
    background:var(--orange-light);
}
.why-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
}
.why-item{
    background:#fff;
    border-radius:12px;
    padding:22px;
    border-top:4px solid var(--orange);
}
.why-item h4{
    margin-bottom:8px;
    color:var(--text-dark);
}
.why-item p{
    color:var(--text-gray);
    font-size:14px;
}

/* ===== CTA ===== */
.cta{
    background:var(--orange);
    color:#fff;
    text-align:center;
    padding:50px 0;
}
.cta h3{
    font-size:26px;
    margin-bottom:14px;
}
.cta p{
    margin-bottom:22px;
    opacity:.95;
}
.cta .btn{
    border-color:#fff;
}
.cta .btn-primary{
    background:#fff;
    color:var(--orange);
}
.cta .btn-primary:hover{
    background:#f2f2f2;
}

/* ===== Visit Stats Bar ===== */
.visit-stats-bar{
    background:#2b2520;
    border-top:3px solid var(--orange);
}
.visit-stats-inner{
    display:flex;
    justify-content:space-around;
    flex-wrap:wrap;
    gap:14px;
    padding:16px 0;
}
.visit-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    color:#e5e5e5;
    font-size:13px;
    min-width:90px;
}
.visit-item strong{
    color:var(--orange);
    font-size:18px;
    margin-top:4px;
}

/* ===== Cart / Checkout ===== */
.qty-input{
    width:70px;
    padding:6px;
    border-radius:6px;
    border:1px solid var(--border-orange);
    text-align:center;
}
.cart-summary-box{
    background:var(--orange-light);
    border-radius:14px;
    padding:24px;
    position:sticky;
    top:90px;
}
.cart-summary-box .row{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    border-bottom:1px dashed var(--border-orange);
    font-size:14px;
}
.cart-summary-box .row.total{
    font-weight:bold;
    font-size:18px;
    color:var(--orange-dark);
    border-bottom:none;
}
.shipping-options{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin:16px 0;
}
.shipping-options label{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#fff;
    border:1px solid var(--border-orange);
    border-radius:10px;
    padding:12px 16px;
    cursor:pointer;
}
.shipping-options input[type="radio"]{
    accent-color:var(--orange);
}

/* ===== Blog ===== */
.blog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:24px;
}
.blog-card{
    background:#fff;
    border:1px solid var(--border-orange);
    border-radius:12px;
    overflow:hidden;
    transition:.2s;
}
.blog-card:hover{
    box-shadow:0 10px 24px rgba(255,122,0,.15);
    transform:translateY(-4px);
}
.blog-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    background:var(--orange-light);
}
.blog-card .blog-body{
    padding:18px;
}
.blog-card h3{
    font-size:19px;
    margin-bottom:10px;
}
.blog-card p{
    color:var(--text-gray);
    font-size:14px;
}

/* ===== Tickets ===== */
.ticket-thread{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-bottom:24px;
}
.ticket-msg{
    max-width:75%;
    padding:14px 18px;
    border-radius:14px;
    font-size:14px;
}
.ticket-msg.user{
    align-self:flex-start;
    background:var(--orange-light);
    border:1px solid var(--border-orange);
}
.ticket-msg.admin{
    align-self:flex-end;
    background:var(--orange);
    color:#fff;
}
.ticket-msg small{
    display:block;
    margin-top:6px;
    opacity:.75;
    font-size:11px;
}

/* ===== Footer ===== */
footer.main-footer{
    background:#241f1c;
    color:#e5e5e5;
    padding-top:50px;
}
.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:30px;
    padding-bottom:30px;
    border-bottom:1px solid #3a332f;
}
.footer-col h4{
    color:var(--orange);
    margin-bottom:16px;
    font-size:17px;
}
.footer-col p, .footer-col li{
    color:#bcbcbc;
    font-size:14px;
    margin-bottom:10px;
}
.footer-col ul li a:hover{
    color:var(--orange);
}
.footer-bottom{
    text-align:center;
    padding:18px 0;
    font-size:13px;
    color:#8a8a8a;
}
.footer-bottom a{
    color:var(--orange);
}

/* ===== Responsive ===== */
@media(max-width:900px){
    nav.main-nav{
        position:fixed;
        top:0;
        right:0;
        height:100dvh;
        width:min(320px,84vw);
        background:#fff;
        box-shadow:var(--shadow-lg);
        transform:translateX(100%);
        transition:transform .35s var(--ease);
        z-index:600;
        overflow-y:auto;
        padding:18px 16px 30px;
    }
    nav.main-nav.open{
        transform:translateX(0);
    }
    nav.main-nav ul{
        flex-direction:column;
        align-items:stretch;
        gap:2px;
    }
    nav.main-nav ul li{
        width:100%;
    }
    nav.main-nav a{
        padding:14px 16px;
        border-radius:var(--radius-sm);
        font-size:15px;
    }
    li.has-dropdown .dropdown-menu{
        position:static;
        opacity:1;
        visibility:visible;
        transform:none;
        box-shadow:none;
        max-height:0;
        overflow:hidden;
        padding:0 0 0 10px;
        transition:max-height .3s var(--ease);
    }
    li.has-dropdown.open .dropdown-menu{
        max-height:600px;
        padding:6px 0 6px 10px;
    }
    .nav-close{
        display:flex;
        align-items:center;
        justify-content:center;
        margin-bottom:14px;
        margin-right:auto;
        width:36px;
        height:36px;
        border-radius:50%;
        background:var(--orange-light);
        color:var(--orange-dark);
        font-size:18px;
        border:none;
        cursor:pointer;
    }
    .header-inner{
        flex-wrap:wrap;
    }
    .menu-toggle{
        display:flex;
    }
}
@media(max-width:600px){
    .hero-text h2{
        font-size:24px;
    }
    .section{
        padding:40px 0;
    }
    .visit-stats-inner{
        justify-content:flex-start;
        overflow-x:auto;
        flex-wrap:nowrap;
    }
    .cart-summary-box{
        position:static;
    }
    .ticket-msg{
        max-width:90%;
    }
    table.orange-table thead th,
    table.orange-table tbody td{
        padding:10px;
        font-size:13px;
    }
}

@media(max-width:480px){
    .top-bar .container{
        font-size:12px;
        flex-direction:column;
        text-align:center;
        gap:4px;
    }
    .header-call{
        flex-wrap:wrap;
        justify-content:center;
        width:100%;
        margin-top:10px;
    }
    .header-call .btn-call{
        font-size:12px;
        padding:8px 12px;
    }
}

/* ===================================
   افزودنی‌های نسخه جدید: فیلتر، کارت محصول، گالری، منوی کشویی، اسلایدر
=================================== */

/* --- انیمیشن‌های ملایم عمومی --- */
.fade-in{
    animation: phFadeIn .5s ease both;
}
@keyframes phFadeIn{
    from{ opacity:0; transform:translateY(10px); }
    to{ opacity:1; transform:translateY(0); }
}
a, button, .btn, .product-card, .filter-chip{
    transition: all .25s ease;
}

/* --- منوی کشویی دسته‌بندی --- */
nav.main-nav ul{
    position:relative;
}
li.has-dropdown{
    position:relative;
}
li.has-dropdown > a .caret{
    font-size:11px;
    margin-right:4px;
}
.dropdown-menu{
    position:absolute;
    top:100%;
    right:0;
    background:#fff;
    min-width:220px;
    border-radius:10px;
    box-shadow:0 12px 30px rgba(0,0,0,.14);
    padding:8px;
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:all .2s ease;
    z-index:200;
}
li.has-dropdown:hover .dropdown-menu,
li.has-dropdown:focus-within .dropdown-menu{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.dropdown-menu li a{
    display:block;
    padding:9px 12px;
    border-radius:6px;
    color:var(--text-dark);
    font-weight:500;
    font-size:14px;
}
.dropdown-menu li a:hover{
    background:var(--orange-light);
    color:var(--orange-dark);
}

/* --- دکمه همبرگری انیمیت‌شده --- */
.menu-toggle{
    display:none;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:34px;
    height:34px;
    background:none;
    border:none;
    cursor:pointer;
}
.menu-toggle span{
    display:block;
    width:100%;
    height:3px;
    border-radius:3px;
    background:var(--orange);
    transition:all .25s ease;
}
.menu-toggle.open span:nth-child(1){ transform:translateY(8px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity:0; }
.menu-toggle.open span:nth-child(3){ transform:translateY(-8px) rotate(-45deg); }

/* --- دکمه‌های هدر با آیکون --- */
.icon-call{
    display:flex;
    align-items:center;
    gap:6px;
}
.btn-call-muted{
    background:#555 !important;
}

/* --- نوار فیلتر فروشگاه --- */
.filter-bar{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    margin-bottom:28px;
    padding:14px 18px;
    background:var(--orange-light);
    border-radius:12px;
}
.filter-label{
    font-weight:bold;
    color:var(--orange-dark);
    margin-left:6px;
}
.filter-chip{
    background:#fff;
    border:1px solid var(--border-orange);
    color:var(--text-dark);
    padding:7px 16px;
    border-radius:20px;
    font-size:13px;
    font-weight:600;
}
.filter-chip:hover{
    border-color:var(--orange);
    color:var(--orange-dark);
}
.filter-chip.active{
    background:var(--orange);
    border-color:var(--orange);
    color:#fff;
}

/* --- گرید و کارت محصول --- */
.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(230px,1fr));
    gap:22px;
    margin-bottom:30px;
}
.product-card{
    background:#fff;
    border:1px solid var(--border-orange);
    border-radius:var(--radius-md);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:var(--shadow-xs);
    transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-md);
    border-color:var(--orange);
}
.product-card-img{
    position:relative;
    display:block;
    height:170px;
    background:var(--orange-light);
}
.product-card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.no-image{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:38px;
    background:var(--orange-light);
    color:var(--border-orange);
}
.no-image.large{
    height:100%;
    min-height:320px;
    font-size:70px;
}
.badge-digital{
    position:absolute;
    top:10px;
    left:10px;
    background:var(--orange);
    color:#fff;
    font-size:11px;
    font-weight:bold;
    padding:4px 10px;
    border-radius:20px;
}
/* --- برچسب قرمز «ناموجود» روی عکس محصول --- */
.badge-outstock{
    position:absolute;
    top:10px;
    right:10px;
    background:#e53935;
    color:#fff;
    font-size:11px;
    font-weight:bold;
    padding:4px 12px;
    border-radius:20px;
    box-shadow:0 4px 10px rgba(229,57,53,.35);
    display:flex;
    align-items:center;
    gap:4px;
}
.badge-outstock::before{
    content:"";
    width:6px;
    height:6px;
    border-radius:50%;
    background:#fff;
}
.gallery-main{ position:relative; }
.gallery-main .badge-outstock{
    top:16px;
    right:16px;
    font-size:13px;
    padding:6px 16px;
}
.product-card-img:has(.badge-outstock) img{
    filter:grayscale(.35) brightness(.92);
}
.product-card-body{
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:6px;
    flex:1;
}
.product-card-title{
    font-weight:bold;
    font-size:15px;
    color:var(--text-dark);
    display:block;
}
.product-card-title:hover{
    color:var(--orange-dark);
}
.product-card-cat{
    color:var(--text-gray);
    font-size:12px;
}
.product-card-desc{
    color:var(--text-gray);
    font-size:13px;
    line-height:1.6;
    flex:1;
}
.product-card-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:6px;
}
.product-card-meta .price{
    color:var(--orange-dark);
    font-weight:bold;
    font-size:14px;
}
.product-card-actions{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
}
.btn-sm{
    padding:8px 12px;
    font-size:12px;
}

/* --- برچسب رنگی موجودی --- */
.stock-badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:20px;
    font-size:12px;
    font-weight:bold;
    color:#fff;
}
.stock-green{ background:#2e9e5b; }
.stock-orange{ background:#ff9800; }
.stock-red{ background:#e53935; }

/* --- صفحه مشاهده محصول --- */
.product-detail{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:40px;
    align-items:start;
}
.gallery-main{
    border:1px solid var(--border-orange);
    border-radius:14px;
    overflow:hidden;
    background:var(--orange-light);
    height:380px;
}
.gallery-main img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.gallery-thumbs{
    display:flex;
    gap:10px;
    margin-top:12px;
    flex-wrap:wrap;
}
.gallery-thumb{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:8px;
    border:2px solid var(--border-orange);
    cursor:pointer;
    opacity:.7;
}
.gallery-thumb:hover{ opacity:1; }
.gallery-thumb.active{
    border-color:var(--orange);
    opacity:1;
}
.product-info h1{
    font-size:24px;
    margin-bottom:6px;
}
.product-price-big{
    font-size:26px;
    font-weight:bold;
    color:var(--orange-dark);
}
.product-desc-box{
    background:var(--orange-light);
    border-radius:12px;
    padding:18px;
    margin-top:20px;
}
.product-desc-box h4{
    margin-bottom:10px;
    color:var(--orange-dark);
}
.product-desc-box p{
    color:var(--text-dark);
    font-size:14px;
    line-height:1.9;
}

/* --- اسلایدر محصولات جدید (صفحه اصلی) --- */
.product-slider-section{
    padding:30px 0 0;
}
.product-slider{
    position:relative;
    overflow:hidden;
    border-radius:16px;
    box-shadow:0 10px 26px rgba(0,0,0,.1);
}
.slider-track{
    display:flex;
    transition:transform .5s ease;
}
.slider-slide{
    min-width:100%;
    position:relative;
    display:block;
    height:320px;
}
.slider-slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(.75);
}
.slider-caption{
    position:absolute;
    bottom:0;
    right:0;
    left:0;
    padding:20px 30px;
    background:linear-gradient(to top, rgba(0,0,0,.7), transparent);
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#fff;
    font-weight:bold;
    flex-wrap:wrap;
    gap:10px;
}
.slider-caption .price{
    color:#ffcf99;
}
.slider-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,.4);
    color:#fff;
    border:none;
    width:38px;
    height:38px;
    border-radius:50%;
    font-size:22px;
    cursor:pointer;
    z-index:5;
}
.slider-arrow:hover{ background:var(--orange); }
.slider-prev{ right:14px; }
.slider-next{ left:14px; }
.slider-dots{
    position:absolute;
    bottom:14px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:6px;
    z-index:5;
}
.slider-dot{
    width:9px;
    height:9px;
    border-radius:50%;
    background:rgba(255,255,255,.55);
    cursor:pointer;
}
.slider-dot.active{
    background:var(--orange);
}

/* --- ریسپانسیو --- */
@media(max-width:900px){
    .product-detail{
        grid-template-columns:1fr;
    }
}
@media(max-width:600px){
    .product-grid{
        grid-template-columns:repeat(auto-fill, minmax(150px,1fr));
        gap:14px;
    }
    .gallery-main{ height:260px; }
    .slider-slide{ height:220px; }
}

/* --- امتیاز و نظرات محصول --- */
.rating-line{
    color:var(--orange-dark);
    font-weight:600;
    font-size:14px;
    margin:6px 0;
}
.rating-line span{
    color:var(--text-gray);
    font-weight:400;
    font-size:12px;
}
.reviews-section{
    margin-top:40px;
    border-top:1px solid var(--border-orange);
    padding-top:26px;
}
.reviews-heading{
    color:var(--orange-dark);
    margin-bottom:16px;
}
.review-item{
    background:var(--orange-light);
    border-radius:12px;
    padding:14px 18px;
    margin-bottom:12px;
}
.review-item-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
    flex-wrap:wrap;
}
.review-date{
    color:var(--text-gray);
    font-size:12px;
    margin-right:auto;
}
.review-form{
    background:var(--orange-light);
    border-radius:12px;
    padding:18px;
    margin-top:16px;
}
.review-form h5{
    margin-bottom:10px;
    color:var(--orange-dark);
}

/* --- زنگوله اعلان --- */
.notif-bell{
    position:relative;
}
.bell-btn{
    background:none;
    border:none;
    cursor:pointer;
    color:#fff;
    position:relative;
    padding:6px;
    display:flex;
}
.bell-count{
    position:absolute;
    top:-2px;
    left:-2px;
    background:#e53935;
    color:#fff;
    font-size:10px;
    font-weight:bold;
    border-radius:50%;
    width:17px;
    height:17px;
    display:flex;
    align-items:center;
    justify-content:center;
}
.notif-dropdown{
    position:absolute;
    top:120%;
    left:0;
    width:300px;
    max-height:360px;
    overflow-y:auto;
    background:#fff;
    border-radius:12px;
    box-shadow:0 14px 34px rgba(0,0,0,.18);
    opacity:0;
    visibility:hidden;
    transform:translateY(8px);
    transition:all .2s ease;
    z-index:300;
}
.notif-dropdown.open{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.notif-item{
    display:block;
    padding:12px 16px;
    border-bottom:1px solid var(--orange-light);
    color:var(--text-dark);
}
.notif-item:hover{
    background:var(--orange-light);
}
.notif-item strong{
    display:block;
    font-size:13px;
    margin-bottom:4px;
    color:var(--orange-dark);
}
.notif-item p{
    font-size:12px;
    color:var(--text-gray);
    margin:0;
}
.notif-empty{
    padding:20px;
    text-align:center;
    color:var(--text-gray);
    font-size:13px;
}

/* --- انجمن تعمیرکاران --- */
.forum-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.forum-topic-row{
    display:flex;
    gap:16px;
    background:#fff;
    border:1px solid var(--border-orange);
    border-radius:12px;
    padding:14px;
    align-items:center;
}
.forum-topic-row:hover{
    border-color:var(--orange);
    transform:translateX(-3px);
}
.forum-thumb{
    width:70px;
    height:70px;
    border-radius:10px;
    object-fit:cover;
    flex-shrink:0;
}
.forum-thumb.no-image{
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--orange-light);
    font-size:26px;
}
.forum-topic-info h4{
    margin-bottom:4px;
    color:var(--text-dark);
}
.forum-topic-info p{
    color:var(--text-gray);
    font-size:13px;
    margin-bottom:6px;
}
.forum-meta{
    font-size:12px;
    color:var(--orange-dark);
}
.forum-topic-detail{
    background:var(--orange-light);
    padding:22px;
    border-radius:14px;
    margin-top:16px;
}

@media(max-width:600px){
    .notif-dropdown{ width:260px; left:-40px; }
}

/* --- دسته‌بندی، پاسخ درست و لایک در انجمن --- */
.forum-cat-badge{
    display:inline-block;
    background:var(--orange);
    color:#fff;
    font-size:11px;
    font-weight:bold;
    padding:3px 10px;
    border-radius:14px;
    margin-bottom:8px;
}
.best-tag{
    display:inline-block;
    background:#2e9e5b;
    color:#fff;
    font-size:11px;
    font-weight:bold;
    padding:2px 9px;
    border-radius:14px;
    margin-right:6px;
    vertical-align:middle;
}
.best-reply{
    border:2px solid #2e9e5b;
    position:relative;
}
.best-reply-tag{
    display:inline-block;
    background:#2e9e5b;
    color:#fff;
    font-size:11px;
    font-weight:bold;
    padding:3px 10px;
    border-radius:14px;
    margin-bottom:8px;
}
.reply-actions{
    display:flex;
    align-items:center;
    gap:16px;
    margin-top:10px;
    flex-wrap:wrap;
}
.like-btn{
    background:#fff;
    border:1px solid var(--border-orange);
    border-radius:20px;
    padding:5px 14px;
    font-size:13px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:6px;
    color:var(--text-dark);
}
.like-btn:hover{
    border-color:var(--orange);
}
.like-btn.liked{
    background:var(--orange);
    color:#fff;
    border-color:var(--orange);
}
.like-btn-static{
    font-size:13px;
    color:var(--text-gray);
}
.mark-best-link{
    font-size:12px;
    color:#2e9e5b;
    font-weight:bold;
}

/* =======================================================
   مدال مدرن و انیمیشنی (پیام خطا، تایید و ...)
======================================================= */
.ph-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(20,15,10,.55);
    -webkit-backdrop-filter:blur(4px);
    backdrop-filter:blur(4px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:1000;
    opacity:0;
    visibility:hidden;
    transition:opacity .25s var(--ease), visibility .25s var(--ease);
}
.ph-modal-overlay.open{
    opacity:1;
    visibility:visible;
}
.ph-modal-box{
    background:#fff;
    width:100%;
    max-width:380px;
    border-radius:var(--radius-lg);
    padding:30px 26px 26px;
    text-align:center;
    box-shadow:var(--shadow-lg);
    position:relative;
    transform:scale(.85) translateY(20px);
    opacity:0;
    transition:transform .35s var(--ease-bounce), opacity .3s var(--ease);
}
.ph-modal-overlay.open .ph-modal-box{
    transform:scale(1) translateY(0);
    opacity:1;
}
.ph-modal-overlay.shake .ph-modal-box{
    animation:phModalShake .45s var(--ease);
}
@keyframes phModalShake{
    10%,90%{ transform:translateX(-2px); }
    20%,80%{ transform:translateX(4px); }
    30%,50%,70%{ transform:translateX(-8px); }
    40%,60%{ transform:translateX(8px); }
}
.ph-modal-icon{
    width:64px;
    height:64px;
    margin:0 auto 16px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    background:#ffe3e3;
    color:#e53935;
    animation:phModalPop .4s var(--ease-bounce) .05s both;
}
@keyframes phModalPop{
    from{ transform:scale(0); }
    to{ transform:scale(1); }
}
.ph-modal-box h3{
    font-size:18px;
    color:var(--text-dark);
    margin-bottom:8px;
}
.ph-modal-box p{
    color:var(--text-gray);
    font-size:14px;
    margin-bottom:22px;
    line-height:1.8;
}
.ph-modal-box .btn{
    width:100%;
    border:none;
    cursor:pointer;
}
.ph-modal-close{
    position:absolute;
    top:12px;
    left:12px;
    width:28px;
    height:28px;
    border-radius:50%;
    border:none;
    background:var(--orange-light);
    color:var(--orange-dark);
    font-size:14px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* =======================================================
   فرم‌های مدرن (ورود / ثبت‌نام)
======================================================= */
.auth-card{
    background:linear-gradient(160deg, var(--orange-light), #fff 60%);
    padding:34px 30px;
    border-radius:var(--radius-lg);
    border:1px solid var(--border-orange);
    box-shadow:var(--shadow-sm);
}
.auth-field{
    margin-bottom:18px;
    text-align:right;
}
.auth-field label{
    display:block;
    margin-bottom:7px;
    font-weight:600;
    font-size:14px;
}
.auth-field input{
    width:100%;
    padding:12px 14px;
    border-radius:var(--radius-sm);
    border:1.5px solid var(--border-orange);
    font-family:inherit;
    font-size:14.5px;
    background:#fff;
    transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.auth-field input:focus{
    outline:none;
    border-color:var(--orange);
    box-shadow:0 0 0 4px rgba(255,122,0,.14);
}
.auth-submit{
    width:100%;
    border:none;
    cursor:pointer;
    font-size:15px;
    padding:13px 26px;
}
