/* ========================
   CSS Variables - Blue Theme
   ======================== */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-bg: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
    --primary-gradient-hover: linear-gradient(135deg, #1d4ed8, #2563eb);
    --secondary: #1e40af;
    --success: #10b981;
    --success-light: #d1fae5;
    --success-gradient: linear-gradient(135deg, #059669, #10b981);
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-gradient: linear-gradient(135deg, #dc2626, #ef4444);
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --info: #6366f1;
    --info-light: #e0e7ff;
    --info-gradient: linear-gradient(135deg, #4f46e5, #6366f1);
    --dark: #1f2937;
    --text: #374151;
    --text-light: #6b7280;
    --gray: #9ca3af;
    --light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.08);
    --shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    --shadow-hover: 0 20px 60px rgba(37, 99, 235, 0.18);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   Dashicons fix - loaded via WP
   ======================== */
.bargozari-admin-wrap .dashicons,
.bargozari-public-wrap .dashicons,
.bargozari-login-wrap .dashicons,
.bargozari-inner .dashicons,
.bargozari-product-form-wrap .dashicons {
    font-family: dashicons !important;
    display: inline-block;
    line-height: 1;
    font-weight: 400;
    font-style: normal;
    speak: never;
    text-decoration: inherit;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 20px;
    height: 20px;
    font-size: 20px;
    vertical-align: top;
    text-align: center;
    transition: color 0.1s ease-in;
}

/* ========================
   Global - Use theme font
   ======================== */
.bargozari-container,
.bargozari-public-wrap,
.bargozari-admin-wrap,
.bargozari-login-wrap,
.bargozari-inner,
.bargozari-product-form-wrap,
.bargozari-container *,
.bargozari-public-wrap *,
.bargozari-admin-wrap *,
.bargozari-login-wrap *,
.bargozari-inner *,
.bargozari-product-form-wrap * {
    font-family: inherit !important;
    box-sizing: border-box;
}

/* ========================
   Persian Text Fix - Prevent URL-encoding display
   ======================== */
.bargozari-attr-checkbox span,
.bargozari-attribute-tag,
.var-attr-display,
.bargozari-variations-table td,
.bargozari-products-table td,
.bargozari-filter-group select option,
.bargozari-badge,
.bargozari-stat-label,
.bargozari-product-meta,
.bargozari-product-info h4,
.bargozari-form-group label,
.bargozari-section-header h3,
.bargozari-header h1,
.bargozari-header p,
.bargozari-admin-card h2,
.bargozari-settings-card h2,
.bargozari-form-header h1,
.bargozari-form-header p,
.bargozari-modal-header h3,
.bargozari-login-card h2,
.bargozari-public-header h2,
.bargozari-public-header p,
.bargozari-product-card-title,
.bargozari-product-info-label,
.bargozari-product-info-value,
.bargozari-type-card strong,
.bargozari-type-card small,
.bargozari-type-card h3,
.bargozari-type-card p,
.bargozari-step-title,
.bargozari-step-desc,
.bargozari-toggle-label,
.bargozari-guide-item strong,
.bargozari-guide-item p,
.bargozari-results-info p,
.bargozari-empty-state h3,
.bargozari-empty-state p,
.bargozari-page-btn,
.bargozari-btn,
.bargozari-header-btn,
.bargozari-header-content h1,
.bargozari-header-content p,
.bargozari-stat-number,
.bargozari-settings-field label,
.bargozari-checkbox-label,
.bargozari-field label,
.bargozari-upload-placeholder,
.bargozari-message,
.bargozari-variations-header h4,
.bargozari-filter-group-inline label,
.bargozari-barcode-table td,
.bargozari-edit-field,
.bargozari-input,
.bargozari-input-has-icon,
.bargozari-quick-input,
.bargozari-quick-select,
.bargozari-login-footer,
.bargozari-stock-status,
.bargozari-sku-display,
.bargozari-display-price,
.bargozari-stock-status-display,
.bargozari-type-card h3,
.bargozari-type-card p {
    unicode-bidi: plaintext;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Force RTL direction for Persian text containers */
.bargozari-admin-wrap,
.bargozari-public-wrap,
.bargozari-product-form-wrap,
.bargozari-login-wrap,
.bargozari-inner {
    direction: rtl;
}

/* Fix for table cells with Persian text */
.bargozari-products-table td,
.bargozari-variations-table td,
.bargozari-variations-subtable td,
.bargozari-barcode-table td {
    direction: rtl;
    text-align: center;
}

/* Fix for input placeholders */
.bargozari-input::placeholder,
.bargozari-input-has-icon::placeholder,
.bargozari-quick-input::placeholder,
.bargozari-edit-field::placeholder,
.bargozari-search-input::placeholder,
input::placeholder,
textarea::placeholder {
    direction: rtl;
    text-align: right;
    font-family: inherit !important;
}

/* Fix for select options */
select option {
    direction: rtl;
    text-align: right;
    font-family: inherit !important;
}

/* Fix for variation attribute display */
.var-attr-display {
    display: block;
    padding: 7px 10px;
    font-weight: 600;
    font-size: 13px;
    background: #eff6ff;
    border-radius: 6px;
    text-align: center;
    direction: rtl;
    unicode-bidi: plaintext;
}

/* ========================
   Main Container
   ======================== */
.bargozari-inner {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.bargozari-public-wrap {
    direction: rtl;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.bargozari-admin-wrap {
    padding: 35px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
    margin: -10px -20px 0 -20px;
    min-height: 100vh;
}

/* ========================
   Product Form Wrap
   ======================== */
.bargozari-product-form-wrap {
    direction: rtl;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.bargozari-fullscreen {
    max-width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.bargozari-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.bargozari-form-header h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--dark);
    margin: 0 0 8px 0;
}

.bargozari-form-header p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

.bargozari-form-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bargozari-form-section h2 {
    margin: 0 0 20px 0;
    font-weight: 800;
    color: var(--dark);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bargozari-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.bargozari-form-group {
    display: flex;
    flex-direction: column;
}

.bargozari-form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

.bargozari-form-group input[type="text"],
.bargozari-form-group input[type="number"],
.bargozari-form-group select,
.bargozari-form-group textarea {
    padding: 12px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit !important;
    transition: var(--transition);
    direction: rtl;
}

.bargozari-form-group input:focus,
.bargozari-form-group select:focus,
.bargozari-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bargozari-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.required {
    color: var(--danger);
    font-weight: 800;
}

/* Product Type Selector */
.bargozari-product-type-selector {
    display: flex;
    gap: 20px;
}

.bargozari-type-option {
    flex: 1;
    cursor: pointer;
}

.bargozari-type-option input {
    display: none;
}

.bargozari-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 25px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
    background: var(--light);
}

.bargozari-type-option input:checked + .bargozari-type-card {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bargozari-type-icon {
    font-size: 36px;
}

.bargozari-type-card strong {
    font-size: 16px;
    color: var(--dark);
}

.bargozari-type-card small {
    color: var(--text-light);
    font-size: 12px;
}

/* Attribute Checkboxes */
.bargozari-attributes-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: var(--light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    min-height: 45px;
}

.bargozari-attr-checkbox {
    display: flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--white);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 2px solid var(--border);
    transition: var(--transition);
    direction: rtl;
}

.bargozari-attr-checkbox:hover {
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.bargozari-attr-checkbox:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.bargozari-attr-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.bargozari-attr-checkbox span {
    unicode-bidi: plaintext;
}

/* Checkbox label */
.bargozari-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--dark);
}

.bargozari-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Image Upload in Form */
.bargozari-image-upload,
.bargozari-gallery-upload {
    text-align: center;
}

.bargozari-image-preview {
    width: 180px;
    height: 240px;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--light);
}

.bargozari-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bargozari-upload-placeholder {
    font-size: 48px;
    color: var(--text-light);
}

.bargozari-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.gallery-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--danger);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* Form Footer */
.bargozari-form-footer {
    text-align: center;
    padding: 20px;
}

/* Messages */
.bargozari-success-message {
    background: var(--success-light);
    color: #065f46;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    border: 2px solid #a7f3d0;
}

.bargozari-error-message {
    background: var(--danger-light);
    color: #991b1b;
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    border: 2px solid #fecaca;
}

/* AI Button */
.bargozari-btn-ai {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none !important;
}

.bargozari-btn-ai:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ========================
   Header
   ======================== */
.bargozari-header {
    background: var(--primary-gradient);
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.bargozari-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    animation: bargozari-pulse 3s infinite;
}

.bargozari-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
}

@keyframes bargozari-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.bargozari-header-icon {
    margin-bottom: 15px;
}

.bargozari-header-icon .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 15px;
}

.bargozari-header h1 {
    font-size: 38px;
    margin: 0 0 12px 0;
    font-weight: 900;
    text-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: relative;
}

.bargozari-header p {
    font-size: 17px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    position: relative;
}

/* ========================
   Steps Indicator
   ======================== */
.bargozari-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--primary-bg);
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
    gap: 0;
    flex-wrap: wrap;
}

