﻿:root {
  --page: #f7fbfd;
  --surface: #ffffff;
  --surface-soft: #eef8fb;
  --text: #172033;
  --muted: #637083;
  --line: #d6e6ee;
  --line-strong: #aac3d1;
  --primary: #00a8df;
  --primary-dark: #007da8;
  --purple: #7357d9;
  --ink: #20283a;
  --blue: #2563eb;
  --danger: #dc2626;
  --warning: #b45309;
  --shadow: 0 16px 34px rgba(23, 32, 51, 0.08);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  direction: ltr;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  direction: ltr;
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.site-header,
.app-shell,
#modal-root,
.toast {
  direction: rtl;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
[role="button"] {
  outline-color: var(--primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 12px max(18px, calc((100vw - 1240px) / 2 + 18px));
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  background: linear-gradient(135deg, #11144b, #171a5e 58%, #412b82);
  color: #fff;
  box-shadow: 0 16px 30px rgba(17, 20, 75, 0.2);
  backdrop-filter: blur(12px);
}

.admin-route .site-header {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo-mark {
  width: 148px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site-nav a {
  min-width: 92px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 168, 223, 0.22);
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.admin-route .app-shell {
  width: min(1220px, calc(100% - 28px));
  padding-top: 18px;
}

.home-hero {
  position: relative;
  display: block;
  width: 100vw;
  aspect-ratio: 1600 / 650;
  margin-inline: calc(50% - 50vw);
  margin-top: -34px;
  padding: 0;
  overflow: hidden;
  background-color: #11144b;
  border-bottom: 1px solid #1f2f80;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.home-hero-center {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(720px, 100%);
  text-align: center;
}

.home-logo {
  display: none;
  width: min(640px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24));
}

.home-caption {
  display: none;
  width: min(660px, 100%);
  margin: 0;
  color: #f2f7ff;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.9;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.home-actions,
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero .home-actions,
.home-hero .hero-metrics {
  display: none;
}

.hero-metrics {
  position: absolute;
  z-index: 1;
  right: max(24px, calc((100vw - 1180px) / 2 + 24px));
  bottom: 26px;
  justify-content: flex-start;
}

.hero-metrics span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.hero-metrics strong {
  color: #80eaff;
  font-size: 1.12rem;
}

.home-section {
  width: 100%;
  padding: 42px 0 6px;
}

.social-section {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 44px max(24px, calc((100vw - 1180px) / 2 + 24px));
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.section-title h2 {
  color: var(--ink);
  font-size: 2rem;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.social-card {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(23, 32, 51, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.social-card:not(.is-disabled):hover {
  border-color: var(--primary);
  box-shadow: 0 16px 30px rgba(0, 168, 223, 0.14);
  transform: translateY(-2px);
}

.social-card.is-disabled {
  background: #f8fafc;
  color: #94a3b8;
}

.social-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.social-card-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.social-card-copy small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.social-card.is-disabled .social-card-copy strong,
.social-card.is-disabled .social-card-copy small {
  color: #94a3b8;
}

.social-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  flex: 0 0 auto;
}

.social-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .logo-fill,
.social-icon.facebook svg {
  fill: currentColor;
  stroke: none;
}

.social-icon .logo-stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .tiktok-shadow-one,
.social-icon .tiktok-shadow-two {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-icon .tiktok-shadow-one {
  stroke: #25f4ee;
  transform: translate(-1px, 1px);
}

.social-icon .tiktok-shadow-two {
  stroke: #fe2c55;
  transform: translate(1px, -1px);
}

.social-icon.whatsapp {
  background: #25d366;
}

.social-icon.gmail {
  background: #fff;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
}

.social-icon.gmail svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: none;
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7);
}

.social-icon.tiktok {
  background: #050505;
}

.is-disabled .social-icon {
  background: #cbd5e1;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.contact-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 112px;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.05);
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
}

.contact-card strong {
  color: var(--ink);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.contact-card.wide {
  grid-column: span 2;
}

.map-card {
  border-color: rgba(115, 87, 217, 0.24);
  background: #faf9ff;
}

.hours-section {
  padding-bottom: 26px;
}

.branch-status-card {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.06);
}

.branch-status-card span {
  font-size: 1.2rem;
  font-weight: 800;
}

.branch-status-card strong {
  color: var(--muted);
  font-size: 0.92rem;
}

.branch-status-card.open {
  border-color: rgba(34, 197, 94, 0.28);
  background: #effdf4;
}

.branch-status-card.open span {
  color: #047857;
}

.branch-status-card.closed {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fff1f2;
}

.branch-status-card.closed span {
  color: #be123c;
}

.branch-status-card.temporary {
  border-color: rgba(249, 115, 22, 0.34);
  background: #fff7ed;
}

.branch-status-card.temporary span {
  color: #c2410c;
}

.working-hours-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(23, 32, 51, 0.05);
}

.working-hours-table {
  width: 100%;
  border-collapse: collapse;
}

.working-hours-table th,
.working-hours-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.working-hours-table th {
  background: #eef8fb;
  color: var(--ink);
  font-weight: 800;
}

.working-hours-table tr:last-child td {
  border-bottom: 0;
}

.working-hours-table tr.is-today td {
  background: #f8fdff;
}

.working-hours-table td:first-child {
  display: grid;
  gap: 3px;
}

.working-hours-table td:first-child strong {
  color: var(--ink);
}

.working-hours-table td:first-child span {
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.working-hours-table td:last-child {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.working-hours-time {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  direction: rtl;
}

.working-hours-time span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fdff;
}

.working-hours-time small {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.working-hours-time strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 3.2rem;
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.4;
}

.count-badge,
.soft-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #475467;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.count-badge {
  gap: 4px;
  min-height: 36px;
  padding-inline: 14px;
  color: #0f172a;
}

.count-badge strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.filter-band {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 1.1fr) repeat(2, minmax(120px, 160px)) auto;
  align-items: end;
  gap: 12px;
  min-width: 0;
}

.accessory-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: stretch;
  min-width: 0;
}

.filter-search-field {
  min-width: 0;
}

.accessory-filters .filter-search-field {
  grid-column: span 2;
}

.price-filter-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.price-filter-pair label {
  min-width: 0;
}

.accessory-filters .filter-actions {
  justify-content: stretch;
}

.accessory-filters .filter-actions > * {
  flex: 1;
  min-width: 0;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
label span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.segmented button,
.admin-tabs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  cursor: pointer;
}

.segmented button.active,
.admin-tabs button.active {
  background: var(--text);
  color: #fff;
}

.segmented button[data-condition="new"].active {
  background: #15803d;
}

.segmented button[data-condition="used"].active {
  background: #c2410c;
}

.filter-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.logout-btn,
.text-link,
.icon-btn {
  border: 0;
  cursor: pointer;
}

.primary-btn,
.ghost-btn,
.danger-btn,
.logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.primary-btn.wide {
  width: 100%;
}

.ghost-btn,
.logout-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: #344054;
}

.ghost-btn:hover,
.logout-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.danger-btn {
  background: #fef2f2;
  color: var(--danger);
}

.danger-btn:hover {
  background: #fee2e2;
}

.logo-strip {
  display: flex;
  gap: 10px;
  padding-bottom: 2px;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.logo-chip {
  --accent: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  min-width: max-content;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.logo-chip span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-weight: 800;
}

.logo-chip .brand-logo-box {
  width: 70px;
  height: 34px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.logo-chip .brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-chip strong {
  font-weight: 800;
}

.brand-chip-name {
  display: none;
}

.logo-chip.all span {
  background: #e5e7eb;
  color: #374151;
}

.logo-chip:hover,
.logo-chip.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.logo-chip:hover {
  transform: translateY(-1px);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 18px;
  overflow: visible;
  padding-bottom: 0;
}

.category-chip {
  position: relative;
  width: 100%;
  min-width: 0;
  justify-content: center;
  min-height: 76px;
  padding: 14px 18px;
  padding-inline-start: 70px;
  border: 2px solid #b8c4d4;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, white), #fff 64%),
    #fff;
  overflow: hidden;
}

.category-chip .category-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  display: grid;
  width: 42px;
  height: 56px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  transform: translateY(-50%);
}

.category-chip .category-icon.category-image {
  overflow: hidden;
  padding: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, #d8e0eb);
}

.category-chip .category-icon.category-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-chip .category-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-chip strong {
  min-width: 0;
  padding-inline-start: 34px;
  text-align: center;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.category-chip:hover,
.category-chip.active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, white), #fff 68%),
    #fff;
}

.screen-brand-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.screen-brand-chip {
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.subcategory-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.section-chip {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
}

.section-chip:hover,
.section-chip.active {
  border-color: var(--primary);
  background: #ecfdf3;
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  align-items: stretch;
  gap: 18px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: 280px 1fr;
  height: 520px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d5e2eb;
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(23, 32, 51, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card.is-phone {
  grid-template-rows: 330px 1fr;
  height: 570px;
}

.product-card.is-accessory {
  grid-template-rows: 280px 1fr;
  height: 520px;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: #00a8df;
  box-shadow: 0 0 0 3px rgba(0, 168, 223, 0.13), 0 16px 30px rgba(23, 32, 51, 0.1);
  transform: translateY(-2px);
}

.product-card.has-offer {
  border-color: #f2c46d;
  background:
    linear-gradient(180deg, #fffaf0 0, #ffffff 54%),
    var(--surface);
  box-shadow: 0 12px 26px rgba(173, 116, 13, 0.13);
}

.product-card.has-offer:hover,
.product-card.has-offer:focus-visible {
  border-color: #d99b1f;
  box-shadow: 0 0 0 3px rgba(217, 155, 31, 0.16), 0 16px 30px rgba(23, 32, 51, 0.1);
}

.product-card.has-offer .product-media {
  background: linear-gradient(180deg, #fff4d8, #fffdf8);
  border-bottom-color: #f7d38a;
}

.offer-ribbon {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid #f7d38a;
  border-radius: 7px;
  background: #fff8e8;
  color: #8a5a00;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(138, 90, 0, 0.12);
  pointer-events: none;
}

.product-media {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 18px;
  background: #f7fafc;
  border-bottom: 1px solid var(--line);
}

.product-card.is-phone .product-media {
  padding: 14px 18px;
}

.product-card.is-accessory .product-media {
  padding: 14px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  background: #fff;
}

.product-card.is-phone .product-image {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.product-card.is-accessory .product-image {
  width: 100%;
  height: 100%;
}

.product-info {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 36px minmax(48px, auto) 24px 1fr;
  align-content: stretch;
  min-width: 0;
  min-height: 0;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.condition-new {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
}

.condition-used {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.category-badge {
  background: #f8fafc;
}

.product-version {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title {
  display: -webkit-box;
  min-width: 0;
  margin: 0;
  color: #111827;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  display: grid;
  align-self: end;
  gap: 6px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.price-discount-row {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.product-price .price-before {
  color: #64748b;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.78);
  text-decoration-thickness: 2.2px;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.discount-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5a00;
  font-size: 0.88rem;
  font-weight: 800;
}

.product-price .price-now {
  display: grid;
  width: 100%;
  min-height: 42px;
  place-items: center;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #068264, #026047);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(4, 120, 87, 0.16);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

.screen-list-stack {
  display: grid;
  gap: 16px;
}

.screen-list-card {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 2px solid #b8e6f2;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #effbff 0, #ffffff 120px),
    var(--surface);
  box-shadow: 0 14px 30px rgba(8, 145, 178, 0.10);
}

.screen-list-head {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding-bottom: 4px;
  text-align: center;
}

.screen-list-head strong {
  color: var(--primary-dark);
  font-size: 1.22rem;
  font-weight: 800;
}

.screen-brand-tables {
  display: grid;
  gap: 14px;
}

.screen-brand-table-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e7ef;
  border-radius: 8px;
  background: #fbfdff;
}

.screen-brand-table-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 4px 0;
  font-weight: 800;
}

.screen-brand-table-card header strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.screen-brand-table-card header span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef8fb;
  color: var(--muted);
  font-size: 0.82rem;
}

.screen-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.screen-products-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

.screen-products-table th,
.screen-products-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

.screen-products-table th {
  background: #eff8fb;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.screen-products-table tr:last-child td {
  border-bottom: 0;
}

.screen-price-cell {
  min-width: 118px;
  text-align: center;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.screen-price-cell.before {
  color: #64748b;
  text-decoration: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.78);
  text-decoration-thickness: 2.2px;
}

.screen-price-cell.before .empty-price-line {
  text-decoration: none;
}

.empty-price-line {
  display: inline-block;
  width: 66px;
  height: 3px;
  border-radius: 999px;
  background: #64748b;
  vertical-align: middle;
}

.maintenance-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  margin: 0 auto 22px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.maintenance-tabs button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.maintenance-tabs button.active {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 168, 223, 0.18);
}

.maintenance-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.maintenance-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 380px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.service-card-grid,
.maintenance-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card,
.maintenance-brand-card,
.repair-part-card {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.service-card {
  grid-template-columns: 48px 1fr;
  min-height: 88px;
  padding: 14px;
}

.service-card strong,
.maintenance-brand-card strong,
.repair-part-card strong {
  color: var(--text);
  font-weight: 900;
}

.service-icon,
.part-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #e8f8fd;
  color: var(--primary-dark);
}

.service-check {
  background: #e8fbef;
  color: #047857;
}

.service-icon svg,
.part-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.maintenance-brand-card {
  grid-template-columns: 54px 1fr;
  min-height: 88px;
  padding: 14px;
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
}

.maintenance-brand-card .brand-logo-box {
  width: 52px;
  height: 42px;
}

.repair-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.repair-part-card {
  grid-template-columns: 54px 1fr;
  padding: 18px;
}

.maintenance-coming-soon {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px 18px;
  border: 1px solid rgba(0, 168, 223, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 168, 223, 0.13), rgba(115, 87, 217, 0.18)),
    #ffffff;
  box-shadow: 0 18px 40px rgba(17, 20, 75, 0.10);
  text-align: center;
}

.maintenance-coming-soon span {
  color: var(--primary-dark);
  font-weight: 900;
}

.maintenance-coming-soon strong {
  color: #171a5e;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
}

.repair-part-card .soft-pill {
  justify-self: start;
}

.repair-part-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.part-price {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.part-price span {
  color: var(--muted);
  font-weight: 800;
}

.part-price strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.repair-admin-section {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.repair-settings-panel {
  display: grid;
  gap: 16px;
}

.repair-admin-box {
  display: grid;
  gap: 16px;
  width: 100%;
}

.repair-panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.repair-services-admin-table .repair-order-input {
  width: 110px;
  min-width: 90px;
  text-align: center;
}

.repair-coming-admin {
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 168, 223, 0.12), rgba(115, 87, 217, 0.18)),
    #fff;
}

.repair-coming-admin span {
  color: var(--primary-dark);
  font-weight: 900;
}

.repair-coming-admin strong {
  color: #171a5e;
  font-size: clamp(2rem, 7vw, 4.5rem);
  font-weight: 900;
}

.repair-admin-section h3 {
  margin: 0;
  color: var(--primary-dark);
}

.repair-brand-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.repair-brand-toggle {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.repair-brand-toggle input {
  order: 3;
}

.repair-brand-toggle .brand-logo-box {
  width: 52px;
  height: 38px;
}

.repair-parts-admin-table input,
.repair-parts-admin-table select {
  min-width: 130px;
}

.screen-form-summary {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.8;
}

.screen-form-summary ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-inline-start: 22px;
}

.screen-admin-table {
  min-width: 980px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p,
.muted {
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.55);
}

.product-modal {
  position: relative;
  display: grid;
  width: min(940px, 100%);
  max-height: min(860px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.icon-btn.close {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 260px;
  place-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: #edf1f6;
  border-bottom: 1px solid var(--line);
}

.modal-media.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-media img {
  width: min(320px, 100%);
  height: 260px;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff;
}

.modal-media.multi img {
  width: 100%;
  height: 270px;
}

.modal-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px;
}

.modal-summary {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(620px, 100%);
  margin-inline: auto;
  text-align: center;
}

.modal-pill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-content h2 {
  font-size: 2.15rem;
  line-height: 1.15;
}

.description {
  margin: 0;
  width: min(680px, 100%);
  margin-inline: auto;
  color: #344054;
  line-height: 1.8;
  text-align: center;
}

.modal-colors-line {
  margin: -4px auto 0;
  width: min(680px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #344054;
  text-align: center;
}

.modal-colors-line span {
  color: #667085;
  font-weight: 800;
}

.modal-colors-line strong {
  color: var(--ink);
  font-weight: 900;
}

.modal-specs {
  display: grid;
  gap: 18px;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.spec-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.spec-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.warranty-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 8px;
}

.warranty-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.warranty-card > span {
  color: var(--muted);
  font-weight: 800;
}

.warranty-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.warranty-card strong {
  color: var(--text);
  font-size: 1.05rem;
}

.spec-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: minmax(170px, 0.95fr) minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.spec-list div:last-child {
  border-bottom: 0;
}

.spec-list dt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.spec-list dt span:last-child,
.warranty-title span:last-child {
  min-width: 0;
}

.spec-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 1px solid #d8e0eb;
  border-radius: 7px;
  background: #fff;
  color: #334155;
}

.spec-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.spec-list dd {
  margin: 0;
  color: var(--text);
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 150px);
  place-items: center;
}

.admin-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.admin-shell-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.login-panel {
  width: min(420px, 100%);
  padding: 22px;
}

.login-panel h1 {
  margin-bottom: 18px;
  font-size: 2.8rem;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.admin-tabs button {
  min-width: min(240px, 100%);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  box-shadow: 0 4px 10px rgba(17, 24, 39, 0.04);
  font-weight: 800;
}

.admin-tabs button.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  box-shadow: none;
}

.product-admin-tabs {
  width: min(620px, 100%);
  margin-inline: auto;
}

.product-admin-tabs button {
  min-width: min(220px, 100%);
}

.admin-workspace {
  display: grid;
  gap: 16px;
}

.admin-brand-panel .panel-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.admin-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
}

.admin-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 12px;
}

.admin-brand-card {
  --accent: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-brand-card:hover,
.admin-brand-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  transform: translateY(-1px);
}

.admin-brand-card .brand-logo-box {
  width: 116px;
  height: 44px;
}

.admin-brand-card .brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-category-card {
  --accent: var(--primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 16px 18px;
  border: 2px solid #b8c4d4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, white), #fff 62%),
    #fff;
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.category-card-accent,
.category-mark {
  display: block;
  width: 8px;
  height: 44px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 10%, transparent);
}

.admin-category-card .category-card-accent {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-category-card strong {
  display: block;
  width: 100%;
  padding-inline: 14px 0;
  text-align: center;
  font-weight: 800;
  line-height: 1.35;
}

.admin-category-card:hover,
.admin-category-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translateY(-1px);
}

.admin-category-card.active {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 20%, white), color-mix(in srgb, var(--accent) 8%, white) 68%),
    #fff;
}

.admin-charger-panel {
  display: grid;
  gap: 14px;
}

.charger-brand-head {
  margin-top: 4px;
  margin-bottom: 0;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.admin-filter-card {
  min-height: 58px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-filter-card:hover,
.admin-filter-card.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 168, 223, 0.16), rgba(115, 87, 217, 0.14));
  color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(0, 168, 223, 0.18), 0 14px 26px rgba(0, 168, 223, 0.16);
  transform: translateY(-1px);
}

.screen-coverage-grid .admin-filter-card.active {
  border-color: #00a8df;
  background: linear-gradient(135deg, #00a8df, #7357d9);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 168, 223, 0.2), 0 16px 30px rgba(17, 20, 75, 0.18);
}

.charger-logo-text {
  display: grid;
  min-width: 92px;
  min-height: 38px;
  place-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}

.charger-table-card .charger-logo-text {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-reset-link {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.2;
}

.admin-reset-link:hover {
  text-decoration: underline;
}

.admin-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.admin-action-row button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
}

.admin-action-row button:hover,
.admin-action-row button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.admin-action-row button.danger-outline.active {
  border-color: var(--danger);
  background: var(--danger);
}

.admin-phone-search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.admin-phone-search label {
  margin: 0;
}

.admin-phone-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-accessory-stats {
  grid-template-columns: repeat(var(--stat-count, 4), minmax(0, 1fr));
}

.admin-stat-card {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-stat-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1), 0 12px 22px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.admin-stat-card button {
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.admin-stat-card button:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.admin-stat-card strong {
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-stat-card.stat-new {
  background: #f0fdf4;
}

.admin-stat-card.stat-used {
  background: #fff7ed;
}

.admin-stat-card.stat-available {
  background: #ecfdf3;
}

.admin-stat-card.stat-unavailable {
  background: #fef2f2;
}

.admin-stats-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.58);
}

.admin-stats-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: hidden;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: var(--shadow);
}

.admin-stats-modal > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-stats-modal h2 {
  margin: 0;
  font-size: 2rem;
}

.admin-stats-modal > header strong {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--primary-dark);
  font-weight: 800;
}

.admin-stats-close {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 1.4rem;
}

.admin-stats-modal-body {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding: 18px;
}

.compact-state {
  min-height: 150px;
}

.phone-editor {
  display: grid;
  gap: 16px;
}

.phone-editor-head,
.form-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.phone-editor-grid.single {
  grid-template-columns: 1fr;
}

.admin-form-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.form-card-title {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.screen-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.screen-form-grid .screen-phone-brand-field {
  grid-column: 1;
}

.screen-form-grid .screen-model-field {
  grid-column: 2 / 4;
}

.screen-form-grid .screen-coverage-field {
  grid-column: 1;
}

.screen-form-grid .screen-brand-field {
  grid-column: 2;
}

.screen-form-grid .screen-protection-field {
  grid-column: 3;
}

.form-grid.two > label,
.form-grid.two > .store-warranty-field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.form-grid.two > label > span,
.form-grid.two > .store-warranty-field > span {
  line-height: 1.25;
}

.full-line {
  grid-column: 1 / -1;
}

.price-discount-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-discount-fields > label {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.admin-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.admin-segmented button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-weight: 800;
}

.admin-segmented button.active.condition-new,
.admin-segmented button.active.availability-available {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.admin-segmented button.active.condition-used {
  border-color: #fdba74;
  background: #ffedd5;
  color: #9a3412;
}

.admin-segmented button.active.availability-unavailable {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.availability-available {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
}

.availability-unavailable {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.suffix-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.suffix-field .suffix-input,
.store-warranty-controls {
  min-height: 46px;
}

.suffix-input input {
  border: 0;
  box-shadow: none;
}

.suffix-input b {
  padding-inline: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.store-warranty-field {
  display: grid;
  gap: 8px;
}

.store-warranty-controls {
  display: grid;
  grid-template-columns: 1fr 104px;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.duration-controls {
  grid-template-columns: 1fr 104px;
}

.store-warranty-controls:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.store-warranty-controls input,
.store-warranty-controls select {
  min-height: 44px;
  border: 0;
  box-shadow: none;
}

.store-warranty-controls input {
  border-inline-start: 1px solid var(--line-strong);
}

.store-warranty-controls select {
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

.store-warranty-field[data-unit="Ù„Ø§ ÙŠÙˆØ¬Ø¯"] .store-warranty-controls {
  grid-template-columns: 1fr;
}

.store-warranty-field[data-unit="Ù„Ø§ ÙŠÙˆØ¬Ø¯"] .store-warranty-number {
  display: none;
}

.end-actions {
  justify-content: flex-end;
}

.primary-btn:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.brand-table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.04);
}

.brand-table-card header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 76px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--accent) 12%, white);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.brand-table-card header p,
.brand-table-card header strong {
  margin: 0;
}

.brand-table-card header p {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-table-card header strong {
  color: var(--muted);
}

.brand-table-card .brand-logo-box {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 90px;
  height: 36px;
}

.accessory-table-card .category-mark {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-products-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.quick-reference-table {
  table-layout: fixed;
  min-width: 720px;
}

.admin-products-table th,
.admin-products-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
}

.admin-products-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 0.9rem;
}

.admin-products-table .name-cell {
  min-width: 210px;
  text-align: right;
}

.quick-reference-table th,
.quick-reference-table td {
  text-align: center;
}

.quick-reference-table .name-cell {
  width: 42%;
  min-width: 0;
  text-align: right;
}

.quick-reference-table .brand-cell {
  width: 18%;
}

.phone-reference-table .brand-cell {
  width: 14%;
}

.phone-reference-table .name-cell {
  width: 28%;
}

.phone-reference-table .version-cell {
  width: 18%;
}

.phone-reference-table .status-cell {
  width: 12%;
}

.phone-reference-table .price-cell,
.phone-reference-table .old-price-cell {
  width: 14%;
}

.quick-reference-table .status-cell {
  width: 14%;
}

.quick-reference-table .price-cell,
.quick-reference-table .old-price-cell {
  width: 13%;
}

.quick-reference-table .action-cell {
  width: 12%;
}

.quick-reference-table .admin-product-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.admin-products-table .brand-cell,
.admin-products-table .status-cell,
.admin-products-table .price-cell,
.admin-products-table .old-price-cell,
.admin-products-table .action-cell {
  text-align: center;
  white-space: nowrap;
}

.admin-product-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: inherit;
}

.admin-product-link:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.empty-price {
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0;
}

.old-price-cell .empty-price {
  color: #64748b;
  font-size: 1.05rem;
}

.discount-old-price {
  color: #64748b;
  font-weight: 800;
  text-decoration-line: line-through;
  text-decoration-color: rgba(100, 116, 139, 0.78);
  text-decoration-thickness: 2.2px;
}

.admin-products-table td img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 6px;
  border-radius: 8px;
  background: #edf1f6;
}

.admin-panel:not(.login-panel) {
  padding: 18px;
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.settings-panel {
  overflow: hidden;
}

.settings-table {
  min-width: 760px;
}

.settings-table th {
  background: #eef8fb;
  color: var(--ink);
}

.settings-table td {
  background: #fff;
}

.settings-label-cell,
.settings-platform-cell,
.settings-save-cell,
.settings-toggle-cell {
  white-space: nowrap;
}

.settings-label-cell {
  width: 24%;
}

.settings-platform-cell .social-icon {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-inline-end: 12px;
  vertical-align: middle;
  border-radius: 12px;
}

.settings-platform-cell strong {
  vertical-align: middle;
}

.settings-platform-cell .social-icon svg {
  width: 28px;
  height: 28px;
}

.settings-save-cell,
.settings-toggle-cell {
  width: 130px;
  text-align: center;
}

.settings-save-cell .ghost-btn {
  min-width: 104px;
}

.settings-save-btn:not(:disabled) {
  border-color: #0891b2;
  background: linear-gradient(135deg, #06b6d4, #0f766e);
  color: #fff;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.24);
}

.settings-save-btn:not(:disabled):hover {
  border-color: #0f766e;
  background: linear-gradient(135deg, #0891b2, #047857);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.28);
}

.settings-save-btn:disabled,
.ghost-btn:disabled {
  border-color: #e2e8f0;
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
}

.field-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.working-hours-settings .panel-head {
  align-items: center;
}

.branch-admin-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.branch-admin-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.branch-admin-preview span {
  color: var(--muted);
  font-weight: 800;
}

.branch-admin-preview strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.branch-admin-preview.open {
  border-color: rgba(34, 197, 94, 0.28);
  background: #effdf4;
}

.branch-admin-preview.open strong {
  color: #047857;
}

.branch-admin-preview.closed {
  border-color: rgba(239, 68, 68, 0.28);
  background: #fff1f2;
}

.branch-admin-preview.closed strong {
  color: #be123c;
}

.branch-admin-preview.temporary {
  border-color: rgba(249, 115, 22, 0.34);
  background: #fff7ed;
}

.branch-admin-preview.temporary strong {
  color: #c2410c;
}

.branch-admin-controls button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.branch-mode-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 168, 223, 0.2);
}

.branch-status-btn.status-open.active {
  border-color: rgba(34, 197, 94, 0.45);
  background: #dcfce7;
  color: #047857;
}

.branch-status-btn.status-closed.active {
  border-color: rgba(239, 68, 68, 0.45);
  background: #ffe4e6;
  color: #be123c;
}

.branch-status-btn.status-temporary.active {
  border-color: rgba(249, 115, 22, 0.5);
  background: #ffedd5;
  color: #c2410c;
}

.working-hours-admin-table input[type="time"] {
  direction: ltr;
  min-height: 48px;
}

.switch-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.switch-control input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-panel label {
  display: block;
  margin-bottom: 14px;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 18px;
  z-index: 70;
  transform: translate(50%, 18px);
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (max-width: 860px) {
  .maintenance-overview,
  .repair-parts-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-panel {
    min-height: auto;
  }

  .repair-brand-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    gap: 10px;
    padding-block: 10px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand-logo-mark {
    width: 132px;
    height: 54px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
  }

  .site-nav a {
    flex: 1;
    min-width: 96px;
  }

  .home-hero {
    padding: 0;
    margin-top: -20px;
  }

  .home-caption {
    font-size: 1rem;
  }

  .hero-metrics {
    position: static;
    margin-top: 20px;
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card.wide {
    grid-column: auto;
  }

  .logo-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .filters,
  .accessory-filters,
  .phone-editor-grid,
  .product-modal {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .admin-action-row {
    grid-template-columns: 1fr;
  }

  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-phone-search {
    grid-template-columns: 1fr;
  }

  .admin-phone-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats-modal > header {
    align-items: flex-start;
    flex-direction: column;
    padding-inline-start: 64px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .price-discount-fields {
    grid-template-columns: 1fr;
  }

  .screen-form-grid .screen-phone-brand-field,
  .screen-form-grid .screen-model-field,
  .screen-form-grid .screen-coverage-field,
  .screen-form-grid .screen-brand-field,
  .screen-form-grid .screen-protection-field {
    grid-column: auto;
  }

  .modal-media {
    min-height: 260px;
    padding: 18px;
  }

  .modal-media.multi {
    grid-template-columns: 1fr;
  }

  .modal-media img,
  .modal-media.multi img {
    height: 220px;
  }

  .modal-content {
    padding: 22px 18px;
  }

  .modal-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .warranty-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    direction: ltr;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 10px;
    padding-top: 16px;
  }

  .app-shell > section {
    direction: rtl;
  }

  .site-header {
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 8px 10px 10px;
    overflow: hidden;
  }

  .brand {
    justify-content: center;
    overflow: hidden;
  }

  .site-nav a {
    min-width: 0;
    min-height: 36px;
    padding-inline: 4px;
    font-size: 0.72rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .maintenance-tabs {
    margin-bottom: 16px;
  }

  .maintenance-panel {
    padding: 14px;
  }

  .service-card-grid,
  .maintenance-brand-grid,
  .repair-brand-admin-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .maintenance-brand-card,
  .repair-part-card {
    padding: 12px;
  }

  .page-head {
    align-items: center;
    text-align: center;
  }

  .page-head,
  .filter-band,
  .product-grid,
  .screen-list-stack,
  .screen-list-card {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }

  .page-head > div,
  .page-head h1 {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .page-head h1 {
    overflow-wrap: anywhere;
  }

  .brand-copy small {
    display: none;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .login-panel h1,
  .modal-content h2,
  .admin-stats-modal h2 {
    font-size: 1.85rem;
  }

  .brand-logo-mark {
    width: 118px;
    height: 48px;
  }

  .home-hero {
    width: 100%;
    margin-inline: 0;
    margin-top: -16px;
    padding: 0;
  }

  .home-section {
    padding-top: 28px;
  }

  .home-logo {
    width: min(460px, 100%);
  }

  .home-actions {
    width: 100%;
  }

  .home-actions .primary-btn,
  .home-actions .ghost-btn {
    flex: 1;
    min-width: 138px;
  }

  .social-section {
    width: 100%;
    margin-inline: 0;
    padding: 30px 12px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .contact-card,
  .contact-card.wide {
    grid-column: auto;
    min-height: 82px;
    gap: 5px;
    padding: 10px 6px;
  }

  .contact-card span {
    font-size: 0.76rem;
  }

  .contact-card strong {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .contact-card.wide strong,
  .map-card strong {
    font-size: 0.72rem;
  }

  .branch-status-card {
    padding: 13px;
    text-align: center;
  }

  .branch-status-card span {
    font-size: 1.05rem;
  }

  .working-hours-table th,
  .working-hours-table td {
    padding: 10px 9px;
    font-size: 0.82rem;
  }

  .working-hours-table td:last-child {
    font-size: 0.78rem;
  }

  .working-hours-time {
    gap: 5px;
  }

  .working-hours-time span {
    padding: 7px 6px;
  }

  .working-hours-time small {
    font-size: 0.68rem;
  }

  .working-hours-time strong {
    font-size: 0.74rem;
  }

  .screen-list-card {
    padding: 10px;
  }

  .screen-brand-table-card {
    padding: 8px;
  }

  .screen-brand-table-card header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .screen-brand-table-card header span {
    flex: 0 0 auto;
    min-height: 24px;
    padding-inline: 8px;
    font-size: 0.68rem;
  }

  .screen-list-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
  }

  .screen-products-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .screen-table-wrap {
    overflow-x: hidden;
  }

  .screen-products-table th,
  .screen-products-table td {
    padding: 7px 3px;
    font-size: 0.62rem;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .screen-products-table th:nth-child(1),
  .screen-products-table td:nth-child(1) {
    width: 25%;
  }

  .screen-products-table th:nth-child(2),
  .screen-products-table td:nth-child(2),
  .screen-products-table th:nth-child(3),
  .screen-products-table td:nth-child(3) {
    width: 16%;
  }

  .screen-products-table th:nth-child(4),
  .screen-products-table td:nth-child(4) {
    width: 15%;
  }

  .screen-products-table th:nth-child(5),
  .screen-products-table td:nth-child(5),
  .screen-products-table th:nth-child(6),
  .screen-products-table td:nth-child(6) {
    width: 14%;
  }

  .screen-products-table .screen-price-cell {
    min-width: 0;
    font-size: 0.68rem;
  }

  .screen-products-table .soft-pill {
    min-height: 22px;
    padding: 0 5px;
    font-size: 0.58rem;
    white-space: normal;
  }

  .screen-products-table .empty-price-line {
    width: 28px;
    height: 2px;
  }

  .branch-admin-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .branch-admin-preview {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 11px;
  }

  .branch-admin-controls button {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .working-hours-settings .panel-head {
    align-items: stretch;
  }

  .social-card {
    min-height: 86px;
    padding: 12px;
  }

  .social-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  .social-icon.gmail svg {
    width: 40px;
    height: 40px;
  }

  .section-title h2 {
    font-size: clamp(1.45rem, 7vw, 1.75rem);
  }

  .filter-band,
  .admin-panel:not(.login-panel) {
    padding: 10px;
  }

  .filter-band,
  .filters,
  .accessory-filters,
  .logo-strip,
  .category-strip,
  .product-grid {
    width: 100%;
    min-width: 0;
  }

  .filter-band {
    overflow: hidden;
  }

  .filters,
  .accessory-filters,
  .category-strip {
    max-width: 100%;
    overflow: hidden;
  }

  .segmented button {
    min-width: 0;
    padding-inline: 4px;
  }

  .filters,
  .accessory-filters {
    direction: rtl;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.66fr) minmax(0, 0.66fr);
    gap: 6px;
  }

  .filters > *,
  .accessory-filters > *,
  .filter-actions > * {
    direction: rtl;
  }

  .filters fieldset {
    grid-column: 1 / -1;
  }

  .filter-search-field {
    grid-column: 1 / -1;
    min-width: 0;
    overflow: hidden;
  }

  .price-filter-pair {
    grid-column: 1 / 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
  }

  .price-filter-pair label {
    min-width: 0;
    overflow: hidden;
  }

  .filters > label:not(.filter-search-field),
  .accessory-filters > label:not(.filter-search-field) {
    min-width: 0;
    overflow: hidden;
  }

  .filters > label:not(.filter-search-field) span,
  .accessory-filters > label:not(.filter-search-field) span,
  .price-filter-pair label span,
  .filter-search-field span {
    font-size: 0.7rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filters > label:not(.filter-search-field) input,
  .accessory-filters > label:not(.filter-search-field) input,
  .price-filter-pair label input,
  .filter-search-field input {
    min-height: 38px;
    padding-inline: 6px;
    font-size: 0.82rem;
  }

  .filter-actions {
    display: contents;
  }

  .filter-actions .primary-btn,
  .filter-actions .ghost-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 4px;
    font-size: 0.72rem;
  }

  .logo-strip {
    direction: rtl;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding-bottom: 0;
  }

  .logo-chip {
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    width: 100%;
    gap: 5px;
    padding: 6px 4px;
  }

  .logo-chip .brand-logo-box {
    width: min(56px, 100%);
    height: 28px;
  }

  .logo-chip.all {
    gap: 4px;
  }

  .logo-chip.all span {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }

  .logo-chip.all strong {
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: normal;
  }

  .product-grid {
    direction: rtl;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    justify-items: stretch;
    overflow: hidden;
  }

  .category-strip {
    direction: ltr;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .screen-brand-strip {
    direction: ltr;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .screen-brand-chip {
    min-height: 48px;
    gap: 5px;
    padding: 6px 4px;
  }

  .screen-brand-chip .brand-logo-box {
    width: min(56px, 100%);
    height: 28px;
  }

  .subcategory-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .section-chip {
    min-width: 0;
    min-height: 38px;
    padding: 0 4px;
    font-size: 0.72rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .category-chip,
  .screen-brand-chip,
  .product-card {
    direction: rtl;
  }

  .category-chip {
    min-height: 58px;
    padding: 8px 10px;
  }

  .category-chip .category-icon {
    width: 34px;
    height: 46px;
  }

  .category-chip strong {
    padding-inline-start: 22px;
    font-size: 0.82rem;
  }

  .product-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-rows: 145px 1fr;
    height: 330px;
  }

  .product-card.is-phone {
    grid-template-rows: 210px 1fr;
    height: 420px;
  }

  .product-card.is-accessory {
    grid-template-rows: 170px 1fr;
    height: 370px;
  }

  .product-card > *,
  .product-media,
  .product-info,
  .product-price,
  .product-topline {
    min-width: 0;
    max-width: 100%;
  }

  .product-media {
    padding: 9px;
  }

  .product-card.is-phone .product-media {
    padding: 8px 10px;
  }

  .product-card.is-accessory .product-media {
    padding: 8px;
  }

  .product-info {
    grid-template-rows: auto minmax(34px, auto) minmax(16px, auto) 1fr;
    align-content: start;
    gap: 5px;
    padding: 8px;
  }

  .product-topline {
    align-self: start;
    gap: 4px;
    justify-content: center;
    overflow: hidden;
    white-space: normal;
    flex-wrap: wrap;
  }

  .soft-pill,
  .product-version {
    font-size: 0.6rem;
  }

  .soft-pill {
    min-height: 22px;
    max-width: 100%;
    padding: 3px 6px;
  }

  .product-title {
    font-size: 0.74rem;
    line-height: 1.3;
    min-height: 2.05em;
  }

  .product-version {
    line-height: 1.25;
  }

  .product-price {
    gap: 5px;
    align-self: end;
    margin-top: auto;
  }

  .product-price .price-before {
    font-size: 0.7rem;
  }

  .discount-badge {
    min-height: 20px;
    padding: 0 6px;
    font-size: 0.64rem;
  }

  .product-price .price-now {
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 0.82rem;
  }

  .offer-ribbon {
    top: 6px;
    inset-inline-start: 6px;
    min-height: 18px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 0.58rem;
    box-shadow: 0 4px 10px rgba(138, 90, 0, 0.10);
  }

  .admin-phone-stats {
    grid-template-columns: 1fr;
  }

  .modal-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .spec-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 7px 0;
    text-align: center;
  }

  .spec-panel h3 {
    font-size: 0.78rem;
    text-align: center;
  }

  .spec-list dt {
    justify-content: center;
    gap: 4px;
    font-size: 0.68rem;
  }

  .spec-list dd {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .warranty-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .warranty-title {
    justify-content: center;
    gap: 4px;
    font-size: 0.68rem;
  }

  .warranty-card {
    text-align: center;
  }

  .warranty-card strong {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .modal-media img,
  .modal-media.multi img {
    height: 190px;
  }

  .spec-panel,
  .warranty-card {
    padding: 9px 7px;
  }
}

@media (max-width: 380px) {
  .site-nav a {
    font-size: 0.8rem;
  }

  .product-card {
    width: 100%;
    grid-template-rows: 140px 1fr;
    height: 330px;
  }

  .product-card.is-phone {
    grid-template-rows: 190px 1fr;
    height: 400px;
  }

  .product-card.is-accessory {
    grid-template-rows: 160px 1fr;
    height: 370px;
  }
}

