/**
 * NOTICE OF LICENSE
 *
 * ---------------------------------------------------
 *
 *  @author    : CD Presta <cdpresta@gmail.com>
 *  @copyright : 2016-2022
 *  @license   : Commercial License
 *  @version   : 2.5.0
 * ---------------------------------------------------
 */
 
 /*
.cdpcp-table__header-cell--product{
    background:#fff !important;
}
#module-cdproductcomparisonplus-compare h1 a:last-child span {
  display: none;
}
.cdpcp-slideout__buttons:after,.cdpcp-slideout__buttons:before{
	content:" ";
	display:table;
}

.cdpcp-slideout__buttons:after{
	clear:both;
}

[class*=" cdpcp-icon-"],[class^=cdpcp-icon-]{
	display:inline-block;
	fill:currentColor;
	height:1em;
	stroke:currentColor;
	stroke-width:0;
	width:1em;
}

.btn [class*=" cdpcp-icon-"],.btn [class^=cdpcp-icon-]{
	margin-right:.2em;
	margin-top:-.2em;
	vertical-align:middle;
}

#cdpcp-fake-miniatures,.cdpcp{
	display:none;
}

.cdpcp{
	bottom:0;
	direction:ltr !important;
	height:59px;
	max-width:100%;
	position:fixed;
	left:0;
	width:auto;
	z-index:9996;
}

.cdpcp *{
	box-sizing:border-box;
}

.cdpcp .cdpcp-menu-number{
	display:none;
}

.cdpcp__menu{
	border-right:1px solid transparent;
	border-top:1px solid transparent;
	float:left;
	height:100%;
	position:relative;
	transition:border-radius .3s;
	width:36px;
	border-radius: 0px 7px 0px 0px;
}

.cdpcp-menu__button{
	cursor:pointer;
	display:inline-block;
	height:100%;
	position:relative;
	width:100%;
}

.cdpcp-menu__button:hover{
	opacity:.8;
}

.cdpcp-menu__button:active{
	opacity:.6;
}

.cdpcp-menu-icon,.cdpcp-menu-number{
	font-family:Arial,sans-serif;
	font-size:40px;
	height:38px;
	left:50%;
	line-height:1;
	margin:-19px 0 0 0;
	position:absolute;
	top:50%;
	transition:opacity .3s;
	width:20px;
}

.cdpcp--collapsed .cdpcp-menu-number{
	display:block;
}

.cdpcp--collapsed .cdpcp-menu-icon{
	display:none;
}

.cdpcp--collapsed .cdpcp__menu{
	border-top-left-radius:4px;
}

.cdpcp--collapsed .cdpcp__items-wrapper{
	display:none;
}

.cdpcp__backdrop{
	background:rgba(0, 0, 0, .6);
	bottom:0;
	display:none;
	left:0;
	position:fixed;
	right:0;
	top:0;
	z-index:9997;
}

.cdpcp__items-wrapper{
	border-left:1px solid transparent;
	border-top-left-radius:4px;
	border-top:1px solid transparent;
	float:left;
	padding: 5px 5px 5px 10px;
	vertical-align:top;
	white-space:nowrap;
	width:calc(100% - 36px);
}

.cdpcp__items{
	overflow-x:auto;
	overflow-y:hidden;
}

@media (min-width:480px){
	.cdpcp__items{
		width:100%
	}
}

.cdpcp__item{
	display:inline-block;
	height:50px;
	margin-right:7.5px;
	vertical-align:middle;
	width:50px;
}

.cdpcp__slideout{
	border-top:1px solid transparent;
	bottom:0;
	display:none;
	left:0;
	padding:15px;
	position:fixed;
	right:0;
	z-index:9998;
}

.cdpcp__item--active .cdpcp__slideout,.cdpcp__menu--active .cdpcp__slideout{
	display:block;
}

.cdpcp-slideout__close{
	-webkit-appearance:none;
	-moz-appearance:none;
	appearance:none;
	background:transparent;
	border:0;
	box-shadow:none;
	cursor:pointer;
	display:block;
	font:normal 28px/21px Arial,Baskerville,monospace;
	overflow:visible;
	outline:none;
	padding:10px;
	position:absolute;
	right:0;
	text-align:center;
	text-decoration:none;
	top:0;
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
}

.cdpcp-slideout__inner{
	margin:0 auto;
	max-width:470px;
	width:100%;
}

.cdpcp-slideout__title{
	clear:both;
	display:block;
	font-size:17px;
	font-weight:600;
	line-height:1;
	margin-bottom:7.5px;
	padding-bottom:7.5px;
	text-align:center;
	white-space:normal;
}

@media (min-width:480px){
	.cdpcp-slideout__title{
		font-size:21px
	}
}

.cdpcp-compare-now{
	margin-bottom:20px;
}

.cdpcp-slideout__button{
	border:1px solid transparent;
	border-radius:4px;
	cursor:pointer;
	display:block;
	font-weight:600;
	padding:15px;
	text-decoration:none;
	text-align:center;
	transition:opacity .3s;
	white-space:normal;
	width:100%;

}
#cdpcp-toggle-tray{
    	display:none;
    
}
.cdpcp-slideout__button:active,.cdpcp-slideout__button:focus,.cdpcp-slideout__button:hover{
	text-decoration:none !important;
}

.cdpcp-slideout__button:active,.cdpcp-slideout__button:focus{
	outline:0;
	text-decoration:none;
}

.cdpcp-slideout__button:hover{
	opacity:.8;
}

.cdpcp-slideout__button:focus{
	opacity:.7;
}

.cdpcp-slideout__button:active{
	opacity:.6;
}

.cdpcp-slideout__button+.cdpcp-slideout__button{
	margin-top:7.5px;
}

.cdpcp-item__image,.cdpcp-slideout__image{
	border-radius:4px;
	overflow:hidden;
}

.cdpcp-slideout__image{
	display:block;
	height:200px;
	margin:0 auto 15px;
	max-width:100%;
}

.cdpcp-item__image{
	cursor:pointer;
	float:right;
	max-width:100%;
}

.cdpcp-item__image:hover{
	opacity:.7;
}

.cdpcp-compare{
	padding:13px 19px 0;
}

.cdpcp-compare__button{
	font-weight:600;
	color:#777676;
	cursor:pointer;
}

.cdpcp-compare__button:hover{
	color:#000;
}

.cdpcp-compare__button:before{
	content:"\f067";
	display:inline-block;
	font-family:FontAwesome;
	margin-right:3px;
}

.cdpcp-compare__button.checked:before{
	content:"\f068";
}
.cdpcp-compare-btn{
    cursor:pointer;
}
.cdpcp-compare-now{
	margin:1rem 0;
}

.cdpcp-compare-btn{

	position:relative;

	z-index:1;
}

.cdpcp-compare-btn--blacklisted{
	visibility:hidden !important;
}

.cdpcp-compare-btn--above-list{
	margin-bottom:.5rem !important;
}

.cdpcp-compare-btn--below-list{
	margin-bottom:1.5rem !important;
}

.product-additional-info .cdpcp-compare-btn,.product-information .cdpcp-compare-btn{
	display:block;
	float:none;
	margin:1.5rem 0 .5rem !important;
	width:auto;
}

.cdpcp-compare-btn--add .cdpcp-compare-btn__icon--add,.cdpcp-compare-btn--add .cdpcp-compare-btn__text--add,.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon--loading,.cdpcp-compare-btn--remove .cdpcp-compare-btn__icon--remove,.cdpcp-compare-btn--remove .cdpcp-compare-btn__text--remove{
	display:inline-block ;
}

.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon--add,.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon--remove,.cdpcp-compare-btn__icon,.cdpcp-compare-btn__text{
	display:none ;
}

.cdpcp-compare-btn--loading .cdpcp-compare-btn__icon{
	-webkit-animation:spin 2s linear infinite;
	animation:spin 2s linear infinite;
}

.cdpcp-compare-modal__dialog{
	max-width:95%;
	width:1200px;
}

.cdpcp-share-modal__dialog{
	max-width:95%;
	width:430px;
}

.cdpcp-compare-modal__dialog .modal-body{
	padding:25px;
}

.cdpcp-highlight-btn.active .highlight-btn__icon--inactive,.cdpcp-highlight-btn .highlight-btn__icon--active{
	display:none;
}

.cdpcp-highlight-btn.active .highlight-btn__icon--active{
	display:inline-block;
}

.cdpcp-table-card{
	margin-top:2rem;
}

@media only print{
	.cdpcp-saved-comparison-msg{
		display:none
	}
}

.cdpcp-table-wrapper{
	-webkit-overflow-scrolling:touch;
	padding:1px;

}

@media only print{
	.cdpcp-table-wrapper{
		overflow:hidden !important
	}
}

.cdpcp-table-actions{
	float:left;
	margin-bottom:10px;
}

@media only print{
	.cdpcp-table-actions{
		display:none !important
	}
}

.cdpcp-table-actions__btn{
	font-size:.9rem;
	padding:.25rem .5rem;
}

.cdpcp-table-actions__btn+.cdpcp-table-actions__btn{
	margin-left:5px;
}

.cdpcp-table{
	page-break-inside:auto;
	table-layout:fixed;
}

.cdpcp-table thead{
	display:table-header-group;
}

.cdpcp-table__feature-cell--name,.cdpcp-table__header-cell--empty{
	overflow:hidden;
	text-overflow:ellipsis;
	width:10rem;
}

@media (max-width:767px){
	.cdpcp-table__feature-cell--name,.cdpcp-table__header-cell--empty{
		display:none !important
	}
}

.cdpcp-table__header-cell--product{
	text-align:center;
	width:200px;
}

@media only print{
	.cdpcp-table__header-cell--product{
		width:auto
	}
}

.cdpcp-table__cell--current-product{
	background:rgba(255, 235, 59, .05);
}

.cdpcp-table__header-cell.cdpcp-table__header-cell--product{
	vertical-align:top;
}

.cdpcp-table__product-inner{
	position:relative;
}

.cdpcp-table__cell-mobile-header{
	font-weight:700;
	display:block;
}
	.cdpcp-table__cell-mobile-header{
		display:none
	}
.cdpcp-table__feature-row td:first-child .cdpcp-table__cell-mobile-header{
    	display:block
}



.cdpcp-table__delete{
	position:absolute;
	right:0;
	top:0;
	z-index:1;
}

@media only print{
	.cdpcp-table__delete{
		display:none
	}
}

.cdpcp-table__product-link{
	display:block;
}

.cdpcp-table__product-link:hover{
	opacity:.8;
}

.cdpcp-table__product-link:active{
	opacity:.6;
}

.cdpcp-table__img{
	border-radius:4px;
	max-width:100%;
}

.cdpcp-table__add-cart,.cdpcp-table__desc,.cdpcp-table__name,.cdpcp-table__quickview{
	margin:.5rem 0 0;
}

.cdpcp-table__add-cart{
	margin-left:auto;
	margin-right:auto;
}

.cdpcp-table__add-cart,.cdpcp-table__variants .variant-links>*{
	display:inline-block;
}

@media only print{
	.cdpcp-table__add-cart,.cdpcp-table__quickview,.cdpcp-table__variants{
		display:none !important
	}
}

.cdpcp-table__name{
	text-align:center;
}

.cdpcp-table__desc>:last-child{
	margin-bottom:0;
}

.cdpcp-table__feature-row{
	outline:1px solid transparent;
	page-break-inside:avoid;
	page-break-after:auto;
	transition:outline .3s;
}

.cdpcp-table__feature-cell{
	text-align:center;
}

.cdpcp-table__feature-cell--name{
	text-align:right;
}

.cdpcp-table__prices>*{
	display:inline-block;
}

.cdpcp-table .discount-percentage{
	background:#f39d72;
	box-shadow:2px 2px 11px 0 rgba(0, 0, 0, .1);
	color:#fff;
	font-size:1rem;
	font-weight:600;
	margin:0 .4375rem;
	min-height:1.875rem;
	min-width:3.125rem;
	padding:.3125rem .4375rem;
	text-transform:uppercase;
	z-index:2;
}

.cdpcp-table .regular-price{
	color:#acaaa6;
	font-size:.875rem;
	text-decoration:line-through;
}

.cdpcp-cart-modal__dialog{
	margin:0 auto;
	max-width:100%;
	width:22rem;
}

.cdpcp-social-block{
	border-radius:4px;
	cursor:pointer;
	margin:0 auto;
	padding:10px;
	text-align:center;
	transition:background .3s;
	width:150px;
}

.cdpcp-social-block:hover{
	background:rgba(0, 0, 0, .1);
}

.cdpcp-print-logo{
	max-height:200px;
	max-width:200px;
}

@-webkit-keyframes spin{
	0%{
		transform:rotate( 0deg );
	}

	to{
		transform:rotate( 359deg );
	}
}

@keyframes spin{
	0%{
		transform:rotate( 0deg );
	}

	to{
		transform:rotate( 359deg );
	}
}

#module-stcompare-compare .table-bordered th, #module-cdproductcomparisonplus-compare .table-bordered th,
#module-stcompare-compare .table-bordered td, #module-cdproductcomparisonplus-compare .table-bordered td{
  border-radius: 5px !important;
  border:0 !important;
}
.cdpcp-table {

font-size: 13px;
}

*/