.bargozari-step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid rgba(37, 99, 235, 0.15);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.bargozari-step-indicator:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15);
}

.bargozari-step-indicator.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
}

.bargozari-step-indicator.completed {
    background: var(--success-light);
    border-color: var(--success);
}

.bargozari-step-indicator.completed .bargozari-step-title {
    color: #065f46;
}

.bargozari-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.bargozari-step-indicator.active .bargozari-step-circle {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.bargozari-step-indicator.completed .bargozari-step-circle {
    background: var(--success);
    color: var(--white);
}

.bargozari-step-check {
    display: none;
}

.bargozari-step-indicator.completed .bargozari-step-icon {
    display: none;
}

.bargozari-step-indicator.completed .bargozari-step-check {
    display: inline;
}

.bargozari-step-text {
    display: flex;
    flex-direction: column;
}

.bargozari-step-title {
    font-weight: 700;
    font-size: 14px;
}

.bargozari-step-desc {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.bargozari-step-connector {
    width: 40px;
    height: 2px;
    background: rgba(37, 99, 235, 0.2);
    margin: 0 5px;
}

/* ========================
   Content Body
   ======================== */
.bargozari-body {
    padding: 40px;
}

.bargozari-step-content {
    display: none;
    animation: bargozari-fadeIn 0.5s ease;
}

.bargozari-step-content.active {
    display: block;
}

@keyframes bargozari-fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ========================
   Product Form - 4 Step Wizard (template-main.php)
   ======================== */
.bargozari-inner {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.bargozari-inner.bargozari-fullscreen {
    max-width: 100%;
    min-height: 100vh;
}

/* Header */
.bargozari-header {
    background: var(--primary-gradient);
    padding: 50px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.bargozari-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    animation: bargozari-pulse 3s infinite;
}

.bargozari-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
}

@keyframes bargozari-pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.bargozari-header-icon {
    margin-bottom: 15px;
}

.bargozari-header-icon .dashicons {
    font-size: 56px;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 15px;
}

.bargozari-header h1 {
    font-size: 38px;
    margin: 0 0 12px 0;
    font-weight: 900;
    text-shadow: 0 2px 15px rgba(0,0,0,0.15);
    position: relative;
    color: var(--white);
}

.bargozari-header p {
    font-size: 17px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    position: relative;
    color: rgba(255,255,255,0.9);
}

/* Steps */
.bargozari-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: var(--primary-bg);
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
    gap: 0;
    flex-wrap: wrap;
}

.bargozari-step-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid rgba(37, 99, 235, 0.15);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.bargozari-step-indicator:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15);
}

