body{
    background:#f5f7fb;
}

.hmd-card{
    width:200px;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:18px;
    padding:20px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.3s;
    cursor:pointer;
    overflow:hidden;
}

.hmd-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.hmd-card img{
    width:150px;
    height:150px;
    object-fit:contain;
    transition:.3s;
}

.hmd-card:hover img{
    transform:scale(1.08);
}

.hmd-card strong{
    display:block;
    margin-top:15px;
    font-size:20px;
    color:#222;
}

.hmd-card a{
    text-decoration:none;
    color:inherit;
}

#hmd-search{
    width:100%;
    max-width:600px;
    padding:15px 20px;
    border-radius:50px;
    border:2px solid #ddd;
    font-size:18px;
    margin:30px auto;
    display:block;
    outline:none;
}

#hmd-search:focus{
    border-color:#0d6efd;
}
.hmd-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}
body{
    background:linear-gradient(135deg,#f4f7fb,#e9eef7);
}

.page .entry-content,
.elementor-widget-shortcode,
.elementor-shortcode,
.elementor-widget-container{
    width:100% !important;
    max-width:100% !important;
}
.hmd-grid{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:20px !important;
    width:100% !important;
}

@media (max-width:768px){
    .hmd-grid{
        grid-template-columns:repeat(2,1fr) !important;
    }
}

.hmd-grid{
    background:#ffffff;
    border-radius:25px;
    padding:40px;
    box-shadow:0 10px 40px rgba(0,0,0,.08);
}

h1,h2{
    text-align:center;
    color:#222;
    font-weight:700;
}
/* تأثير البطاقة */
.hmd-card{
    position:relative;
    overflow:hidden;
}

.hmd-card::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:4px;
    background:#007bff;
    transition:.4s;
}

.hmd-card:hover::before{
    left:0;
}

.hmd-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

/* الصورة */
.hmd-card img{
    transition:.3s;
}

.hmd-card:hover img{
    transform:scale(1.08);
}

/* اسم الموديل */
.hmd-card strong{
    display:block;
    font-size:18px;
    font-weight:700;
    margin-top:15px;
}
.hmd-count{
    margin-top:10px;
    color:#666;
    font-size:14px;
    font-weight:500;
}
.hmd-arrow{
    width:40px;
    height:40px;
    margin:15px auto 0;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:bold;
    transition:.3s;
}

.hmd-card:hover .hmd-arrow{
    transform:translateX(6px);
    background:#0056d6;
}
.hmd-title{
    font-size:20px;
    font-weight:700;
    color:#222;
    margin-top:15px;
    margin-bottom:10px;
    text-align:center;
}

.hmd-button{
    margin-top:18px;
    background:#0d6efd;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    font-size:15px;
    font-weight:600;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    transition:.3s;
}

.hmd-card:hover .hmd-button{
    background:#0056d6;
}

.hmd-button span{
    transition:.3s;
}

.hmd-card:hover .hmd-button span{
    transform:translateX(5px);
}
.hero-section{
    background:linear-gradient(135deg,#0b5ed7,#0a2a66);
    padding:60px 20px;
    border-radius:0 0 30px 30px;
    margin-bottom:40px;
}

.entry-header{
    background:transparent;
    text-align:center;
}

.page-title{
    color:#fff !important;
    font-size:46px !important;
    font-weight:700;
    margin:0 !important;
}

.page-title::after{
    content:"ابحث عن موديل هاتفك واختر قطع الغيار المناسبة";
    display:block;
    margin-top:15px;
    font-size:18px;
    font-weight:400;
    color:#dbe8ff;
}
.hmd-hero{
    background: linear-gradient(135deg,#0b5ed7,#082b63);
    padding:70px 20px;
    border-radius:0 0 30px 30px;
    text-align:center;
    margin-bottom:40px;
}

.hmd-hero h1{
    color:#fff;
    font-size:52px;
    margin:0;
    font-weight:700;
}

.hmd-hero p{
    color:#e8f2ff;
    font-size:22px;
    margin:20px 0;
}

.hmd-features{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    color:#fff;
    font-size:18px;
    margin-top:20px;
}
body{
    background:#0b1f4d important;
}
.entry-header{
    display:none !important;
}

.hero-section{
    margin-top:0 !important;
    padding-top:0 !important;
}

.site-main{
    padding-top:0 !important;
}
.entry-header .page-title{
    display:none !important;
}
.site-main{
    margin-top:0 !important;
    padding-top:0 !important;
}

.ct-container-full{
    padding-top:0 !important;
    margin-top:0 !important;
}

.hero-section{
    margin-top:-80px !important;
}
@media (max-width:768px){

.hmd-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.hmd-card{
    width:100% !important;
    padding:15px;
}

.hmd-card img{
    width:100px;
    height:100px;
}

.hmd-card h3{
    font-size:22px;
}

.hmd-button{
    width:100%;
    padding:12px;
}

}
.hmd-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    max-width:1200px;
    margin:auto;
}

@media (max-width:768px){

.hmd-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
}

.hmd-card{
    width:100% !important;
    padding:15px !important;
}

.hmd-card img{
    width:100px !important;
    height:100px !important;
}

.hmd-title{
    font-size:22px;
}

.hmd-button{
    width:100%;
    font-size:18px;
}

}
.hmd-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:15px !important;
}

@media (min-width:769px){
    .hmd-grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    }
}

.hmd-card{
    width:auto !important;
    max-width:none !important;
}
/* بطاقات المنتجات */
.product-card{
    width:100%;
    background:#fff;
    border:1px solid #e5e5e5;
    border-radius:18px;
    padding:15px;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    overflow:hidden;
}

.product-link{
    display:block;
    color:#000;
    text-decoration:none;
}

.product-card img{
    width:100%;
    max-width:160px;
    height:160px;
    object-fit:contain;
    display:block;
    margin:auto;
}

.product-title{
    font-size:20px;
    line-height:1.4;
    margin:15px 0;
    word-break:break-word;
    overflow-wrap:anywhere;
}

.product-price{
    font-size:20px;
    font-weight:bold;
    color:#0d6efd;
}

@media(max-width:768px){

.product-card img{
    max-width:100px;
    height:100px;
}

.product-title{
    font-size:16px;
    min-height:70px;
}

.product-price{
    font-size:16px;
}

}