/* =========================================================
   1. تنظیمات کلی و اسکرول‌بار (General & Scrollbar)
========================================================= */
.cdpcp-table-wrapper {
    direction: rtl;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 20px;
    background: #fff;
    display:flex;
    position:relative;
    font-family: inherit;
}

/* اسکرول‌بار کاستوم */
.cdpcp-table-wrapper::-webkit-scrollbar,
.cdpcp-sticky-header::-webkit-scrollbar,
.cdpcp-search__results::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}
.cdpcp-table-wrapper::-webkit-scrollbar-track,
.cdpcp-sticky-header::-webkit-scrollbar-track,
.cdpcp-search__results::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}
.cdpcp-table-wrapper::-webkit-scrollbar-thumb,
.cdpcp-sticky-header::-webkit-scrollbar-thumb,
.cdpcp-search__results::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px;
}
.cdpcp-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.cdpcp-table-actions{
margin-bottom: 10px;
}
#cdpcp-share {
background: #e7004a;
  border: 0;
  color: #fff;
}
.add-icon-placeholder svg:not(:root){
    fill:#e7004a;
}
#module-cdproductcomparisonplus-compare h1 a:last-child span {
  display: none;
}
#cdpcp-highlight-btn{
    display:none;
}
#cdpcp-share {
  color: #fff;
}
[class*=" cdpcp-icon-"], [class^="cdpcp-icon-"] {
  display: inline-block;
  fill: currentColor;
  height: 1em;
  stroke: currentColor;
  stroke-width: 0;
  width: 1em;
  fill: #fff !important;
}
.btn [class*=" cdpcp-icon-"], .btn [class^="cdpcp-icon-"] {
  margin-right: .2em;
  margin-top: -.2em;
  vertical-align: middle;
}
/* =========================================================
   2. هدر مقایسه (کارت محصولات و افزودن کالا)
========================================================= */
.custom-compare-header {
    display: flex;
    flex-wrap: nowrap;
    gap: 0; 
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.compare-col {
flex: 0 0 auto;
  width: 290px;
  min-width: 290px;
  padding: 10px;
  display: flex;
  flex-direction: column;

}


/* استایل بدنه کارت محصول و کارت افزودن */
.custom-product-card, 
.custom-add-card {
    display: flex;
    flex-direction: column;
    position: relative;


}
.custom-product-card > div, 
.custom-add-card > div {
    background: #ffffff;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
        transition: box-shadow 0.3s ease;

}
.custom-product-card:hover > div,
.custom-add-card:hover > div {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* دکمه حذف محصول */
.custom-remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    color: #888;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}
.custom-remove-btn:hover {
    border-color: #e6123d;
    color: #e6123d;
}

/* عکس محصول */
.custom-product-image {
    text-align: center;
    margin: 10px 0 20px 0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* آیکون‌های کوچک زیر عکس (باتری، دوربین و...) */
.custom-mini-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}
.mini-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: #666;
    gap: 4px;
}

/* نام محصول */
.custom-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.7;
    text-align: right;
    margin-bottom: 15px;
    height: 44px; /* فیکس کردن ارتفاع برای ۲ خط */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* بخش قیمت و اکشن */
.custom-price-action-wrapper {
    margin-top: auto; /* هل دادن این بخش به پایین کارت */
}
.custom-price-box {
    text-align: left; /* قیمت‌ها در سمت چپ */
    margin-bottom: 15px;
    min-height: 53px;
}
.discount-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
}
.discount-badge {
    background: #e7004a; 
    color: #fff !important;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
}
.current-price strong {
    font-size: 17px;
    color: #222;
}