.bargozari-step-indicator.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transform: scale(1.05);
}

.bargozari-step-indicator.completed {
    background: var(--success-light);
    border-color: var(--success);
}

.bargozari-step-indicator.completed .bargozari-step-title {
    color: #065f46;
}

.bargozari-step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.bargozari-step-indicator.active .bargozari-step-circle {
    background: rgba(255, 255, 255, 0.25);
    color: var(--white);
}

.bargozari-step-indicator.completed .bargozari-step-circle {
    background: var(--success);
    color: var(--white);
}

.bargozari-step-check {
    display: none;
}

.bargozari-step-indicator.completed .bargozari-step-icon {
    display: none;
}

.bargozari-step-indicator.completed .bargozari-step-check {
    display: inline;
}

.bargozari-step-text {
    display: flex;
    flex-direction: column;
}

.bargozari-step-title {
    font-weight: 700;
    font-size: 14px;
}

.bargozari-step-indicator.active .bargozari-step-title {
    color: var(--white);
}

.bargozari-step-desc {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.bargozari-step-connector {
    width: 40px;
    height: 2px;
    background: rgba(37, 99, 235, 0.2);
    margin: 0 5px;
}

/* Content Body */
.bargozari-body {
    padding: 40px;
}

.bargozari-step-content {
    display: none;
    animation: bargozari-fadeIn 0.5s ease;
}

.bargozari-step-content.active {
    display: block;
}

@keyframes bargozari-fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Header */
.bargozari-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-bg);
}

.bargozari-section-header .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.bargozari-section-header h3 {
    font-size: 22px;
    color: var(--dark);
    margin: 0;
    font-weight: 800;
}

/* Form Fields */
.bargozari-field {
    margin-bottom: 25px;
}

.bargozari-field label {
    display: block;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.bargozari-required {
    color: var(--danger);
    font-weight: 800;
}

.bargozari-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bargozari-input-icon {
    position: absolute;
    right: 15px;
    z-index: 2;
    color: var(--primary);
    font-size: 18px;
    pointer-events: none;
}

.bargozari-input-has-icon {
    width: 100%;
    padding: 15px 45px 15px 18px !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 16px !important;
    transition: var(--transition) !important;
    background: var(--light) !important;
    color: var(--dark) !important;
    font-family: inherit !important;
}

.bargozari-input-has-icon:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    background: var(--white) !important;
}

.bargozari-textarea-wrapper .bargozari-input-icon {
    top: 15px;
}

.bargozari-input-has-icon[type="number"] {
    -moz-appearance: textfield;
}

