/* ===============================
   MATERIAL DESIGN TOKENS (M3-like)
================================= */
:root{
    --md-primary:#6750a4;
    --md-primary-hover:#5b46a0;
    --md-on-primary:#ffffff;

    --md-surface:#ffffff;
    --md-surface-variant:#f3f0f7;
    --md-background:#f5f5f8;

    --md-outline:#e0e0e6;
    --md-text:#1c1b1f;
    --md-muted:#5f6368;

    --md-radius-sm:12px;
    --md-radius:16px;
    --md-radius-lg:20px;

    --md-elev-1:0 1px 3px rgba(0,0,0,.12);
    --md-elev-2:0 4px 12px rgba(0,0,0,.14);
    --md-elev-3:0 12px 28px rgba(0,0,0,.18);

    /* legacy mapping */
    --bg:var(--md-background);
    --card:var(--md-surface);
    --text:var(--md-text);
    --muted:var(--md-muted);
    --brand:var(--md-primary);
    --border:var(--md-outline);
}

/* ===============================
   FONTS
================================= */
@font-face{
    font-family:"Samim";
    src:url("../fonts/samim/Samim-FD.woff2") format("woff2");
    font-weight:400;
    font-display:swap;
}
@font-face{
    font-family:"Samim";
    src:url("../fonts/samim/Samim-FD.woff2") format("woff2");
    font-weight:500;
    font-display:swap;
}
@font-face{
    font-family:"Samim";
    src:url("../fonts/samim/Samim-FD.woff2") format("woff2");
    font-weight:700;
    font-display:swap;
}

/* ===============================
   BASE
================================= */
*{box-sizing:border-box}
body{
    margin:0;
    font-family:Samim,Roboto,Tahoma,Arial,sans-serif;
    background:var(--md-background);
    color:var(--md-text);
    direction:rtl;
    line-height:1.7;
}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* ===============================
   HEADER (Material AppBar)
================================= */
.header{
    background:var(--md-surface);
    box-shadow:var(--md-elev-2);
    position:sticky;
    top:0;
    z-index:20;
}
.header-inner{
    display:flex;
    align-items:center;
    gap:16px;
    padding:12px 0;
}
.logo{font-weight:900}
.header-actions{
    margin-right:auto;
    display:flex;
    gap:10px;
}

/* ===============================
   BUTTONS (Material)
================================= */
.btn,
.add-to-cart,
.md-btn{
    background:var(--md-primary);
    color:var(--md-on-primary);
    border:none;
    border-radius:999px;
    padding:10px 18px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    box-shadow:var(--md-elev-1);
    transition:background .2s,box-shadow .2s,transform .15s;
    font-family:Samim,Roboto,Tahoma,Arial,sans-serif;
}
.btn:hover,
.add-to-cart:hover,
.md-btn:hover{
    background:var(--md-primary-hover);
    box-shadow:var(--md-elev-2);
}
.btn-link{font-size:13px}
.full{width:100%}

/* ===============================
   FLASH
================================= */
.flash{
    max-width:1200px;
    margin:12px auto;
    padding:12px 14px;
    border-radius:var(--md-radius);
    background:var(--md-surface);
    box-shadow:var(--md-elev-1);
}

/* ===============================
   GRID & CARDS
================================= */
.grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}
@media(max-width:1000px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.grid{grid-template-columns:1fr}}

.card{
    background:var(--md-surface);
    box-shadow:var(--md-elev-1);
    padding:12px;
    transition:box-shadow .25s,transform .25s;
}
.card:hover{
    box-shadow:var(--md-elev-2);
    transform:translateY(-2px);
}
.card-img{
    height:180px;
    border-radius:var(--md-radius-sm);
    overflow:hidden;
    background:#eee;
}
.card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}
.card-title{margin:10px 0 6px;font-size:13px}
.card-price{color:var(--md-primary);font-weight:800}

/* ===============================
   PRODUCT PAGE
================================= */
.product-page{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    margin-top:16px;
}
@media(max-width:900px){
    .product-page{grid-template-columns:1fr}
}
.gallery-main{
    background:var(--md-surface);
    box-shadow:var(--md-elev-1);
    overflow:hidden;
}
.gallery-main img{
    width:100%;
    height:360px;
    object-fit:cover;
}
.details{
    background:var(--md-surface);
    border-radius:var(--md-radius);
    box-shadow:var(--md-elev-1);
    padding:16px;
}
.price{
    color:var(--md-primary);
    font-size:18px;
    font-weight:900;
}

/* ===============================
   FORMS (Material TextField)
================================= */
.form{
    display:grid;
    gap:12px;
}
.form input,
.form textarea,
.form select{
    padding:14px 12px;
    border-radius:var(--md-radius-sm);
    border:1px solid var(--md-outline);
    background:var(--md-surface);
    transition:border .2s,box-shadow .2s;
}
.form input:focus,
.form textarea:focus,
.form select:focus{
    border-color:var(--md-primary);
    box-shadow:0 0 0 3px rgba(103,80,164,.15);
    outline:none;
}

/* ===============================
   CART
================================= */
.md-cart-row{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid var(--md-outline);
}
.cart-count{
    background:#ff5252;
    color:#fff;
    border-radius:50%;
    padding:2px 7px;
    font-size:12px;
}

