/* CSS Document */


html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1em;
	vertical-align: baseline;

	color:#555;

}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}

a {
	text-decoration: none;
	line-height:inherit;
}

input{ 
	outline:none; 
	border:none;
	min-height:33px;
}
select{ 
	outline:none; 
	border:none;
	min-height:33px;
	background:#fdfdfd;
	border:1px solid #ddd;
}

body {

	text-align:right;
	color:#555;
	text-align:right;
	direction:rtl;
	line-height:1.6;
	-webkit-font-smoothing: antialiased;
	-moz-font-smoothing: antialiased;
	font-smoothing: antialiased;
	background-color:#fff;
	background-position:top;
	background-repeat:repeat-x;
	
}

.in_page .content{
width:100%;
}
/* header */
header{
	float:right;
	position:relative;
	width:100%;
	background:#fff;
	color:#555;

	height:50px;
	font-weight:bold;
	font-size: 1em;;
	
}
.header{
	position:relative;
	margin:auto;
	margin-top:3px;
	width:100% !important;

	
}


table,th,td
{
/*border:1px solid #F3F3F3; omar abed 20.11.15.11.50.am*/
border-collapse:collapse;
direction:rtl;
}
table{
	width:100%;
	
}
td{
	padding-right:10px;
	
	color:#6A6A6A;
	line-height:20px;
	padding-top:5px;
	padding-bottom:5px;
}
.head{
	float:right;
	position:relative;
	height:75px;
	width:100%;
}


#menu{
  margin-right:10%;
}


.logo{
	right:-20px;
	top:33px;
	float:left !important;
	position:absolute;
	z-index:99999999999999999999999999999999999999999999 !important;
}
@media (max-width: 992px) {
  .logo{
	  right:-30px;
	  top:33px;
  }
  .img_logo{
    max-width:66px;
    max-height:66px;
  }
}

@media (max-width: 768px) {
  .logo{
	  right:-30px;
	  top:33px;
  }
  .img_logo{
    max-width:50px;
    max-height:50px;
  }
}

@media (max-width: 550px) {
  .logo{
	  right:-30px;
	  top:33px;
  }
  .img_logo{
    max-width:44px;
    max-height:44px;
  }
}

@media (max-width: 400px) {
  .logo{
	  right:-30px;
	  top:33px;
  }
  .img_logo{
    max-width:41px;
    max-height:41px;
  }
}

@media (max-width: 320px) {
  .logo{
	  right:-30px;
	  top:33px;
  }
  .img_logo{
    max-width:38px;
    max-height:38px;
  }
}




/* content */
.content{
	margin:auto;
	position:relative;
	width:100%;
}






/* footer */
footer{
	float:right;
	position:relative;
	width:100%;

	background: #fff;
	
	box-shadow: 0px -1px 3px #888;
	font-weight:bold;
	color:#fff;

	
	
}
.footer{
	margin:auto;

	width:1100px;
	position:relative;

}
footer  div  img{
height:80px;
margin:10px;
}



/*============================================================*//*firms and section */
#firms_menu{
	float:center;
	position:relative;
	height:36px;


}
#firms_menu li{
	float:right;
	position:relative;
	list-style:none;

}
#firms_menu li a{
	float:right;
	position:relative;
	line-height:28px;

	border:1px solid #cfd1d3;
	
	font-size:14px;
	
	background:#fff ;
	
	
	
}

#firm_sections_tab{
	float:center;
	position:relative;
	width:100%;



}
#firm_sections_tab li{
	float:right;
	position:relative;
	list-style:none;
	margin-right:5px;
}
#firm_sections_tab li a{
	float:right;
	position:relative;
	padding:0 20px;
	line-height:28px;
	margin-top:6px;
	border:1px solid #cfd1d3;
	
	font-size:14px;
	
	background:#fff !important;
	
	
	color:#000;
}





.active2 a{

	background:#fff;
	
	border:1px solid #180B85 !important;
	color:#180B85  !important;
	text-shadow:0px 0px 1px #951C8F;
	
	
}



 