/* Upload Area */
.bargozari-upload-area {
    border: 3px dashed rgba(37, 99, 235, 0.3);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    transition: var(--transition);
    background: var(--primary-bg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bargozari-upload-area:hover {
    border-color: var(--primary);
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.bargozari-upload-area.has-image {
    border-style: solid;
    border-color: var(--primary);
    padding: 0;
    background: var(--white);
}

.bargozari-upload-area.has-image .bargozari-upload-placeholder {
    display: none;
}

.bargozari-upload-placeholder {
    color: var(--text-light);
    font-size: 16px;
}

.bargozari-upload-placeholder .dashicons {
    margin-bottom: 15px;
    color: var(--primary);
    opacity: 0.6;
}

.bargozari-upload-placeholder span {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
}

.bargozari-upload-preview {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    display: none;
}

.bargozari-upload-area.has-image .bargozari-upload-preview {
    display: block;
}

.bargozari-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bargozari-image-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: var(--transition);
    z-index: 10;
}

.bargozari-image-remove:hover {
    transform: scale(1.15);
}

.bargozari-upload-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Gallery Grid */
.bargozari-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bargozari-empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.bargozari-gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    background: var(--light);
}

.bargozari-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-light);
}

.bargozari-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bargozari-gallery-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.bargozari-gallery-item:hover .bargozari-gallery-remove {
    opacity: 1;
}

/* Camera Container */
.bargozari-camera-container {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--primary-bg);
}

.bargozari-camera-container video {
    width: 100%;
    display: block;
}

.bargozari-camera-frame {
    position: absolute;
    inset: 15%;
    border: 2px dashed rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* ========================
   Responsive for 4-step form
   ======================== */
@media (max-width: 768px) {
    .bargozari-inner {
        margin: 0 10px;
        border-radius: var(--radius-sm);
    }
    
    .bargozari-body {
        padding: 25px 20px;
    }
    
    .bargozari-header {
        padding: 35px 25px;
    }
    
    .bargozari-header h1 {
        font-size: 26px;
    }
    
    .bargozari-steps {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .bargozari-step-connector {
        display: none;
    }
    
    .bargozari-step-indicator {
        width: 100%;
        justify-content: center;
    }
    
    .bargozari-upload-area {
        padding: 30px 20px;
        min-height: 150px;
    }
}

/* ========================
   Form Sections (Legacy)
   ======================== */
.bargozari-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-bg);
}

.bargozari-section-header .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.bargozari-section-header h3 {
    font-size: 22px;
    color: var(--dark);
    margin: 0;
    font-weight: 800;
}

/* ========================
   Form Fields (Legacy)
   ======================== */
.bargozari-field {
    margin-bottom: 25px;
}

.bargozari-field label {
    display: block;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 15px;
}

.bargozari-required {
    color: var(--danger);
    font-weight: 800;
}

.bargozari-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bargozari-input-icon {
    position: absolute;
    right: 15px;
    z-index: 2;
    color: var(--primary);
    font-size: 18px;
    pointer-events: none;
}

.bargozari-input-has-icon {
    width: 100%;
    padding: 15px 45px 15px 18px !important;
    border: 2px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: 16px !important;
    transition: var(--transition) !important;
    background: var(--light) !important;
    color: var(--dark) !important;
    font-family: inherit !important;
}

.bargozari-input-has-icon:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
    background: var(--white) !important;
}

.bargozari-textarea-wrapper .bargozari-input-icon {
    top: 15px;
}

.bargozari-input-has-icon[type="number"] {
    -moz-appearance: textfield;
}

.bargozari-input-has-icon[type="number"]::-webkit-outer-spin-button,
.bargozari-input-has-icon[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ========================
   Upload Area
   ======================== */
.bargozari-upload-area {
    border: 3px dashed rgba(37, 99, 235, 0.3);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
    transition: var(--transition);
    background: var(--primary-bg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bargozari-upload-area:hover {
    border-color: var(--primary);
    background: #dbeafe;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
}

.bargozari-upload-area.has-image {
    border-style: solid;
    border-color: var(--primary);
    padding: 0;
    background: var(--white);
}

.bargozari-upload-placeholder {
    color: var(--text-light);
    font-size: 16px;
}

.bargozari-upload-placeholder .dashicons {
    margin-bottom: 15px;
    color: var(--primary);
    opacity: 0.6;
}

.bargozari-upload-placeholder span {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-top: 8px;
}

.bargozari-upload-preview {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: var(--radius);
    display: none;
}

.bargozari-upload-area.has-image .bargozari-upload-preview {
    display: block;
}

.bargozari-upload-area.has-image .bargozari-upload-placeholder {
    display: none;
}

.bargozari-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.bargozari-image-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: var(--transition);
    z-index: 10;
}

.bargozari-image-remove:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

.bargozari-upload-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* ========================
   Gallery Grid
   ======================== */
.bargozari-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.bargozari-empty-gallery {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-light);
    padding: 40px;
}

.bargozari-gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    background: var(--light);
}