/* ===============================
   MEGA MENU (Material Surface)
================================= */
.mega-wrapper{position:relative}
.mega-btn{
    background:var(--md-surface);
    border:1px solid var(--md-outline);
    padding:8px 12px;
    border-radius:999px;
    cursor:pointer;
    font-family:Samim,Roboto,Tahoma,Arial,sans-serif;
}
.mega-menu{
    position:absolute;
    top:110%;
    right:0;
    width:980px;
    height:460px;
    background:var(--md-surface);
    border-radius:var(--md-radius-lg);
    box-shadow:var(--md-elev-3);
    display:none;
    overflow:hidden;
    z-index:999;
}
.mega-menu.open{display:flex}
.mega-right{
    width:260px;
    background:var(--md-surface-variant);
    border-left:1px solid var(--md-outline);
}
.mega-l1{
    padding:12px 16px;
    cursor:pointer;
}
.mega-l1.active{
    background:var(--md-surface);
    color:var(--md-primary);
    font-weight:700;
}
.mega-left{flex:1;padding:16px}
.mega-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}
.mega-l2-title{
    font-weight:800;
    border-right:3px solid var(--md-primary);
    padding-right:10px;
    margin-bottom:10px;
    display:inline-block;
}
.mega-l3 a{
    display:block;
    font-size:12.5px;
    padding:6px 0;
}
.mega-l3 a:hover{color:var(--md-primary)}

/* ===============================
   FOOTER
================================= */
.footer{
    margin-top:24px;
    color:var(--md-muted);
}
.footer-inner{
    border-top:1px solid var(--md-outline);
    padding-top:14px;
}

/* ===============================
   MATERIAL SLIDER
================================= */
.md-slider{
    position:relative;
    height:450px;
    overflow:hidden;
    box-shadow:var(--md-elev-2);
    margin:16px 0;
    background:#ddd;
}

.md-slides{
    height:100%;
    position:relative;
}

.md-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transform:scale(1.03);
    transition:opacity .6s ease, transform .6s ease;
}

.md-slide::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to left, rgba(0,0,0,.45), rgba(0,0,0,.15));
}

.md-slide.active{
    opacity:1;
    transform:scale(1);
    z-index:1;
}

.md-slide-content{
    position:absolute;
    right:32px;
    bottom:32px;
    color:#fff;
    max-width:420px;
}

.md-slide-content h2{
    margin:0 0 6px;
    font-size:22px;
}

.md-slide-content p{
    margin:0 0 12px;
    opacity:.9;
}

/* controls */
.md-slide-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.9);
    border:none;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    font-size:24px;
    box-shadow:var(--md-elev-2);
}
.md-slide-btn.prev{right:12px}
.md-slide-btn.next{left:12px}

/* dots */
.md-dots{
    position:absolute;
    bottom:14px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
}
.md-dots span{
    width:10px;
    height:10px;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    cursor:pointer;
}
.md-dots span.active{
    background:#fff;
}

/* responsive */
@media(max-width:768px){
    .md-slider{height:260px}
    .md-slide-content{
        right:16px;
        bottom:16px;
    }
    .md-slide-content h2{font-size:18px}
}
/* ===============================
   HEADER LOGO
================================= */
.logo img{
    height:70px;
    display:block;
}

/* ===============================
   ICON BUTTON
================================= */
.icon-btn{
    background:none;
    border:none;
    cursor:pointer;
    position:relative;
    font-size:18px;
}

/* ===============================
   RESPONSIVE VISIBILITY
================================= */
.desktop-only{display:block}
.mobile-only{display:none}

@media(max-width:900px){
    .desktop-only{display:none}
    .mobile-only{display:block}
}

/* ===============================
   MOBILE MENU (Material Drawer)
================================= */
.mobile-menu{
    position:fixed;
    top:0;
    right:-320px;
    width:320px;
    height:100%;
    background:var(--md-surface);
    box-shadow:var(--md-elev-3);
    z-index:1000;
    transition:right .3s ease;
    display:flex;
    flex-direction:column;
}

.mobile-menu.open{
    right:0;
}

.mobile-menu-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px;
    font-weight:700;
    border-bottom:1px solid var(--md-outline);
}

.mobile-menu-body{
    padding:12px 16px;
    overflow-y:auto;
}

.mobile-l1{
    margin-bottom:12px;
    font-weight:700;
}

.mobile-l2{
    margin-top:6px;
    padding-right:10px;
}

.mobile-l2 a{
    display:block;
    padding:6px 0;
    font-weight:400;
    font-size:13px;
    color:var(--md-muted);
}

/* ===============================
   BACKDROP
================================= */
.mobile-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease;
    z-index:999;
}

.mobile-backdrop.show{
    opacity:1;
    pointer-events:auto;
}

/* ===============================
   MOBILE ACCORDION MENU
================================= */
.mobile-item{
    border-bottom:1px solid var(--md-outline);
}

.mobile-l1,
.mobile-l2{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 0;
    cursor:pointer;
    font-weight:700;
}

.mobile-l2{
    font-size:13px;
    padding-right:10px;
}

.mobile-l3{
    display:block;
    padding:8px 0 8px 18px;
    font-size:12.5px;
    color:var(--md-muted);
    text-decoration:none;
}

