body { font-family: 'Segoe UI', sans-serif; margin: 0; padding: 0; background-color: #f4f4f7; }
header { background-color: #fff; padding: 20px; text-align: center; font-weight: bold; font-size: 1.4em; border-bottom: 1px solid #ddd; position: sticky; top: 0; z-index: 1000; }

.category-tabs { background-color: #fff; white-space: nowrap; overflow-x: auto; padding: 12px 5px; border-bottom: 1px solid #eee; position: sticky; top: 65px; z-index: 999; }
.category-tab { display: inline-block; padding: 10px 20px; margin: 0 8px; background-color: #f0f0f0; border-radius: 25px; cursor: pointer; }
.category-tab.active { background-color: #000; color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; padding: 15px; }
.product-card { background-color: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; }
.product-img { width: 100%; height: 120px; background-color: #eee; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 10px; text-align: center; }
.product-name { font-weight: bold; font-size: 0.9em; min-height: 2.5em; }
.product-price { color: #d32f2f; font-weight: bold; margin: 5px 0; }

/* დამატების ღილაკი */
.add-btn { background: #000; color: #fff; border: none; padding: 8px; width: 100%; border-radius: 8px; cursor: pointer; font-size: 0.8em; }

/* კალათის ხატულა */
#cart-icon { position: fixed; bottom: 20px; right: 20px; background: #ce1212; color: white; padding: 15px 20px; border-radius: 50px; cursor: pointer; z-index: 1001; box-shadow: 0 5px 15px rgba(0,0,0,0.2); font-weight: bold; }

/* მოდალური ფანჯარა */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; }
.modal-content { background: white; margin: 10% auto; padding: 20px; width: 85%; max-width: 400px; border-radius: 20px; position: relative; }
.close { position: absolute; right: 20px; top: 10px; font-size: 25px; cursor: pointer; }

.price-details { margin-top: 20px; border-top: 1px dashed #ccc; padding-top: 10px; }
.final-total { font-size: 1.2em; font-weight: bold; color: #ce1212; }
.clear-btn { width: 100%; background: #eee; border: none; padding: 10px; margin-top: 15px; border-radius: 10px; cursor: pointer; }

@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr 1fr; } }