/*
Theme Name: قالب فروشگاه دیجیتال (Digital Store)
Description: قالب اختصاصی وردپرس سازگار با المنتور و ووکامرس برای فروش محصولات مجازی
Author: AI Assistant
Version: 1.0.0
Text Domain: digital-store
*/

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.0/Vazirmatn-font-face.css');

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
    text-align: right;
}

/* =========================================
   استایل‌های اختصاصی پنل کاربری
   ========================================= */
.ds-panel-container { background: #ffffff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); padding: 30px; margin: 20px auto; max-width: 1000px; }
.ds-panel-header { display: flex; align-items: center; border-bottom: 2px solid #f1f3f5; padding-bottom: 20px; margin-bottom: 30px; }
.ds-user-avatar img { border-radius: 50%; margin-left: 20px; border: 3px solid #3b82f6; }
.ds-user-welcome h3 { margin: 0 0 5px 0; font-size: 20px; color: #1f2937; }
.ds-user-welcome p { margin: 0; color: #6b7280; font-size: 14px; }
.ds-logout-area { margin-right: auto; }
.ds-btn-logout { background-color: #ef4444; color: white; padding: 8px 16px; border-radius: 6px; text-decoration: none; font-size: 14px; transition: 0.2s; }
.ds-btn-logout:hover { background-color: #dc2626; }
.ds-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) {
    .ds-panel-grid { grid-template-columns: 1fr; }
    .ds-panel-header { flex-direction: column; text-align: center; }
    .ds-user-avatar img { margin-left: 0; margin-bottom: 15px; }
    .ds-logout-area { margin-right: 0; margin-top: 15px; }
}
.ds-panel-card { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 20px; }
.ds-panel-card h4 { margin-top: 0; color: #0f172a; font-size: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; }
.ds-copy-link-box { display: flex; margin-top: 15px; }
.ds-copy-link-box input { flex: 1; padding: 10px; border: 1px solid #cbd5e1; border-radius: 0 6px 6px 0; font-size: 13px; text-align: left; direction: ltr; }
.ds-btn-copy { background: #3b82f6; color: white; border: none; padding: 0 15px; border-radius: 6px 0 0 6px; cursor: pointer; font-family: 'Vazirmatn', sans-serif; }
.ds-btn-copy:hover { background: #2563eb; }
.ds-orders-list ul { list-style: none; padding: 0; margin: 0; }
.ds-orders-list li { padding: 10px 0; border-bottom: 1px dashed #e2e8f0; font-size: 14px; }

/* =========================================
   استایل‌های سبد خرید ایجکس (Side Cart)
   ========================================= */
.ds-cart-wrapper { position: relative; cursor: pointer; display: inline-flex; align-items: center; padding: 10px; }
.ds-cart-count { position: absolute; top: -5px; right: -5px; background-color: #ef4444; color: #fff; font-size: 12px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.ds-cart-sidebar { position: fixed; top: 0; left: -400px; width: 350px; height: 100vh; background: #fff; box-shadow: 2px 0 20px rgba(0,0,0,0.15); z-index: 9999; transition: left 0.3s ease-in-out; display: flex; flex-direction: column; }
.ds-cart-sidebar.active { left: 0; }
.ds-cart-sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.ds-cart-sidebar-header h3 { margin: 0; font-size: 18px; color: #1f2937; }
.ds-cart-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #6b7280; line-height: 1; }
.ds-cart-close:hover { color: #ef4444; }
.ds-mini-cart-content { padding: 20px; flex: 1; overflow-y: auto; }
.ds-cart-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: 0.3s; }
.ds-cart-overlay.active { opacity: 1; visibility: visible; }
