/*
Theme Name: MSN Electronic
Author: MSN
Version: 3.0
*/

/* =========================
ROOT
========================= */

:root{

--primary:#0B3B5A;
--secondary:#E87A00;
--accent:#2DD4BF;
--light:#F8FAFC;
--border:#E5E7EB;
--text:#111827;
--muted:#6B7280;

}

/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{

direction:rtl;

background:var(--light);

color:var(--text);

font-family:tahoma,sans-serif;

font-size:14px;

line-height:1.8;

}

a{

text-decoration:none;

color:inherit;

transition:.3s;

}

img{

max-width:100%;

display:block;

}

ul{
list-style:none;
}

/* =========================
CONTAINER
========================= */

.container{

width:92%;

max-width:1450px;

margin:auto;

}

/* =========================
HEADER
========================= */

.site-header{

background:#fff;

border-bottom:1px solid var(--border);

position:sticky;

top:0;

z-index:9999;

}

.header-container{

min-height:82px;

display:flex;

align-items:center;

justify-content:space-between;

gap:20px;

}

/* LOGO */

.site-logo{

flex-shrink:0;

}

.site-logo img{

height:58px;

width:auto;

object-fit:contain;

}

/* SEARCH */

.header-search{

flex:1;

max-width:720px;

display:flex;

height:50px;

border:2px solid var(--border);

border-radius:14px;

overflow:hidden;

background:#fff;

}

.header-search input{

flex:1;

border:none;

outline:none;

padding:0 18px;

font-size:14px;

background:#fff;

}

.header-search button{

width:65px;

border:none;

background:var(--secondary);

color:#fff;

cursor:pointer;

font-size:18px;

}

/* ACTIONS */

.header-left{

display:flex;

align-items:center;

gap:10px;

}

.header-icon{

width:42px;

height:42px;

border-radius:12px;

background:#F3F4F6;

display:flex;

align-items:center;

justify-content:center;

font-size:18px;

color:var(--primary);

}

.header-icon:hover{

background:var(--primary);

color:#fff;

}

/* =========================
HERO
========================= */

.hero-section{

padding:50px 0;

}

.hero-box{

background:linear-gradient(135deg,#0B3B5A 0%,#14507A 100%);

border-radius:24px;

padding:70px 60px;

text-align:center;

border:none;

position:relative;

overflow:hidden;

}

.hero-box h1{

font-size:42px;

margin-bottom:18px;

color:#fff;

font-weight:800;

}

.hero-box p{

color:#dbeafe;

font-size:16px;

margin-bottom:35px;

}

.hero-box p{

color:var(--muted);

font-size:15px;

margin-bottom:35px;

}

.hero-search{

max-width:720px;

margin:auto;

display:flex;

height:58px;

border-radius:14px;

overflow:hidden;

background:#fff;

box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.hero-search input{

flex:1;

border:none;

outline:none;

padding:0 20px;

}

.hero-search button{

width:140px;

border:none;

background:#E87A00;

color:#fff;

cursor:pointer;

font-size:15px;

font-weight:700;

transition:.3s;

}

.hero-search button:hover{

background:#cf6c00;

}

/* =========================
CATEGORY BOX
========================= */

.category-grid{

display:grid;

grid-template-columns:repeat(6,1fr);

gap:18px;

margin-top:30px;

}
.category-card{

    background:var(--primary);

    border-radius:18px;

    padding:28px 20px;

    text-align:center;

    border:1px solid transparent;

    transition:.3s;

    color:#fff;

    position:relative;

    overflow:hidden;
}

.category-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(255,255,255,0.08),
        transparent
    );

    opacity:0;

    transition:.3s;
}

.category-card:hover{

    transform:translateY(-6px);

    border-color:var(--secondary);

    background:#0f4b73;
}

.category-card:hover::before{

    opacity:1;
}
.category-card:hover h3{
    color:#E87A00;
}
.category-card h3{

    margin-top:10px;

    font-size:16px;

    font-weight:600;

    color:#fff;
}
/* =========================
SECTION
========================= */

.section{

padding:60px 0;

}

.section-title{

display:flex;

align-items:center;

justify-content:space-between;

margin-bottom:24px;

}

.section-title h2{

font-size:24px;

color:var(--primary);

}

/* =========================
PRODUCTS
========================= */

.products-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:25px;

}

.product-card{

background:#fff;

border-radius:18px;

overflow:hidden;

border:1px solid #e5e7eb;

transition:.3s;

box-shadow:0 4px 15px rgba(0,0,0,.06);

}

.product-card:hover{

transform:translateY(-6px);

border-color:#2DD4BF;

box-shadow:0 12px 30px rgba(11,59,90,.15);

}
.product-card:hover .product-image img{
    transform:scale(1.05);
}

.product-image{

aspect-ratio:1/1;

background:#fff;

padding:20px;

text-align:center;

}

.product-image img{

width:100%;

height:260px;

object-fit:contain;

transition:.3s;

}

.product-content{

padding:12px;

}

.product-title{

font-size:14px;

line-height:1.6;

min-height:40px;

margin-bottom:8px;

color:#0B3B5A;

}

.product-price{

color:#E87A00;

font-weight:700;

font-size:18px;

}

/* =========================
FOOTER
========================= */

.site-footer{

background:#0B1F33;

margin-top:80px;

padding:60px 0 20px;

color:#fff;

}

.footer-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:40px;

}

.footer-logo img{

max-width:200px;

height:auto;

margin-bottom:15px;

filter: brightness(1.15);
}