.bargozari-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
    border-color: var(--primary-light);
}

.bargozari-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bargozari-gallery-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
}

.bargozari-gallery-item:hover .bargozari-gallery-remove {
    opacity: 1;
}

/* ========================
   Product Type Cards (Legacy)
   ======================== */
.bargozari-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.bargozari-type-card {
    padding: 0;
    border: 3px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--light);
    position: relative;
    overflow: hidden;
}

.bargozari-type-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.bargozari-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-bg);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
}

.bargozari-type-card-inner {
    padding: 35px 25px;
}

.bargozari-type-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.bargozari-type-icon-wrapper .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: var(--white);
}

.bargozari-type-card h3 {
    text-align: center;
    margin: 0 0 12px 0;
    color: var(--dark);
    font-size: 20px;
    font-weight: 800;
}

.bargozari-type-card p {
    color: var(--text-light);
    margin: 0 0 18px 0;
    font-size: 14px;
    text-align: center;
}

.bargozari-type-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bargozari-type-features li {
    padding: 8px 0;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bargozari-type-features li .dashicons {
    color: var(--success);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bargozari-type-check {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.bargozari-type-card.selected .bargozari-type-check {
    opacity: 1;
}

.bargozari-type-check .dashicons {
    color: var(--white);
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ========================
   Pricing Grid
   ======================== */
.bargozari-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ========================
   Variation Settings
   ======================== */
.bargozari-variation-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bargozari-variation-setting-card {
    background: var(--light);
    border-radius: var(--radius-sm);
    padding: 25px;
    border: 1px solid var(--border-light);
}

.bargozari-variation-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-bottom: 15px;
}

.bargozari-variation-toggle input {
    display: none;
}

.bargozari-toggle-slider {
    width: 52px;
    height: 28px;
    background: var(--gray);
    border-radius: 14px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.bargozari-toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bargozari-variation-toggle input:checked + .bargozari-toggle-slider {
    background: var(--primary);
}

.bargozari-variation-toggle input:checked + .bargozari-toggle-slider::before {
    right: 27px;
}

.bargozari-toggle-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

/* ========================
   Attribute Tags
   ======================== */
.bargozari-attributes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--radius-sm);
    min-height: 50px;
    border: 1px solid var(--border-light);
}

.bargozari-attribute-tag {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    color: var(--text);
    direction: rtl;
    unicode-bidi: plaintext;
}

.bargozari-attribute-tag:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.bargozari-attribute-tag.selected {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* ========================
   Variations Table
   ======================== */
#variations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    direction: rtl;
}

#variations-table thead th {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    direction: rtl;
}

#variations-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-weight: 500;
    direction: rtl;
}

#variations-table tbody tr:hover {
    background: var(--primary-bg);
}

#variations-table select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    text-align: center;
    font-size: 14px;
    font-family: inherit !important;
    direction: rtl;
}

#variations-table select option {
    direction: rtl;
    text-align: right;
    font-family: inherit !important;
}

#variations-table input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    text-align: center;
    font-size: 14px;
    font-family: inherit !important;
    direction: rtl;
}

#variations-table input:focus,
#variations-table select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.price-format-input {
    direction: ltr !important;
    text-align: left !important;
}

/* Generic variations table (for modals) */
.bargozari-variations-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.bargozari-variations-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.bargozari-variations-table th {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 16px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.bargozari-variations-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-weight: 500;
}

.bargozari-variations-table tbody tr:hover {
    background: var(--primary-bg);
}

.bargozari-quick-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    text-align: center;
    font-size: 14px;
    transition: var(--transition);
    font-family: inherit !important;
}

.bargozari-quick-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bargozari-quick-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    text-align: center;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    cursor: pointer;
    font-family: inherit !important;
}

/* ========================
   Buttons
   ======================== */
.bargozari-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.bargozari-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.bargozari-btn:hover::after {
    opacity: 1;
}

.bargozari-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Primary */
.bargozari-btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.35);
}

.bargozari-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
}

/* Success */
.bargozari-btn-success {
    background: var(--success-gradient);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.35);
}

.bargozari-btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.5);
}

/* Info */
.bargozari-btn-info {
    background: var(--info-gradient);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.35);
}

.bargozari-btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

/* Danger */
.bargozari-btn-danger {
    background: var(--danger-gradient);
    color: var(--white);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.35);
}

.bargozari-btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
}

/* Secondary */
.bargozari-btn-secondary {
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
}

.bargozari-btn-secondary:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15);
}

/* Outline */
.bargozari-btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.bargozari-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

/* Small */
.bargozari-btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Large */
.bargozari-btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

/* XL */
.bargozari-btn-xl {
    padding: 20px 48px;
    font-size: 20px;
}