.mobile-sub{
    max-height:0;
    overflow:hidden;
    transition:max-height .3s ease;
}

.mobile-item.open > .mobile-sub{
    max-height:1000px;
}

.arrow{
    transition:transform .3s ease;
    font-size:12px;
}

.mobile-item.open > .toggle .arrow{
    transform:rotate(180deg);
}
/* پیش‌فرض همه پنل‌ها مخفی */
.mega-panel {
    display: none;
}

/* فقط پنل فعال نمایش داده شود */
.mega-panel.active {
    display: block;
}
/* ===============================
   HEADER CENTER LINKS
================================= */
.header-nav{
    display:flex;
    align-items:center;
    gap:24px;
}

.header-center-links{
    display:flex;
    align-items:center;
    gap:20px;
    margin-right:24px;
}

.nav-link{
    font-size:14px;
    font-weight:600;
    color:var(--md-text);
    text-decoration:none;
    position:relative;
    padding:6px 0;
}

.nav-link::after{
    content:"";
    position:absolute;
    right:0;
    bottom:-4px;
    width:0;
    height:2px;
    background:var(--md-primary);
    transition:width .25s ease;
}

.nav-link:hover::after{
    width:100%;
}

.mobile-static-links a{
    display:block;
    padding:10px 0;
    font-weight:700;
    border-bottom:1px solid var(--md-outline);
}
/* پیش‌فرض: دسکتاپ */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* موبایل */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: inline-flex !important;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ستون مگا منو */
.header-mega {
    flex-shrink: 0;
}

/* لینک‌های وسط */
.header-center-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto;   /* هل دادن به وسط */
    margin-left: auto;    /* وسط واقعی */
}

/* اکشن‌ها */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ===============================
   CART 2-COLUMN LAYOUT
================================= */
.page-title{
    margin:18px 0 10px;
    font-size:18px;
    font-weight:900;
}

.cart-layout{
    display:grid;
    grid-template-columns: 1fr 340px; /* راست لیست، چپ پنل */
    gap:16px;
    align-items:start;
    margin-top:12px;
}

/* آیتم‌های سبد */
.cart-item{
    display:flex;
    justify-content:space-between;
    gap:12px;
    padding:14px;
}

.cart-item-info{
    flex:1;
    min-width:0;
}

.cart-item-title{
    font-weight:900;
    font-size:14px;
    margin-bottom:6px;
}

.cart-item-meta{
    font-size:13px;
    color:var(--md-muted);
}

.cart-item-actions{
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:flex-end;
    min-width:160px;
}

.cart-qty{
    display:flex;
    align-items:center;
    gap:8px;
    background:var(--md-surface-variant);
    border:1px solid var(--md-outline);
    border-radius:999px;
    padding:6px 10px;
}

.qty-btn{
    width:28px;
    height:28px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--md-surface);
    box-shadow:var(--md-elev-1);
    font-weight:900;
}

.qty-num{
    min-width:20px;
    text-align:center;
    font-weight:800;
}

.cart-item-subtotal{
    font-weight:900;
    color:var(--md-primary);
    font-size:13px;
}

.remove-link{
    color:#b00020;
    font-size:12.5px;
    text-decoration:none;
}

/* پنل خلاصه */
.cart-summary{
    position:sticky;
    top:90px; /* با توجه به ارتفاع هدر */
}

.cart-summary-card{
    padding:16px;
}

.summary-title{
    margin:0 0 12px;
    font-size:15px;
    font-weight:900;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid var(--md-outline);
}

.summary-row:last-of-type{
    border-bottom:none;
}

.summary-total{
    font-size:16px;
    color:var(--md-primary);
}

.summary-btn{
    margin-top:14px;
}

.summary-note{
    margin-top:10px;
    font-size:12.5px;
}

/* ریسپانسیو */
@media (max-width: 900px){
    .cart-layout{
        grid-template-columns: 1fr; /* زیر هم */
    }
    .cart-summary{
        position:static;
    }
    .cart-item{
        flex-direction:column;
        align-items:flex-start;
    }
    .cart-item-actions{
        width:100%;
        flex-direction:row;
        align-items:center;
        justify-content:space-between;
    }
}

/* ===============================
   FOOTER (3 COLUMN)
================================= */
.footer{
    margin-top:40px;
    background:var(--md-surface);
    box-shadow:var(--md-elev-1);
}

.footer-inner{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:24px;
    padding:24px 0;
}

.footer-col{
    font-size:13px;
}

.footer-title{
    margin:0 0 10px;
    font-size:14px;
    font-weight:900;
}

.footer-text{
    color:var(--md-muted);
    line-height:1.9;
}

.footer-links{
    list-style:none;
    padding:0;
    margin:0;
}

.footer-links li{
    margin-bottom:8px;
}

.footer-links a{
    text-decoration:none;
    color:var(--md-text);
    font-weight:500;
}

.footer-links a:hover{
    color:var(--md-primary);
}

/* اینماد */
.footer-enamad{
    text-align:center;
}

.enamad-box{
    display:flex;
    justify-content:center;
    align-items:center;
    background:var(--md-surface-variant);
    border-radius:var(--md-radius);
    padding:12px;
}

.enamad-box img{
    max-width:120px;
    height:auto;
}

