:root {
  --purple: #5d19c8;
  --purple-dark: #35106b;
  --purple-soft: #efe7ff;
  --yellow: #ffd529;
  --green: #12a36d;
  --rose: #f04f78;
  --ink: #171223;
  --muted: #746d82;
  --line: #ece7f3;
  --bg: #faf8fd;
  --white: #fff;
  --shadow: 0 18px 45px rgba(35, 17, 73, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 213, 41, .22), transparent 26rem),
    linear-gradient(180deg, #fbf8ff 0%, #f7f3fb 45%, #fff 100%);
  color: var(--ink);
  direction: rtl;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(53, 16, 107, .94);
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1240px;
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  color: var(--white);
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--purple-dark);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.search button,
.btn {
  border: 0;
  background: var(--yellow);
  color: var(--purple-dark);
  padding: 13px 18px;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.search button { border-radius: 0; align-self: stretch; }
.btn:hover, .search button:hover, .add-btn:hover { transform: translateY(-1px); }
.btn.primary { box-shadow: 0 16px 34px rgba(255, 213, 41, .22); }
.btn.ghost { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.24); }

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-link {
  gap: 9px;
  background: var(--yellow);
  color: var(--purple-dark);
}

.cart-link strong {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--purple-dark);
  color: var(--yellow);
}

.admin-link {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(53,16,107,.98), rgba(93,25,200,.95)),
    #4d159f;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 74px;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  min-height: 430px;
  margin: auto;
  padding: 48px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 44px;
}

.eyebrow,
.section-kicker,
.product-category {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  font-size: 13px;
}

.hero .eyebrow {
  color: var(--yellow);
  margin-bottom: 12px;
}

.hero h1 {
  max-width: 650px;
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 590px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-weight: 800;
  font-size: 13px;
}

.hero-showcase {
  position: relative;
  min-height: 330px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 48%, rgba(0,0,0,.28)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1100&q=84") center/cover;
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}

.delivery-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 190px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.delivery-card strong { display: block; color: var(--purple); margin-bottom: 4px; }
.delivery-card span { color: var(--muted); font-size: 13px; }

.wrap {
  max-width: 1240px;
  margin: auto;
  padding: 0 20px 58px;
}

.category-strip {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 18px;
  margin-top: -34px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.category-pill {
  flex: 0 0 auto;
  padding: 13px 17px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--purple-dark);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(53, 16, 107, .08);
}

.category-pill.active,
.category-pill:hover {
  background: var(--yellow);
  border-color: var(--yellow);
}

.layout {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.panel {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(33, 17, 63, .06);
}

.category-panel {
  position: sticky;
  top: 96px;
}

.panel h3,
.section-title {
  margin: 0;
  font-size: 22px;
}

.cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding: 12px;
  border-radius: 8px;
  color: var(--purple-dark);
  font-weight: 900;
}

.cat::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--line);
}

.cat.active,
.cat:hover { background: var(--purple-soft); }
.cat.active::after, .cat:hover::after { background: var(--purple); }

.subcat {
  display: block;
  padding: 8px 20px 8px 8px;
  color: var(--muted);
  font-size: 14px;
}

