/*
	Theme Name: Grenada Child
	Theme URI: http://clapat.ro/themes/grenada-wordpress/
	Description: Responsive Wordpress Theme
	Template: grenada
	Version: 1.0
	Author: MHN
	Author URI: http://mhnweb.ir
	License: Themeforest
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Tags: four-columns, custom-background, custom-colors, featured-images, full-width-template, theme-options
	Text Domain: grenada-child
*/


/*------------------------------------------------------------------

Add here your own styles
-------------------------------------------------------------------*/

	#logo img {
    display: block;
    height: 80px;
    width: auto;
    max-width: none;
	}


@media (min-width: 1025px) {
    .flexnav li a {
        background: transparent none repeat scroll 0 0;
        padding: 10px 0 4px 0;
        position: relative;
        border-left: medium none;
        font-weight: 600;
        font-family: 'B Yekan', sans-serif;
        color: #000;
        font-size: 20px;
        line-height: 20px;
        display: block;
        overflow: hidden;
        -webkit-transition: all 0.15s ease-in-out;
        transition: all 0.15s ease-in-out;
    }
}

.hero-title {
    font-size: 80px;
    line-height: 90px;
    color: #000;
    -webkit-text-stroke: 1px #000;
    font-weight: 600;
    position: relative;
    margin-left: -3px;
    margin-top: 19px;
    margin-bottom: 0px;
    transform: translateY(10vh);
    -webkit-transform: translateY(10vh);
    opacity: 0;
    text-align: center;
}

.fixed-image {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 6%;
  height: auto;
  z-index: 999;
  filter: brightness(1.5) contrast(1.5) grayscale(100%);
}

@media (max-width: 768px) { /* برای صفحه‌های با عرض کمتر از 768 پیکسل (معمولاً موبایل) */
  .fixed-image {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 15%;
  height: auto;
  z-index: 999;
  filter: brightness(1.5) contrast(1.5) grayscale(100%);
  }
}

.fixed-image:hover {
  filter: brightness(1) contrast(1) grayscale(0);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
}

.woocommerce ul.products li.product {
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px; /* کاهش حاشیه برای موبایل */
    padding: 15px; /* کاهش فاصله داخلی برای موبایل */
    text-align: center;
    background-color: #fff;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px); /* کاهش جابجایی عمودی برای موبایل */
    transition: all 0.3s ease-in-out;
}

.woocommerce ul.products li.product img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
}

.woocommerce .product-title {
    font-size: 18px; /* کاهش اندازه فونت عنوان برای موبایل */
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.woocommerce .price {
    font-size: 18px; /* کاهش اندازه فونت قیمت برای موبایل */
    font-weight: bold;
    color: #007bff;
}

.woocommerce .woocommerce-ordering select {
    vertical-align: top;
    font-family: 'B Titr';
    padding-right: 50px; /* کاهش فاصله داخلی برای موبایل */
}

/* استایل‌های مخصوص موبایل */
@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        margin: 5px;
        padding: 50px;
    }

    .woocommerce .product-title {
        font-size: 16px;
    }

    .woocommerce .price {
        font-size: 16px;
    }
}

.woocommerce ul.products li.product .price {
    display: block;
    font-weight: 400;
    margin-bottom: .5em;
    font-size: 20px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: #000000;
}

.elementor *, .elementor :after, .elementor :before {
    box-sizing: border-box;
    font-family: 'B Titr';
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000000;
    font-size: 1.25em;
}

#logo img {
    display: block;
    height: 70px;
    width: auto;
    max-width: none;
}

/* برای تمام صفحه‌ها */
.light-content h1, .light-content h2, .light-content h3, .light-content h4, .light-content h5, .light-content h6 {
    color: blue !important;
}

/* برای صفحه‌های با عرض کمتر از 768 پیکسل (مثلاً موبایل‌ها) */
@media (max-width: 768px) {
    .light-content h1, .light-content h2, .light-content h3, .light-content h4, .light-content h5, .light-content h6 {
        /* اینجا سبک‌های مخصوص موبایل را وارد کنید */
        color: blue; /* مثلاً رنگ سبز برای موبایل */
    }
}