/* Block */
.bargozari-btn-block {
    width: 100%;
}

/* Disabled */
.bargozari-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================
   Navigation Buttons
   ======================== */
.bargozari-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid var(--primary-bg);
}

/* ========================
   Messages
   ======================== */
.bargozari-message {
    padding: 18px 25px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: bargozari-slideDown 0.4s ease;
    font-size: 15px;
}

@keyframes bargozari-slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

.bargozari-message-success {
    background: var(--success-light);
    color: #065f46;
    border: 2px solid #a7f3d0;
}

.bargozari-message-error {
    background: var(--danger-light);
    color: #991b1b;
    border: 2px solid #fecaca;
}

/* ========================
   Modal
   ======================== */
.bargozari-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    animation: bargozari-modalIn 0.3s ease;
}

@keyframes bargozari-modalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bargozari-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bargozari-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    animation: bargozari-modalSlide 0.4s ease;
    width: 90%;
}

@keyframes bargozari-modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.bargozari-modal-xlarge {
    max-width: 1100px;
    max-height: 85vh;
}

.bargozari-modal-large {
    max-width: 900px;
    max-height: 85vh;
}

.bargozari-modal-medium {
    max-width: 550px;
}

.bargozari-modal-header {
    background: var(--primary-gradient);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
}

.bargozari-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.bargozari-modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.bargozari-modal-close:hover {
    background: rgba(255,255,255,0.4);
    transform: rotate(90deg);
}

.bargozari-modal-body {
    padding: 30px;
}

.bargozari-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.bargozari-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* ========================
   Variations Header & Filters
   ======================== */
.bargozari-variations-header {
    margin-bottom: 20px;
}

.bargozari-variations-header h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--dark);
    font-weight: 800;
}

.bargozari-variation-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px 20px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.bargozari-filter-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bargozari-filter-group-inline label {
    font-weight: 700;
    color: var(--dark);
    font-size: 14px;
    white-space: nowrap;
}

.bargozari-filter-group-inline select {
    padding: 10px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit !important;
    min-width: 150px;
}

.bargozari-filter-group-inline select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bargozari-variations-scroll {
    max-height: 55vh;
    overflow-y: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ========================
   Loading
   ======================== */
.bargozari-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: bargozari-spin 0.6s linear infinite;
}

@keyframes bargozari-spin {
    to { transform: rotate(360deg); }
}

.bargozari-loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--text-light);
}

.bargozari-loading-inline .bargozari-spinner {
    border-color: rgba(37, 99, 235, 0.2);
    border-top-color: var(--primary);
}

/* ========================
   Camera Modal
   ======================== */
.bargozari-camera-container {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--primary-bg);
}

.bargozari-camera-container video {
    width: 100%;
    display: block;
}

.bargozari-camera-frame {
    position: absolute;
    inset: 15%;
    border: 2px dashed rgba(255,255,255,0.8);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

/* ========================
   Admin Header
   ======================== */
.bargozari-admin-header {
    background: var(--primary-gradient);
    padding: 40px;
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.3);
    flex-wrap: wrap;
    gap: 20px;
}

.bargozari-header-content h1 {
    margin: 0 0 8px 0;
    font-weight: 900;
    font-size: 32px;
}

.bargozari-header-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.bargozari-header-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.bargozari-header-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    color: var(--white);
    transform: translateY(-2px);
}

.bargozari-header-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ========================
   Stats Cards
   ======================== */
.bargozari-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}

.bargozari-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.bargozari-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.bargozari-stat-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-gradient);
}

.bargozari-stat-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--white);
}

.bargozari-stat-info {
    flex: 1;
}

.bargozari-stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark);
    display: block;
}

.bargozari-stat-label {
    color: var(--text-light);
    font-size: 15px;
    font-weight: 500;
}

/* ========================
   Admin Grid & Cards
   ======================== */
.bargozari-admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.bargozari-admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bargozari-admin-card h2 {
    margin: 0 0 25px 0;
    font-weight: 800;
    color: var(--dark);
    font-size: 20px;
}

/* ========================
   Products List
   ======================== */
.bargozari-products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bargozari-product-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.bargozari-product-item:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    transform: translateX(-3px);
}

.bargozari-product-thumb img {
    border-radius: var(--radius-xs);
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.bargozari-product-info {
    flex: 1;
}

.bargozari-product-info h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
}

.bargozari-product-meta {
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

/* ========================
   Guide List
   ======================== */
.bargozari-guide-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bargozari-guide-item {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.bargozari-guide-item:last-child {
    border-bottom: none;
}

.bargozari-guide-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bargozari-guide-icon-wrapper .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.bargozari-guide-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
}

.bargozari-guide-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

/* ========================
   Filter Bar
   ======================== */
.bargozari-filter-bar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bargozari-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.bargozari-filter-group {
    flex: 1;
    min-width: 180px;
}

.bargozari-search-group {
    flex: 2;
    min-width: 250px;
    position: relative;
}

.bargozari-search-group .dashicons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 20px;
    z-index: 2;
    pointer-events: none;
}