.subcat:hover { color: var(--purple); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.product-count {
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 18px;
}

.product {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid rgba(236,231,243,.9);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(33, 17, 63, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product:hover {
  transform: translateY(-4px);
  border-color: rgba(93,25,200,.28);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  padding: 10px 10px 0;
}

.product-media img {
  width: 100%;
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border-radius: 8px;
  background: #eee;
}

.sale-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--rose);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
}

.product h3 {
  min-height: 44px;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.product p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.price {
  color: var(--purple);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.2;
}

.old-price {
  display: block;
  margin-top: 3px;
  color: #a29aaa;
  text-decoration: line-through;
  font-size: 12px;
}

.add-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(255, 213, 41, .26);
}

.flash {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eaf8ed;
  color: #176729;
  border: 1px solid #cdebd5;
}

.flash.error {
  background: #fff0f0;
  color: #9d2020;
  border-color: #ffd0d0;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(33, 17, 63, .06);
}

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

.table th {
  color: var(--purple-dark);
  background: #fbf9ff;
}

.field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.field:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(93,25,200,.1);
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.admin-side {
  background:
    linear-gradient(180deg, var(--purple-dark), #241044);
  color: var(--white);
  padding: 22px;
}

.admin-side h2 { color: var(--yellow); margin-top: 0; }

.admin-side a {
  display: block;
  padding: 12px;
  border-radius: 8px;
  color: var(--white);
  margin: 5px 0;
  font-weight: 800;
}

.admin-side a:hover { background: rgba(255,255,255,.12); }
.admin-main { padding: 26px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  background: var(--white);
  border-radius: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(33, 17, 63, .06);
}

.stat strong {
  display: block;
  font-size: 27px;
  color: var(--purple);
  margin-top: 8px;
}

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

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .brand { width: 100%; }
  .search { order: 3; width: 100%; flex-basis: 100%; }
  .hero-inner,
  .layout,
  .admin-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero-inner {
    min-height: 0;
    padding: 34px 18px 70px;
  }
  .hero h1 { font-size: 38px; }
  .hero-showcase { min-height: 230px; }
  .category-panel { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .table { display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  .nav-action { flex: 1; }
  .hero-inner { padding-top: 26px; gap: 22px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; line-height: 1.75; }
  .trust-row { display: none; }
  .hero-showcase { min-height: 168px; }
  .delivery-card { min-width: 160px; padding: 12px; }
  .hero-actions .btn { flex: 1; text-align: center; }
  .wrap { padding-inline: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 11px; }
  .product h3 { font-size: 14px; min-height: 38px; }
  .product p { display: none; }
  .price { font-size: 14px; }
  .add-btn { width: 36px; height: 36px; }
  .stats { grid-template-columns: 1fr; }
}

/* Exact Swift Basket reference layout */
.swift-hero {
  position: relative;
  overflow: hidden;
  min-height: 980px;
  padding: 48px 24px 56px;
  background:
    radial-gradient(circle at 5% 3%, rgba(255, 213, 41, .24), transparent 9rem),
    radial-gradient(circle at 92% 5%, rgba(93, 25, 200, .16), transparent 13rem),
    linear-gradient(180deg, #fff 0%, #fbfaff 68%, #fff 100%);
}

.swift-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 36px;
  color: var(--purple);
}

.swift-logo {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--purple);
  color: var(--yellow);
  font-size: 46px;
  font-weight: 900;
  box-shadow: 0 22px 45px rgba(93,25,200,.22);
}

.swift-brand strong {
  display: block;
  font-size: 54px;
  line-height: .9;
  font-weight: 900;
  letter-spacing: 0;
}

.swift-brand small {
  display: block;
  margin-top: 10px;
  color: #6b6081;
  font-weight: 900;
  font-size: 15px;
  text-align: center;
}

.swift-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.swift-decor.lemon {
  top: -28px;
  left: -24px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff7bc 0 18%, #ffd529 19% 32%, #fff7cf 33% 40%, #f1b819 41% 100%);
  box-shadow: inset 0 0 0 11px rgba(255,255,255,.62), 0 18px 36px rgba(255,213,41,.28);
}

.swift-decor.lemon::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 42px;
  width: 55px;
  height: 30px;
  border-radius: 70% 0 70% 0;
  background: #69bd45;
  transform: rotate(-18deg);
}

.swift-decor.basket {
  top: 34px;
  right: 48px;
  width: 155px;
  height: 120px;
  border-radius: 22px 22px 30px 30px;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(0,0,0,.08) 51%),
    var(--purple);
  box-shadow: 0 22px 40px rgba(93,25,200,.22);
}

.swift-decor.basket::before {
  content: "";
  position: absolute;
  left: 35px;
  top: -45px;
  width: 86px;
  height: 70px;
  border: 16px solid var(--purple);
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}

.swift-decor.basket::after {
  content: "⚡";
  position: absolute;
  inset: 28px 0 auto;
  text-align: center;
  color: var(--yellow);
  font-size: 54px;
  font-weight: 900;
}

.phone-stage {
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
  direction: ltr;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 38px 16px 18px;
  border: 10px solid #15121b;
  border-radius: 46px;
  background: #f7f6f8;
  box-shadow: 0 28px 60px rgba(19,15,27,.2);
  direction: rtl;
}

.phone-frame .phone-speaker {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 92px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #07070b;
}

.phone-status {
  position: absolute;
  top: 23px;
  right: 22px;
  z-index: 2;
  font-size: 12px;
  font-weight: 900;
}

.phone-frame .phone-head,
.phone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.phone-frame .phone-head span,
.phone-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.phone-frame .phone-head strong,
.phone-title strong {
  color: var(--ink);
  font-size: 16px;
}

.phone-frame .bell-dot {
  width: 32px;
  height: 32px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(43,27,74,.06);
}

.phone-frame .address-card,
.phone-frame .mini-search {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(43,27,74,.05);
}

.phone-frame .mini-search {
  color: #aaa1b6;
  font-size: 12px;
}