.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3 {
    padding: .5em 0;
    margin: 0;
    font-size: 1.5em;
}



@keyframes blink {
    0%, 100% {
        border-color: blue; /* رنگ حاشیه در شروع و پایان */
    }
    50% {
        border-color: darkblue; /* رنگ حاشیه در وسط انیمیشن */
        box-shadow: 0 0 10px rgba(0, 0, 255, 0.5); /* سایه در وسط انیمیشن */
    }
}

select {
    width: 100%;
    height: 100%; /* ارتفاع ثابت */
    margin: 0 auto; /* مرکز قرار دادن کادر */
    color: #000;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    outline: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* افکت سایه در حالت عادی */
    border: 2px solid blue; /* حاشیه نازک آبی */
    background-image: none;
    border-radius: 8px; /* گوشه‌های گرد */
    transition: box-shadow 0.3s ease; /* انتقال نرم برای سایه */

    /* وسط چین کردن متن */
    text-align: center; /* وسط چین کردن متن */

    /* استفاده از flex برای مرکز قرار دادن محتوا */
    display: flex; 
    align-items: center; /* عمودی مرکز قرار دادن محتوا */
    justify-content: center; /* افقی مرکز قرار دادن محتوا */

    animation: blink 1s infinite; /* افکت چشمک زن در حالت عادی */
}

select:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 255, 0.5); /* سایه قوی‌تر در حالت hover */
}

/* افکت برای حالت عادی */
select:focus {
    border-color: blue; /* رنگ حاشیه در حالت focus */
    box-shadow: 0 0 8px rgba(0, 0, 255, 0.5); /* سایه در حالت focus */
}

/* مدیا کوئری برای نسخه موبایل */
@media (max-width: 768px) {
    select {
        height: auto; /* ارتفاع خودکار برای موبایل */
        padding-right: 2em; /* فضای بیشتر برای مثلث (آیکون) */
        font-size: 16px; /* اندازه فونت بزرگتر در موبایل */
        line-height: normal; /* تنظیم خط‌چین برای متن داخل select */
        box-shadow: none; /* حذف سایه برای طراحی ساده‌تر در موبایل (اختیاری) */
        border-radius: 8px; /* گوشه‌های گرد ثابت */
        
        animation: blink 1s infinite; /* افکت چشمک زن در حالت عادی برای موبایل */
    }
}




caption, th, td {
    font-weight: normal;
    text-align: center; /* وسط‌چین کردن متن به صورت افقی */
    vertical-align: middle; /* وسط‌چین کردن متن به صورت عمودی */
    padding: 10px; /* برای ایجاد فاصله بین متن و حاشیه */
}

/* برای اطمینان از وسط‌چین شدن کادر */
table {
    width: 100%; /* عرض جدول */
    border-collapse: collapse; /* حذف فاصله بین سلول‌ها */
}

th, td {
    border: 1px solid #ccc; /* حاشیه برای سلول‌ها */
}


.woocommerce div.product form.cart .variations {
    margin-bottom: 1em;
    border: 0;
    width: 100%;
    
    /* اضافه کردن ویژگی‌های وسط‌چین */
    display: flex; /* استفاده از flexbox */
    justify-content: center; /* وسط‌چین کردن به صورت افقی */
    align-items: center; /* وسط‌چین کردن به صورت عمودی */
}

/* اگر نیاز دارید که محتویات داخل هر variation هم وسط چین باشند */
.woocommerce div.product form.cart .variations > div {
    display: flex; /* استفاده از flexbox برای هر variation */
    justify-content: center; /* وسط‌چین کردن به صورت افقی */
    align-items: center; /* وسط‌چین کردن به صورت عمودی */
}

.woocommerce div.product form.cart .variations select {
    max-width: 100%;
    min-width: 75%;
    display: inline-block;
    margin-left: 120px;
}



@keyframes blink {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 0, 255, 0.5); /* سایه در شروع و پایان */
    }
    50% {
        box-shadow: 0 0 10px rgba(0, 0, 255, 1); /* سایه قوی‌تر در وسط انیمیشن */
    }
}