.input{
	float:right;
	position:relative;
	width:49%;
	margin-left:2%;
	min-height:35px;
	margin-bottom:20px;
}

.input label{
	float:right;
	position:relative;
	line-height:35px;
	width:25%;
	text-align:right;
	direction:rtl;
	font-size:13px;
	color:#444444;
}
.input input[type="text"], .input input[type="email"], .input input[type="password"]{
	float:right;
	position:relative;
	width:66%;
	background-color:#fff;
	border:1px solid #eee;
	height:33px;
	direction:rtl;
	text-align:right;
	padding:0 2%;

	font-size:12px;
	color:#999;
}

.select_style{
	float:right;
	position:relative;
	width:70.5%;
	background-color:#fff;
	border:1px solid #eee;
	height:33px;
	direction:rtl;
	text-align:right;
	padding:0 2%;

	font-size:12px;
	color:#999;
}
.input input[type="date"]{
	float:right;
	position:relative;
	width:66%;
	background-color:#fff;
	border:1px solid #eee;
	height:33px;
	direction:rtl;
	text-align:right;
	padding:0 2%;

	font-size:12px;
	color:#999;
}
.input textarea{
	float:right;
	position:relative;
	width:66%;
	background-color:#fff;
	border:1px solid #eee;
	min-height:100px;
	resize:none;
	direction:rtl;
	text-align:right;
	padding:2%;

	font-size:12px;
	color:#999;
}
.input input[type="number"]{
	float:right;
	position:relative;
	width:20%;
	background-color:#fff;
	border:1px solid #eee;
	height:33px;
	direction:rtl;
	text-align:right;
	padding:0 2%;
}

.message{
	float:right;
	position:relative;
	width:100%;
	margin-top:-10px;

}
.warning{
	float:right;
	position:relative;
	width:97%;
	padding-right:3%;
	line-height:30px;
	direction:rtl;
	text-align:right;
	margin-bottom:15px;
	background-color:#fcf8e3;
	color:#8a6d3b;
	border:1px solid #faebcc;
}
.success{
	float:right;
	position:relative;
	width:97%;
	padding-right:3%;
	line-height:30px;
	direction:rtl;
	text-align:right;
	margin-bottom:15px;
	background-color:#dff0d8;
	color:#3c763d;
	border:1px solid #d6e9c6;
}
.error{
	float:right;
	position:relative;
	width:97%;
	padding-right:3%;
	line-height:30px;
	direction:rtl;
	text-align:right;
	margin-bottom:15px;
	background-color:#f2dede;
	color:#a94442;
	border:1px solid #ebccd1;
}
.options{
	float:right;
	position:relative;
	width:100%;
	margin-top:10px;
	
}
.save{
	float:left;
	position:relative;
	height:40px;
	width:96px;
	color:#fff;
	background-color:#199eb1;

	background-image:url(../images/save.png);
	background-position:right 13px center;
	background-repeat:no-repeat;
	cursor:pointer;

}
.save:hover{
	background-color:#3C763D;
}
.concel:hover{
	background-color:#FCF8E3;
}
.concel{
	float:left;
	position:relative;
	height:40px;
	width:110px;
	color:#ff8a00;
	background-color:#63B87E;

	background-image:url(../images/concel.png);
	background-position:right 10px center;
	background-repeat:no-repeat;
	cursor:pointer;
	margin-left:15px;
}




/******************** css***********************/
.sigin_msg {
	
	background:#63B87E;
	padding:8px;
	float:right;
	margin:8px 10px;
	font-size:15px;
	display:none;
}

.sigin_msg .fa-exclamation-triangle {
	color:#199EB1;
	font-size:18px;
}

/*****************checkout**********************/
.checkout {
	float:right;
	margin:10px;
	padding:5px 10px;
	background:#63B87E;
	color:#FFF;
	font-size:18px;
	cursor:pointer;
}





/*******************************************************************(firm grid block)*/