.phone-frame .offer-card {
  min-height: 116px;
  margin-top: 14px;
  border-radius: 16px;
}

.phone-frame .phone-section-title {
  margin-top: 16px;
}

.phone-frame .phone-cats {
  grid-template-columns: repeat(3, 1fr);
}

.phone-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.phone-products a {
  min-height: 128px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(43,27,74,.06);
  text-align: center;
}

.phone-products img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.phone-products strong {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.25;
}

.phone-products span {
  display: block;
  margin-top: 4px;
  color: var(--purple);
  font-size: 11px;
  font-weight: 900;
}

.cart-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 18px;
}

.cart-tabs span,
.cart-tabs strong {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 11px;
  background: #fff;
  font-size: 12px;
}

.cart-tabs strong {
  background: var(--purple);
  color: #fff;
}

.cart-row {
  display: grid;
  grid-template-columns: 62px 1fr 34px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(43,27,74,.055);
}

.cart-row img {
  width: 62px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-row strong,
.cart-row small,
.cart-row span {
  display: block;
}

.cart-row strong { font-size: 13px; }
.cart-row small { color: var(--muted); font-size: 11px; }
.cart-row span { color: var(--purple); font-size: 12px; font-weight: 900; margin-top: 3px; }
.cart-row em {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--purple-soft);
  color: var(--purple);
  font-style: normal;
  font-weight: 900;
}

.free-delivery {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #fff2ba;
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.cart-total {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 13px;
  border-radius: 17px;
  background: var(--purple);
  color: #fff;
}

.cart-total strong {
  color: var(--yellow);
}

.cart-total a {
  grid-row: span 2;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-weight: 900;
}

.track-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6b22d7, #45138f);
  color: #fff;
}

.track-card span { display: block; opacity: .84; }
.track-card strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 27px;
}

.courier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 9px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.courier-row em {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f3c08a;
}

.courier-row b {
  margin-inline-start: auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  margin: 18px 8px;
}

.steps span,
.steps strong,
.steps i {
  height: 8px;
  border-radius: 99px;
  background: var(--purple);
}

.steps i {
  background: #e5e0eb;
}

.map-card {
  position: relative;
  min-height: 155px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, transparent 48%, rgba(93,25,200,.16) 49% 52%, transparent 53%),
    linear-gradient(45deg, #f4f4f5 25%, transparent 25% 50%, #f4f4f5 50% 75%, transparent 75%),
    #fff;
  background-size: auto, 36px 36px, auto;
  border: 1px solid var(--line);
}

.map-card span,
.map-card b {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
}

.map-card span { left: 62px; top: 75px; }
.map-card b { right: 35px; top: 34px; }

.order-details {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
}

.order-details > strong {
  display: block;
  margin-bottom: 8px;
}

.order-details p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.order-details b {
  color: var(--ink);
}

.call-btn {
  display: block;
  margin-top: 13px;
  padding: 14px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-weight: 900;
  text-align: center;
}

.feature-row {
  max-width: 1120px;
  margin: 34px auto 28px;
}

@media (max-width: 1120px) {
  .phone-stage {
    gap: 18px;
  }
  .phone-frame {
    border-width: 8px;
    border-radius: 38px;
    padding-inline: 12px;
  }
}

@media (max-width: 900px) {
  .swift-hero {
    min-height: 0;
    padding: 34px 16px 42px;
  }
  .swift-decor.basket {
    display: none;
  }
  .swift-brand {
    margin-bottom: 24px;
  }
  .swift-logo {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    font-size: 34px;
  }
  .swift-brand strong {
    font-size: 34px;
  }
  .phone-stage {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 22px;
    scroll-snap-type: x mandatory;
  }
  .phone-stage::-webkit-scrollbar {
    display: none;
  }
  .phone-frame {
    flex: 0 0 330px;
    min-height: 650px;
    scroll-snap-align: center;
  }
}

@media (max-width: 560px) {
  .swift-hero {
    padding-inline: 12px;
  }
  .swift-decor.lemon {
    width: 94px;
    height: 94px;
  }
  .swift-brand {
    justify-content: flex-start;
    padding-inline: 8px;
  }
  .swift-brand strong {
    font-size: 30px;
  }
  .swift-brand small {
    text-align: right;
    font-size: 12px;
  }
  .phone-frame {
    flex-basis: 318px;
    min-height: 620px;
  }
  .feature-row {
    margin-top: 22px;
  }
}

/* Mobile app homepage matching the provided reference */
.home-app-body {
  min-height: 100vh;
  background: #f8f6fc;
}