.bargozari-search-group input {
    width: 100%;
    padding: 14px 45px 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 15px;
    transition: var(--transition);
    direction: rtl;
}

.bargozari-search-group input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bargozari-filter-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 15px;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    direction: rtl;
}

.bargozari-filter-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bargozari-filter-group select option {
    direction: rtl;
}

/* ========================
   Results Info
   ======================== */
.bargozari-results-info {
    margin-bottom: 20px;
    padding: 15px 20px;
    background: var(--primary-bg);
    border-radius: var(--radius-sm);
    border: 1px solid #bfdbfe;
}

.bargozari-results-info p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ========================
   Products Table
   ======================== */
.bargozari-products-table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bargozari-products-table {
    width: 100%;
    border-collapse: collapse;
    direction: rtl;
}

.bargozari-products-table thead {
    background: var(--primary-gradient);
}

.bargozari-products-table th {
    color: var(--white);
    padding: 16px 12px;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
    direction: rtl;
}

.bargozari-products-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-weight: 500;
    color: var(--text);
    vertical-align: middle;
    direction: rtl;
}

.bargozari-products-table tbody tr:hover {
    background: var(--primary-bg);
}

.bargozari-table-thumb img {
    border-radius: var(--radius-xs);
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.bargozari-empty-cell {
    text-align: center !important;
    padding: 50px !important;
    color: var(--gray);
    font-size: 16px;
}

/* SKU Display */
.bargozari-sku-display {
    font-family: monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}

.bargozari-display-price {
    direction: rtl;
    unicode-bidi: plaintext;
}

.bargozari-stock-status-display {
    direction: rtl;
}

/* Badges */
.bargozari-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.bargozari-badge-simple {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.bargozari-badge-variable {
    background: #fef3c7;
    color: #92400e;
}

/* Stock Badge */
.bargozari-stock-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 13px;
    min-width: 50px;
}

.bargozari-stock-badge.in-stock,
.in-stock {
    background: var(--success-light);
    color: #065f46;
}

.bargozari-stock-badge.out-of-stock,
.out-of-stock {
    background: var(--danger-light);
    color: #991b1b;
}

/* Edit Inputs */
.bargozari-edit-input {
    padding: 8px 12px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xs);
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 120px;
    transition: var(--transition);
}

.bargozari-edit-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.bargozari-edit-select {
    padding: 8px 12px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xs);
    font-size: 14px;
    text-align: center;
    width: 100%;
    max-width: 130px;
    background: var(--white);
    cursor: pointer;
}

.bargozari-edit-sku-input {
    padding: 8px 12px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xs);
    font-size: 14px;
    text-align: center;
    width: 100%;
    direction: ltr;
}

/* Action Buttons */
.bargozari-action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================
   Barcode Table
   ======================== */
.bargozari-barcode-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.bargozari-barcode-row td {
    vertical-align: middle;
}

.sku-text {
    font-family: monospace;
    font-size: 13px;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}

.bargozari-barcode-table .bargozari-toggle-variations {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-right: 5px;
}

.bargozari-barcode-table .bargozari-toggle-variations:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.bargozari-barcode-table .bargozari-toggle-variations .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.bargozari-variations-row td {
    padding: 0 !important;
    background: #f8fafc;
}

.bargozari-variations-inner {
    padding: 15px;
}

.bargozari-variations-subtable {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.bargozari-variations-subtable th {
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding: 10px;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
}

.bargozari-variations-subtable td {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
    font-size: 13px;
}

/* ========================
   Pagination
   ======================== */
.bargozari-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.bargozari-page-btn {
    padding: 10px 20px;
    background: var(--white);
    color: var(--primary-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bargozari-page-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    transform: translateY(-2px);
    text-decoration: none;
}

.bargozari-page-btn.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* ========================
   Settings
   ======================== */
.bargozari-settings-form {
    max-width: 850px;
}

.bargozari-settings-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 35px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}

.bargozari-settings-card h2 {
    margin: 0 0 25px 0;
    font-weight: 800;
    color: var(--dark);
}

.bargozari-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.bargozari-settings-field {
    margin-bottom: 20px;
}

.bargozari-settings-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 15px;
}

.bargozari-settings-field input[type="text"],
.bargozari-settings-field input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 15px;
    direction: rtl;
}

.bargozari-settings-field input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bargozari-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bargozari-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* ========================
   Login Page
   ======================== */
.bargozari-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6, #6366f1);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.bargozari-login-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: bargozari-pulse 4s infinite;
}