.select {
    position: relative; /* برای استفاده از position:absolute در ::after */
    width: 100%; /* عرض کامل */
    height: 41px; /* ارتفاع ثابت */
}

.select::after {
    content: '\25BC'; /* مثلث پایین */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 0 1em;
    background: #333; /* رنگ پس‌زمینه ثابت */
    pointer-events: none;
    height: 100%; /* ارتفاع کامل */
    line-height: 41px; /* مرکز قرار دادن مثلث */
    border-radius: 0 8px 8px 0; /* گوشه‌های گرد */
    display: none;
    animation: blink 1s infinite; /* افکت چشمک زن */
}

/* مدیا کوئری برای نسخه موبایل */
@media (max-width: 768px) {
    .select {
        height: auto; /* ارتفاع خودکار برای موبایل */
        padding-right: 2em; /* فضای بیشتر برای مثلث */
        font-size: 16px; /* اندازه فونت بزرگتر در موبایل */
    }

    .select::after {
        line-height: auto; /* مرکز قرار دادن مثلث با استفاده از padding */
        height: auto; /* ارتفاع خودکار برای موبایل */
        padding-top: .5em; /* فاصله از بالا */
        padding-bottom: .5em; /* فاصله از پایین */
    }
}

/* اگر می‌خواهید افکت را فقط در حالت hover داشته باشید، می‌توانید این کد را اضافه کنید */
.select:hover::after {
    animation: blink 1s infinite; /* افکت چشمک زن در حالت hover */
}



.woocommerce div.product form.cart .variations label {
    font-weight: 700;
    text-align: right;
    display: none;
}




.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
    border: 0;
    line-height: 2em;
    vertical-align: top;
    display: inline-flex;
}




@media only screen and (max-width: 1024px) {
    .light-content .flexnav {
        display: flex; /* اطمینان از اینکه عنصر flex است */
        flex-direction: column-reverse; /* برعکس کردن چیدمان به صورت عمودی */
    }

    .light-content .flexnav li a {
        color: inherit;
        font-family: 'B Titr';
    }
}




.woocommerce .woocommerce-ordering select {
    vertical-align: top;
    font-family: 'B Titr';
    padding-right: 0px;
}



@media (max-width: 768px) {
    select {
        height: auto;
        padding-right: 0em;
        font-size: 16px;
        line-height: normal;
        box-shadow: none;
        border-radius: 8px;
        animation: blink 1s infinite;
    }
}




@media only screen and (max-width: 767px) {
    .slide-title {
        font-size: 36px;
        line-height: 50px;
    }
}



.outer {
    display: table;
    width: auto;
    height: 100%;
}





.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
	background-color: #333; /* رنگ پس‌زمینه غیرشفاف */
    color: white; /* رنگ متن */
    text-align: center; /* مرکز چین کردن متن */
    padding: 0 0; /* فاصله داخلی */
    z-index: 1000; /* اطمینان از اینکه بالای سایر عناصر قرار گیرد */
    border-top: 2px solid rgba(255, 255, 255, 0.2); /* خط بالای نوار */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5); /* سایه برای عمق بیشتر */
}

.footer-links {
    list-style-type: none; /* حذف نقاط لیست */
    margin: 0; /* حذف حاشیه */
    padding: 0; /* حذف فاصله داخلی */
}

.footer-links li {
    display: inline; /* نمایش افقی لینک‌ها */
    margin: 0 15px; /* فاصله بین لینک‌ها */
}

.footer-links a {
    color: white; /* رنگ لینک‌ها */
    text-decoration: none; /* حذف خط زیر لینک‌ها */
    font-weight: bold; /* ضخیم کردن متن لینک‌ها */
    transition: color 0.3s ease; /* انیمیشن برای تغییر رنگ */
}

.footer-links a:hover {
    color: #ffcc00; /* رنگ لینک‌ها در حالت هاور */
    text-decoration: underline; /* خط زیر برای حالت هاور */
}