/*
Theme Name: ArtShop Theme
Theme URI: https://theartshop.ir
Author: Ali Khanmohammadi
Author URI: https://alikhanmohammadi.ir
Description: قالب فروشگاهی آثار هنری و صنایع دستی اصیل ایرانی - طراحی الهام‌گرفته از هنر و معماری ایرانی
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
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: artshop-theme
Tags: e-commerce, rtl, art, handicraft, persian, islamic-art
*/

/* ═══════════════════════════════════════════════════════
   ArtShop Theme - Design System
   الهام‌گرفته از هنر اصیل ایرانی، کاشی‌کاری و خوشنویسی
   ═══════════════════════════════════════════════════════ */

:root {
    /* ── رنگ‌های اصلی ( الهام از کاشی‌های اصفهان و شیراز ) ── */
    --bg-deep: #0a0e1a;
    --bg-primary: #0f1923;
    --bg-surface: #152232;
    --bg-card: #1a2a3a;
    --bg-card-hover: #1f3347;

    /* فیروزه‌ای اصیل ( شار@admin شیراز ) */
    --turquoise: #00c9a7;
    --turquoise-light: #2ee8cc;
    --turquoise-dark: #009e85;
    --turquoise-glow: rgba(0, 201, 167, 0.15);
    --turquoise-glow-strong: rgba(0, 201, 167, 0.3);

    /* طلایی نقره‌ای ( الهام از خوشنویسی و ورق طلا ) */
    --gold: #d4a843;
    --gold-light: #e8c56a;
    --gold-dark: #b8912e;
    --gold-glow: rgba(212, 168, 67, 0.15);

    /* لاجوردی ( الهام از میناکاری و فیروزه ) */
    --lapis: #1e3a5f;
    --lapis-light: #2a5080;

    /* قرمز آجری ( الهام از آجرهای تبریز ) */
    --brick: #c0392b;
    --brick-light: #e74c3c;

    /* سبز زمردی */
    --emerald: #27ae60;

    /* ── متن و لایه‌ها ── */
    --text-primary: #e8edf2;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-gold: var(--gold);

    /* ── حاشیه و سایه ── */
    --border: #1e3048;
    --border-light: #2a4060;
    --border-gold: rgba(212, 168, 67, 0.3);
    --border-turquoise: rgba(0, 201, 167, 0.3);

    /* ── سایه‌ها ── */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 30px rgba(212, 168, 67, 0.15);
    --shadow-turquoise: 0 4px 30px rgba(0, 201, 167, 0.15);

    /* ── ابعاد ── */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --header-height: 75px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════
   ریست و پایه
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════
   الگوی تزئینی پس‌زمینه ( الهام از اسلیمی )
   ═══════════════════════════════════════════════════════ */

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 600px 600px at 10% 10%, rgba(0, 201, 167, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 90% 20%, rgba(212, 168, 67, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 80%, rgba(30, 58, 95, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input, textarea { font-family: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════
   تایپوگرافی و ابزارها
   ═══════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* ── عنوان بخش با خط تزئینی طلایی ── */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 800;
}

.section-title::before {
    content: '◆';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 0.9rem;
    z-index: 2;
    background: var(--bg-deep);
    padding: 0 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: var(--radius-full);
}

/* ── دکمه‌ها ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.btn:hover::before { left: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    box-shadow: var(--shadow-turquoise);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--turquoise-light), var(--turquoise));
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(0, 201, 167, 0.3);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a1a;
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(212, 168, 67, 0.35);
}

.btn-outline {
    border: 1.5px solid var(--border-light);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--turquoise);
    color: var(--turquoise);
    background: var(--turquoise-glow);
}

/* ═══════════════════════════════════════════════════════
   هدر ( الهام از طاق و کاشی )
   ═══════════════════════════════════════════════════════ */

header {
    position: sticky;
    top: 0;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--turquoise), var(--gold), var(--turquoise), transparent);
    opacity: 0.5;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    text-shadow: 0 0 30px rgba(212, 168, 67, 0.2);
}

.brand-logo:hover { color: var(--gold-light); }

.brand-logo .logo-icon {
    font-size: 1.8rem;
    color: var(--turquoise);
    filter: drop-shadow(0 0 8px rgba(0, 201, 167, 0.3));
}

.nav-menu { display: none; }

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--turquoise), var(--gold));
    transition: width 0.3s;
    border-radius: var(--radius-full);
}

.nav-menu a:hover { color: var(--turquoise); }
.nav-menu a:hover::after { width: 100%; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    color: var(--text-secondary);
    font-size: 1.3rem;
    position: relative;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--turquoise);
    background: var(--turquoise-glow);
}

