
@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Exo+2:wght@400;500;600&display=swap");
:root {
  --font-main: 'Exo 2', sans-serif;
  --font-heading: 'Chakra Petch', sans-serif;
  --bg-app: #120b29;
  --bg-card: #1d1242;
  --text-main: #d1d5db;
  --accent: #8b5cf6;
  --border: rgba(0,0,0,0.1);
  --shadow: 0 4px 15px rgba(0,0,0,0.05);
  --radius: 8px;
}
[data-theme="dark"] {
  --bg-app: #111; --bg-card: #222; --text-main: #eee; --border: rgba(255,255,255,0.1);
}
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: var(--font-main); background: var(--bg-app); color: var(--text-main); line-height: 1.5; }
h1, h2, h3, h4 { font-family: var(--font-heading); margin-bottom: 10px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.app-header { background: var(--bg-card); padding: 15px 0; border-bottom: 1px solid var(--border); position:sticky; top:0; z-index:100; }
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-logo { height: 40px; }
.b-name { font-weight: bold; font-size: 1.2rem; display:block; }
.b-tag { font-size: 0.75rem; opacity: 0.7; }
.header-actions { display: flex; gap: 10px; }
button, .btn-wa, .btn-primary, .btn-secondary { font-family: var(--font-main); cursor: pointer; border: none; padding: 10px 15px; border-radius: var(--radius); text-decoration: none; display:inline-block; text-align:center; }
.btn-primary { background: var(--accent); color: #fff; width:100%; font-weight: bold; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-main); width:100%; }
.btn-cart { background: var(--accent); color: #fff; font-weight:bold; }
.inp { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text-main); font-family: var(--font-main); }
.hero-section { padding: 60px 0; text-align: center; }
.filters-section { padding: 20px 0; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.filters-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.filters-grid .inp { flex: 1 1 140px; min-width: 0; }
.cat-chips { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0; margin-top: 15px; }
.chip { background: var(--bg-card); border: 1px solid var(--border); padding: 5px 15px; border-radius: 20px; white-space: nowrap; cursor: pointer; color: var(--text-main); }
.chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.products-section { padding: 40px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.products-grouped, .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); display:flex; flex-direction:column; }
.card-thumb-wrap { aspect-ratio: 1; background: var(--border); }
.card-thumb { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; display:flex; flex-direction:column; flex:1; }
.card-price { font-size: 1.2rem; font-weight: bold; color: var(--accent); margin-top: auto; padding-top: 10px; }
.btn-add-modal { background: var(--accent); color: #fff; padding: 8px; text-align: center; border-radius: var(--radius); cursor: pointer; margin-top: 10px; border:none; width:100%; }
.app-footer { text-align: center; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 40px; }
.cart-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; opacity: 0; pointer-events: none; transition: 0.2s; }
.cart-backdrop.is-open, .modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(350px, 100%); background: var(--bg-app); z-index: 1001; transform: translateX(100%); transition: 0.3s; display:flex; flex-direction:column; }
.cart-panel.is-open { transform: translateX(0); }
.cart-head, .cart-foot { padding: 20px; border-bottom: 1px solid var(--border); }
.cart-foot { border-bottom: none; border-top: 1px solid var(--border); }
.cart-body { padding: 20px; flex: 1; overflow-y: auto; }
.cart-item { display: flex; gap: 10px; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dashed var(--border); }
.cart-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.qty-ctrl { display:flex; gap:10px; align-items:center; margin-top:5px; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-card); padding: 20px; border-radius: var(--radius); width: 90%; max-width: 400px; z-index: 1001; max-height:90vh; overflow-y:auto; }
.btn-close { position: absolute; top: 10px; right: 10px; background: transparent; border: none; font-size: 20px; cursor: pointer; color: var(--text-main); }
.modal-product-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 15px; }
.price-big { font-size: 1.5rem; font-weight: bold; color: var(--accent); margin: 10px 0; }
.var-opt { padding: 8px 12px; border: 1px solid var(--border); background: transparent; color: var(--text-main); border-radius: var(--radius); cursor: pointer; margin: 0 5px 5px 0; display:inline-block; }
.var-opt.is-selected { border-color: var(--accent); background: var(--accent); color: #fff; }

.card { border: 1px solid var(--accent); background: transparent; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.card:hover { box-shadow: 0 0 15px var(--accent); }
.inp, button, .btn-primary { border-radius: 4px; border: 1px solid var(--accent); }
.btn-primary { background: transparent; color: var(--accent); font-weight: bold; text-transform: uppercase; }
.btn-primary:hover { background: var(--accent); color: #fff; }

@media (max-width: 480px) {
  .filters-grid { flex-direction: column; }
  .filters-grid .inp { width: 100%; }
}