.home-app-body .topbar {
  display: none;
}

.app-home-screen {
  position: relative;
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 34px 42px 126px;
  background:
    radial-gradient(circle at top left, rgba(93, 25, 200, .05), transparent 16rem),
    #f8f6fc;
  color: #171320;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  direction: ltr;
}

.app-header h1,
.app-header p {
  margin: 0;
  text-align: right;
  direction: rtl;
}

.app-header h1 {
  font-size: 26px;
  font-weight: 900;
}

.app-header p {
  margin-top: 6px;
  font-size: 22px;
  color: #2c2635;
}

.app-bell {
  position: relative;
  width: 42px;
  height: 42px;
  margin-top: 4px;
}

.app-bell::before {
  content: "♢";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  border: 3px solid #22202b;
  border-top-color: transparent;
  border-radius: 18px 18px 13px 13px;
}

.app-bell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--purple);
}

.location-card,
.app-search-card {
  min-height: 78px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #eeeaf4;
  box-shadow: 0 10px 22px rgba(36, 27, 62, .045);
}

.location-card {
  direction: ltr;
}

.location-card > div {
  direction: rtl;
}

.location-card strong,
.location-card small {
  display: block;
  text-align: right;
}

.location-card strong {
  font-size: 21px;
  font-weight: 900;
}

.location-card small {
  margin-top: 4px;
  color: #938b9f;
  font-size: 13px;
}

.chevron {
  font-size: 28px;
  color: #171320;
}

.home-icon {
  width: 34px;
  height: 34px;
  position: relative;
}

.home-icon::before {
  content: "";
  position: absolute;
  inset: 9px 4px 3px;
  border: 3px solid #22202b;
  border-top: 0;
  border-radius: 4px;
}

.home-icon::after {
  content: "";
  position: absolute;
  inset: 2px 2px auto;
  width: 24px;
  height: 24px;
  border-top: 3px solid #22202b;
  border-left: 3px solid #22202b;
  transform: rotate(45deg);
}

.app-search-card {
  grid-template-columns: 42px 1fr;
  min-height: 72px;
  margin-top: 16px;
  direction: ltr;
}

.app-search-card input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #4d465b;
  font-size: 17px;
  text-align: right;
  direction: rtl;
}

.app-search-card button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.app-search-card button::before {
  content: "";
  position: absolute;
  inset: 5px 8px 9px 5px;
  border: 3px solid #171320;
  border-radius: 50%;
}

.app-search-card button::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 3px;
  right: 3px;
  bottom: 6px;
  border-radius: 99px;
  background: #171320;
  transform: rotate(45deg);
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  margin-top: 22px;
  padding: 34px 42px;
  display: grid;
  grid-template-columns: 1fr 230px;
  align-items: center;
  gap: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 213, 41, .22), transparent 12rem),
    linear-gradient(135deg, #7430dc, #451493);
  color: #fff;
  box-shadow: 0 14px 28px rgba(93, 25, 200, .22);
  direction: ltr;
}

.promo-card > div {
  direction: rtl;
}

.promo-card span {
  display: block;
  font-size: 31px;
  line-height: 1.35;
  font-weight: 500;
}

.promo-card strong {
  display: block;
  margin-top: 12px;
  font-size: 39px;
  line-height: 1.15;
  font-weight: 900;
}

.promo-card b {
  color: var(--yellow);
  font-size: 43px;
}

.promo-card a {
  display: inline-grid;
  place-items: center;
  min-width: 138px;
  min-height: 56px;
  margin-top: 30px;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-weight: 900;
  font-size: 18px;
}

.promo-basket {
  position: relative;
  width: 210px;
  height: 150px;
  border-radius: 24px 24px 32px 32px;
  background: #6b24cf;
  box-shadow: inset 0 -24px rgba(42, 17, 98, .25), 0 18px 28px rgba(0,0,0,.16);
}

.promo-basket::before {
  content: "";
  position: absolute;
  left: 55px;
  top: -42px;
  width: 88px;
  height: 76px;
  border: 16px solid #8145e4;
  border-bottom: 0;
  border-radius: 70px 70px 0 0;
}

.promo-basket::after {
  content: "🍅🥬🥕";
  position: absolute;
  top: -26px;
  left: 15px;
  right: 15px;
  text-align: center;
  font-size: 44px;
  filter: saturate(1.15);
}

.promo-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.promo-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}

.promo-dots i:first-child {
  background: #fff;
}

.app-block {
  margin-top: 28px;
}

.app-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-section-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.app-section-head a {
  color: var(--purple);
  font-size: 17px;
  font-weight: 800;
}