/* پایین فوتر */
.footer-bottom{
    border-top:1px solid var(--md-outline);
    text-align:center;
    padding:12px 0;
    font-size:12.5px;
    color:var(--md-muted);
}

/* ریسپانسیو */
@media (max-width: 900px){
    .footer-inner{
        grid-template-columns: 1fr;
        text-align:center;
    }

    .footer-enamad{
        order:-1; /* اینماد بیاد بالا */
    }
}

/* ===============================
   FLAT PRODUCT LIST
================================= */
.flat-products{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:12px;
}

.flat-product{
    background:var(--md-surface);
    border:1px solid var(--md-outline);
    border-radius:12px;
    padding:14px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    transition:box-shadow .2s ease, transform .2s ease;
}

.flat-product:hover{
    box-shadow:var(--md-elev-2);
    transform:translateY(-2px);
}

/* عنوان */
.flat-title{
    font-size:14px;
    font-weight:700;
    color:var(--md-text);
    text-decoration:none;
    line-height:1.6;
    margin-bottom:10px;
}

/* پایین کارت */
.flat-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

/* قیمت */
.flat-price{
    font-weight:900;
    color:var(--md-primary);
    font-size:13.5px;
}

/* دکمه سبد خرید */
.flat-cart-btn{
    width:36px;
    height:36px;
    border-radius:50%;
    background:var(--md-primary);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:16px;
    box-shadow:var(--md-elev-1);
    transition:background .2s ease, transform .2s ease;
}

.flat-cart-btn:hover{
    background:var(--md-primary-hover);
    transform:scale(1.08);
}

/* ریسپانسیو */
@media (max-width:1000px){
    .flat-products{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:520px){
    .flat-products{
        grid-template-columns:1fr;
    }
}

/* ===============================
   PRODUCT IMAGE (FLAT)
================================= */
.flat-img{
    width:100%;
    height:160px;
    border-radius:12px;
    overflow:hidden;
    background:var(--md-surface-variant);
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:10px;
}

.flat-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.img-placeholder{
    font-size:12px;
    color:var(--md-muted);
}

/* ===============================
   NEW PRODUCTS - FLAT WITH IMAGE
================================= */
.new-flat-list{
    display:flex;
    flex-direction:column;
    margin-top:10px;
    border-top:1px solid var(--border);
}

/* هر آیتم */
.new-flat-item{
    display:grid;
    grid-template-columns: 70px 1fr auto;
    gap:12px;
    align-items:center;
    padding:12px 6px;
    border-bottom:1px solid var(--border);
    background:#fff;
}

/* عکس */
.new-flat-img{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
    overflow:hidden;
}

.new-flat-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.new-img-placeholder{
    font-size:11px;
    color:#9ca3af;
    text-align:center;
}

/* عنوان */
.new-flat-title{
    font-size:14px;
    font-weight:600;
    color:var(--text);
    text-decoration:none;
    line-height:1.6;
}

/* سمت راست */
.new-flat-right{
    display:flex;
    align-items:center;
    gap:14px;
    white-space:nowrap;
}

/* قیمت */
.new-flat-price{
    font-size:13px;
    font-weight:800;
    color:var(--brand);
}

/* دکمه مشاهده (فلت) */
.new-flat-view{
    font-size:13px;
    padding:6px 12px;
    border:1px solid var(--border);
    text-decoration:none;
    color:var(--text);
    background:#fff;
}

/* موبایل */
@media (max-width:520px){
    .new-flat-item{
        grid-template-columns:70px 1fr;
        grid-template-areas:
      "img title"
      "img right";
    }

    .new-flat-img{ grid-area: img; }
    .new-flat-title{ grid-area: title; }
    .new-flat-right{ grid-area: right; }
}

/* ===============================
   NEW PRODUCTS - CARD (SHADOW)
================================= */
.new-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:16px;
    margin-top:12px;
}

/* کارت */
/* ===============================
   NEW PRODUCTS GRID (NARROW)
================================= */
.new-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
    gap:14px;
    margin-top:12px;
}


/* عکس */
.new-img-wrap{
    position:relative;
    width:100%;
    height:170px;
    overflow:hidden;
    background:#f3f4f6;
}

.new-img-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .35s ease;
}

/* زوم روی عکس */
.new-img-wrap:hover img{
    transform:scale(1.08);
}

.new-img-placeholder{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    color:#9ca3af;
}

/* بدنه */
.new-card-body{
    padding:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

/* عنوان */
.new-card-title{
    font-size:14px;
    font-weight:700;
    color:var(--text);
    text-decoration:none;
    line-height:1.6;
}

/* پایین کارت */
.new-card-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:auto;
}

/* قیمت */
.new-card-price{
    font-size:13px;
    font-weight:800;
    color:var(--brand);
}

/* دکمه مشاهده */
.new-card-view{
    font-size:13px;
    padding:6px 14px;
    border:1px solid var(--border);
    text-decoration:none;
    color:var(--text);
    background:#fff;
}

/* ریسپانسیو */
@media (max-width:1100px){
    .new-grid{
        grid-template-columns:repeat(3, 1fr);
    }
}

@media (max-width:800px){
    .new-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width:480px){
    .new-grid{
        grid-template-columns:1fr;
    }
}
/* ===============================
   IMAGE SKELETON + LAZY
================================= */
.new-img-wrap{
    position:relative;
}

