/*
Theme Name: گرگعلی شاپ | بازار سورس ربات و ابزارهای هوشمند
Theme URI: https://gorgali.shop
Author: مهدی شادروان
Author URI: https://t.me/Veuca
Description: قالب تخصصی، فوق‌العاده مدرن و راست‌چین (RTL) ووکامرس برای گرگعلی شاپ (gorgali.shop) جهت فروش محصولات دانلودی، سورس ربات‌های تلگرام، اینستاگرام، اسکریپت‌های پایتون و PHP، ابزارهای اتوماسیون و فایل‌های دیجیتال مطابق جدیدترین استانداردهای مارکت‌پلیس‌های ایرانی.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gorgali-shop
Domain Path: /languages
Tags: e-commerce, digital-downloads, rtl-language-support, custom-colors, custom-menu, featured-images, theme-options, translation-ready, woocommerce, full-width-template
*/

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   1. Universal Persian Typography & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

:root {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-secondary: #10b981;
    --color-accent: #f43f5e;
    --color-warning: #f59e0b;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: #f8fafc;
}

html.dark {
    background-color: #0f172a;
    color-scheme: dark;
}

body {
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.dark body {
    background-color: #0f172a;
    color: #f1f5f9;
}

/* ==========================================================================
   2. SVG Strict Utility Sizes (Prevents Huge Icons)
   ========================================================================== */
svg {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    max-height: 100%;
    flex-shrink: 0;
}

svg.w-3, .w-3 { width: 12px !important; height: 12px !important; }
svg.w-3\.5, .w-3\.5 { width: 14px !important; height: 14px !important; }
svg.w-4, .w-4 { width: 16px !important; height: 16px !important; }
svg.w-5, .w-5 { width: 20px !important; height: 20px !important; }
svg.w-6, .w-6 { width: 24px !important; height: 24px !important; }
svg.w-7, .w-7 { width: 28px !important; height: 28px !important; }
svg.w-8, .w-8 { width: 32px !important; height: 32px !important; }
svg.w-10, .w-10 { width: 40px !important; height: 40px !important; }
svg.w-12, .w-12 { width: 48px !important; height: 48px !important; }
svg.w-16, .w-16 { width: 64px !important; height: 64px !important; }

/* ==========================================================================
   3. Modern Marketplace WooCommerce Product Grid
   ========================================================================== */
.woocommerce-products-wrapper,
.woocommerce .woocommerce-products-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.woocommerce ul.products[class*="columns-"],
.woocommerce-page ul.products[class*="columns-"],
ul.products,
ul.gorgali-products-grid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1.5rem 0 3rem 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
    float: none !important;
    box-sizing: border-box !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products,
    ul.gorgali-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    ul.products,
    ul.gorgali-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1.5rem !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

html.dark .woocommerce ul.products li.product,
html.dark .woocommerce-page ul.products li.product,
html.dark ul.products li.product {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
ul.products li.product:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
    border-color: #93c5fd !important;
}

html.dark .woocommerce ul.products li.product:hover,
html.dark .woocommerce-page ul.products li.product:hover,
html.dark ul.products li.product:hover {
    border-color: #3b82f6 !important;
}

/* Elementor Canvas & Full Width Clean Reset */
.elementor-template-canvas,
.elementor-template-full-width {
    margin: 0;
    padding: 0;
}