/* دکمه مشاهده و خرید */
.custom-view-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e7004a; /* آبی تیره */
    color: #e7004a;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}
.custom-view-btn:hover {
    background: #e7004a;
    color: #fff;
}
.custom-view-btn i {
    font-size: 16px;
}

/* =========================================================
   3. کارت افزودن کالا (Empty State)
========================================================= */
.custom-add-card > Div {
justify-content: space-between;
    align-items: center;
    cursor: pointer;
display: flex;
  flex-direction: column;
  position: relative;
  height:100%;
}
.add-icon-placeholder {
    margin: 20px 0;
}
.skeleton-lines {
    width: 100%;
    margin-bottom: 30px;
}
.skeleton-line {
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    margin: 10px auto;
}
.skeleton-line.full { width: 80%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.short { width: 40%; }

.custom-add-btn {
    background: #e7004a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.custom-add-btn:hover {
    background: #152446;
}

/* =========================================================
   4. جدول مشخصات و ویژگی‌ها
========================================================= */
/* نوار عنوان بخش (مشخصات کلی و کلیدی) */
.compare-section-title {
    background-color: #f4f7fa;
    color: #222;
    font-size: 15px;
    font-weight: bold;
    padding: 15px 20px;
    margin: 20px 15px; /* حاشیه برای قرارگیری درست روی جدول */
    border-radius: 8px;
    text-align: right;
}

/* ردیف‌های جدول */
.compare-row {
    display: flex;
    flex-wrap: nowrap;
border-radius:15px;
    
}


/* محتوای ویژگی‌ها داخل ستون‌ها */
.feature-title-label {
    font-size: 16px;
    font-weight: bold;
    color: #111;
    margin-bottom: 8px;
    display: block;
    text-align: right;
}
.feature-value {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    text-align: right;
    margin-top:auto;
    word-break: break-word;
}
.empty-col {
    background: transparent;
}
.compare-row.feaaa > div{
    border-left:1px solid rgb(215, 221, 223);

}
.compare-row.feaaa > div:last-child{
    border-left:0;

}
.cdpcp-header-inner{ 
    display:flex;
}
.compare-row.feaaa:nth-child(2n+1) {

  background-color: #f0f5f9;
}
/* =========================================================
   5. هدر شناور (Sticky Header)
========================================================= */
.cdpcp-modern-grid{
    width:100%;
}
.cdpcp-sticky-header {
    position: fixed;
    top: 30px;
    z-index: -1;
    display: flex;
    direction: rtl;
    padding: 10px 0;
 opacity:0;
    transform: translateY(123px);
    transition: all 0.3s ease-in-out;
}
.cdpcp-sticky-header:after {
position: absolute;
  top: 0;
  left: -100vw;
  content: "";
background: radial-gradient(150% 170% at 50% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .68) 34%, rgba(0, 0, 0, .12) 56%, rgba(0, 0, 0, 0) 74%);
  -webkit-backdrop-filter: blur(0px) saturate(140%) contrast(1.08);
  backdrop-filter: blur(10px) saturate(120%) contrast(1.08);
box-shadow: 0 0 5px rgba(0,0,0,.14),0 2px 0 rgba(0,0,0,.05) !important;
  width: 200vw;
  height: 100%;
  z-index: -1;
  display: block;

}
.cdpcp-sticky-header.is-sticky {
    transform: translateY(133px);
    opacity:1;
    z-index:999;
}