.badge {
    position: absolute;
    top: 2px; right: 2px;
    background: linear-gradient(135deg, var(--brick), var(--brick-light));
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.4);
}

.mobile-toggle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   هیرو ( الهام از معماری طاق ایرانی )
   ═══════════════════════════════════════════════════════ */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 800px 600px at 20% 50%, rgba(0, 201, 167, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 600px 600px at 80% 30%, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
    z-index: 1;
}

/* حاشیه تزئینی پایین هیرو */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    text-align: right;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 2;
}

.hero .hero-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--turquoise);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════
   بخش اعتماد ( با خط تزئینی اسلیمی )
   ═══════════════════════════════════════════════════════ */

.trust-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.trust-item:hover {
    background: var(--bg-card);
    border-color: var(--border);
}

.trust-icon {
    font-size: 2.2rem;
    color: var(--turquoise);
    filter: drop-shadow(0 0 8px rgba(0, 201, 167, 0.3));
    transition: var(--transition);
    flex-shrink: 0;
}

.trust-item:hover .trust-icon {
    transform: scale(1.1);
    color: var(--gold);
    filter: drop-shadow(0 0 12px rgba(212, 168, 67, 0.3));
}

.trust-text h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.trust-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   گرید محصولات
   ═══════════════════════════════════════════════════════ */

.section-padding { padding: 5rem 0; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.5rem;
}

/* ── کارت محصول ( الهام از قاب‌های هنری ) ── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--turquoise), var(--gold));
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.product-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 168, 67, 0.08);
}

.product-card:hover::before { opacity: 1; }

.product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-primary);
}

.product-image-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.08);
}

/* ── برچسب‌های محصول ── */
.product-badges {
    position: absolute;
    top: 12px; right: 12px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.badge-discount, .badge-new {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    backdrop-filter: blur(4px);
}

.badge-discount {
    background: linear-gradient(135deg, var(--brick), #a93226);
    box-shadow: 0 2px 10px rgba(192, 57, 43, 0.4);
}

.badge-new {
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    box-shadow: 0 2px 10px rgba(0, 201, 167, 0.4);
}

/* ── اکشن‌های محصول ── */
.product-actions {
    position: absolute;
    bottom: -60px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 15px;
    background: linear-gradient(to top, rgba(10, 14, 26, 0.95), transparent);
    transition: var(--transition-slow);
    z-index: 2;
}

.product-card:hover .product-actions { bottom: 0; }

.icon-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
    font-size: 0.95rem;
}

.icon-btn:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1a1a1a;
    border-color: var(--gold);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
}

/* ── اطلاعات محصول ── */
.product-info {
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-meta {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-meta::before {
    content: '';
    width: 3px; height: 3px;
    background: var(--turquoise);
    border-radius: 50%;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    color: var(--text-primary);
}

.product-title a:hover { color: var(--turquoise); }

.price-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.price-old {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: 0 0 20px rgba(212, 168, 67, 0.2);
}

/* ═══════════════════════════════════════════════════════
   صفحه‌بندی
   ═══════════════════════════════════════════════════════ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3.5rem;
}

.page-btn {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    background: var(--bg-card);
    font-size: 0.9rem;
}

.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    border-color: var(--turquoise);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-turquoise);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: #1a1a1a;
    box-shadow: var(--shadow-gold);
}

/* ═══════════════════════════════════════════════════════
   مُدال‌ها و اوورلی
   ═══════════════════════════════════════════════════════ */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1050;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay.active { display: block; opacity: 1; }

/* ── سبد خرید ( کشویی ) ── */
.cart-drawer {
    position: fixed;
    top: 0; left: -100%;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: var(--bg-surface);
    z-index: 1100;
    transition: left 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
}

.cart-drawer.active { left: 0; }

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
}

.cart-header h3 {
    font-size: 1.1rem;
    color: var(--gold);
    font-weight: 700;
}

.cart-content-scroll {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-items {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    transition: var(--transition);
}

.cart-item:hover { background: var(--bg-card); border-radius: var(--radius-md); padding: 0.5rem; }

.cart-item-img {
    width: 85px; height: 85px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ── فرم تسویه ── */
.checkout-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-card);
}

.checkout-section.active { display: flex; }

.checkout-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-primary);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.checkout-input:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px var(--turquoise-glow);
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--bg-primary);
    margin-top: 0.5rem;
    transition: var(--transition);
}

.payment-label:hover { border-color: var(--border-light); }

.payment-label:has(input:checked) {
    border-color: var(--turquoise);
    background: var(--turquoise-glow);
}