.app-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
  direction: ltr;
}

.app-category-card {
  min-height: 148px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 13px 8px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(36, 27, 62, .055);
  text-align: center;
  direction: rtl;
}

.app-category-card img {
  width: 76px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
}

.app-category-card span {
  min-height: 34px;
  color: #2a2532;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.featured-products {
  margin-top: 34px;
}

.app-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  direction: ltr;
}

.app-product-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(36, 27, 62, .055);
  direction: rtl;
}

.app-product-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

.app-product-card h3 {
  min-height: 42px;
  margin: 13px 0 0;
  color: #1f1b28;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.app-product-card p {
  margin: 4px 0 8px;
  color: #958da1;
  font-size: 12px;
}

.app-product-card form {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.app-product-card strong {
  color: #1f1b28;
  font-size: 17px;
  font-weight: 900;
}

.app-product-card small {
  color: #7b7288;
  font-size: 10px;
}

.app-product-card button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.delivery-strip {
  min-height: 68px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 16px;
  background: #f1ebff;
  color: var(--purple);
  text-align: right;
}

.delivery-strip span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}

.delivery-strip span::before {
  content: "🛵";
  font-size: 42px;
}

.delivery-strip strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.delivery-strip p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #594b78;
}

.app-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(calc(100% - 84px), 636px);
  min-height: 86px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(36, 27, 62, .12);
}

.app-bottom-nav a {
  position: relative;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: #837b8d;
  font-size: 12px;
  font-weight: 900;
}

.app-bottom-nav i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 21px;
  line-height: 1;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.app-bottom-nav a.active {
  color: var(--purple);
}

.app-bottom-nav a.active i {
  background: #f0e8ff;
  transform: translateY(-1px);
}

.app-bottom-nav a.active::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 62px;
  height: 4px;
  border-radius: 99px;
  background: var(--purple);
}


.app-toast {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #eaf8ed;
  color: #176729;
}

.app-toast.error {
  background: #fff0f0;
  color: #9d2020;
}

@media (max-width: 760px) {
  .app-home-screen {
    width: 100%;
    padding: 28px 38px 116px;
  }
  .app-bottom-nav {
    width: min(calc(100% - 76px), 636px);
  }
}

@media (max-width: 560px) {
  .app-home-screen {
    padding: 28px 18px 108px;
  }
  .app-header h1 {
    font-size: 22px;
  }
  .app-header p {
    font-size: 19px;
  }
  .location-card {
    min-height: 72px;
  }
  .promo-card {
    min-height: 188px;
    grid-template-columns: 1fr 124px;
    padding: 24px 24px;
  }
  .promo-card span {
    font-size: 24px;
  }
  .promo-card strong {
    font-size: 29px;
  }
  .promo-card b {
    font-size: 33px;
  }
  .promo-card a {
    min-width: 112px;
    min-height: 46px;
    font-size: 15px;
  }
  .promo-basket {
    width: 124px;
    height: 96px;
  }
  .promo-basket::before {
    left: 33px;
    top: -28px;
    width: 48px;
    height: 45px;
    border-width: 10px;
  }
  .promo-basket::after {
    font-size: 28px;
  }
  .app-category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }
  .app-category-card {
    min-height: 112px;
    padding: 9px 5px;
  }
  .app-category-card img {
    width: 55px;
    height: 52px;
  }
  .app-category-card span {
    font-size: 10px;
  }
  .app-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .app-product-card {
    min-height: 198px;
    padding: 8px;
  }
  .app-product-card img {
    height: 76px;
  }
  .app-product-card h3 {
    font-size: 12px;
    min-height: 34px;
  }
  .app-product-card p {
    font-size: 10px;
  }
  .app-product-card strong {
    font-size: 13px;
  }
  .app-product-card button {
    width: 31px;
    height: 31px;
  }
  .delivery-strip strong {
    font-size: 15px;
  }
  .app-bottom-nav {
    min-height: 78px;
    bottom: 10px;
    width: calc(100% - 36px);
  }
  .app-bottom-nav a {
    font-size: 10px;
  }
}

@media (max-width: 420px) {
  .app-home-screen {
    padding-inline: 14px;
  }
  .app-category-grid,
  .app-product-grid {
    overflow-x: auto;
    display: flex;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }
  .app-category-grid::-webkit-scrollbar,
  .app-product-grid::-webkit-scrollbar {
    display: none;
  }
  .app-category-card {
    flex: 0 0 93px;
    scroll-snap-align: start;
  }
  .app-product-card {
    flex: 0 0 118px;
    scroll-snap-align: start;
  }
}