.sticky-product-card {
    flex: 0 0 auto;
    width: 290px;
    min-width: 290px;
    align-items: center;
    gap: 15px;
    padding: 0 5px;

}
.sticky-product-card > div {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius:12px;
    background:#fff;
    border: 2px solid #e7004a;
}

.sticky-product-card img {
    width: 64px;
    height: 64px;
    margin-left:10px;
    object-fit: contain;
}
.sticky-product-info {
    display: flex;
    flex-direction: column;
}
.sticky-product-name {
    font-size: 13px;

    color: #333;

}
.sticky-price {
    font-size: 14px;
    color: #222;
    font-weight: bold;
    margin-top: 4px;
}

/* =========================================================
   6. مودال و جستجوی محصول (Search & Add Modal)
========================================================= */
/* پس‌زمینه تیره مودال */
.cdpcp-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.cdpcp-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* باکس اصلی مودال */
.cdpcp-modal__dialog {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    direction: rtl;
}
.cdpcp-modal.is-open .cdpcp-modal__dialog {
    transform: translateY(0);
}

/* هدر مودال */
.cdpcp-modal__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cdpcp-modal__title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.cdpcp-modal__close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}
.cdpcp-share-modal__dialog .modal-content {
  box-shadow: 0 0 25px #0000004d;
}
#cdpcp-share-modal h6 {
  font-size: 12px;
  font-weight: 400;
}
.cdpcp-social-block {
  padding: 5px 5px 10px;
  width: unset;
  text-align: center;
}
.product_list.grid .product_list_item, #cdpcp-share-modal .col-2 {
  padding: 0;
}
#module-cdproductcomparisonplus-compare .modal-backdrop{
    display:none;
}
/* بدنه مودال و فرم جستجو */
#module-cdproductcomparisonplus-compare h1{
    font-size:16px;
}
.searchcompare {
position: fixed;
  top: 0;
  bottom: 0;
  width: 900px;
  z-index: 9999;
  background: #fff;
  height: 500px;
  border-radius: 10px;
  margin: auto;
  left: 0;
  right: 0;
  box-shadow: 0 0px 0px 1000px rgba(0,0,0,0.3);
  padding: 15px;
  max-width: 90%;
  overflow:hidden;
}
.searchcompare .col-12 {
padding:0 5px;
}
.product.mb-2{
    cursor:pointer;
    transition:0.2s all;
  border-radius: 7px;
  border: 1px solid #eee;
  padding: 10px 5px;
}
.searchcompareoverly {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  backdrop-filter: blur(10px) saturate(120%) contrast(1.08);
  width: 100%;
  z-index: 999;
}
.pcompareoverly{
      position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 999;
  background:rgba(255,255,255,0.7);
}
.cdpcp-modal__body {
    padding: 20px;
    overflow-y: auto;
}
.cdpcp-search__wrapper {
    position: relative;
    margin-bottom: 20px;
}
.cdpcp-search__input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* فضای سمت چپ برای آیکون احتمالی */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.cdpcp-search__input:focus {
    border-color: #203565;
}

