/*
Theme Name: یک پی سی
Theme URI: https://example.com/yekpc
Author: YekPC Team
Author URI: https://example.com
Description: قالب فروشگاهی حرفه‌ای یک پی سی، سازگار با المنتور و ووکامرس. طراحی مدرن RTL برای فروشگاه‌های دیجیتال و فیزیکی. شامل ویجت‌های المنتور، استوری‌ساز، پاپ‌آپ، دکمه تماس، ورود پیامکی و امکانات پیشرفته فروشگاهی.
Version: 1.1.4
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: yekpc
Domain Path: /languages
Tags: woocommerce, elementor, rtl, shop, ecommerce, responsive, persian
*/

/* 
--------------------------------------------------
YekPC Shop Theme
Based on advanced Elementor shop structure
--------------------------------------------------
*/

/* استایل‌های اصلی قالب در فایل‌های جداگانه و ویجت‌های المنتور لود می‌شوند */

.nikan-wide-offers,
.nikan-wide-latest {
  width: 100%;
}

.nikan-wide-offers .elementor-container,
.nikan-wide-latest .elementor-container,
.nikan-wide-offers .e-con-inner,
.nikan-wide-latest .e-con-inner {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.nikan-wide-offers,
.nikan-wide-latest,
.nikan-wide-offers .elementor-widget-wrap,
.nikan-wide-latest .elementor-widget-wrap,
.nikan-wide-offers .elementor-widget-container,
.nikan-wide-latest .elementor-widget-container {
  overflow: visible !important;
}

.nikan-wide-offers .woocommerce ul.products li.product .button,
.nikan-wide-latest .woocommerce ul.products li.product .button {
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.elementor-widget-nikan_list_products_offer_discount .elementor-widget-container,
.elementor-widget-nikan_best_selling_laptops .elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.elementor-widget-nikan_list_products_offer_discount,
.elementor-widget-nikan_best_selling_laptops {
  width: 100% !important;
}

.nikan-about-header,
.nikan-page-header {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.elementor-widget-nikan_list_products_offer_discount .elementor-widget-wrap,
.elementor-widget-nikan_best_selling_laptops .elementor-widget-wrap {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Dual Slider */
.nikan-dual-slider{position:relative}
.nikan-dual-grid{display:grid;grid-template-columns:1fr;gap:16px}
.nikan-dual-col-main{min-width:0}
.nikan-dual-col-side{display:none}
@media (min-width: 900px){
  .nikan-dual-grid{grid-template-columns:3fr 1fr;gap:18px}
  .nikan-dual-col-side{display:block}
}

/* YekPC brand colors inspired by provided design */
:root {
  --yekpc-primary: #7c3aed;
  --yekpc-primary-dark: #4338ca;
  --yekpc-accent: #6366f1;
  --yekpc-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* =========================================================
   یک پی سی — Dark Mode
   ========================================================= */
.yekpc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
  color: #0f172a;
  padding: 0;
  flex-shrink: 0;
}
.yekpc-theme-toggle:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}
.yekpc-theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}
.yekpc-theme-toggle .icon-sun { display: none; }
.yekpc-theme-toggle .icon-moon { display: block; }

html.yekpc-dark .yekpc-theme-toggle {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}
html.yekpc-dark .yekpc-theme-toggle:hover {
  background: #334155;
}
html.yekpc-dark .yekpc-theme-toggle .icon-sun { display: block; }
html.yekpc-dark .yekpc-theme-toggle .icon-moon { display: none; }

/* Dark mode global */
html.yekpc-dark {
  color-scheme: dark;
}
html.yekpc-dark body,
html.yekpc-dark .istgah-theme {
  background-color: #0b1220 !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark header,
html.yekpc-dark .container-main > header,
html.yekpc-dark section > header {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .nikan-footer,
html.yekpc-dark footer.nikan-footer {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
}
html.yekpc-dark footer.nikan-footer h4,
html.yekpc-dark footer.nikan-footer .nikan-footer-brand span {
  color: #f1f5f9 !important;
}
html.yekpc-dark footer.nikan-footer a,
html.yekpc-dark footer.nikan-footer p,
html.yekpc-dark footer.nikan-footer li {
  color: #94a3b8 !important;
}
html.yekpc-dark input,
html.yekpc-dark textarea,
html.yekpc-dark select,
html.yekpc-dark .search-section input,
html.yekpc-dark form input[type="text"],
html.yekpc-dark form input[type="search"] {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
html.yekpc-dark input::placeholder,
html.yekpc-dark textarea::placeholder {
  color: #64748b !important;
}
html.yekpc-dark .border,
html.yekpc-dark [class*="border-zinc"],
html.yekpc-dark [class*="border-gray"] {
  border-color: #334155 !important;
}
html.yekpc-dark .bg-white,
html.yekpc-dark .bg-slate-50,
html.yekpc-dark .bg-gray-50 {
  background-color: #1e293b !important;
}
html.yekpc-dark .text-slate-800,
html.yekpc-dark .text-slate-900,
html.yekpc-dark .text-gray-800,
html.yekpc-dark .text-gray-900,
html.yekpc-dark .text-zinc-800 {
  color: #f1f5f9 !important;
}
html.yekpc-dark .text-slate-600,
html.yekpc-dark .text-gray-600,
html.yekpc-dark .text-zinc-600 {
  color: #94a3b8 !important;
}
html.yekpc-dark .istgah-account-menu > button,
html.yekpc-dark a.flex.items-center.gap-2.border {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .istgah-account-menu > div {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.yekpc-dark .istgah-account-menu a {
  color: #e2e8f0 !important;
}
html.yekpc-dark .istgah-account-menu a:hover {
  background: #334155 !important;
}
html.yekpc-dark .istgah-hero {
  background: linear-gradient(135deg, #312e81 0%, #4c1d95 50%, #1e3a8a 100%) !important;
}
html.yekpc-dark .istgah-cat,
html.yekpc-dark .istgah-product,
html.yekpc-dark .istgah-feat,
html.yekpc-dark .istgah-notice {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .istgah-cat-icon {
  background: linear-gradient(135deg, #312e81, #1e3a8a) !important;
}
html.yekpc-dark .istgah-product-title,
html.yekpc-dark .istgah-section-title h2 {
  color: #f1f5f9 !important;
}
html.yekpc-dark .istgah-notice {
  background: #422006 !important;
  border-color: #854d0e !important;
  color: #fde68a !important;
}
html.yekpc-dark .woocommerce ul.products li.product,
html.yekpc-dark .woocommerce-page ul.products li.product,
html.yekpc-dark .woocommerce div.product,
html.yekpc-dark .cart,
html.yekpc-dark .woocommerce-cart-form,
html.yekpc-dark .woocommerce-checkout {
  background-color: transparent;
  color: #e2e8f0;
}
html.yekpc-dark .woocommerce a.button,
html.yekpc-dark .woocommerce button.button,
html.yekpc-dark .woocommerce input.button {
  background-color: #7c3aed !important;
  color: #fff !important;
}
html.yekpc-dark .elementor-widget-container,
html.yekpc-dark .e-con,
html.yekpc-dark .elementor-section {
  /* keep elementor layouts; soft text contrast */
}
html.yekpc-dark .elementor-heading-title,
html.yekpc-dark h1, html.yekpc-dark h2, html.yekpc-dark h3,
html.yekpc-dark h4, html.yekpc-dark h5, html.yekpc-dark h6 {
  color: #f8fafc;
}
html.yekpc-dark .bg-gray-300 {
  background-color: #334155 !important;
}
html.yekpc-dark .nikan-top-message {
  border-bottom-color: rgba(255,255,255,.08) !important;
}
html.yekpc-dark .woocommerce-MyAccount-navigation ul,
html.yekpc-dark .woocommerce-MyAccount-content,
html.yekpc-dark .woocommerce-account .woocommerce {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}
html.yekpc-dark .woocommerce-MyAccount-navigation a {
  color: #cbd5e1 !important;
}
/* Mobile toggle spacing */
@media (max-width: 768px) {
  .yekpc-theme-toggle { width: 36px; height: 36px; }
}

/* =========================================================
   دارک‌مود تقویت‌شده — هدر / مگامنو / محصول / فروشگاه
   ========================================================= */

/* هدر دسکتاپ و موبایل */
html.yekpc-dark header.container-main,
html.yekpc-dark .nikan-mobile-main-header,
html.yekpc-dark header .container-main,
html.yekpc-dark .site-header,
html.yekpc-dark body > section > header {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark header a,
html.yekpc-dark header span,
html.yekpc-dark header button:not(.yekpc-theme-toggle) {
  color: #e2e8f0;
}
html.yekpc-dark header .font-semibold,
html.yekpc-dark #megaTrigger,
html.yekpc-dark nav a {
  color: #e2e8f0 !important;
}

/* جستجو در هدر */
html.yekpc-dark header form,
html.yekpc-dark header form input,
html.yekpc-dark .form_search input,
html.yekpc-dark .search_input input {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

/* دکمه‌های هدر (حساب / سبد) */
html.yekpc-dark header .border,
html.yekpc-dark header a.border,
html.yekpc-dark header button.border,
html.yekpc-dark .nikan-account-menu-toggle,
html.yekpc-dark .nikan-header-cart-trigger {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* مگامنو */
html.yekpc-dark #megaPanel,
html.yekpc-dark #megaPanel > div,
html.yekpc-dark .mega-content,
html.yekpc-dark #megaPanel .bg-white,
html.yekpc-dark #megaPanel [class*="bg-white"] {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html.yekpc-dark .mega-tab,
html.yekpc-dark #megaPanel a,
html.yekpc-dark #megaPanel span,
html.yekpc-dark #megaPanel li {
  color: #e2e8f0 !important;
}
html.yekpc-dark .mega-tab:hover,
html.yekpc-dark .mega-tab.is-active,
html.yekpc-dark .mega-tab.bg-orange-50 {
  background-color: #334155 !important;
}

/* منوی موبایل */
html.yekpc-dark #menuPanel,
html.yekpc-dark #menuPanel.nikan-mobile-menu-panel,
html.yekpc-dark .nikan-mobile-menu-panel,
html.yekpc-dark .nikan-mobile-menu-body,
html.yekpc-dark .nikan-mobile-content {
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .nikan-mobile-root-item,
html.yekpc-dark .nikan-mobile-menu-search input {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html.yekpc-dark .nikan-mobile-root-item.is-active {
  background-color: #312e81 !important;
}
html.yekpc-dark .nikan-mobile-menu-title,
html.yekpc-dark .nikan-mobile-menu-close,
html.yekpc-dark .nikan-mobile-root-item .nikan-root-title {
  color: #f1f5f9 !important;
}

/* باکس‌های سفید عمومی (محصول تکی، فروشگاه، کارت‌ها) */
html.yekpc-dark .bg-white,
html.yekpc-dark .bg-slate-50,
html.yekpc-dark .bg-gray-50,
html.yekpc-dark .bg-zinc-50,
html.yekpc-dark [class~="bg-white"],
html.yekpc-dark .nikan-single-product-shell,
html.yekpc-dark .nikan-product-main-gallery-frame,
html.yekpc-dark .nikan-single-product-shell.bg-white,
html.yekpc-dark main .rounded-xl.border,
html.yekpc-dark main .rounded-2xl.border {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* تیتر و متن محصول */
html.yekpc-dark .nikan-single-product-title,
html.yekpc-dark .nikan-single-product-shell h1,
html.yekpc-dark .nikan-single-product-shell h2,
html.yekpc-dark .nikan-single-product-shell h3,
html.yekpc-dark .nikan-single-product-shell .font-bold,
html.yekpc-dark .woocommerce div.product .product_title {
  color: #f8fafc !important;
}
html.yekpc-dark .nikan-single-product-shell .text-zinc-400,
html.yekpc-dark .nikan-single-product-shell .text-zinc-500,
html.yekpc-dark .nikan-single-product-shell .text-zinc-600,
html.yekpc-dark .nikan-single-product-shell .text-gray-500,
html.yekpc-dark .nikan-single-product-shell .text-gray-600 {
  color: #94a3b8 !important;
}
html.yekpc-dark .nikan-single-product-shell .text-zinc-800,
html.yekpc-dark .nikan-single-product-shell .text-zinc-900,
html.yekpc-dark .nikan-single-product-shell .text-gray-800,
html.yekpc-dark .nikan-single-product-shell .text-gray-900,
html.yekpc-dark .nikan-single-product-shell .text-slate-800 {
  color: #e2e8f0 !important;
}

/* باکس مشخصات / ارسال */
html.yekpc-dark .nikan-single-specs-box {
  background-color: rgba(30, 58, 138, 0.35) !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .nikan-single-shipping-icon,
html.yekpc-dark .nikan-single-shipping-icon.bg-gray-100 {
  background-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .nikan-single-shipping-title {
  color: #f1f5f9 !important;
}
html.yekpc-dark .nikan-single-shipping-desc {
  color: #94a3b8 !important;
}

/* تب‌های محصول */
html.yekpc-dark .woocommerce-tabs,
html.yekpc-dark .woocommerce-Tabs-panel,
html.yekpc-dark .nikan-single-product-shell .woocommerce-tabs ul.tabs li a,
html.yekpc-dark .wc-tabs li a {
  background-color: transparent !important;
  color: #cbd5e1 !important;
  border-color: #334155 !important;
}
html.yekpc-dark .wc-tabs li.active a,
html.yekpc-dark .woocommerce-tabs ul.tabs li.active a {
  color: #a5b4fc !important;
  border-bottom-color: #7c3aed !important;
}

/* جدول مشخصات */
html.yekpc-dark table,
html.yekpc-dark tbody,
html.yekpc-dark tr,
html.yekpc-dark td,
html.yekpc-dark th,
html.yekpc-dark .shop_attributes,
html.yekpc-dark .woocommerce-product-attributes {
  background-color: #1e293b !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}
html.yekpc-dark .divide-gray-200 > :not([hidden]) ~ :not([hidden]),
html.yekpc-dark .divide-y {
  border-color: #334155 !important;
}

/* قیمت */
html.yekpc-dark .price,
html.yekpc-dark .woocommerce-Price-amount,
html.yekpc-dark .nikan-single-product-shell .price {
  color: #c4b5fd !important;
}

/* دکمه‌های تعداد */
html.yekpc-dark .quantity input,
html.yekpc-dark input.qty,
html.yekpc-dark .nikan-single-product-shell .border {
  background-color: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

/* فروشگاه / آرشیو محصولات */
html.yekpc-dark .woocommerce ul.products li.product,
html.yekpc-dark .woocommerce-page ul.products li.product,
html.yekpc-dark ul.products li.product,
html.yekpc-dark .products .product {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .woocommerce ul.products li.product .woocommerce-loop-product__title,
html.yekpc-dark .woocommerce ul.products li.product h2,
html.yekpc-dark .products .product h2,
html.yekpc-dark .products .product h3 {
  color: #f1f5f9 !important;
}
html.yekpc-dark .woocommerce-result-count,
html.yekpc-dark .woocommerce-ordering select,
html.yekpc-dark .woocommerce-ordering {
  color: #cbd5e1 !important;
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

/* صفحه اصلی / کانتینر */
html.yekpc-dark main,
html.yekpc-dark main.container-main,
html.yekpc-dark .container-main {
  background-color: transparent !important;
  color: #e2e8f0;
}
html.yekpc-dark body.woocommerce,
html.yekpc-dark body.single-product,
html.yekpc-dark body.archive {
  background-color: #0b1220 !important;
}

/* border utility overrides */
html.yekpc-dark .border-zinc-300,
html.yekpc-dark .border-gray-200,
html.yekpc-dark .border-gray-300,
html.yekpc-dark .border-slate-200 {
  border-color: #334155 !important;
}

/* فوتر در دارک */
html.yekpc-dark footer.nikan-footer,
html.yekpc-dark .nikan-footer {
  background-color: #0f172a !important;
}
html.yekpc-dark footer.nikan-footer * {
  border-color: #334155;
}

/* سایدبار سبد */
html.yekpc-dark .nikan-cart-sidebar {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}
html.yekpc-dark .nikan-cart-sidebar-item-title {
  color: #f1f5f9 !important;
}


/* =========================================================
   دارک‌مود: متن سفید هدر + مگامنو دسکتاپ (اجباری)
   ========================================================= */
html.yekpc-dark header,
html.yekpc-dark header *,
html.yekpc-dark .container-main.hidden header,
html.yekpc-dark header.container-main,
html.yekpc-dark header.container-main * {
  color: #f1f5f9 !important;
}
html.yekpc-dark header img,
html.yekpc-dark header svg,
html.yekpc-dark header .yekpc-theme-toggle {
  color: inherit;
}
/* keep logo/images as-is */
html.yekpc-dark header img {
  color: unset !important;
  filter: none;
}

/* لینک‌ها و متن هدر */
html.yekpc-dark #megaTrigger,
html.yekpc-dark #megaTrigger span,
html.yekpc-dark #megaTrigger i,
html.yekpc-dark header .font-semibold,
html.yekpc-dark header ul li,
html.yekpc-dark header ul li a,
html.yekpc-dark header nav a,
html.yekpc-dark header .no-underline {
  color: #ffffff !important;
}
html.yekpc-dark #megaTrigger:hover,
html.yekpc-dark header a:hover {
  color: #c4b5fd !important;
}

/* مگامنو پنل */
html.yekpc-dark #megaPanel,
html.yekpc-dark #megaPanel > div,
html.yekpc-dark #megaPanel .bg-white,
html.yekpc-dark #megaPanel .bg-gray-50,
html.yekpc-dark #megaPanel .flex-1,
html.yekpc-dark #megaPanel .w-\[260px\] {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}
html.yekpc-dark #megaPanel,
html.yekpc-dark #megaPanel *,
html.yekpc-dark #megaPanel a,
html.yekpc-dark #megaPanel span,
html.yekpc-dark #megaPanel li,
html.yekpc-dark #megaPanel .mega-tab,
html.yekpc-dark #megaPanel .mega-content,
html.yekpc-dark #megaPanel .font-bold,
html.yekpc-dark #megaPanel .text-gray-800,
html.yekpc-dark #megaPanel .text-gray-700,
html.yekpc-dark #megaPanel .text-gray-600,
html.yekpc-dark #megaPanel .text-gray-500,
html.yekpc-dark #megaPanel .text-gray-400,
html.yekpc-dark #megaPanel .text-slate-800,
html.yekpc-dark #megaPanel .text-zinc-800 {
  color: #ffffff !important;
}
html.yekpc-dark #megaPanel .mega-tab {
  background-color: transparent !important;
}
html.yekpc-dark #megaPanel .mega-tab:hover,
html.yekpc-dark #megaPanel .mega-tab.bg-white,
html.yekpc-dark #megaPanel a.mega-tab.shadow-sm {
  background-color: #334155 !important;
  color: #ffffff !important;
}
html.yekpc-dark #megaPanel .text-gray-400,
html.yekpc-dark #megaPanel .text-orange-500 {
  color: #c4b5fd !important;
}
html.yekpc-dark #megaPanel .nikan-mega-accent {
  background-color: #a78bfa !important;
}

/* کلاس‌های خاکستری Tailwind در کل صفحه در دارک‌مود */
html.yekpc-dark .text-gray-800,
html.yekpc-dark .text-gray-900,
html.yekpc-dark .text-gray-700,
html.yekpc-dark .text-slate-800,
html.yekpc-dark .text-slate-900,
html.yekpc-dark .text-zinc-800,
html.yekpc-dark .text-zinc-900,
html.yekpc-dark .text-black {
  color: #f8fafc !important;
}
html.yekpc-dark .text-gray-600,
html.yekpc-dark .text-gray-500,
html.yekpc-dark .text-gray-400,
html.yekpc-dark .text-slate-600,
html.yekpc-dark .text-zinc-600,
html.yekpc-dark .text-zinc-500,
html.yekpc-dark .text-zinc-400 {
  color: #cbd5e1 !important;
}

/* جداکننده‌های هدر */
html.yekpc-dark header .bg-gray-300 {
  background-color: #475569 !important;
}