.app-page-screen {
  padding-top: 28px;
}

.app-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.app-page-title > a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--purple);
  box-shadow: 0 10px 22px rgba(36, 27, 62, .055);
}

.app-page-title h1,
.app-page-title p {
  margin: 0;
  text-align: right;
}

.app-page-title h1 {
  font-size: 27px;
  font-weight: 900;
}

.app-page-title p {
  margin-top: 5px;
  color: #8a8295;
  font-size: 14px;
}

.app-category-list,
.app-offers-list {
  display: grid;
  gap: 14px;
}

.app-category-row,
.offer-row,
.customer-form {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(36, 27, 62, .055);
}

.app-category-row {
  padding: 12px;
}

.category-main-link {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  align-items: center;
  gap: 12px;
}

.category-main-link span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f0e8ff;
  color: var(--purple);
  font-weight: 900;
}

.category-main-link strong {
  font-size: 18px;
}

.category-main-link i {
  color: #9c95a8;
}

.subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-right: 58px;
}

.subcat-chips a {
  padding: 8px 11px;
  border-radius: 12px;
  background: #f8f5fc;
  color: #5a5167;
  font-size: 12px;
  font-weight: 900;
}

.offers-banner {
  min-height: 118px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7430dc, #451493);
  color: #fff;
  box-shadow: 0 14px 28px rgba(93, 25, 200, .22);
}

.offers-banner span {
  display: block;
  color: var(--yellow);
  font-weight: 900;
}

.offers-banner strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.offers-banner i {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  color: var(--yellow);
  font-size: 27px;
}

.offer-row {
  display: grid;
  grid-template-columns: 78px 1fr 42px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.offer-row img {
  width: 78px;
  height: 70px;
  object-fit: cover;
  border-radius: 16px;
}

.offer-row strong,
.offer-row span,
.offer-row p {
  display: block;
  margin: 0;
}

.offer-row strong {
  font-size: 15px;
  font-weight: 900;
}

.offer-row span {
  margin-top: 3px;
  color: #938b9f;
  font-size: 12px;
}

.offer-row p {
  margin-top: 6px;
  color: var(--purple);
  font-weight: 900;
}

.offer-row del {
  margin-right: 7px;
  color: #aaa2b4;
  font-size: 12px;
}

.offer-row button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}

.customer-form {
  display: grid;
  gap: 15px;
  padding: 18px;
}

.customer-form label {
  display: grid;
  gap: 8px;
}

.customer-form span {
  color: #3b3348;
  font-weight: 900;
}

.customer-form input,
.customer-form textarea {
  width: 100%;
  border: 1px solid #eeeaf4;
  border-radius: 15px;
  background: #fdfcff;
  padding: 14px;
  color: #171320;
  outline: none;
  resize: vertical;
}

.customer-form input:focus,
.customer-form textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(93,25,200,.1);
}

.customer-form button {
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 560px) {
  .app-page-title h1 {
    font-size: 23px;
  }
  .offer-row {
    grid-template-columns: 68px 1fr 38px;
  }
  .offer-row img {
    width: 68px;
    height: 62px;
  }
}

/* Swift Basket inspired app interface */
body {
  background:
    radial-gradient(circle at 8% 4%, rgba(255, 213, 41, .22), transparent 9rem),
    radial-gradient(circle at 96% 6%, rgba(93, 25, 200, .12), transparent 14rem),
    #fbfafc;
}

.app-topbar {
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-bottom: 1px solid rgba(92, 79, 116, .08);
  box-shadow: 0 10px 34px rgba(43, 27, 74, .08);
}

.app-topbar .brand {
  color: var(--purple-dark);
}

.brand span:last-child {
  display: grid;
  gap: 1px;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.app-topbar .search {
  background: #f5f2f8;
  box-shadow: none;
  border: 1px solid var(--line);
}

.app-topbar .admin-link {
  background: #f4f0fb;
  color: var(--purple-dark);
}

.app-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 213, 41, .34), transparent 12rem),
    linear-gradient(135deg, #fff 0%, #fbf8ff 50%, #f4efff 100%);
  color: var(--ink);
}

.app-hero::after {
  display: none;
}

.app-hero-inner {
  min-height: 520px;
  grid-template-columns: minmax(0, .95fr) 390px;
  padding: 54px 20px 44px;
}