/* لیست نتایج جستجو */
.cdpcp-search__results {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}
.cdpcp-search__result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 8px;
}
.cdpcp-search__result-item:hover {
    background: #f9f9f9;
}
.cdpcp-search__result-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-left: 15px;
}
.cdpcp-search__result-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}
.cdpcp-compare-btn--remove{
   background: #e7004a !important;
  border: 0 !important;
  color: #fff;
}
.cdpcp-compare-btn--remove span.add{
    display:none;
}
.cdpcp-compare-btn--remove span.remove{
    display:block;
}
.cdpcp-compare-btn--add span.remove{
    display:none;
}
.cdpcp-compare-btn--add span.add{
    display:block;
}
.cdpcp-compare-btn i{
    margin-right:10px;
}
.cdpcp-compare-btn{

  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  position: absolute;
  top: -30px;
  z-index: 9;
  margin: auto;
  left: 0;
  right: 0;
  width: 85px;
  font-size: 14px;
  display: none;
  justify-content: space-evenly;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  backdrop-filter: blur(7px);
}
.cdpcp-complex-container, #cdpcp-simple-btn{
background: #e7004a;
border:0;
  color: #fff;
  padding: 9px 5px;
  border-radius: 10px;
  min-width: 165px;
}
 #cdpcp-simple-btn {
