/* Fazilsport — dizaýn ulgamy */
:root {
  color-scheme: light;
  --paper: #f5f5f6;
  --card: #ffffff;
  --ink: #3a3a3e;
  --ink-2: #56565b;
  --muted: #75757b;
  --line: #dcdce0;
  --line-2: #ebebee;
  --accent: #d03a36;
  --accent-dark: #a92b28;
  --accent-soft: #fbe9e8;
  --ok: #1b7a46;   --ok-bg: #e3f3ea;
  --warn: #9a6200; --warn-bg: #fdf0d3;
  --info: #1d5fa8; --info-bg: #e2edf9;
  --bad: #b3261e;  --bad-bg: #fbe4e2;
  --radius: 6px;
  --maxw: 1240px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- ýokarky zolak we başlyk --- */
.topbar { background: var(--accent); color: #fff; font-size: 12.5px; letter-spacing: .02em; }
.topbar a { text-decoration: underline; text-underline-offset: 2px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 0; }
.brand-mark { height: 38px; width: auto; }
.brand-word { height: 34px; width: auto; }
.search { position: relative; max-width: 520px; width: 100%; justify-self: center; }
.search input { width: 100%; height: 42px; padding: 0 44px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.search input:focus { background: var(--card); border-color: var(--ink); outline: none; }
.search button { position: absolute; right: 0; top: 0; height: 42px; width: 42px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.actions { display: flex; align-items: center; gap: 4px; }
.actions a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; font-size: 14px; position: relative; }
.actions a:hover { background: var(--paper); }
.actions .count { background: var(--accent); color: #fff; border-radius: 99px; min-width: 19px; height: 19px; padding: 0 5px; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sportnav { background: var(--card); border-bottom: 1px solid var(--line); }
.sportnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sportnav a { padding: 12px 14px; font-size: 13.5px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--ink-2); }
.sportnav a:hover { color: var(--ink); }
.sportnav a.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }

/* --- düwmeler we forma --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .12s, background .12s, color .12s; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-danger { background: transparent; border-color: var(--line); color: var(--bad); }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.input, .select, .textarea { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); }
.textarea { height: auto; padding: 10px 12px; min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--line-2); }
.input-sm { height: 34px; font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); }

/* --- habarlar --- */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-size: 14px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash-bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.flash-info { background: var(--info-bg); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }

/* --- esasy sahypa --- */
.hero { border-bottom: 1px solid var(--line); background: var(--card); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.steps { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.steps h3 { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 1.1rem; letter-spacing: .08em; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step b { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--accent); }
.step strong { display: block; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 14px; }
.section { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.sports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sport-tile { background: var(--card); padding: 22px 22px 20px; display: flex; flex-direction: column; justify-content: space-between; min-height: 132px; transition: background .15s; }
.sport-tile:hover { background: var(--accent); color: #fff; }
.sport-tile small { font-family: var(--font-head); font-size: 1rem; color: var(--muted); letter-spacing: .1em; }
.sport-tile:hover small { color: #fff; opacity: .8; }
.sport-tile strong { font-family: var(--font-head); font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; font-weight: 700; }
.sport-tile span { font-size: 13px; color: var(--muted); }
.sport-tile:hover span { color: #fff; opacity: .85; }

/* --- katalog --- */
.catalog { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: 130px; }
.filters h4 { font-size: .95rem; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.filters .group { margin-bottom: 26px; }
.filters a { display: flex; justify-content: space-between; padding: 7px 10px; margin: 0 -10px; border-radius: var(--radius); font-size: 14px; color: var(--ink-2); }
.filters a:hover { background: var(--card); }
.filters a.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }
.filters a em { font-style: normal; opacity: .55; font-size: 12.5px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.media { position: relative; aspect-ratio: 4 / 4.4; background: var(--line-2); display: block; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background:
  repeating-linear-gradient(135deg, var(--line-2) 0 14px, color-mix(in srgb, var(--line-2) 70%, var(--line)) 14px 28px); }
.ph span { font-family: var(--font-head); font-size: 3.4rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; opacity: .5; line-height: 1; }
.ph em { font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: center; padding: 0 8px; }
.thumb .ph em, .line-item .ph em { display: none; }
.tag { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--accent-dark); border: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.tag-accent { background: var(--accent); color: #fff; }
.fav { position: absolute; right: 8px; top: 8px; }
.fav button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); cursor: pointer; display: grid; place-items: center; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.fav button:hover { color: var(--accent); }
.fav button.on { color: var(--accent); }
.fav button.on .ico { fill: currentColor; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-name { font-weight: 600; font-size: 14.5px; line-height: 1.35; min-height: 2.7em; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; line-height: 1; }
.price small { font-size: .8rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.stock-low { font-size: 12px; color: var(--warn); font-weight: 600; }
.stock-out { font-size: 12px; color: var(--bad); font-weight: 600; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }

/* --- önüm sahypasy --- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 40px 0 70px; }
.product .media { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); }
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--accent); }
.spec { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.spec td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--muted); width: 38%; }
.big-price { font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1; margin: 18px 0 6px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 17px; }
.qty button:hover { background: var(--paper); }
.qty input { width: 42px; height: 34px; border: 0; text-align: center; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* --- sebet, otag, tablisalar --- */
.page-title { padding: 40px 0 26px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-bottom: 70px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; }
.panel-head h3 { font-size: 1.2rem; letter-spacing: .04em; }
.panel-body { padding: 20px; }
.line-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.line-item:last-child { border-bottom: 0; }
.line-item .media { aspect-ratio: 1; border-radius: 4px; }
.line-item .ph span { font-size: 1.6rem; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14.5px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 700; font-size: 1.1rem; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
table.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.t-right { text-align: right !important; }
.table-scroll { overflow-x: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stat small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.stat.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.stat.accent small { color: inherit; opacity: .7; }
.stat.accent b { color: inherit; }
.stat.accent .muted { color: inherit; opacity: .7; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 16px; font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-2); white-space: nowrap; }
.tabs a.on { border-color: var(--accent); color: var(--ink); font-weight: 600; }

/* --- barkod kartasy --- */
.ticket { background: #fff; color: #111; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.ticket .barcode { width: 100%; max-width: 360px; height: 76px; margin: 0 auto; display: block; }
.ticket .code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 1.25rem; letter-spacing: .22em; margin-top: 10px; font-weight: 600; }
.ticket small { color: #666; }

/* --- ulgama girmek --- */
.auth { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.auth-card h1 { font-size: 2.6rem; margin-bottom: 6px; }

/* --- aşaky bölüm --- */
.site-footer { background: #ececef; color: var(--ink-2); margin-top: 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 52px; padding-bottom: 36px; }
.site-footer h4 { color: var(--ink); font-size: 1rem; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer a { display: block; padding: 3px 0; font-size: 14px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { margin-bottom: 14px; display: flex; }
.site-footer .legal { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.site-footer .legal .wrap { display: block; padding-top: 16px; padding-bottom: 16px; }

/* --- admin --- */
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.admin-side { background: #fff; border-right: 1px solid var(--line); color: var(--ink-2); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.admin-side .brand { padding: 0 10px 6px; justify-content: flex-start; }
.admin-side .brand:hover { background: none; }
.admin-side .brand-mark { height: 30px; } .admin-side .brand-word { height: 26px; }
.admin-side .sub { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 0 10px 22px; }
.admin-side a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: var(--radius); font-size: 14px; margin-bottom: 2px; }
.admin-side a:hover { background: var(--paper); color: var(--ink); }
.admin-side a.on { background: var(--accent); color: #fff; font-weight: 600; }
.admin-side .pill { background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.admin-side a.on .pill { background: #fff; color: var(--accent); }
.admin-side .foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.admin-main { padding: 28px 36px 60px; min-width: 0; }
.admin-main > h1 { font-size: 2.4rem; margin-bottom: 22px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.thumb { width: 44px; height: 44px; border-radius: 4px; overflow: hidden; background: var(--line-2); flex: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ph span { font-size: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 16px; }
.pager { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; background: var(--card); }
.pager .on { background: var(--accent); color: #fff; border-color: var(--accent); }
details.edit summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--info); list-style: none; }
details.edit[open] summary { margin-bottom: 10px; }
.scan { display: flex; gap: 8px; }
.scan .input { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; }

/* --- çap --- */
@media print {
  .topbar, .site-header, .sportnav, .site-footer, .no-print, .admin-side { display: none !important; }
  body { background: #fff; }
  .admin { display: block; }
}

/* --- ekran ölçegleri --- */
@media (max-width: 1000px) {
  .hero .wrap, .product, .layout-2, .catalog { grid-template-columns: 1fr; gap: 28px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .filters { position: static; display: flex; gap: 22px; overflow-x: auto; }
  .filters .group { min-width: 200px; margin-bottom: 0; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-header .wrap { grid-template-columns: auto 1fr; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px 16px; }
  .search { grid-column: 1 / -1; order: 3; max-width: none; }
  .actions { justify-self: end; }
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: 4px; align-items: center; padding: 12px; }
  .admin-side .sub, .admin-side .foot { display: none; }
  .admin-side .brand { padding-right: 14px; }
  .admin-main { padding: 20px 16px 50px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .actions a span.lbl { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .price { font-size: 1.3rem; }
  .line-item { grid-template-columns: 64px 1fr; }
  .line-item .li-end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== v3: ikonlar, awtomatiki görsel, faýl saýlaýjy, mobil ===== */
.fa-solid { line-height: 1; }

/* Suraty ýok harytlar üçin awtomatiki döredilen görsel */
.ph { position: relative; background-image: none; gap: 10px; overflow: hidden; }
.ph::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.55); }
.ph .fa-solid { position: relative; font-size: clamp(2.6rem, 8vw, 4.4rem); }
.ph em { position: absolute; left: 12px; bottom: 10px; right: 12px; text-align: left; padding: 0; font-size: 11px; letter-spacing: .1em; }
.ph-0 { background-color: #f9e1df; } .ph-0 .fa-solid { color: var(--accent); } .ph-0 em { color: var(--accent-dark); }
.ph-1 { background-color: #e7e7eb; } .ph-1 .fa-solid { color: #56565b; } .ph-1 em { color: #56565b; }
.ph-2 { background-color: #f2e9e4; } .ph-2 .fa-solid { color: var(--accent-dark); } .ph-2 em { color: #7a5a52; }
.thumb .ph::before { display: none; }
.thumb .ph .fa-solid, .line-item .ph .fa-solid { font-size: 1.15rem; }
.thumb .ph em, .line-item .ph em { display: none; }

/* Sport ugurlarynyň ikonlary */
.sportnav a { display: inline-flex; align-items: center; gap: 8px; }
.sportnav a .fa-solid { font-size: 13px; opacity: .7; }
.sportnav a.on .fa-solid { color: var(--accent); opacity: 1; }
.sport-tile small { font-size: 1.6rem; color: var(--accent); letter-spacing: 0; line-height: 1; }
.filters a > span { display: inline-flex; align-items: center; gap: 10px; }
.filters a .fa-solid { width: 16px; text-align: center; font-size: 13px; opacity: .75; }
.filters summary { display: none; }
.fwrap { margin: 0; }

/* Faýl saýlaýjy */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 26px 18px; border: 1.5px dashed #c4c4ca; border-radius: 10px; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone > .fa-solid { font-size: 1.9rem; color: var(--accent); margin-bottom: 4px; }
.dropzone b { font-size: 14px; color: var(--ink); }
.dropzone > span { font-size: 12.5px; color: var(--muted); }
.dropzone.has-files { border-style: solid; border-color: var(--accent); background: #fff; }
.dz-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.dz-list:empty { display: none; }
.dz-item { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px 4px 4px; font-size: 12px; max-width: 230px; }
.dz-item img, .dz-item .dz-ico { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; flex: none; }
.dz-item .dz-ico { display: grid; place-items: center; background: #fff; color: var(--accent); font-size: 1rem; }
.dz-item .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-more { align-self: center; font-size: 12px; color: var(--muted); }

/* Aşaky çalt menýu (telefon) */
.tabbar { display: none; }

/* ===== Mobil ===== */
@media (max-width: 1000px) {
  .layout-2 { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .filters { display: block; position: static; }
  .filters .group { min-width: 0; margin-bottom: 18px; }
  .filters summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: 14px; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: auto; font-size: 12px; transition: transform .2s; }
  .filters details[open] summary::after { transform: rotate(180deg); }
  .filters details[open] .group:first-of-type { margin-top: 16px; }
  .admin-side { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 4px; padding: 10px 12px; align-items: center; scrollbar-width: none; }
  .admin-side::-webkit-scrollbar { display: none; }
  .admin-side a { white-space: nowrap; flex: none; padding: 9px 12px; margin: 0; }
  .admin-side .brand { padding-right: 12px; }
  .admin-side .foot { display: flex; margin: 0 0 0 auto; border: 0; padding: 0; flex: none; }
  .admin-side .foot div { display: none; }
  .admin-side .foot a:first-child { display: none; }
}
@media (max-width: 700px) {
  body { padding-bottom: 64px; font-size: 15px; }
  .admin ~ * { padding-bottom: 0; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .topbar .wrap span:first-child { display: none; }
  .topbar .wrap span:last-child { display: block; font-size: 12px; }
  .site-header { position: static; }
  .site-header .wrap { grid-template-columns: 1fr auto; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px 12px; }
  .site-header .actions { display: none; }
  .search { grid-column: 1 / -1; order: 3; max-width: none; }
  .brand-mark { height: 32px; } .brand-word { height: 28px; }
  .sportnav a { padding: 12px 12px; }
  h1 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .hero .wrap { padding-top: 28px; padding-bottom: 32px; gap: 24px; }
  .hero .lead { font-size: 1rem; margin: 16px 0 22px; }
  .hero .cta .btn { flex: 1; }
  .section { padding: 34px 0; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .sport-tile { min-height: 112px; padding: 16px; }
  .sport-tile strong { font-size: 1.35rem; }
  .page-title { padding: 24px 0 18px; }
  .page-title h1 { font-size: 2.3rem !important; }
  .product { padding: 18px 0 40px; gap: 22px; }
  .big-price { font-size: 2.4rem; }
  .product .row { gap: 10px; }
  .product .row form.row { width: 100%; }
  .product .row form .btn { flex: 1; }
  .btn { height: 46px; }
  .btn-sm { height: 38px; }
  .input, .select, .textarea, .search input { font-size: 16px; }
  .qty button { width: 40px; height: 40px; } .qty input { height: 40px; font-size: 16px; }
  .panel-head { flex-wrap: wrap; }
  .stats { gap: 10px; } .stat { padding: 14px; } .stat b { font-size: 1.6rem; }
  .toolbar { align-items: flex-start; }
  .toolbar form { width: 100%; } .toolbar .select { width: 100% !important; }
  .admin-main { padding: 18px 14px 40px; }
  .admin-main > h1 { font-size: 2rem; }
  .row > .input.grow { max-width: none !important; width: 100%; }
  table.t th, table.t td { padding: 10px 12px; }
  .dropzone { padding: 22px 14px; }
  .site-footer .wrap { padding-top: 34px; gap: 28px; grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 2px 8px; font-size: 11px; color: var(--ink-2); }
  .tabbar a .fa-solid { font-size: 18px; }
  .tabbar a:active { background: var(--paper); }
  .tabbar b { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--accent); color: #fff; border-radius: 99px; font-size: 10px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; }
}
@media (max-width: 380px) {
  .grid { gap: 10px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
}

/* Gymmat baha setirden çykmasyn */
.price { white-space: nowrap; }
.card-foot { flex-wrap: wrap; row-gap: 8px; }

/* ===== v4: indirim belgileri, galereýa ===== */
.media-link { display: block; height: 100%; }
.media { position: relative; }
.media img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .25s; }
.card:hover .media img.alt { opacity: 1; }
.tags { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 2; }
.tags .tag { position: static; }
.tag-sale { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-new { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.price-old { margin-left: 8px; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.price-old { text-decoration-color: var(--accent); }
.big-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 6px; }
.big-price-row .big-price { margin: 0; }
.big-price small { font-size: 1.2rem; color: var(--muted); margin-left: 4px; }
.big-price .price-old { font-size: 1.15rem; }
.save { color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.gallery .gallery-main { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gallery .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbbtn { flex: none; width: 74px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--line-2); cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.thumbbtn img { width: 100%; height: 100%; object-fit: cover; }
.thumbbtn:hover { opacity: 1; }
.thumbbtn.on { border-color: var(--accent); opacity: 1; }
.gal-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gal-item { border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--paper); }
.gal-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }
.gal-item form { display: flex; gap: 6px; margin-top: 6px; }
.gal-item form .btn:first-child { flex: 1; }

/* ===== v5: ana sahypa (hero, suratly kategoriýalar) ===== */
.hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.hero-points .fa-solid { color: var(--accent); font-size: 1.05rem; width: 20px; text-align: center; }
.hero-art { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(360px, 40vw, 540px); }
.ha { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; background: var(--line-2); }
.ha.a { grid-row: 1 / span 2; }
.how { background: var(--paper); border-bottom: 1px solid var(--line); }
.how .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.how-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 24px 22px; border-right: 1px solid var(--line); }
.how-item:first-child { padding-left: 0; }
.how-item:last-child { border-right: 0; }
.how-item b { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: var(--accent); }
.how-item strong { display: block; margin-bottom: 2px; }
.how-item span { color: var(--muted); font-size: 14px; }
.photo-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ptile { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 5 / 4; background: var(--line-2); }
.ptile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ptile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(160, 36, 33, .92) 0%, rgba(160, 36, 33, .4) 34%, rgba(160, 36, 33, 0) 66%); transition: opacity .3s; }
.ptile:hover img { transform: scale(1.06); }
.ptile-ico { position: absolute; left: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ptile-txt { position: absolute; left: 18px; right: 14px; bottom: 14px; z-index: 2; color: #fff; display: flex; flex-direction: column; }
.ptile-txt strong { font-family: var(--font-head); font-size: 1.75rem; text-transform: uppercase; line-height: 1.05; font-weight: 700; }
.ptile-txt small { font-size: 12.5px; opacity: .9; }

@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { height: clamp(260px, 62vw, 420px); }
  .photo-tiles { grid-template-columns: repeat(2, 1fr); }
  .how .wrap { grid-template-columns: 1fr; }
  .how-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .how-item:last-child { border-bottom: 0; }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.6rem, 14vw, 3.4rem); }
  .ptile { aspect-ratio: 1 / 1.05; }
  .ptile-txt strong { font-size: 1.3rem; }
  .ptile-ico { width: 34px; height: 34px; left: 10px; top: 10px; font-size: .9rem; }
  .ptile-txt { left: 12px; bottom: 11px; }
  .photo-tiles { gap: 10px; }
}

/* ===== dil çalşygy ===== */
.topbar .tb-right { display: flex; align-items: center; gap: 16px; }
.langsw { display: inline-flex; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; overflow: hidden; }
.topbar .langsw a { text-decoration: none; padding: 1px 11px; font-weight: 600; font-size: 12px; letter-spacing: .06em; }
.topbar .langsw a.on { background: #fff; color: var(--accent-dark); }
@media (max-width: 700px) {
  .topbar .wrap { justify-content: space-between; text-align: left; }
  .topbar .wrap > span:first-child { display: block; font-size: 12px; }
  .topbar .wrap span:last-child { display: flex; }
  .hide-m { display: none; }
  .topbar .tb-info { display: none; }
  .topbar .wrap > span:first-child { display: block; }
}

/* ===== Biz barada / habarlaşmak ===== */
.about-head .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; margin: 16px 0 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: stretch; margin-top: 12px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.ccard { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.ccard h3 { font-size: 1.15rem; letter-spacing: .06em; margin-bottom: 6px; }
.ccard p { margin: 0 0 8px; color: var(--ink-2); }
.ccard a.mono { display: block; font-size: 1.1rem; font-weight: 600; padding: 3px 0; }
.ccard a.mono:hover, .link-arrow:hover { color: var(--accent); }
.ccard-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.2rem; }
.ccard-accent { background: var(--accent-soft); border-color: transparent; }
.ccard-accent .ccard-ico { background: var(--accent); color: #fff; }
.link-arrow { font-size: 14px; font-weight: 600; color: var(--accent-dark); display: inline-flex; gap: 8px; align-items: center; }
.map-box { position: relative; min-height: 440px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-open { position: absolute; left: 14px; bottom: 14px; background: #fff; border-radius: 99px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.18); display: inline-flex; gap: 8px; align-items: center; }
.map-open .fa-solid { color: var(--accent); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.how-card b { font-family: var(--font-head); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.how-card p { margin: 10px 0 0; color: var(--ink-2); }
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-box { min-height: 340px; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .how-grid { grid-template-columns: 1fr; } .ccard { padding: 16px; grid-template-columns: 44px 1fr; gap: 12px; } .ccard-ico { width: 44px; height: 44px; } }
.map-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; background-image: repeating-linear-gradient(45deg, var(--line-2) 0 18px, #f2f2f4 18px 36px); }
.map-fallback .fa-solid { font-size: 3rem; color: var(--accent); }
.map-fallback strong { font-family: var(--font-head); font-size: 1.6rem; text-transform: uppercase; }
.map-box iframe { z-index: 1; background: transparent; }
.map-open { z-index: 2; }
table.t td.mono, table.t td.t-right { white-space: nowrap; }