.app-hero-copy {
  align-self: center;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-logo {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: var(--purple);
  color: var(--yellow);
  font-size: 38px;
  font-weight: 900;
  box-shadow: 0 20px 44px rgba(93, 25, 200, .24);
}

.hero-brand strong {
  display: block;
  color: var(--purple);
  font-size: 42px;
  line-height: .95;
  font-weight: 900;
}

.hero-brand small {
  color: var(--purple-dark);
  font-weight: 900;
}

.app-hero .eyebrow {
  display: block;
  color: var(--purple);
  margin-bottom: 10px;
}

.app-hero h1 {
  color: var(--purple-dark);
  max-width: 590px;
  font-size: 54px;
}

.app-hero p {
  color: #625a72;
  max-width: 560px;
}

.ghost-light {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--purple-dark);
  box-shadow: 0 12px 28px rgba(43, 27, 74, .08);
}

.phone-preview {
  position: relative;
  width: min(100%, 390px);
  min-height: 690px;
  margin-inline-start: auto;
  padding: 34px 18px 18px;
  border: 11px solid #15121b;
  border-radius: 48px;
  background: #f8f7fa;
  box-shadow: 0 28px 70px rgba(20, 14, 32, .22);
}

.phone-speaker {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 96px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0a10;
}

.phone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.phone-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.phone-head strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
}

.bell-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
}

.address-card,
.mini-search {
  margin-top: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(43, 27, 74, .06);
}

.address-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.address-card strong { font-size: 13px; }
.mini-search { color: #aaa1b6; font-size: 13px; }

.offer-card {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  min-height: 118px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6a22d6, #45138f);
  color: #fff;
  overflow: hidden;
}

.offer-card span {
  display: block;
  opacity: .78;
  font-size: 13px;
}

.offer-card strong {
  display: block;
  margin-top: 5px;
  color: var(--yellow);
  font-size: 24px;
}

.offer-card em {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-style: normal;
  font-weight: 900;
  font-size: 12px;
}

.basket-visual {
  width: 86px;
  height: 86px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--yellow), #fff4a5);
  transform: rotate(-7deg);
  box-shadow: inset 0 -14px 0 rgba(93,25,200,.22);
}

.phone-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 13px;
}

.phone-section-title strong { font-size: 15px; }
.phone-section-title span { color: var(--purple); font-weight: 900; }

.phone-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 10px;
}

.phone-cats a {
  min-height: 76px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px 6px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 20px rgba(43, 27, 74, .06);
}

.phone-cats span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  font-weight: 900;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.feature-row div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(43, 27, 74, .06);
}

.feature-row span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-weight: 900;
}

.feature-row strong {
  color: var(--purple-dark);
  font-size: 15px;
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.category-strip {
  margin-top: 0;
  padding-bottom: 20px;
}

.products-panel {
  min-width: 0;
}

.category-panel {
  border-radius: 18px;
}

.category-pill,
.panel,
.product,
.product-media img,
.delivery-card,
.btn,
.add-btn,
.field,
.table,
.stat,
.flash {
  border-radius: 16px;
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.product {
  box-shadow: 0 12px 26px rgba(43, 27, 74, .06);
}

.product-media {
  padding: 12px 12px 0;
}

.product-media img {
  aspect-ratio: 1 / .9;
}

.product-category {
  color: var(--purple);
  font-size: 11px;
}

.product h3 {
  min-height: 38px;
  font-size: 15px;
}

.product p {
  font-size: 12px;
}

.product-bottom {
  margin-top: 4px;
}

.add-btn {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 10px 22px rgba(93, 25, 200, .22);
}

@media (max-width: 980px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .phone-preview {
    margin: 0 auto;
  }
  .feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-topbar .brand {
    justify-content: center;
  }
  .app-hero-inner {
    padding-top: 24px;
  }
  .hero-brand {
    margin-bottom: 14px;
  }
  .hero-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 28px;
  }
  .hero-brand strong {
    font-size: 30px;
  }
  .app-hero h1 {
    font-size: 31px;
  }
  .phone-preview {
    width: 100%;
    min-height: auto;
    max-height: 430px;
    overflow: hidden;
    border-width: 8px;
    border-radius: 34px;
    padding: 28px 12px 14px;
  }
  .phone-speaker {
    top: 10px;
    width: 80px;
    height: 20px;
  }
  .offer-card {
    min-height: 100px;
  }
  .feature-row {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
  .category-strip {
    margin-top: 6px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phone-cats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Polished mobile category and offer pages */
.categories-hero-card,
.pretty-offers-banner {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 16px 34px rgba(79, 22, 178, .22);
}

.categories-hero-card {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 213, 41, .34), transparent 34%),
    linear-gradient(135deg, #7a32e6 0%, #5420ba 58%, #35117f 100%);
}

.pretty-offers-banner {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 213, 41, .4), transparent 28%),
    linear-gradient(135deg, #6d29d3 0%, #421294 100%);
}

.categories-hero-card::after,
.pretty-offers-banner::after {
  content: "";
  position: absolute;
  inset-inline-start: -38px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .11);
}

.categories-hero-card > div,
.pretty-offers-banner > div {
  position: relative;
  z-index: 1;
}

.categories-hero-card span,
.pretty-offers-banner span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
}