.bargozari-login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(37, 99, 235, 0.35);
    position: relative;
    z-index: 1;
}

.bargozari-login-header {
    text-align: center;
    margin-bottom: 35px;
}

.bargozari-login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.bargozari-login-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--white);
}

.bargozari-login-card h2 {
    margin: 0 0 10px 0;
    color: var(--dark);
    font-size: 28px;
    font-weight: 900;
}

.bargozari-login-card .bargozari-field {
    margin-bottom: 22px;
}

.bargozari-login-card .bargozari-field label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bargozari-login-card .bargozari-field label .dashicons {
    color: var(--primary);
}

.bargozari-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
    direction: rtl;
}

.bargozari-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bargozari-login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bargozari-login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
}

.bargozari-login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 13px;
}

/* ========================
   Public Products (Shortcode)
   ======================== */
.bargozari-public-products {
    max-width: 1000px;
    margin: 0 auto;
}

.bargozari-public-header {
    background: var(--primary-gradient);
    padding: 30px;
    border-radius: var(--radius);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.bargozari-public-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bargozari-public-thumb img {
    border-radius: var(--radius-sm);
    border: 3px solid rgba(255,255,255,0.3);
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.bargozari-public-header h2 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 800;
}

.bargozari-public-header p {
    margin: 0;
    opacity: 0.9;
}

.bargozari-public-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
}

/* Search */
.bargozari-public-search {
    margin-bottom: 25px;
}

.bargozari-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bargozari-search-wrapper {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.bargozari-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    z-index: 2;
    pointer-events: none;
}

.bargozari-search-input {
    width: 100%;
    padding: 15px 45px 15px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 15px;
    transition: var(--transition);
    direction: rtl;
}

.bargozari-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Products Grid */
.bargozari-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bargozari-product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.bargozari-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bargozari-product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--light);
}

.bargozari-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bargozari-product-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

.bargozari-product-card-body {
    padding: 20px;
    flex: 1;
}

.bargozari-product-card-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.bargozari-product-card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bargozari-product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bargozari-product-info-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.bargozari-product-info-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
}

.bargozari-stock-status.in-stock {
    color: #065f46;
}

.bargozari-stock-status.out-of-stock {
    color: #991b1b;
}

.bargozari-product-card-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

/* Edit Card */
.bargozari-edit-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.bargozari-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.bargozari-edit-field {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
    background: var(--light);
    direction: rtl;
}

.bargozari-edit-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--white);
}

/* ========================
   Empty State
   ======================== */
.bargozari-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.bargozari-empty-state .dashicons {
    margin-bottom: 15px;
}

.bargozari-empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--dark);
    font-size: 20px;
}

.bargozari-empty-state p {
    margin: 0 0 20px 0;
    font-size: 14px;
}

/* ========================
   Error Text
   ======================== */
.bargozari-error-text {
    color: var(--danger);
    text-align: center;
    padding: 20px;
    font-weight: 600;
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 1024px) {
    .bargozari-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .bargozari-modal-xlarge {
        max-width: 95%;
    }
    
    .bargozari-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bargozari-public-wrap,
    .bargozari-admin-wrap {
        padding: 15px 10px;
    }
    
    .bargozari-body {
        padding: 25px 20px;
    }
    
    .bargozari-header {
        padding: 35px 25px;
    }
    
    .bargozari-header h1 {
        font-size: 26px;
    }
    
    .bargozari-steps {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .bargozari-step-connector {
        display: none;
    }
    
    .bargozari-step-indicator {
        width: 100%;
        justify-content: center;
    }
    
    .bargozari-type-grid {
        grid-template-columns: 1fr;
    }
    
    .bargozari-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .bargozari-nav-buttons {
        flex-direction: column-reverse;
        gap: 15px;
    }
    
    .bargozari-nav-buttons .bargozari-btn {
        width: 100%;
    }
    
    .bargozari-admin-header {
        flex-direction: column;
        text-align: center;
    }
    
    .bargozari-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .bargozari-products-grid {
        grid-template-columns: 1fr;
    }
    
    .bargozari-products-table {
        display: block;
        overflow-x: auto;
    }
    
    .bargozari-variation-filters {
        flex-direction: column;
    }
    
    .bargozari-upload-buttons {
        flex-direction: column;
    }
    
    .bargozari-upload-buttons .bargozari-btn {
        width: 100%;
    }
    
    .bargozari-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .bargozari-login-card {
        padding: 35px 25px;
    }
    
    .bargozari-product-type-selector {
        flex-direction: column;
    }
    
    .bargozari-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bargozari-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bargozari-header h1 {
        font-size: 22px;
    }
    
    .bargozari-header-icon .dashicons {
        font-size: 40px;
        width: 40px;
        height: 40px;
        padding: 10px;
    }
}