font-size:15px;
  padding: 14px 5px;
 }
 .cdpcp-wrapper {
  display: flex;
  direction: rtl;
  align-items: center;
}
.cdpcp-thumb {
  width: 43px;
  height: 43px;
  object-fit: cover;
  position: relative;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 2px;
}
.cdpcp-text {
  font-weight: bold;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: #fff;
}
    #cdpcp-preview-images {

  gap:5px;

}
@media screen and (max-width: 768px) {
    .product_list.list .owin {

  position: relative;
}
    .product_list_item .cdpcp-compare-btn {
  top: unset;
  left: 32px;
  right: unset;
  bottom: 5px;
}
    #cdpcp-preview-images {
  display: flex;
  align-items: center;
  margin: 10px 0;
  gap:5px;
  justify-content: left;
}
#cdpcp-simple-btn {
  font-size: 15px;
  min-width: 100px;
  padding: 12px 5px;
}
    .cdpcp-table-wrapper {
  width: unset;
  margin: 0 -15px;
}
    .cdpcp-modern-grid {
  width: unset;
}


.cdpcp-sticky-header {
      top: 0;
  padding: 10px 0;
  transition: all 0.3s ease-in-out;
  width: 100%;
background: radial-gradient(150% 170% at 50% 0%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .68) 34%, rgba(0, 0, 0, .12) 56%, rgba(0, 0, 0, 0) 74%);
  -webkit-backdrop-filter: blur(0px) saturate(140%) contrast(1.08);
  backdrop-filter: blur(10px) saturate(120%) contrast(1.08);

    transform: translateY(65px);
  left: 0;
  box-shadow: 0 0 5px rgba(0,0,0,.14),0 2px 0 rgba(0,0,0,.05) !important;
}
.cdpcp-sticky-header.is-sticky {
  transform: translateY(75px);
  opacity: 1;
}
.cdpcp-sticky-header::after{
    display:none;
}
}

.block.products_container .cdpcp-compare-link{
    display:none !important;
}


