/* Muffin PHP - Ana stiller */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; color: #333; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1 1 auto; padding: 24px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.navbar-container { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; gap: 12px; }
.navbar-logo { font-weight: 700; font-size: 1.25rem; color: #1e293b; text-decoration: none; display: inline-flex; align-items: center; }
.navbar-logo-img { height: 36px; width: auto; display: block; }
.navbar-menu { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.navbar-menu a { text-decoration: none; color: #475569; font-weight: 500; }
.navbar-menu a:hover, .navbar-menu a.active { color: #4a90e2; }

/* Footer */
.footer { background: #f1f5f9; padding: 24px 0; margin-top: auto; text-align: center; }
.footer a { margin: 0 12px; color: #475569; text-decoration: none; }
.footer a:hover { color: #4a90e2; }

/* Buttons */
.btn { padding: 12px 24px; border: none; border-radius: 6px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; text-decoration: none; display: inline-block; text-align: center; }
.btn-primary { background: #4a90e2; color: #fff; }
.btn-primary:hover { background: #3b7ac0; }
.btn-secondary { background: #6c757d; color: #fff; }
.btn-outline { background: transparent; border: 2px solid #4a90e2; color: #4a90e2; }
.btn-outline:hover { background: #4a90e2; color: #fff; }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 16px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #4a90e2; }
.form-group textarea { resize: vertical; min-height: 120px; }
.error-message { color: #dc3545; font-size: 14px; margin-top: 5px; }
.success-message { color: #28a745; font-size: 14px; margin-top: 5px; }

/* Card & Grid */
.card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 2px 10px rgba(0,0,0,.08); margin-bottom: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: box-shadow .2s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.product-card a { text-decoration: none; color: inherit; display: block; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .info { padding: 16px; }
.product-card .name { font-weight: 600; font-size: 1rem; margin-bottom: 4px; }
.product-card .price { color: #4a90e2; font-weight: 700; }
.product-card .category { font-size: 0.85rem; color: #64748b; }

/* Page titles */
.page-title { margin-bottom: 24px; font-size: 1.75rem; }

/* Cart */
.cart-item { display: flex; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-summary { margin-top: 24px; padding-top: 16px; border-top: 2px solid #e2e8f0; }
.cart-vat-note { font-size: 0.9rem; color: #64748b; margin-bottom: 8px; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #f8fafc; font-weight: 600; }

.loading { display: flex; align-items: center; justify-content: center; padding: 2rem; color: #64748b; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading::before { content: ''; width: 32px; height: 32px; border: 3px solid #e2e8f0; border-top-color: #4a90e2; border-radius: 50%; animation: spin .8s linear infinite; margin-right: 12px; }

@media (max-width: 768px) {
  .navbar-menu { width: 100%; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
