/*
Theme Name: پارسی‌شاپ | پوسته فروشگاهی پیشرفته و مدرن (PersianShop)
Theme URI: https://persianshop.ir/
Author: گروه توسعه وب پارسی‌شاپ
Author URI: https://persianshop.ir/
Description: قالب پیشرفته، سبک و فوق‌العاده سریع فروشگاه اینترنتی بر اساس مدرن‌ترین استانداردهای فروشگاهی، سازگار کامل با ووکامرس، دکان، المنتور، دارای هدرها و فوترهای ماژولار و بهینه‌سازی شده برای استانداردهای سئو گوگل.
Version: 2.8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: persianshop
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
*/

:root {
    --ps-primary: #ef394e;
    --ps-primary-hover: #d82e42;
    --ps-secondary: #19bfd3;
    --ps-success: #029a49;
    --ps-accent-amber: #f59e0b;
    --ps-warning: #f59e0b;
    --ps-text-title: #0f172a;
    --ps-text: #3f4064;
    --ps-text-body: #334155;
    --ps-text-light: #767790;
    --ps-text-muted: #64748b;
    --ps-bg: #f7f7f9;
    --ps-bg-light: #f8fafc;
    --ps-card-bg: #ffffff;
    --ps-border: #e2e8f0;
    --ps-btn-primary: #ef394e;
    --ps-radius: 12px;
    --ps-font: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    direction: rtl;
    text-align: right;
    font-family: var(--ps-font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--ps-text);
    background-color: var(--ps-bg);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ps-primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1336px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
        padding: 0 20px;
    }
}

@media (min-width: 1680px) {
    .container {
        max-width: 1640px;
        padding: 0 24px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1720px;
        padding: 0 28px;
    }
}

/* Header Styles */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--ps-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.site-logo a {
    font-size: 22px;
    font-weight: 800;
    color: var(--ps-primary);
}

.header-search {
    flex: 1;
    max-width: 600px;
}

.header-search form {
    display: flex;
    position: relative;
}

.header-search input[type="search"] {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 45px;
    border: 1px solid var(--ps-border);
    background: #f0f0f1;
    border-radius: var(--ps-radius);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.header-search input[type="search"]:focus {
    background: #fff;
    border-color: var(--ps-primary);
}

.header-search button {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ps-text-light);
    font-size: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--ps-radius);
    border: 1px solid var(--ps-border);
    font-weight: 500;
    font-size: 13px;
}

.header-btn.btn-primary {
    background: var(--ps-primary);
    color: #fff;
    border-color: var(--ps-primary);
}

.header-btn.btn-primary:hover {
    background: var(--ps-primary-hover);
    color: #fff;
}

/* Nav Menu */
.main-navigation {
    background: #fff;
    border-bottom: 1px solid var(--ps-border);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.main-navigation li a {
    display: block;
    padding: 12px 0;
    font-weight: 500;
    font-size: 13px;
}

/* Content Area */
.site-content {
    padding: 30px 0;
    min-height: 60vh;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--ps-border);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-bottom {
    text-align: center;
    color: var(--ps-text-light);
    font-size: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ps-border);
}

/* Elementor Full Width Canvas helper */
.elementor-template-fullwidth .site-content {
    padding: 0;
}

/* Swiper custom slider styles */
.ps-banner-slider {
    position: relative;
    border-radius: var(--ps-radius);
    overflow: hidden;
    margin: 20px 0;
}

.ps-banner-slider .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--ps-radius);
}

.ps-slider-content {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px 24px;
    border-radius: 10px;
    max-width: 400px;
}

.ps-slider-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ==========================================================================
   PERSianshop Digital Product Landing Pages (Desktop & Mobile App-Style)
   ========================================================================== */

/* --- 1. Desktop Digital Landing Styles --- */
.ps-hero-badge .elementor-heading-title {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 14px;
}

.ps-hero-h1 .elementor-heading-title {
    font-size: 38px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.ps-hero-lead {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 18px;
}

.ps-btn-cta-primary .elementor-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    padding: 14px 28px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3) !important;
    transition: all 0.25s ease !important;
}

.ps-btn-cta-primary .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4) !important;
}

.ps-btn-cta-secondary .elementor-button {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
}