.footer-description{

color:#b7c4d3;

line-height:2;

margin-top:15px;

}

.footer-title{

font-size:18px;

margin-bottom:20px;

color:#fff;

}

.footer-links{

list-style:none;

padding:0;

margin:0;

}

.footer-links li{

margin-bottom:12px;

}

.footer-links a{

color:#b7c4d3;

text-decoration:none;

transition:.3s;

}

.footer-links a:hover{

color:#2DD4BF;

padding-right:5px;

}

.footer-contact{

list-style:none;

padding:0;

margin:0;

}

.footer-contact li{

margin-bottom:15px;

color:#b7c4d3;

line-height:1.8;

}

.footer-bottom{

margin-top:50px;

padding-top:20px;

border-top:1px solid rgba(255,255,255,.1);

text-align:center;

color:#8ea0b5;

font-size:14px;

}

@media(max-width:768px){

.footer-grid{

grid-template-columns:1fr;

gap:30px;

}

}

/* =========================
RESPONSIVE
========================= */

@media(max-width:1100px){

.products-grid{

    grid-template-columns:repeat(3,1fr);
}

.category-grid{

    grid-template-columns:repeat(3,1fr);
}

}

@media(max-width:768px){

.header-container{

    flex-wrap:wrap;

    padding:15px 0;
}

.header-search{

    order:3;

    width:100%;

    max-width:100%;
}

.hero-box{

    padding:35px 20px;
}

.hero-box h1{

    font-size:28px;
}

.products-grid{

    grid-template-columns:repeat(2,1fr);
}

.category-grid{

    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:520px){

.products-grid{

    grid-template-columns:repeat(2,1fr);
}

.category-grid{

    grid-template-columns:1fr 1fr;
}

}
body{
    margin:0;
    font-family:tahoma;
    background:#f5f7fa;
}

/* HEADER */

.main-header{
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    position:sticky;
    top:0;
    z-index:999;
}

.header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 40px;
}

.logo-area img{
    height:60px;
}

.search-area{
    flex:1;
    margin:0 40px;
}

.search-area form{
    display:flex;
}

.search-area input{
    flex:1;
    height:50px;
    border:2px solid #ff6b00;
    border-left:none;
    border-radius:0 12px 12px 0;
    padding:0 15px;
    font-size:16px;
}

.search-area button{
    width:120px;
    border:none;
    background:#ff6b00;
    color:#fff;
    font-size:16px;
    border-radius:12px 0 0 12px;
    cursor:pointer;
}

.header-icons{
    display:flex;
    gap:10px;
}

.header-btn{
    background:#0d1b2a;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    text-decoration:none;
}

.main-menu{
    display:flex;
    justify-content:center;
    gap:35px;
    padding:15px;
    background:#0d1b2a;
}

.main-menu a{
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:0.3s;
}

.main-menu a:hover{
    color:#ff6b00;
}
.category-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:24px;

}

.category-card{

background:#fff;

border-radius:20px;

padding:12px;

border:2px solid transparent;

transition:.35s;

box-shadow:0 4px 15px rgba(0,0,0,.05);

}

.category-card:hover{

transform:translateY(-8px);

border-color:#E87A00;

}

.category-card img{

width:100%;

aspect-ratio:1/1;

object-fit:cover;

border-radius:14px;

margin-bottom:12px;

}

.category-card h3{

margin-top:10px;

font-size:18px;

font-weight:700;

color:#0B3B5A;

}

@media(max-width:768px){

.category-grid{

grid-template-columns:repeat(2,1fr);

}

}
.hero-banner{
    padding:30px 0;
}

.banner-wrapper{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    box-shadow:0 15px 40px rgba(11,59,90,.15);
}

.banner-wrapper img{
    display:block;
    width:100%;
    height:auto;
    border-radius:24px;
}

.banner-btn{
    position:absolute;
    bottom:30px;
    left:30px;

    background:#E87A00;
    color:#fff;

    padding:14px 28px;

    border-radius:12px;

    text-decoration:none;

    font-weight:bold;

    transition:.3s;
}

.banner-btn:hover{
    transform:translateY(-3px);
}
*{
    box-sizing:border-box;
}

html,
body{
    overflow-x:hidden;
    max-width:100%;
}
/* =========================
MOBILE HEADER FIX
========================= */

@media(max-width:768px){

    .header-top{
        flex-direction:column;
        padding:15px;
        gap:15px;
    }

    .logo-area{
        width:100%;
        text-align:center;
    }

    .logo-area img{
        height:50px;
        margin:auto;
    }

    .search-area{
        width:100%;
        margin:0;
    }

    .search-area form{
        width:100%;
    }

    .search-area input{
        width:100%;
    }

    .header-icons{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
    }

    .header-btn{
        flex:1;
        text-align:center;
    }

    .main-menu{
        flex-wrap:wrap;
        gap:10px;
        padding:10px;
    }

    .main-menu a{
        font-size:14px;
    }

}

@media(max-width:768px){
    .banner-btn{
        bottom:8px;
        left:8px;
        padding:3px 8px;
        font-size:9px;
        border-radius:10px;
    }
}

/* صفحه محصول */

.single-product .product{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.single-product div.images{
    width:45%;
}

.single-product div.summary{
    width:55%;
}

.single-product div.images img{
    width:100%;
    max-width:500px;
    height:auto;
    object-fit:contain;
    display:block;
    margin:auto;
}