.firms-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* أو center */
    padding: 16px 8px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 0; /* نلغي gap ونستخدم padding بدلاً منه */
}

.firm {
    position: relative;
    width: 25%; /* 4 بطاقات في الصف على سطح المكتب */
    padding: 0 8px; /* مسافة أفقية بين البطاقات */
    box-sizing: border-box;
    margin-bottom: 16px; /* مسافة عمودية */
    flex-shrink: 0;
    height:300px;
}

/* الوجه الأمامي */
.firm_face {
    width: 100%;
    height: 100%;
    padding: 12px 12px 0 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.firm_face h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 4px 0;
    text-align: center;
    text-decoration: none;
}

.firm_face h4 {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
    font-weight: normal;
    opacity: 0.7;
}

.firm_face h4:last-of-type {
    opacity: 0.5;
}

/* صورة الشعار */
.firmImg {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.firmImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.firm:hover .firmImg img {
    transform: scale(1.02);
}

/* الوجه الخلفي (hover) */
.firm_hover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.97);
    border-radius: 8px;
    flex-direction: column;
    align-items: top;
    justify-content: top;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border: 1px solid #eee;
}
.firm_hover .anchor {
  color:blue !important;
  text-decoration:underline;
}
.firm:hover .firm_hover,
.firm.touch .firm_hover {
    display: flex;
    opacity: 1;
}

.firm_hover h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
    text-decoration: none;
}

.firm_hover .agent-link {
    display: block;
    color: #3C6ABF;
    font-weight: 600;
    text-decoration: underline;
    margin: 4px 0;
    font-size: 0.9rem;
}

.firm_hover .description {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin: 8px 0;
}

/* =============================================
   استجابة – بطاقتين في الصف إجبارياً على الجوال
   ============================================= */
@media (max-width: 992px) {
    .firm {
        width: 33.333%; /* 3 بطاقات في الصف */
    }
}

@media (max-width: 768px) {
    .firm {
        width: 50%; /* بطاقتان في الصف */
        padding: 0 6px;
        margin-bottom: 12px;
        max-height:220px;
    }
    .firmImg {
        max-width: 120px;
    }
    .firm_face h2 {
        font-size: 0.95rem;
    }
}