.img-skeleton{
    position:absolute;
    inset:0;
    background:linear-gradient(
            90deg,
            #f3f4f6 25%,
            #e5e7eb 37%,
            #f3f4f6 63%
    );
    background-size:400% 100%;
    animation:skeleton 1.4s ease infinite;
}

/* وقتی عکس لود شد، اسکلتون محو شود */
.lazy-img{
    opacity:0;
    transition:opacity .3s ease;
}

.lazy-img.loaded{
    opacity:1;
}

.lazy-img.loaded + .img-skeleton{
    display:none;
}

@keyframes skeleton{
    0%{background-position:100% 50%}
    100%{background-position:0 50%}
}
/* ===============================
   SUBTLE HOVER - VIEW BUTTON
================================= */
.new-card-view{
    font-size:13px;
    padding:6px 14px;
    border:1px solid var(--border);
    text-decoration:none;
    color:var(--text);
    background:#fff;
    transition:
            background-color .15s ease,
            border-color .15s ease;
}

.new-card-view:hover{
    background:#f9fafb;
    border-color:#d1d5db;
}
/* کارت با ارتفاع ثابت */
.new-card{
    background:#fff;
    border:1px solid var(--border);
    box-shadow:0 4px 10px rgba(0,0,0,.06);
    display:flex;
    flex-direction:column;
    height:320px;           /* ارتفاع ثابت */
}

/* عکس با ارتفاع ثابت */
.new-img-wrap{
    width:100%;
    height:170px;           /* ثابت */
    overflow:hidden;
    background:#f3f4f6;
    position:relative;
}

/* بدنه کارت */
.new-card-body{
    padding:10px 12px;
    display:flex;
    flex-direction:column;
    flex:1;                 /* پر کردن فضای باقی‌مانده */
}

