/* PhotoFrame Store Styles */
/* assets/css/style.css */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366f1; --primary-dark: #4f46e5;
    --secondary: #f59e0b; --success: #10b981; --danger: #ef4444;
    --gray-50: #f9fafb; --gray-100: #f3f4f6; --gray-200: #e5e7eb;
    --gray-300: #d1d5db; --gray-400: #9ca3af; --gray-500: #6b7280;
    --gray-600: #4b5563; --gray-700: #374151; --gray-800: #1f2937;
}

body { font-family: 'Inter', system-ui, sans-serif; background: var(--gray-50); color: var(--gray-800); line-height: 1.6; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.btn { padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.header { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-content { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; max-width: 1400px; margin: 0 auto; }
.logo { font-size: 24px; font-weight: 700; color: var(--primary); text-decoration: none; }

.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 100px 0; text-align: center; }
.hero h1 { font-size: 48px; margin-bottom: 16px; }
.hero p { font-size: 20px; opacity: 0.9; margin-bottom: 32px; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-container { background: white; border-radius: 20px; padding: 48px; max-width: 440px; width: 100%; }
.login-container h1 { font-size: 28px; text-align: center; margin-bottom: 32px; }

.auth-buttons { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.auth-btn { padding: 14px 20px; border-radius: 10px; font-weight: 600; cursor: pointer; border: 2px solid var(--gray-200); background: white; text-align: center; text-decoration: none; color: var(--gray-700); }
.auth-btn.vk { background: #0077FF; color: white; border-color: #0077FF; }
.auth-btn.telegram { background: #229ED9; color: white; border-color: #229ED9; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; }
.form-input { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: 10px; font-size: 15px; }
.form-input:focus { outline: none; border-color: var(--primary); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 40px 0; }
.product-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.product-image { width: 100%; height: 300px; object-fit: cover; }
.product-info { padding: 20px; }
.product-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.product-price { font-size: 24px; font-weight: 700; color: var(--primary); }

.editor-container { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0; }
.canvas-area { background: white; border-radius: 16px; padding: 32px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
#mainCanvas { max-width: 100%; border-radius: 12px; }
.sidebar { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.upload-area { border: 2px dashed var(--gray-300); border-radius: 12px; padding: 32px; text-align: center; cursor: pointer; margin-bottom: 20px; }
.upload-area:hover { border-color: var(--primary); background: var(--gray-50); }

.order-container { display: grid; grid-template-columns: 1fr 450px; gap: 32px; padding: 40px 0; }
.order-preview, .order-form-section { background: white; border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.previewCanvas { width: 100%; border-radius: 12px; }

.pochta-widget { background: linear-gradient(135deg, #0052a3 0%, #0078d7 100%); border-radius: 12px; padding: 20px; color: white; margin-top: 20px; }
.pochta-widget h3 { margin-bottom: 16px; }
.pochta-widget .form-input { margin-bottom: 12px; }

.order-summary { background: var(--gray-50); border-radius: 12px; padding: 20px; margin-top: 20px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.summary-row:last-child { border-bottom: none; font-weight: 700; font-size: 18px; }

.admin-header { background: var(--gray-800); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.admin-container { padding: 40px 20px; max-width: 1400px; margin: 0 auto; }
.admin-section { background: white; border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.admin-table th { background: var(--gray-50); font-weight: 600; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 16px; padding: 32px; max-width: 500px; width: 100%; }

.notification { position: fixed; top: 20px; right: 20px; padding: 16px 24px; border-radius: 12px; color: white; z-index: 1000; animation: slideIn 0.3s ease; }
.notification.success { background: var(--success); }
.notification.error { background: var(--danger); }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1024px) { .editor-container, .order-container { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .hero h1 { font-size: 32px; } .header-content { flex-wrap: wrap; gap: 16px; } }