/* Commodixx — big, simple, picture-first UI for small phones */
:root {
  --g: #1b7a3d; --g2: #2e9e55; --gl: #e7f5ec; --y: #f9a825; --r: #c62828; --rl: #fdecea;
  --ink: #1d2a22; --mut: #5f6f66; --line: #dfe7e2; --bg: #f6f8f5; --card: #fff; --b: #1565c0; --bl: #e8f0fb;
  --rad: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 17px; }
body { margin: 0; font-family: "Noto Sans Telugu", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.45; padding-bottom: 84px; }
a { color: var(--g); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; }
.wrap { max-width: 640px; margin: 0 auto; padding: 12px 14px; }
.top { position: sticky; top: 0; z-index: 20; background: var(--g); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.top .wrap { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; }
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; flex: 1; }
.brand img { width: 34px; height: 34px; }
.top .tb { color: #fff; text-decoration: none; background: rgba(255,255,255,.16); border-radius: 12px; padding: 7px 11px; font-size: .9rem; position: relative; white-space: nowrap; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--y); color: #000; border-radius: 99px; font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; max-width: 130px; text-align: center; text-decoration: none; color: var(--mut); padding: 7px 2px 8px; font-size: .74rem; font-weight: 600; position: relative; }
.nav a .i { display: block; font-size: 1.55rem; line-height: 1.2; }
.nav a.on { color: var(--g); }
.nav a.on::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; background: var(--g); border-radius: 0 0 3px 3px; }
.nav a.big .i { background: var(--g); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin: -22px auto 0; box-shadow: 0 3px 10px rgba(27,122,61,.4); font-size: 2.1rem; font-weight: 800; }
.card { background: var(--card); border-radius: var(--rad); padding: 14px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border: 1px solid var(--line); }
.mut { color: var(--mut); font-size: .9rem; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrapx { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 13px 16px; font: inherit; font-weight: 700; font-size: 1rem;
  background: var(--g); color: #fff; text-decoration: none; cursor: pointer; min-height: 50px; }
.btn:active { transform: scale(.98); }
.btn.block { display: flex; width: 100%; }
.btn.huge { font-size: 1.2rem; min-height: 62px; border-radius: 18px; }
.btn.o { background: #fff; color: var(--g); border: 2px solid var(--g); }
.btn.red { background: var(--r); } .btn.ro { background: #fff; color: var(--r); border: 2px solid var(--r); }
.btn.blue { background: var(--b); } .btn.wa { background: #25d366; color: #063; }
.btn.y { background: var(--y); color: #000; }
.btn.sm { padding: 8px 12px; min-height: 40px; font-size: .9rem; border-radius: 12px; }
.btn.ghost { background: transparent; color: var(--mut); border: 1px solid var(--line); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns > * { flex: 1; }
form.inline { display: inline; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=search], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 13px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--g2); }
input.pin { letter-spacing: .6em; text-align: center; font-size: 1.6rem; font-weight: 700; }
.alert { padding: 12px 14px; border-radius: 14px; margin: 0 0 12px; font-weight: 600; }
.alert.ok { background: var(--gl); color: var(--g); border: 1px solid #b7e0c4; }
.alert.err { background: var(--rl); color: var(--r); border: 1px solid #f5c2c0; }
/* picture grids */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pick label { margin: 0; font-weight: 600; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; background: #fff; border: 2px solid var(--line);
  border-radius: 16px; padding: 10px 4px 8px; font-size: .86rem; min-height: 104px; cursor: pointer; color: var(--ink); text-decoration: none; position: relative; line-height: 1.2; }
.tile img { width: 54px; height: 54px; object-fit: contain; }
.tile img.ph { object-fit: cover; border-radius: 10px; }
.pick input:checked + .tile, .tile.on { border-color: var(--g); background: var(--gl); box-shadow: 0 0 0 2px var(--g) inset; }
.tile .cnt { position: absolute; top: 4px; right: 6px; background: var(--g); color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 99px; padding: 7px 13px; font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); white-space: nowrap; cursor: pointer; }
.chip img { width: 26px; height: 26px; }
.chip.on, input:checked + .chip { background: var(--g); border-color: var(--g); color: #fff; }
.chips input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.seg label { margin: 0; }
.seg span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 12px 6px; font-weight: 700; background: #fff; cursor: pointer; }
.seg input:checked + span { border-color: var(--g); background: var(--gl); color: var(--g); box-shadow: 0 0 0 2px var(--g) inset; }
.step { display: flex; align-items: stretch; gap: 8px; }
.step button { flex: none; width: 62px; font-size: 1.8rem; font-weight: 800; border: 2px solid var(--line); background: #fff; border-radius: 14px; cursor: pointer; color: var(--g); }
.step input { flex: 1; min-width: 0; width: auto; text-align: center; font-size: 1.5rem; font-weight: 800; }
/* listing cards */
.lc { display: flex; gap: 12px; text-decoration: none; color: inherit; }
.lc .pic { width: 88px; height: 88px; border-radius: 14px; flex: none; background: var(--gl); display: grid; place-items: center; overflow: hidden; }
.lc .pic img { width: 100%; height: 100%; object-fit: cover; }
.lc .pic img.ic { width: 62px; height: 62px; object-fit: contain; }
.lc .nm { font-weight: 800; font-size: 1.1rem; }
.qty { font-weight: 800; font-size: 1.15rem; }
.price { font-weight: 800; color: var(--g); font-size: 1.15rem; }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--gl); color: var(--g); margin-right: 4px; }
.tag.y { background: #fff4d6; color: #8a5a00; } .tag.r { background: var(--rl); color: var(--r); } .tag.b { background: var(--bl); color: var(--b); } .tag.g { background: #eee; color: #555; }
.stars { color: var(--y); font-weight: 700; }
.sayb { border: 0; background: var(--bl); color: var(--b); border-radius: 99px; padding: 6px 12px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.big-photo { width: 100%; max-height: 340px; object-fit: cover; border-radius: var(--rad); background: var(--gl); }
.big-icon { width: 100%; height: 200px; display: grid; place-items: center; background: var(--gl); border-radius: var(--rad); }
.big-icon img { width: 140px; height: 140px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.facts div { background: var(--bg); border-radius: 12px; padding: 10px; }
.facts b { display: block; font-size: 1.15rem; }
.sec { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 8px; }
.sec h2 { margin: 0; }
.empty { text-align: center; color: var(--mut); padding: 26px 10px; }
.empty .e { font-size: 3rem; }
.hero { background: linear-gradient(160deg, var(--g), #0f5a2b); color: #fff; padding: 26px 16px 30px; text-align: center; }
.hero h1 { font-size: 1.7rem; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff; color: var(--ink); text-decoration: none;
  border-radius: 18px; padding: 16px 8px; border: 2px solid var(--line); font-weight: 800; font-size: 1rem; }
.role .e { font-size: 2.8rem; line-height: 1.1; }
.role small { font-weight: 500; color: var(--mut); font-size: .8rem; }
.pick input:checked + .role { border-color: var(--g); background: var(--gl); box-shadow: 0 0 0 2px var(--g) inset; }
.how { display: grid; gap: 10px; }
.how div { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); }
.how span { font-size: 2rem; }
.rates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.rate { flex: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; text-align: center; min-width: 92px; font-size: .82rem; }
.rate img { width: 32px; height: 32px; }
.rate b { display: block; font-size: .95rem; color: var(--g); }
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec.on .btn { background: var(--r); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.preview img { max-height: 160px; border-radius: 12px; margin-top: 8px; }
.starsel { display: flex; gap: 6px; }
.starsel button { font-size: 1.9rem; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 2px 8px; cursor: pointer; }
details summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 12px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; font-size: .92rem; }
.tabs a.on { background: var(--g); border-color: var(--g); color: #fff; }
.foot { text-align: center; color: var(--mut); font-size: .8rem; padding: 20px 10px 10px; }
.foot a { color: var(--mut); }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.offer { border-left: 5px solid var(--y); }
.offer.acc { border-left-color: var(--g); }
.hide { display: none !important; }
/* admin */
.adm { padding-bottom: 20px; }
.adm table { width: 100%; border-collapse: collapse; font-size: .85rem; background: #fff; }
.adm th, .adm td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.adm th { background: var(--gl); position: sticky; top: 0; }
.adm .wrap { max-width: 1100px; }
.adm .scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.adm input, .adm select { font-size: .9rem; padding: 7px 8px; border-radius: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kpi b { display: block; font-size: 1.6rem; color: var(--g); }
.anav { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 14px; }
.anav a { padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.anav a.on { background: var(--g); color: #fff; border-color: var(--g); }
.bar { height: 10px; background: var(--g2); border-radius: 5px; }

main, .card { min-width: 0; }
.card { overflow-wrap: anywhere; }
.chips, .seg, .pick, .chips label, .seg label, .pick label { position: relative; }
.chips input, .seg input, .pick input { left: 0; top: 0; width: 1px; height: 1px; }
