* { box-sizing: border-box; font-family: Arial, sans-serif; margin: 0; padding: 0; }
body { background-color: var(--tg-theme-bg-color, #f4f6f9); color: var(--tg-theme-text-color, #333); padding: 15px; }
.container { max-width: 1000px; margin: 0 auto; }
h1 { margin-bottom: 15px; text-align: center; font-size: 1.4rem; }

.tabs { display: flex; gap: 5px; margin-bottom: 20px; background: #e0e0e0; padding: 4px; border-radius: 8px; }
.tab-btn { flex: 1; padding: 10px; border: none; background: transparent; cursor: pointer; font-weight: bold; border-radius: 6px; transition: 0.2s; }
.tab-btn.active { background: #fff; color: #007bff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.actions { display: flex; gap: 10px; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 15px; }
.card { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: space-between; color: #333; }
.card img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.card h3 { font-size: 1rem; margin-bottom: 4px; }
.card .price { font-weight: bold; color: #2e7d32; font-size: 1.1rem; margin: 4px 0; }
.card .category { font-size: 0.8rem; color: #777; margin-bottom: 6px; }
.card p { font-size: 0.85rem; color: #555; margin-bottom: 10px; }
.card-buttons { display: flex; gap: 8px; }

.btn { padding: 8px 12px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.9rem; }
.btn-primary { background: #007bff; color: white; }
.btn-secondary { background: #6c757d; color: white; }
.btn-success { background: #28a745; color: white; }
.btn-danger { background: #dc3545; color: white; }
.btn-block { width: 100%; margin-top: 10px; }

.cart-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.cart-item { background: #fff; padding: 10px 15px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); color: #333; }
.cart-summary { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); text-align: right; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; z-index: 100; }
.modal-content { background: white; padding: 20px; border-radius: 8px; width: 90%; max-width: 400px; position: relative; color: #333; }
.close { position: absolute; right: 15px; top: 10px; font-size: 22px; cursor: pointer; }
form label { display: block; margin-top: 8px; font-weight: bold; font-size: 0.85rem; }
form input, form textarea { width: 100%; padding: 7px; margin-top: 3px; border: 1px solid #ccc; border-radius: 4px; }
.form-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }