/*
 * Template: orchid-store
 * Theme Name: قالب فارسی چند منظوره orchid
 * Theme URI:  https://erfwn.ir
 * Author:  Erfan Bayat
 * Author URI:  https:/erfwn.ir.com
 * Description:   لطفا این قالب را فعال کنید و قالب اصلی را حذف نکنید
 * Version:  1.5.14
 * Tags: custom-background, custom-menu, custom-logo, featured-images, full-width-template, one-column, two-columns, theme-options, threaded-comments, translation-ready, footer-widgets, blog, left-sidebar, right-sidebar, e-commerce, rtl-language-support
 * Text Domain: orchid-store
 * Tested up to:  5.6.2
 * Requires PHP:  7.0.0
 */

.custom-home-header {
  background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
  color: white;
  padding: 20px;
}
.custom-home-header .logo {
  font-size: 24px;
  color: #fff;
}
/*حذف منوی کشویی متغیر*/
#variation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6); /* رنگ تیره با شفافیت */
  z-index: 9988;
  display: none; /* مخفی پیش‌فرض */
  backdrop-filter: blur(7px); /* افکت مات (برای مرورگرهای مدرن) */
}

#variation-modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.1),
    0 0 15px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  z-index: 10000;
  box-sizing: border-box;
  opacity: 0;              /* پیش فرض مخفی */
  pointer-events: none;    /* پیش فرض غیر فعال */
  transition: opacity 0.7s ease;
}

/* وقتی فعال شد */
#variation-modal-box.active {
  opacity: 0.7;
  pointer-events: auto;
}

/* انیمیشن برق زدن وسط */
#variation-modal-box::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine 8s infinite linear;
  pointer-events: none;
  border-radius: 30px;
  filter: blur(10px);
  opacity: 0;   /* پیش فرض مخفی */
  transition: opacity 0.4s ease;
  z-index: 10001;
}

/* وقتی باکس فعال شد، انیمیشن هم نمایش داده بشه */
#variation-modal-box.active::before {
  opacity: 0.7;
}

@keyframes shine {
  0% {
    transform: translate(-150%, -50%) rotate(45deg);
  }
  100% {
    transform: translate(150%, -50%) rotate(45deg);
  }
}


#variation-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.variation-choice-button {
  position: relative;
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid #a259ff;
  background-color: #0f0c29;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  transition: 0.3s ease-in-out;
	border-radius: 25px;
	box-shadow: 0 0 10px #a259ff;
	line-height: 21px;
}
.variation-choise-button::before{
	  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(162, 89, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(162, 89, 255, 0.4) 100%
  );
  animation: neon-move 3s linear infinite;
  z-index: -1;
  filter: blur(10px);
}

.variation-choice-button:hover {
  background-color: #5a1b94;
  box-shadow: 0 0 25px #00f0ff, 0 0 25px #00f0ff;
}

.variation-picker-btn {
  margin-top: 20px;
  background: #444;
  color: #fff;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  border-radius: 25px;
	box-shadow: 0 0 10px #a259ff;
}
#open-variation-modal {
  display: block;
  margin: 30px auto;
  text-align: center;
}
@keyframes neon-move {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*تست نئون خطی*/
.single_add_to_cart_button {
  background-color: #444 !important;  /* رنگ اصلی */
  color: #fff !important;
  border: none !important;
		box-shadow: 0 0 10px #a259ff !important;
	border-radius: 25px !important;
	font-size: 16px !important;
}
.single_add_to_cart_button:hover {
  background-color: #a529ff !important;  /* رنگ هاور */
  color: #fff !important;
	border-radius: 25px !important;
}
.single_add_to_cart_button.disabled {
  background-color: #aaa !important;
  color: black !important;
  cursor: not-allowed;
  opacity: 0.7;
	box-shadow: none !important;
	border-radius: 25px !important;
}
#variation-picker-container {
  text-align: center;
}
/* حذف اوتو آپدیت پوسته ماد */
add_action('after_setup_theme', function () {
    // جلوگیری از بارگذاری کلاس Udp_Agent
    remove_all_actions('after_switch_theme');
    remove_all_actions('activate_plugin');
    remove_all_actions('deactivate_plugin');
    remove_all_actions('cc_udp_agent_send_data');

    // جلوگیری از اجرا شدن agent در init.php اگر لود شده باشد
    if (class_exists('Udp_Agent')) {
        remove_action('admin_init', 'Udp_Agent');
    }
});