@media (max-width: 550px) {
    .firms-container {
        padding: 12px 4px;
    }
    .firm {
        width: 45% !important; /* إجبار بطاقتين في الصف */
        padding: 0 4px;
        margin-bottom: 10px;
        max-height:200px;
    }
    .firmImg {
        max-width: 100px;
    }
    .firm_face h2 {
        font-size: 0.8rem;
    }
    .firm_face h4 {
        font-size: 0.65rem;
    }
    .firm_hover .description {
        -webkit-line-clamp: 3;
        max-height: 55px;
        font-size: 0.75rem;
    }
    .firm_hover h2 {
        font-size: 0.9rem;
    }
    .firm_hover .agent-link {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .firm {
        padding: 0 3px;
        margin-bottom: 8px;
    }
    .firmImg {
        max-width: 80px;
    }
    .firm_face h2 {
        font-size: 0.7rem;
    }
    .firm_face h4 {
        font-size: 0.6rem;
    }
    .firm_hover .description {
        -webkit-line-clamp: 2;
        max-height: 40px;
        font-size: 0.65rem;
    }
}

/* إلغاء أي تغيير لبطاقة واحدة حتى على أصغر الشاشات */
@media (max-width: 320px) {
    .firm {
        width: 50% !important; /* تأكيد إجبار البطاقتين */
        padding: 0 2px;
    }
    .firmImg {
        max-width: 70px;
    }
}

/* دعم اللمس */
.firm.touch .firm_hover {
    display: flex !important;
    opacity: 1 !important;
}

/*******************************************************************(/firm grid block)*/















/*******************************************************************(item grid block)*/

.items {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 16px 8px;
    max-width: 1300px;
    margin: 0 auto;
    gap: 0;
}

.item {
    position: relative;
    width: 25%; /* 4 بطاقات في الصف على سطح المكتب */
    padding: 0 8px;
    box-sizing: border-box;
    margin-bottom: 16px;
    flex-shrink: 0;
    max-height: 300px; /* ارتفاع ثابت للبطاقة */
}

/* الوجه الأمامي للبطاقة */
.item_face {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ffb524aa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.item:hover .item_face {
    border-color: #ff9500;
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.2);
    transform: translateY(-3px);
}

/* حاوية الصورة */
.producImg {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    max-height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.producImg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.item:hover .producImg img {
    transform: scale(1.05);
}

/* محتوى البطاقة (الاسم، الوصف، السعر) */
.item_content {
    padding: 10px 10px 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.item_content h2 {
    text-align: center;
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.category_section {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 333;
    color: #999;
}

.item_content p {
    text-align: center;
    margin: 2px 0;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.price {
    direction: ltr;
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
    margin: 4px 0 0 0;
    display: block;
}

/* الوجه الخلفي (hover) */
.item_hover {
    display: none;
    position: absolute;
    top: -3px;
    left: 9px;
    width: 94%;
    height: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    border: 1px solid #eee;
}

.item:hover .item_hover,
.item.touch .item_hover {
    display: flex;
    opacity: 1;
}

.item_hover h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 8px 0;
}

.item_hover .description {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.5;
    max-height: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    margin: 8px 0;
}

.item_hover .price-hover {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    direction: ltr;
    margin-top: 6px;
}

.item_hover .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
}

/* =============================================
   استجابة – بطاقتين في الصف إجبارياً على الجوال
   ============================================= */
@media only screen and (max-width: 1024px) {
    .item {
        width: 33.333%; /* 3 بطاقات */
    }
    .item {
        max-height: 300px;
    }
    .producImg {
        max-height: 160px;
    }
}

@media only screen and (max-width: 768px) {
    .items {
        padding: 8px 4px;
    }
    .item {
        width: 45% !important;  /* بطاقتان في الصف */
        padding: 0 6px;
        margin-bottom: 12px;
        max-height: 240px;
    }
    .producImg {
        max-height: 130px;
    }
    .item_content h2 {
        font-size: 0.9rem;
    }
    .price {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 550px) {
    .items {
        padding: 6px 3px;
    }
    .item {
        width: 45% !important; /* إجبار بطاقتين */
        padding: 0 4px;
        margin-bottom: 10px;
        max-height: 220px;
    }
    .producImg {
        max-height: 120px;
    }
    .item_content h2 {
        font-size: 0.8rem;
        min-height: 2em;
    }
    .item_content p {
        font-size: 0.7rem;
    }
    .price {
        font-size: 0.9rem;
    }
    .item_hover .description {
        -webkit-line-clamp: 3;
        max-height: 55px;
        font-size: 0.75rem;
    }

}

@media only screen and (max-width: 400px) {
    .item {
        padding: 0 3px;
        max-height: 210px;
        margin-bottom: 8px;
        width: 45% !important; /* إجبار بطاقتين */
    }
    .producImg {
        max-height: 110px;
    }
    .item_content h2 {
        font-size: 0.7rem;
        min-height: 1.8em;
    }
    .item_content p {
        font-size: 0.65rem;
    }
    .price {
        font-size: 0.8rem;
    }
}

/* إلغاء أي تغيير لبطاقة واحدة حتى على أصغر الشاشات */
@media only screen and (max-width: 320px) {
    .item {
        width: 45% !important;
        padding: 0 2px;
        max-height: 190px;
    }
    .producImg {
        max-height: 80px;
    }
}

/* دعم اللمس */
.item.touch .item_hover {
    display: flex !important;
    opacity: 1 !important;
}

/* تحسينات للشاشات الكبيرة */
@media only screen and (min-width: 1400px) {
    .items {
        max-width: 1300px;
        padding: 16px 10px;
    }
    .item {
        width: 25%;
        height: 330px;
    }
    .producImg {
        max-height: 200px;
    }
}

/*******************************************************************(/item grid block)*/

















/*******************************************************************(page_number)*/

.page_number{
	
	color:#555;
	padding-left:7px;
	padding-right:7px;
	padding-top:3px;
	padding-bottom:3px;
	font-size:1.4em;
	margin:3px;
	border-radius:3px;
	background-color:#fff;
	cursor:pointer;
	border:1px solid #ddd;
}
.page_number:hover{
	color:#555;
}
.pageNo_active{
	padding-top:5px !important;
	padding-bottom:5px !important;
	font-size:1.5em;
	font-weight:bold;
	margin:5px;
}
.pageNo_icon{
	color:#555;
	padding-top:5px !important;
	padding-bottom:5px !important;
	background-color:#f7f7f7;
	border:1px solid #555;
}

			
/*******************************************************************(/page_number)*/












/*******************************************************************(/item_attachment)*/


.item_detail{
	padding:13px 13px 0 13px;
	background-color:#ffffff;
}
@media only screen and (max-width: 700px) {
	.item_detail{
		width:90%;
	}	
}

.item_detail_title{
	text-align:center;
	font-weight:bold;
	float:center;
	font-size:2.0em !important;
	color:#111;
	width:100%;
	text-shadow:1px 0px 2px #000;
	
}



.item_detail_img{
	float:left;
	width:40%;
	min-width:250px;
}
.item_detail_img > .img{
    float:center;
    width:440px;
    height:440px;
}
.item_detail_img > .img img{
	width:100%;
	height:100%;
	border:1px solid #aaa;
	border-radius:5px;
}

@media only screen and (max-width: 900px) {
	.item_detail_img{
		width:99%;
		float:center;
	}	
	.item_detail_img > .img{
	    float:center;
	    width:330px;
	    height:330px;
    }
}

@media only screen and (max-width: 700px) {
	.item_detail_img{
		width:99%;
		float:center;
	}	
	.item_detail_img > .img{
	    float:center;
	    width:220px;
	    height:220px;
    }
}

.item_detail_content{
	float:left;
	width:55%;
	min-width:300px;
	text-align:center;
	font-size:1.2em;
	
}
.item_detail_content > span{
	font-weight:bold;
	float:center;
}
@media only screen and (max-width: 700px) {
	.item_detail_content{
		width:99%;
		float:center;
	}	
}

/*******************************************************************(/item_attachment)*/




/*******************************************************************(/agent_attachment)*/


.agent_detail{
	background-color:#ffffff;
	border:1px solid #d9d9d8;
	border-radius:5px;
		-o-border-radius:5px;
		-moz-border-radius:5px;
		-ms-border-radius:5px;
		-webkit-border-radius:5px;
		-moz-box-shadow:0px 0px 7px #CDCDCD;
		-webkit-box-shadow:0px 0px 7px #CDCDCD;
	box-shadow:0px 0px 7px #CDCDCD;
	margin:0px !important;
	width:65%;

}
@media only screen and (max-width: 700px) {
	.agent_detail{
		width:90%;
	}	
}

.agent_detail_title{
	text-align:center;
	font-weight:bold;
	float:center;
	font-size:1.6em !important;
	color:#111;
	width:100%;
	text-shadow:1px 0px 2px #000;
	
}



.agent_detail_img{
	float:left;
	width:40%;
	min-width:350px;
}
.agent_detail_img > .img{
	float:center;
	width:200px;
}
.agent_detail_img > .img img{
	width:100%;
	height:100%;
	border:1px solid #aaa;
	border-radius:5px;
}

@media only screen and (max-width: 700px) {
	.agent_detail_img{
		width:99%;
		float:center;
	}	
}

.agent_detail_content{
	width:60%;
	min-width:350px;
	text-align:center;
	font-size:1.1em;
	
}
.agent_detail_content > span{
	font-weight:bold;
	float:center;
}
@media only screen and (max-width: 700px) {
	.agent_detail_content{
		width:99%;
		float:center;
	}	
}

/*******************************************************************(/agent_attachment)*/