/* عنوان: حداکثر 2 خط */
.new-card-title{
    font-size:13.5px;
    font-weight:700;
    color:var(--text);
    text-decoration:none;
    line-height:1.5;
    margin-bottom:6px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* پایین کارت همیشه پایین */
.new-card-bottom{
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
/* ===============================
   PRODUCT PAGE
================================= */
.product-layout{
    display:grid;
    grid-template-columns: 1.1fr .9fr;
    gap:24px;
    margin-top:20px;
}

/* گالری */
.product-gallery{
    background:#fff;
    border:1px solid var(--border);
    padding:12px;
}

.gallery-main{
    height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f3f4f6;
}

.gallery-main img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.gallery-main.empty{
    color:#9ca3af;
}

.gallery-thumbs{
    display:flex;
    gap:8px;
    margin-top:10px;
}

.gallery-thumbs img{
    width:70px;
    height:70px;
    object-fit:cover;
    cursor:pointer;
    border:1px solid var(--border);
}

/* اطلاعات */
.product-info{
    background:#fff;
    border:1px solid var(--border);
    padding:18px;
    display:flex;
    flex-direction:column;
}

.product-title{
    font-size:18px;
    font-weight:900;
    margin-bottom:12px;
}

.product-price{
    font-size:17px;
    font-weight:900;
    color:var(--brand);
    margin-bottom:12px;
}

.product-desc{
    line-height:1.9;
    color:#374151;
    margin-bottom:20px;
}

/* دکمه سبد */
.product-buy{
    margin-top:auto;
}

/* محصولات مشابه */
.related-products{
    margin-top:40px;
}

/* ریسپانسیو */
@media (max-width:900px){
    .product-layout{
        grid-template-columns:1fr;
    }

    .gallery-main{
        height:300px;
    }
}
/* Breadcrumb */
.breadcrumb{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    align-items:center;
    margin:14px 0 6px;
    font-size:12.5px;
    color:var(--muted);
}
.breadcrumb a{ color:var(--text); text-decoration:none; }
.bc-sep{ color:#9ca3af; }
.bc-current{ color:#111827; font-weight:700; }

/* Product layout */
.product-layout{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap:16px;
    margin-top:10px;
}
@media (max-width:900px){
    .product-layout{ grid-template-columns:1fr; }
}

/* Gallery */
.product-gallery{ padding:12px; }
.gallery-main{
    background:#f3f4f6;
    height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    overflow:hidden;
}
.gallery-main img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}
.gallery-thumbs{
    display:flex;
    gap:8px;
    margin-top:10px;
    flex-wrap:wrap;
}
.thumb-btn{
    border:1px solid var(--border);
    background:#fff;
    padding:0;
    width:74px;
    height:74px;
    cursor:pointer;
}
.thumb-btn img{ width:100%; height:100%; object-fit:cover; }

/* Info */
.product-info{ padding:16px; }
.product-title{ margin:0 0 10px; font-size:18px; font-weight:900; }
.product-price{ color:var(--brand); font-weight:900; font-size:17px; margin-bottom:10px; }
.product-desc{ color:#374151; line-height:1.9; margin:0 0 14px; }

/* Sticky buy box */
.buy-box{
    border-top:1px solid var(--border);
    padding-top:14px;
    margin-top:8px;
    position:sticky;
    top:90px;  /* با توجه به ارتفاع هدر */
    background:#fff;
}
@media (max-width:900px){
    .buy-box{ position:static; }
}

/* Qty */
.qty-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}
.qty-control{
    display:flex;
    align-items:center;
    gap:8px;
    background:#f3f4f6;
    border:1px solid var(--border);
    padding:6px 10px;
    border-radius:10px;
}
.qty-btn{
    width:30px;
    height:30px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-weight:900;
}
.qty-input{
    width:44px;
    text-align:center;
    border:none;
    background:transparent;
    outline:none;
    font-weight:800;
}
.buy-note{ margin-top:10px; font-size:12.5px; }

/* Lens zoom */
.zoom-wrap{ cursor:crosshair; }
.lens{
    position:absolute;
    width:140px;
    height:140px;
    border:2px solid rgba(239,57,78,.6);
    background:rgba(255,255,255,.15);
    display:none;
    pointer-events:none;
}
.zoom-wrap.zooming .lens{ display:block; }

/* ===============================
   CHECKOUT
================================= */
.checkout-layout{
    display:grid;
    grid-template-columns: 1fr 360px;
    gap:16px;
    margin-top:14px;
}

/* اطلاعات */
.checkout-main{
    padding:16px;
}

.checkout-title{
    margin:0 0 12px;
    font-size:15px;
    font-weight:900;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:18px;
}

.form-grid .full{
    grid-column:1 / -1;
}

/* ارسال */
.shipping-methods{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.radio-card{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:10px;
    border:1px solid var(--border);
    cursor:pointer;
}

.radio-card input{
    margin-top:3px;
}

.radio-card small{
    display:block;
    color:var(--muted);
    font-size:12px;
}

/* خلاصه */
.checkout-summary{
    position:sticky;
    top:90px;
}

.summary-card{
    padding:16px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    padding:8px 0;
    font-size:13px;
    border-bottom:1px solid var(--border);
}

.summary-row.total{
    border-bottom:none;
    font-weight:900;
    font-size:15px;
}

.pay-btn{
    margin-top:14px;
}

/* موبایل */
@media (max-width:900px){
    .checkout-layout{
        grid-template-columns:1fr;
    }

    .checkout-summary{
        position:static;
    }

    .form-grid{
        grid-template-columns:1fr;
    }
}
/* ===============================
   CHECKOUT (LIKE IMAGE)
================================= */
.checkout-page{
    margin-top:20px;
}

.checkout-grid{
    display:grid;
    grid-template-columns: 1fr 360px;
    gap:24px;
    align-items:start;
}

/* کارت‌ها */
.checkout-form,
.checkout-summary{
    padding:22px;
}

/* فرم */
.form-row{
    display:grid;
    gap:14px;
    margin-bottom:16px;
}

.form-row.two{
    grid-template-columns:1fr 1fr;
}

.form-row.three{
    grid-template-columns:1fr 1fr 1fr;
}

.md-field{
    position:relative;
}

.md-field input,
.md-field select{
    width:100%;
    padding:14px 12px;
    border-radius:14px;
    border:1px solid #e5e7eb;
    background:#fff;
    outline:none;
    font-family:inherit;
}

.md-field label{
    display:block;
    margin-bottom:6px;
    font-size:13px;
    color:#374151;
}

/* خطای فرم */
.md-field.error input,
.md-field.error select{
    border-color:#ef4444;
}

.error-text{
    color:#ef4444;
    font-size:12px;
    margin-top:4px;
    display:block;
}

/* خلاصه سفارش */
.checkout-summary{
    position:sticky;
    top:90px;
}

.discount-box{
    display:flex;
    gap:10px;
    margin-bottom:18px;
}

.discount-box input{
    flex:1;
    padding:12px;
    border-radius:14px;
    border:1px solid #e5e7eb;
}

.discount-btn{
    padding:0 16px;
    border-radius:14px;
    border:none;
    background:#e5e7eb;
    cursor:not-allowed;
}

.summary-line{
    display:flex;
    justify-content:space-between;
    padding:12px 0;
    border-bottom:1px solid #e5e7eb;
    font-size:14px;
}

.summary-line.total{
    font-weight:900;
    border-bottom:none;
}

.btn.disabled{
    background:#e5e7eb;
    cursor:not-allowed;
    margin-top:14px;
}

/* موبایل */
@media (max-width:900px){
    .checkout-grid{
        grid-template-columns:1fr;
    }

    .checkout-summary{
        position:static;
    }

    .form-row.two,
    .form-row.three{
        grid-template-columns:1fr;
    }
}
/* ===== PRODUCT LIST ===== */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
    margin-top: 24px;
}

@media (max-width: 1000px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 700px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 420px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    text-decoration: none;
    color: #111;
    display: block;
}

.product-image {
    position: relative;
    background: #f7f7f7;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* + button */
.product-plus {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2dbf8e;
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}

.product-card:hover .product-plus {
    opacity: 1;
}

/* info */
.product-info {
    padding-top: 10px;
    text-align: center;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    line-height: 1.6;
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: #555;
}
/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    margin: 14px 0;
    color: #666;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
}

/* Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.product-gallery {
    padding: 14px;
}
.gallery-main {

    overflow: hidden;
}
.gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: contain;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.gallery-thumbs img {
    width: 64px;
    height: 64px;

    cursor: pointer;
    border: 1px solid #eee;
}

/* Buy box */
.product-buy {
    padding: 18px;
}
.product-buy .product-title {
    font-size: 18px;
    margin-bottom: 6px;
}
.rating {
    margin-bottom: 10px;
}
.product-features {
    font-size: 13px;
    color: #444;
    padding-right: 16px;
}
.product-features li {
    margin-bottom: 6px;
}
.price-box {
    margin: 14px 0;
}
.price {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand);
}
.buy-btn {
    width: 100%;
    margin-top: 12px;
}
.product-meta {
    margin-top: 14px;
    font-size: 12px;
    color: #555;
}
.product-meta div {
    margin-top: 6px;
}

/* Tabs */
.product-tabs {
    margin-top: 22px;
    padding: 16px;
}
.tab-header {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
}
.tab-header button {
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 600;
}
.tab-header .active {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
}
.tab-content {
    margin-top: 14px;
    line-height: 1.9;
    font-size: 14px;
}

/* Related */
.section-title {
    margin: 28px 0 10px;
}
/* ===== Breadcrumb ===== */
.breadcrumb{
    display:flex; flex-wrap:wrap; gap:6px;
    font-size:13px; color:#666; margin:14px 0;
}
.breadcrumb a{ color:#666; text-decoration:none; }
.breadcrumb a:hover{ color:var(--brand); }
.crumb-current{ color:#222; font-weight:700; }

/* ===== Layout ===== */
.product-layout{
    display:grid;
    grid-template-columns: 1.15fr 0.85fr; /* راست گالری بزرگتر */
    gap:18px;
    align-items:start;
}
@media (max-width: 980px){
    .product-layout{ grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.card{
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

/* ===== Gallery ===== */
.product-gallery{ padding:14px; }
.gallery-grid{
    position:relative;
    display:grid;
    grid-template-columns: 1fr;
    gap:0;
}
.zoom-container{
    position:relative;
    border-radius:14px;
    overflow:hidden;
    background:#fff;
    border:1px solid var(--border);
}
.zoom-container img{
    width:100%;
    height: 430px;
    object-fit: contain;
    display:block;
}
@media (max-width: 980px){
    .zoom-container img{ height: 360px; }
}
.gallery-empty{
    height:430px;
    display:flex; align-items:center; justify-content:center;
    color:var(--muted);
}

/* lens */
.zoom-lens{
    position:absolute;
    width:120px; height:120px;
    border:2px solid rgba(0,0,0,.15);
    background: rgba(255,255,255,.25);
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    display:none;
    cursor: crosshair;
    border-radius: 10px;
}

/* zoom result */
.zoom-result{
    position:absolute;
    top:0;
    left:-420px;   /* سمت چپ گالری */
    width: 400px;
    height: 400px;
    display:none;
    background-repeat:no-repeat;
    border-radius: 16px;
    border:1px solid var(--border);
    box-shadow: 0 16px 35px rgba(0,0,0,.10);
    z-index: 10;
}
@media (max-width: 1200px){
    .zoom-result{ left:-340px; width:320px; height:320px; }
}
@media (max-width: 980px){
    .zoom-result{ display:none !important; }
}

/* thumbs */
.gallery-thumbs{
    display:flex; gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}
.thumb-btn{
    border:0; background:transparent; padding:0;
    cursor:pointer;
}
.thumb-btn img{
    width:64px; height:64px;
    border-radius:12px;
    object-fit:cover;
    border:1px solid var(--border);
    transition: transform .2s ease;
}
.thumb-btn:hover img{ transform: translateY(-1px); }

/* ===== Left side (tabs + buy) ===== */
.product-side{
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* Tabs card */
.product-tabs{ padding:14px 14px 10px; }
.tab-buttons{
    display:flex; gap:16px;
    border-bottom:1px solid var(--border);
}
.tab-btn{
    background:none; border:0;
    cursor:pointer;
    padding:8px 0;
    font-weight:800;
    font-size:13px;
    color:#444;
}
.tab-btn.active{
    color:var(--brand);
    border-bottom:2px solid var(--brand);
}
.tab-panels{ padding-top:12px; }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }
.tab-text{
    font-size:13.5px;
    color:#2f2f2f;
    line-height:1.95;
}
.tab-empty{
    color:var(--muted);
    font-size:13px;
}

/* spec list */
.spec-list{
    list-style:none; padding:0; margin:0;
    display:grid; gap:10px;
}
.spec-list li{
    display:flex; justify-content:space-between;
    border:1px dashed var(--border);

    padding:10px 12px;
    font-size:13px;
}
.spec-list li span{ color:var(--muted); }
.spec-list li strong{ color:#111; }

/* Buy box */
.product-buy{ padding:16px; }
.p-title{
    margin:0 0 8px;
    font-size:16px;
    font-weight:900;
    line-height:1.8;
}
.p-rating{
    display:flex; align-items:center; gap:8px;
    margin-bottom:10px;
}
.stars{ color:#f59e0b; letter-spacing:1px; }
.rating-note{ color:var(--muted); font-size:12px; }

.p-bullets{
    margin:0 0 14px;
    padding-right:16px;
    color:#444;
    font-size:13px;
}
.p-bullets li{ margin:6px 0; }

.p-price-row{ margin:12px 0 10px; }
.p-price{
    font-size:18px;
    font-weight:900;
    color:var(--brand);
}

/* your button style exists; just enforce */
.buy-btn{

    padding:12px 14px;
}

/* meta */
.p-meta{
    margin-top:12px;
    display:grid; gap:8px;
    color:#555;
    font-size:12px;
}
.meta-item{
    background:#fafafa;
    border:1px solid var(--border);
    border-radius:12px;
    padding:10px 12px;
}

/* Related section reuse your product-list styles if you already added them */
.section-title{
    margin:28px 0 10px;
    font-size:15px;
    font-weight:900;
}
/* ===== TOP LAYOUT ===== */
.product-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .product-top {
        grid-template-columns: 1fr;
    }
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 18px;
}

.product-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.9;
    margin-bottom: 10px;
}

.product-rating {
    margin-bottom: 10px;
    color: #f59e0b;
}

.product-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--brand);
    margin: 14px 0;
}

.buy-btn {
    margin-bottom: 14px;
}

.product-badges {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #444;
}

.product-badges li {
    margin-bottom: 6px;
}

/* ===== TABS DOWN ===== */
.product-tabs {
    padding: 16px;
    margin-top: 24px;
}

.tab-buttons {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 800;
    padding: 10px 0;
}

.tab-btn.active {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
}

.tab-content {
    margin-top: 14px;
}

.tab-panel {
    display: none;
    line-height: 2;
    font-size: 14px;
}

.tab-panel.active {
    display: block;
}
.cart-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cart-modal.show {
    display: flex;
}

.cart-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    width: 320px;
    text-align: center;
    animation: scaleIn .25s ease;
}

.cart-modal-icon {
    font-size: 42px;
    margin-bottom: 8px;
}

.cart-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}

@keyframes scaleIn {
    from { transform: scale(.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* ===== Flat Shipping Rows ===== */

.shipping-flat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* هر سطر */
.shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease;
}

/* رادیو مخفی */
.shipping-row input {
    display: none;
}

/* hover خیلی ظریف */
.shipping-row:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

/* انتخاب شده */
.shipping-row input:checked ~ .shipping-title,
.shipping-row input:checked ~ .shipping-price {
    color: var(--brand);
}

.shipping-row input:checked {
    /* فقط برای فعال شدن sibling selector */
}

.shipping-row:has(input:checked) {
    border-color: var(--brand);
    background: #fff5f6;
}

/* عنوان */
.shipping-title {
    font-size: 14px;
    font-weight: 500;
}

/* قیمت */
.shipping-price {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* موبایل */
@media (max-width: 600px) {
    .shipping-row {
        padding: 12px 14px;
    }
}
/* ===== Shipping Flat Rows (FINAL) ===== */

.shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-top: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all .15s ease;
    font-size: 14px;
}

/* مخفی کردن رادیو */
.shipping-row input {
    display: none;
}

/* hover */
.shipping-row:hover {
    border-color: #d1d5db;
    background: #fafafa;
}

/* انتخاب شده */
.shipping-row input:checked ~ .shipping-title,
.shipping-row input:checked ~ .shipping-price {
    color: var(--brand);
    font-weight: 600;
}

.shipping-row input:checked ~ .shipping-price {
    font-weight: 800;
}

.shipping-row:has(input:checked) {
    border-color: var(--brand);
    background: #fff5f6;
}

/* عنوان */
.shipping-title {
    flex: 1;
}

/* قیمت */
.shipping-price {
    white-space: nowrap;
}
.shipping-row.active {
    border-color: var(--brand);
    background: #fff5f6;
}

/* ===============================
   AUTH (LOGIN / REGISTER)
================================= */
.auth-page{
    min-height: calc(100vh - 120px); /* با در نظر گرفتن هدر */
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px 16px;
    background: var(--md-background);
}

.auth-card{
    width:100%;
    max-width:420px;
    background: var(--md-surface);
    border-radius: 20px;
    padding:28px 26px;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    border:1px solid var(--md-outline);
}

.auth-title{
    margin:0 0 22px;
    font-size:20px;
    font-weight:900;
    text-align:right;
}

/* فاصله بهتر فیلدها */
.auth-card .md-field{
    margin-bottom:18px;
}

/* دکمه ورود */
.auth-btn{
    margin-top:10px;
    height:48px;
    font-size:15px;
}

/* پایین فرم */
.auth-footer{
    margin-top:18px;
    text-align:center;
    font-size:13px;
    color:var(--md-muted);
}

.auth-footer a{
    color:var(--md-primary);
    font-weight:700;
    text-decoration:none;
}

.auth-footer a:hover{
    text-decoration:underline;
}

/* موبایل */
@media (max-width:480px){
    .auth-card{
        padding:22px 18px;
        border-radius:16px;
    }

    .auth-title{
        font-size:18px;
    }
}
.hidden{
    display:none;
}

.error-text{
    color:#ef4444;
    font-size:12px;
    margin-top:4px;
}

.md-field.error input{
    border-color:#ef4444;
}
/* ===============================
   HEADER USER
================================= */
.user-box{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:13px;
}

.user-greet{
    color:var(--md-muted);
}

.user-name{
    font-weight:800;
    color:var(--md-text);
    text-decoration:none;
}

.user-name:hover{
    color:var(--md-primary);
}

.user-logout{
    font-size:12.5px;
    color:#ef4444;
    text-decoration:none;
    margin-right:6px;
}

.user-logout:hover{
    text-decoration:underline;
}