.payment-label input[type="radio"]:checked + span { color: var(--turquoise); font-weight: 600; }

/* ── مُدال اطلاعات ── */
.info-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: 1200;
    display: none;
    opacity: 0;
    transition: var(--transition);
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.info-modal.active {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.info-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.info-modal-header h3 { color: var(--gold); font-size: 1.1rem; }

.info-modal-body {
    padding: 2rem;
    overflow-y: auto;
    line-height: 2;
    color: var(--text-secondary);
}

.info-modal-body h4 {
    color: var(--turquoise);
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════
   Toast Notification
   ═══════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    bottom: 90px; right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border-right: 4px solid var(--emerald);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: toastSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards, toastFadeOut 0.4s 2.6s forwards;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    font-size: 0.9rem;
}

.toast i { color: var(--emerald); font-size: 1.1rem; }

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ═══════════════════════════════════════════════════════
   نوبار پایین موبایل
   ═══════════════════════════════════════════════════════ */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.6rem 0;
    z-index: 999;
}

.mobile-bottom-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--turquoise), transparent);
    opacity: 0.5;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: var(--transition);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-md);
}

.bottom-nav-item i { font-size: 1.1rem; }
.bottom-nav-item.active { color: var(--turquoise); }
.bottom-nav-item:hover { color: var(--turquoise); }

/* ═══════════════════════════════════════════════════════
   فوتر ( الهام از معماری ایوان )
   ═══════════════════════════════════════════════════════ */

footer {
    background: var(--bg-surface);
    padding: 5rem 0 2.5rem;
    border-top: 1px solid var(--border);
    margin-bottom: 70px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--turquoise), var(--gold), transparent);
    opacity: 0.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 40px; height: 2px;
    background: linear-gradient(90deg, var(--turquoise), transparent);
    border-radius: var(--radius-full);
}

.footer-links a {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    padding-right: 0.5rem;
}

.footer-links a:hover {
    color: var(--turquoise);
    padding-right: 1rem;
}

/* ── نمادها ── */
.trust-badges-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badge-item {
    width: 95px; height: 95px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    text-align: center;
    color: var(--text-secondary);
    overflow: hidden;
    padding: 6px;
    transition: var(--transition);
}

.trust-badge-item:hover {
    border-color: var(--turquoise);
    transform: translateY(-3px);
    box-shadow: var(--shadow-turquoise);
}

.trust-badge-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── کردیت توسعه‌دهنده ── */
.dev-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.dev-credit:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: var(--gold-glow);
}

/* ═══════════════════════════════════════════════════════
   صفحه تکی محصول
   ═══════════════════════════════════════════════════════ */

.single-product-hero { padding: 4rem 0; }

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.single-product-gallery {
    position: relative;
}

.single-product-main-img {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.single-product-main-img img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.single-product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.single-product-category {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-product-title {
    font-size: 2rem;
    font-weight: 800;
}

.single-product-artist {
    color: var(--turquoise);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-product-price-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.single-add-to-cart { width: 100%; }

.product-description {
    line-height: 2;
    color: var(--text-secondary);
}

.product-description h4 {
    color: var(--turquoise);
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   انیمیشن‌های زیبا
   ═══════════════════════════════════════════════════════ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.product-card { animation: fadeInUp 0.6s ease-out backwards; }
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════
   اسکرول‌بار سفارشی
   ═══════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--turquoise); }

/* ═══════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    .trust-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
    .single-product-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 3.5rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (min-width: 1024px) {
    .mobile-toggle, .mobile-bottom-nav { display: none; }
    .nav-menu { display: flex; gap: 2.5rem; }
    footer { margin-bottom: 0; }
    .hero h1 { font-size: 4rem; }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
    .container { max-width: 1400px; }
}

/* ═══════════════════════════════════════════════════════
   جستجو
   ═══════════════════════════════════════════════════════ */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 2rem auto;
}

.search-form .search-field {
    flex: 1;
    padding: 0.85rem 1.2rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-form .search-field:focus {
    border-color: var(--turquoise);
    box-shadow: 0 0 0 3px var(--turquoise-glow);
}

.search-form .search-submit {
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--turquoise), var(--turquoise-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    background: linear-gradient(135deg, var(--turquoise-light), var(--turquoise));
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════
   404 Page
   ═══════════════════════════════════════════════════════ */

.error-404 {
    text-align: center;
    padding: 6rem 2rem;
}

.error-404 h1 {
    font-size: 6rem;
    color: var(--gold);
    text-shadow: 0 0 40px rgba(212, 168, 67, 0.3);
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════
   ویجت‌ها
   ═══════════════════════════════════════════════════════ */

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.widget h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1rem;
}
