/* ═══════════════ عطاری هزارگیاه - صفحه اصلی ═══════════════ */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary: #2f7d54; --primary-light: #5cab82; --primary-dark: #1a4d30; --accent: #e9a83c; --bg: #fafafa; --text: #1a1a1a; --text-muted: #666; --border: #e0e0e0; --success: #4caf50; --error: #f44336; --warning: #ff9800; } html { scroll-behavior: smooth; } body { font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; } /* ─────────── Header ─────────── */ header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 2rem; text-align: center; } header .overline { font-size: 0.85rem; opacity: 0.9; margin-bottom: 0.5rem; letter-spacing: 0.05em; } header h1 { font-size: 2.5rem; margin: 0.5rem 0; } header .title-accent { color: var(--accent); } header p { font-size: 1.1rem; opacity: 0.95; margin: 1rem 0; } header .badges { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; } header .badge { background: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem; border-radius: 2rem; font-size: 0.9rem; backdrop-filter: blur(10px); } /* ─────────── Products Grid ─────────── */ .products-section { padding: 3rem 2rem; max-width: 1200px; margin: 0 auto; } .products-section h2 { text-align: center; margin-bottom: 2rem; font-size: 2rem; } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; } .product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.3s, box-shadow 0.3s; } .product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); } .product-header { padding: 1.5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; } .product-icon { font-size: 2rem; margin-bottom: 0.5rem; } .product-name { font-size: 1.3rem; font-weight: bold; margin: 0.5rem 0; } .product-category { font-size: 0.85rem; opacity: 0.8; } .product-body { padding: 1.5rem; } .product-description { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.5; } .product-price { font-size: 1.5rem; color: var(--primary); font-weight: bold; margin: 1rem 0; } .product-price.old { text-decoration: line-through; color: var(--text-muted); font-size: 1rem; } .product-actions { display: flex; gap: 1rem; } .product-actions button { flex: 1; padding: 0.75rem; border: none; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.3s; } .btn-primary { background: var(--primary); color: white; } .btn-primary:hover { background: var(--primary-dark); } .btn-secondary { background: var(--bg); color: var(--primary); border: 2px solid var(--primary); } .btn-secondary:hover { background: var(--primary); color: white; } /* ─────────── Ticker ─────────── */ .ticker { background: var(--accent); color: var(--primary-dark); padding: 1rem 0; overflow: hidden; } .ticker-content { display: flex; animation: scroll 20s linear infinite; white-space: nowrap; } .ticker-item { padding: 0 2rem; display: inline-block; } @keyframes scroll { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } } /* ─────────── Footer ─────────── */ footer { background: var(--primary-dark); color: white; padding: 2rem; text-align: center; margin-top: 3rem; } footer p { margin: 0.5rem 0; } footer .copyright { font-size: 0.9rem; opacity: 0.8; margin-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 1rem; } /* ─────────── Responsive ─────────── */ @media (max-width: 768px) { header h1 { font-size: 2rem; } header p { font-size: 1rem; } .products-grid { grid-template-columns: 1fr; } .products-section { padding: 2rem 1rem; } } /* ─────────── Animations ─────────── */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .product-card { animation: fadeIn 0.3s ease-out; } /* ─────────── Loading ─────────── */ .loading { text-align: center; padding: 2rem; } .spinner { border: 4px solid var(--border); border-top-color: var(--primary); border-radius: 50%; width: 40px; height: 40px; animation: spin 0.8s linear infinite; margin: 0 auto; } @keyframes spin { to { transform: rotate(360deg); } } /* ─────────── Error ─────────── */ .error { background: #ffebee; color: var(--error); padding: 1rem; border-radius: 6px; margin: 1rem 0; border-left: 4px solid var(--error); } /* ─────────── Print ─────────── */ @media print { header, footer { page-break-inside: avoid; } }