:root {
  --blue: #28589a;
  --blue-dark: #1e477f;
  --blue-soft: #edf2fa;
  --yellow: #e9bc2c;
  --ink: #171a20;
  --muted: #7d8490;
  --line: #e6e8ed;
  --surface: #ffffff;
  --bg: #f7f7fb;
  --danger: #e45b4f;
  --green: #38b66b;
  --shadow: 0 14px 38px rgba(21, 38, 63, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 16px/1.45 Inter, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; padding-bottom: 78px; }
.site-header { position: sticky; z-index: 30; top: 0; background: var(--blue); box-shadow: 0 3px 18px rgba(13, 46, 91, .18); }
.header-inner { width: min(1180px, calc(100% - 36px)); height: 76px; margin: auto; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.logo { width: 58px; height: 50px; object-fit: contain; }
.search { height: 50px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-radius: 17px; background: #fff; }
.search input { width: 100%; border: 0; outline: 0; color: var(--ink); font-size: 15px; }
.search input::placeholder { color: #b0b4bc; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: inherit; }
.icon-btn:hover { background: rgba(40,88,154,.08); }
.header-action { color: white; border: 1px solid rgba(255,255,255,.24); }
.header-action:hover { background: rgba(255,255,255,.1); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.hero { margin-top: 28px; position: relative; overflow: hidden; border-radius: 20px; background: #d6dce4; aspect-ratio: 3.55 / 1; box-shadow: var(--shadow); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; left: 50%; bottom: 12px; display: flex; gap: 8px; transform: translateX(-50%); }
.hero-dot { width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; background: transparent; }
.hero-dot.active { background: white; }
.catalog-trigger { width: 100%; margin: 20px 0 28px; padding: 18px 24px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 16px; color: var(--blue); background: #eef1f7; font-weight: 600; text-align: left; }
.catalog-trigger:hover { background: #e5ebf5; }
.section-title { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 31px); text-align: center; letter-spacing: -.03em; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.product-card { position: relative; min-width: 0; overflow: hidden; border: 0; border-radius: 17px; background: white; box-shadow: 0 7px 22px rgba(27,44,72,.05); transition: transform .2s, box-shadow .2s; text-align: left; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { width: 100%; aspect-ratio: 1.58 / 1; object-fit: cover; background: #ececec; }
.product-body { padding: 14px 15px 17px; }
.product-price { color: var(--blue); font-size: 20px; font-weight: 800; }
.product-title { min-height: 48px; margin-top: 4px; font-size: 15px; font-weight: 600; }
.product-code { margin-top: 5px; color: #a0a5ad; font-size: 13px; }
.stock { display: inline-flex; margin-top: 10px; padding: 5px 9px; border-radius: 99px; color: #238a52; background: #eaf8ef; font-size: 12px; font-weight: 700; }
.heart { position: absolute; top: 12px; right: 12px; color: #9ca2aa; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.heart.active { color: #e45866; }

.empty { grid-column: 1 / -1; padding: 72px 24px; text-align: center; color: var(--muted); background: white; border-radius: var(--radius); }
.empty strong { display: block; margin-bottom: 7px; color: var(--ink); font-size: 20px; }
.footer { margin-top: 58px; color: white; background: #173f77; }
.footer-inner { width: min(1180px, calc(100% - 36px)); margin: auto; padding: 38px 0 44px; display: grid; grid-template-columns: 1.25fr .8fr .8fr; gap: 36px; }
.footer-logo { width: 92px; margin-bottom: 16px; }
.footer p { margin: 7px 0; color: rgba(255,255,255,.8); }
.footer h4 { margin: 5px 0 15px; }
.footer a { display: block; margin: 9px 0; color: rgba(255,255,255,.78); }

.bottom-nav { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: 68px; display: flex; justify-content: center; gap: min(10vw, 100px); border-top: 1px solid #eceaf1; background: rgba(255,250,255,.95); backdrop-filter: blur(14px); }
.nav-item { min-width: 65px; position: relative; display: grid; place-items: center; border: 0; color: #bfc1c7; background: transparent; }
.nav-item.active { color: var(--blue); }
.nav-badge { position: absolute; top: 9px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--danger); font-size: 11px; font-weight: 700; }
.whatsapp { position: fixed; z-index: 32; right: max(24px, calc((100vw - 1180px)/2)); bottom: 88px; width: 64px; height: 64px; display: grid; place-items: center; border: 5px solid white; border-radius: 50%; color: white; background: #46c95f; box-shadow: 0 10px 24px rgba(37,140,69,.28); font-weight: 800; font-size: 26px; }

.overlay { position: fixed; z-index: 60; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(18,29,45,.5); backdrop-filter: blur(4px); }
.modal { width: min(720px, 100%); max-height: min(780px, 92vh); overflow: auto; border-radius: 22px; background: white; box-shadow: 0 30px 80px rgba(8,21,43,.28); }
.modal-head { position: sticky; z-index: 2; top: 0; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: white; }
.modal-head h2 { margin: 0; font-size: 22px; }
.category-list { padding: 12px; }
.category-btn { width: 100%; padding: 14px; display: flex; justify-content: space-between; border: 0; border-radius: 12px; background: transparent; text-align: left; }
.category-btn:hover { background: var(--blue-soft); }
.category-count { color: var(--muted); }

.product-page { min-height: 100vh; background: #f8f8fc; }
.product-top { position: sticky; z-index: 25; top: 0; height: 68px; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; padding: 0 18px; color: white; background: var(--blue); }
.product-top h1 { overflow: hidden; margin: 0; font-size: 16px; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.product-detail { width: min(1080px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; padding: 24px 18px 70px; }
.detail-media, .detail-card { overflow: hidden; border-radius: 20px; background: white; box-shadow: 0 10px 26px rgba(19,38,67,.07); }
.detail-media img { width: 100%; aspect-ratio: 1.28/1; object-fit: cover; }
.detail-card { padding: 24px; }
.detail-card h2 { margin: 0 0 9px; font-size: 24px; }
.detail-price { color: var(--blue); font-size: 28px; font-weight: 800; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.primary, .secondary, .danger-btn { min-height: 46px; padding: 11px 16px; border: 0; border-radius: 12px; font-weight: 700; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: var(--blue); background: var(--blue-soft); }
.danger-btn { color: white; background: var(--danger); }
.specs { grid-column: 1 / -1; padding: 24px; border-radius: 20px; background: white; }
.specs h3 { margin: 0 0 18px; }
.spec-row { padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border: 0; }
.spec-row span:first-child { color: var(--muted); }
.spec-row span:last-child { font-weight: 600; text-align: right; }

.cart-page, .simple-page { padding-top: 28px; }
.page-title { margin: 0 0 22px; font-size: 30px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.cart-list, .cart-summary, .panel { border-radius: 18px; background: white; box-shadow: 0 8px 24px rgba(22,40,67,.05); }
.cart-row { padding: 16px; display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-row img { width: 104px; height: 76px; border-radius: 10px; object-fit: cover; }
.cart-row:last-child { border: 0; }
.cart-row h3 { margin: 0 0 6px; font-size: 16px; }
.cart-summary { height: max-content; padding: 22px; }
.summary-line { display: flex; justify-content: space-between; margin: 10px 0; }
.summary-total { padding-top: 14px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 800; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; background: #f3f6fa; }
.admin-sidebar { padding: 24px 18px; color: white; background: #173f77; }
.admin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; font-weight: 800; }
.admin-brand img { width: 48px; }
.admin-menu button { width: 100%; margin: 4px 0; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; color: rgba(255,255,255,.76); background: transparent; text-align: left; }
.admin-menu button.active, .admin-menu button:hover { color: white; background: rgba(255,255,255,.11); }
.admin-main { min-width: 0; padding: 32px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-top h1 { margin: 0; font-size: 29px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stat { padding: 20px; border-radius: 16px; background: white; box-shadow: 0 7px 20px rgba(19,39,69,.05); }
.stat-label { color: var(--muted); font-size: 13px; }
.stat-value { margin-top: 5px; font-size: 28px; font-weight: 800; }
.admin-panel { overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 8px 22px rgba(18,38,67,.05); }
.panel-tools { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.panel-tools input { width: min(320px, 100%); padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.admin-table th { color: var(--muted); background: #fafbfd; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-thumb { width: 62px; height: 45px; border-radius: 8px; object-fit: cover; }
.table-actions { display: flex; gap: 5px; }
.table-actions button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.table-actions button:last-child { color: var(--danger); background: #feeeee; }
.recommend-square { width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #cbd3dd; border-radius: 8px; color: white; background: #fff; font-size: 18px; font-weight: 900; transition: .18s ease; }
.recommend-square:hover { border-color: #2a8a5d; }
.recommend-square.active { border-color: #218455; background: #218455; box-shadow: 0 5px 14px rgba(33,132,85,.22); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg,#173f77,#2f67ad); }
.login-card { width: min(430px,100%); padding: 34px; border-radius: 22px; background: white; box-shadow: 0 30px 70px rgba(2,19,48,.3); }
.login-card img { width: 72px; margin: 0 auto 14px; }
.login-card h1 { margin: 0; text-align: center; }
.login-card p { color: var(--muted); text-align: center; }
.field { margin: 14px 0; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid #dfe3ea; border-radius: 10px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,88,154,.1); }
.field textarea { min-height: 122px; resize: vertical; line-height: 1.5; }
.admin-description { max-width: 420px; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.product-editor { width: min(820px,100%); }
.photo-upload { min-height: 128px; display: grid; place-items: center; border: 2px dashed #cbd4e0; border-radius: 14px; color: #657487; background: #f8fafc; cursor: pointer; transition: .2s ease; }
.photo-upload:hover { border-color: var(--blue); color: var(--blue); background: #f3f7fc; }
.photo-upload.loading { opacity: .6; pointer-events: none; }
.photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-upload > span { padding: 18px; display: grid; justify-items: center; gap: 5px; text-align: center; }
.photo-upload .icon { width: 30px; height: 30px; }
.photo-upload small { color: var(--muted); font-size: 12px; }
.photo-preview { margin-top: 12px; display: flex; gap: 12px; overflow-x: auto; }
.photo-item { position: relative; width: 112px; height: 90px; flex: 0 0 112px; overflow: hidden; border-radius: 12px; background: #eef1f5; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item button { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(18,28,42,.72); }
.photo-item button .icon { width: 15px; height: 15px; }
.photo-item > span { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 6px; color: white; background: rgba(21,91,165,.9); font-size: 10px; font-weight: 700; }
.login-hint { padding: 10px; border-radius: 10px; background: #fff7da; color: #725b12 !important; font-size: 13px; }
.form-grid { padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.form-grid .full { grid-column: 1/-1; }
.form-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 88px; padding: 12px 18px; border-radius: 12px; color: white; background: #202a39; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%,16px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status-pill.active { color: #20834d; background: #e8f7ee; }
.order-board { display: grid; grid-template-columns: repeat(4,minmax(240px,1fr)); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.order-column { min-width: 240px; padding: 12px; border-radius: 18px; background: #e9eef5; }
.order-column-head { padding: 5px 3px 14px; display: flex; align-items: center; justify-content: space-between; }
.order-column-head span { min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 12px; }
.order-stack { display: grid; gap: 10px; }
.order-card { padding: 15px; border-radius: 14px; background: white; box-shadow: 0 5px 16px rgba(23,44,72,.06); }
.order-id { display: flex; justify-content: space-between; gap: 8px; }
.order-id small, .order-card p { color: var(--muted); }
.order-card h3 { margin: 14px 0 4px; font-size: 16px; }
.order-card p { margin: 0; font-size: 13px; }
.order-card ul { margin: 12px 0; padding-left: 18px; font-size: 12px; }
.order-total { margin: 12px 0; color: var(--blue); font-size: 18px; font-weight: 800; }
.order-card select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.order-empty { padding: 28px 12px; color: var(--muted); text-align: center; }
.store-sync { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.reset-link-btn { min-height: 38px; padding: 8px 12px; border: 0; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.vip-table-price { color: #177650; font-weight: 800; }
.vip-user-pill { display: inline-flex; margin-top: 6px; padding: 4px 8px; border-radius: 99px; color: #177650; background: #e7f5ee; font-size: 11px; font-weight: 800; }
.user-actions { display: flex; align-items: center; gap: 10px; }
.vip-toggle { display: inline-flex; align-items: center; gap: 8px; color: #344050; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.vip-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.vip-toggle i { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #cbd3dd; transition: .2s ease; }
.vip-toggle i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(20,36,58,.2); transition: .2s ease; }
.vip-toggle input:checked + i { background: #177650; }
.vip-toggle input:checked + i::after { transform: translateX(18px); }
.reset-result { width: min(620px,100%); }
.reset-body { padding: 24px; }
.reset-body p { margin: 0 0 14px; color: var(--muted); }
.reset-body input { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa; }
.reset-body .primary { width: 100%; margin-top: 14px; }
.banner-panel { padding: 20px; }
.banner-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.banner-card { overflow: hidden; border: 1px solid #e7eaf0; border-radius: 20px; background: white; box-shadow: 0 9px 28px rgba(20,39,66,.07); }
.banner-preview { position: relative; aspect-ratio: 3.55/1; overflow: hidden; background: #e9ebef; }
.banner-preview > img { width: 100%; height: 100%; object-fit: cover; }
.banner-edit { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 14px; color: #173f77; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(16,29,48,.2); }
.banner-edit:hover { transform: translateY(-1px); background: white; }
.banner-card-body { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.banner-card-body > div { display: grid; gap: 5px; }
.banner-card-body strong { font-size: 20px; }
.banner-card-body div span { color: var(--muted); font-size: 13px; }
.banner-editor { width: min(1180px,96vw); max-height: 94vh; }
.banner-editor .modal-head small { display: block; margin-top: 4px; color: var(--muted); }
.banner-editor-body { padding: 20px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; background: #f6f8fb; }
.banner-editor-body > section { padding: 18px; border-radius: 18px; background: white; }
.banner-editor-body h3 { margin: 0 0 14px; font-size: 21px; }
.banner-crop { margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--line); }
.banner-crop-head { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.upload-small { min-height: 38px; padding: 8px 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.upload-small input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-small .icon { width: 18px; height: 18px; }
.banner-crop-frame { position: relative; aspect-ratio: 3.55/1; overflow: hidden; border-radius: 13px; background: #e9ebef; }
.banner-crop-frame.mobile { aspect-ratio: 2.12/1; }
.banner-crop-frame img { width: 100%; height: 100%; object-fit: cover; object-position: var(--crop-x) var(--crop-y); transform: scale(var(--crop-zoom)); transform-origin: var(--crop-x) var(--crop-y); }
.crop-controls { margin-top: 11px; display: grid; gap: 8px; }
.crop-controls label { display: grid; grid-template-columns: 105px 1fr; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.crop-controls input { width: 100%; accent-color: var(--blue); }
.banner-editor-actions { position: sticky; bottom: 0; padding: 15px 20px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; border-top: 1px solid var(--line); background: white; }
.danger-link { border: 0; color: #c94e55; background: transparent; font-weight: 700; }

@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .specs { grid-column: auto; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 76px 1fr; }
  .admin-sidebar { padding-inline: 11px; }
  .admin-brand span, .admin-menu span { display: none; }
  .admin-brand { justify-content: center; }
  .admin-menu button { justify-content: center; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .order-board { grid-template-columns: repeat(4,260px); }
  .banner-grid, .banner-editor-body { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner, .container { width: min(100% - 24px, 1180px); }
  .header-inner { height: 66px; grid-template-columns: 48px minmax(0,1fr) 38px; gap: 8px; }
  .logo { width: 44px; height: 40px; }
  .search { height: 44px; padding-inline: 13px; border-radius: 14px; }
  .hero { margin-top: 18px; aspect-ratio: 2.12/1; border-radius: 15px; }
  .products { gap: 14px 10px; }
  .product-body { padding: 10px 10px 13px; }
  .product-price { font-size: 17px; }
  .product-title { min-height: 57px; font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; }
  .whatsapp { right: 18px; width: 58px; height: 58px; }
  .detail-actions { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 78px 1fr; }
  .cart-row img { width: 78px; height: 62px; }
  .cart-row > :last-child { grid-column: 2; }
  .admin-shell { display: block; }
  .admin-sidebar { position: sticky; z-index: 30; top: 0; display: flex; align-items: center; gap: 12px; padding: 8px 12px; }
  .admin-brand { margin: 0; }
  .admin-brand img { width: 42px; }
  .admin-menu { display: flex; }
  .admin-menu button { width: 42px; margin: 0; padding: 10px; }
  .admin-main { padding: 18px 12px; }
  .admin-top h1 { font-size: 23px; }
  .stats { gap: 10px; }
  .stat { padding: 14px; }
  .stat-value { font-size: 22px; }
  .admin-table { min-width: 760px; }
  .admin-panel { overflow-x: auto; }
  .panel-tools { min-width: 640px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full, .form-actions { grid-column: auto; }
  .banner-panel { padding: 10px; }
  .banner-grid { gap: 14px; }
  .banner-card-body { align-items: flex-start; flex-direction: column; }
  .banner-editor-body { padding: 10px; }
  .banner-editor-body > section { padding: 13px; }
  .banner-editor-actions { grid-template-columns: 1fr 1fr; }
  .banner-editor-actions span { display: none; }
}

/* Storefront layout — desktop header, mobile navigation and catalogue */
.app-shell { padding-bottom: 0; }
.header-inner { width: min(1400px, calc(100% - 40px)); grid-template-columns: 44px max-content minmax(240px, 1fr) auto 44px; gap: 12px; }
.header-menu { color: #fff; border: 1px solid rgba(255,255,255,.2); }
.header-menu:hover { background: rgba(255,255,255,.12); }
.brand-button { padding: 0; display: flex; align-items: center; gap: 10px; border: 0; color: white; background: transparent; white-space: nowrap; }
.brand-button strong { font-size: 19px; letter-spacing: -.03em; }
.desktop-actions { display: flex; align-items: center; gap: 2px; }
.desktop-action { min-height: 48px; position: relative; padding: 6px 10px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 6px; border: 0; border-radius: 12px; color: white; background: transparent; }
.desktop-action:hover { background: rgba(255,255,255,.1); }
.desktop-action span { font-size: 12px; }
.desktop-action b { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #174d3e; font-size: 10px; }
.container { width: min(1320px, calc(100% - 40px)); }
.hero { margin-top: 20px; aspect-ratio: 4.15/1; }
.hero-track { height: 100%; display: flex; transition: transform .55s cubic-bezier(.22,.8,.25,1); }
.hero-track img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; }
.hero-dot { padding: 0; cursor: pointer; }
.section-title { margin-top: 30px; }
.product-open { all: unset; display: block; width: 100%; cursor: pointer; }
.bottom-nav { display: none; }

.footer { color: #24262b; background: #eef0f5; }
.footer-inner { width: min(1400px, calc(100% - 80px)); padding: 46px 0 52px; grid-template-columns: 1.15fr 1fr .8fr; gap: 70px; }
.footer-brand > div { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 78px; }
.footer-brand strong { font-size: 28px; letter-spacing: -.04em; }
.footer p { color: #34363c; }
.footer-brand p { margin-top: 32px; }
.footer-contacts p { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; margin: 0 0 20px; }
.footer-contacts .icon { margin-top: 2px; }
.footer-links { display: flex; flex-direction: column; gap: 24px; }
.footer-links a { margin: 0; color: #34363c; font-size: 17px; }

.catalog-modal { width: min(620px, 100%); }
.category-list { padding: 14px; display: grid; gap: 10px; }
.category-btn { min-height: 68px; padding: 14px 18px; display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; gap: 12px; border-radius: 18px; background: #f0f2f7; }
.category-btn:hover { background: #e7ebf3; }
.category-btn strong { font-size: 18px; }
.category-gear .icon { width: 30px; height: 30px; color: #050505; fill: #050505; stroke: white; }
.category-arrow { color: #04589f; }
.category-arrow .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.profile-panel { max-width: 660px; padding: 24px; }
.profile-panel p { color: var(--muted); }
.checkout { width: 100%; margin-top: 14px; }

@media (max-width: 1080px) {
  .header-inner { grid-template-columns: 44px max-content minmax(190px,1fr) auto 44px; }
  .brand-button strong, .desktop-action span { display: none; }
  .desktop-action { grid-template-columns: 1fr; width: 42px; padding: 6px; }
  .hero { aspect-ratio: 3.35/1; }
}

@media (max-width: 700px) {
  .app-shell { padding-bottom: 78px; }
  .header-inner { width: calc(100% - 16px); height: 62px; grid-template-columns: 42px minmax(0,1fr) 38px; gap: 7px; }
  .header-menu, .desktop-actions, .brand-button strong { display: none; }
  .brand-button { grid-column: 1; }
  .brand-button .logo { width: 38px; height: 36px; }
  .search { grid-column: 2; height: 40px; padding-inline: 10px; border-radius: 12px; }
  .search .icon { width: 18px; }
  .search input { font-size: 13px; }
  .header-action { grid-column: 3; width: 38px; height: 38px; }
  .container { width: calc(100% - 20px); }
  .home-main { width: 100%; }
  .hero { width: calc(100% - 12px); margin: 12px 6px 0; aspect-ratio: 2.5/1; border-radius: 16px; }
  .section-title { margin: 24px 10px 16px; font-size: 20px; }
  .products { padding: 0 10px; }
  .bottom-nav { height: 72px; padding: 0 2px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); gap: 0; background: rgba(255,255,255,.97); }
  .nav-item { min-width: 0; position: relative; padding: 7px 2px 5px; display: flex; flex-direction: column; justify-content: center; gap: 2px; color: #7d8890; }
  .nav-item .icon { width: 24px; height: 24px; }
  .nav-item span { display: block; font-size: 10px; line-height: 1; }
  .nav-item.active { color: #174d3e; }
  .nav-badge { top: 2px; left: calc(50% + 5px); }
  .whatsapp { bottom: 84px; }
  .footer { margin-top: 38px; }
  .footer-inner { width: calc(100% - 34px); padding: 32px 0 40px; grid-template-columns: 1fr; gap: 28px; }
  .footer-brand img { width: 60px; }
  .footer-brand strong { font-size: 24px; }
  .footer-brand p { margin-top: 20px; }
  .footer-links { gap: 15px; }
  .overlay { padding: 0; align-items: end; }
  .catalog-modal { width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .modal-head { padding: 16px 18px; }
  .category-list { padding: 8px 8px 24px; gap: 8px; }
  .category-btn { min-height: 72px; border-radius: 20px; }
  .category-btn strong { overflow: hidden; font-size: 18px; white-space: nowrap; text-overflow: ellipsis; }
  .simple-page, .cart-page { width: calc(100% - 24px); }
}