.ps-btn-cta-secondary .elementor-button:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.ps-hero-mockup-img img {
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12) !important;
    transition: transform 0.4s ease;
}

.ps-hero-mockup-img:hover img {
    transform: translateY(-6px);
}

.ps-section-badge .elementor-heading-title {
    display: inline-block;
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    padding: 5px 16px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.ps-section-h2 .elementor-heading-title {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #0f172a;
    line-height: 1.4 !important;
    margin-bottom: 12px;
}

/* Features Grid 3x2 on Desktop */
.elementor-element-f9d41455,
.ps-features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}

.elementor-element-f9d41455 > .elementor-widget,
.ps-features-grid > .elementor-widget,
.ps-feature-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.ps-feature-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: 100% !important;
}

.ps-feature-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6 !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.1) !important;
}

.ps-feature-card .elementor-icon-box-icon {
    margin-bottom: 16px !important;
}

.ps-feature-card .elementor-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 16px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.ps-feature-card:hover .elementor-icon {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.08);
}

.ps-feature-card .elementor-icon-box-title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a;
    margin-bottom: 10px !important;
}

.ps-feature-card .elementor-icon-box-description {
    font-size: 13.5px !important;
    line-height: 1.75 !important;
    color: #64748b;
    margin: 0 !important;
}

@media (max-width: 991px) {
    .elementor-element-f9d41455,
    .ps-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .elementor-element-f9d41455,
    .ps-features-grid {
        grid-template-columns: 1fr !important;
    }
}

.ps-pricing-card-featured {
    border: 2.5px solid #2563eb !important;
    border-radius: 20px !important;
    transform: scale(1.03);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.16) !important;
    position: relative;
}

/* --- 2. Mobile App-Style Digital Landing Styles --- */
.ps-m-sticky-top-bar {
    position: sticky !important;
    top: 0;
    z-index: 998;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.ps-m-app-header-title .elementor-heading-title {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    color: #0f172a;
    margin: 0;
}

.ps-m-product-hero-img img {
    border-radius: 16px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.ps-m-h1-title .elementor-heading-title {
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    color: #0f172a;
    margin-bottom: 8px;
}

.ps-m-card-rounded {
    border-radius: 18px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 12px;
}

.ps-m-price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.ps-m-old-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.ps-m-badge-discount {
    background: #ef394e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
}

.ps-m-current-price {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ps-m-current-price span {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Horizontal Spec Chips */
.ps-m-chips-track {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ps-m-chips-track::-webkit-scrollbar {
    display: none;
}

.ps-m-chip {
    flex-shrink: 0;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Trust Micro Grid */
.ps-m-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    text-align: center;
}

.ps-m-trust-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 15px;
}

.ps-m-trust-col span {
    font-size: 10.5px;
    font-weight: 700;
    color: #475569;
}

/* Sticky Bottom Dock */
.ps-m-sticky-bottom-dock {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #e2e8f0;
}

.ps-m-sticky-dock-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.ps-m-dock-price {
    display: flex;
    flex-direction: column;
}

.ps-m-dock-label {
    font-size: 10.5px;
    color: #64748b;
}

.ps-m-dock-val {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.ps-m-dock-btn {
    flex: 1;
    max-width: 220px;
    background: #ef394e;
    color: #ffffff;
    text-align: center;
    font-size: 13.5px;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(239, 57, 78, 0.3);
    transition: background 0.2s ease;
}

.ps-m-dock-btn:active {
    background: #d82e42;
    transform: scale(0.98);
}

/* Page 265 (Digital Product Mobile): Prevent bottom nav overlapping with purchase dock */
.page-id-265 #ps-mobile-app-nav,
.page-id-265 .dk-mobile-bottom-bar {
    display: none !important;
}

body.page-id-265 {
    padding-bottom: 75px !important;
}

/* Desktop Pricing Cards & Testimonials Enhancements */
.ps-pricing-card:hover {
    transform: translateY(-6px);
    border-color: #3b82f6 !important;
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12) !important;
}

.ps-pricing-card.ps-pricing-featured:hover {
    transform: scale(1.05) translateY(-4px) !important;
}

@media (max-width: 991px) {
    .ps-pricing-grid-container {
        grid-template-columns: 1fr !important;
    }
    .ps-pricing-card.ps-pricing-featured {
        transform: none !important;
    }
    .ps-testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