.categories-hero-card strong,
.pretty-offers-banner strong {
  display: block;
  max-width: 260px;
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 900;
}

.categories-hero-card p,
.pretty-offers-banner p {
  max-width: 260px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.7;
}

.categories-hero-card > i,
.pretty-offers-banner > i {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-size: 31px;
  box-shadow: inset 0 -5px 0 rgba(62, 33, 112, .13), 0 12px 24px rgba(0, 0, 0, .12);
}

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

.pretty-category-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(94, 78, 126, .07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(36, 27, 62, .07);
}

.pretty-category-main {
  display: grid;
  grid-template-columns: 54px 1fr 16px;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pretty-category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(255, 213, 41, .88), rgba(255, 183, 29, .95));
  color: #4b179c;
  font-size: 23px;
  box-shadow: 0 10px 20px rgba(255, 194, 36, .25);
}

.pretty-category-photo {
  width: 54px;
  height: 54px;
  overflow: hidden;
  display: block;
  border-radius: 19px;
  background: #f7f4fb;
  box-shadow: 0 10px 20px rgba(54, 32, 86, .11);
}

.pretty-category-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.pretty-category-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pretty-category-copy strong {
  overflow: hidden;
  color: #252031;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pretty-category-copy small {
  color: #968da3;
  font-size: 11px;
  font-weight: 800;
}

.pretty-category-arrow {
  color: #b2aabc;
  font-size: 12px;
}

.pretty-subcat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pretty-subcat-chips a {
  max-width: 100%;
  overflow: hidden;
  padding: 7px 9px;
  border-radius: 999px;
  background: #f5f0ff;
  color: #5d19c8;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.pretty-offers-grid .offer-row {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(94, 78, 126, .07);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(36, 27, 62, .07);
}

.offer-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  height: 128px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f7f4fb 100%);
}

.pretty-offers-grid .offer-row img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  border-radius: 0;
}

.offer-discount-badge {
  position: absolute;
  top: 9px;
  inset-inline-start: 9px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 15px rgba(255, 202, 37, .26);
}

.offer-card-copy {
  min-height: 76px;
  display: grid;
  gap: 4px;
}

.pretty-offers-grid .offer-row span {
  margin: 0;
  color: #958b9f;
  font-size: 11px;
  font-weight: 800;
}

.pretty-offers-grid .offer-row strong {
  min-height: 38px;
  color: #252031;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 900;
}

.pretty-offers-grid .offer-row p {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  color: var(--purple);
  font-size: 15px;
  font-weight: 900;
}

.pretty-offers-grid .offer-row del {
  margin: 0;
  color: #aaa2b4;
  font-size: 11px;
  font-weight: 800;
}

.pretty-offers-grid .offer-row form {
  margin-top: auto;
}

.pretty-offers-grid .offer-row button {
  width: 100%;
  height: 43px;
  border-radius: 15px;
  background: linear-gradient(135deg, #6b2bd8, #4a159e);
  color: #fff;
  box-shadow: 0 10px 20px rgba(93, 25, 200, .18);
}

@media (max-width: 430px) {
  .categories-hero-card,
  .pretty-offers-banner {
    min-height: 122px;
    padding: 18px;
    border-radius: 22px;
  }

  .categories-hero-card strong,
  .pretty-offers-banner strong {
    max-width: 210px;
    font-size: 19px;
  }

  .categories-hero-card p,
  .pretty-offers-banner p {
    max-width: 205px;
    font-size: 12px;
  }

  .categories-hero-card > i,
  .pretty-offers-banner > i {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 20px;
    font-size: 26px;
  }

  .pretty-category-grid,
  .pretty-offers-grid {
    gap: 10px;
  }

  .pretty-category-card {
    min-height: 158px;
    padding: 11px;
    border-radius: 20px;
  }

  .pretty-category-main {
    grid-template-columns: 46px 1fr 12px;
    gap: 8px;
  }

  .pretty-category-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    font-size: 20px;
  }

  .pretty-category-photo {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .offer-image-wrap {
    height: 116px;
  }

  .pretty-offers-grid .offer-row img {
    height: 100px;
  }
}
