/* ==========================================================================
   الوسيط — Unified theme (design tokens + shared components)
   Loaded by every page. Tokens here override the legacy palette so the whole
   app shares one professional look.
   ========================================================================== */

:root {
  /* Brand */
  --brand: #131921;          /* deep ink — header/dark surfaces */
  --brand-2: #1f2a3a;
  --accent: #fca311;         /* warm gold — primary actions */
  --accent-ink: #131921;     /* text on accent */
  --accent-soft: #fff4de;

  /* Neutrals */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --border: #e6e8ec;
  --text: #1a1d24;
  --muted: #6b7280;

  /* Semantic */
  --success: #1a7f37;
  --danger: #c0392b;
  --info: #2456c8;
  --warn: #9a6a00;

  /* Shape */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 14px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 10px 34px rgba(16, 24, 40, 0.14);

  /* Legacy aliases so existing style.css keeps working with the new theme */
  --noon-yellow: var(--accent);
  --noon-dark: var(--brand);
  --noon-gray: var(--surface-2);
  --noon-border: var(--border);
  --noon-green: var(--success);
  --noon-red: var(--danger);
  --noon-muted: var(--muted);
  --noon-primary: var(--accent);
}

/* ---- Shared components for standalone pages (login / register / dashboard) --- */

.ui-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.ui-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ui-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 26px;
  width: 380px;
  max-width: 92vw;
}

.ui-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 6px;
}

.ui-logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.ui-logo-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.ui-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 6px 0 2px;
  text-align: center;
}

.ui-sub {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.5;
}

.ui-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 12px 0 5px;
}

.ui-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}

.ui-input:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

.ui-hint {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 4px 0 0;
}

.ui-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}

.ui-btn:hover {
  filter: brightness(0.96);
}

.ui-error {
  background: #fdecec;
  color: var(--danger);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 14px;
}

.ui-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.ui-foot a {
  color: var(--info);
  font-weight: 700;
  text-decoration: none;
}

/* Topbar used by the customer dashboard */
.ui-topbar {
  background: var(--brand);
  color: #fff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ui-topbar .who {
  font-size: 0.8rem;
  color: #b9bcc2;
}

.ui-logout {
  color: #fff;
  background: var(--danger);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
}

/* -------------------------------------------------------------------------
   Compact admin header: one thin top strip (brand + status + cart + logout)
   and a single navigation row underneath.
   ------------------------------------------------------------------------- */
.header {
  background: var(--brand);
  color: #fff;
  padding: 0;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  flex-wrap: wrap;
}

.brand-logo {
  width: 40px;
  height: 40px;
}

.brand h1 {
  font-size: 1.15rem;
}

.brand-role {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.admin-who {
  color: #9aa0a8;
  font-size: 0.76rem;
}

.btn-logout-mini {
  color: #ff9a8c;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(224, 69, 69, 0.5);
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
}

.btn-logout-mini:hover {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
}

/* Shein session status badge */
.session-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cfd3d8;
}

.session-badge.ok {
  color: #7ee0a1;
  border-color: rgba(126, 224, 161, 0.4);
  background: rgba(126, 224, 161, 0.1);
}

.session-badge.off {
  color: #ff9a8c;
  border-color: rgba(255, 120, 100, 0.4);
  background: rgba(255, 120, 100, 0.1);
}

/* Cart pill with merged total */
.cart-toggle {
  padding: 0.42rem 0.85rem;
  gap: 0.4rem;
}

.cart-toggle .cart-total {
  font-size: 0.9rem;
}

.cart-toggle .cart-total.is-empty {
  display: none;
}

.stats-hidden {
  display: none;
}

/* Navigation row */
.main-nav {
  display: flex;
  gap: 0.35rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav .tab {
  background: transparent;
  color: #cfd3d8;
  border: 0;
  padding: 0.5rem 0.9rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
  cursor: pointer;
  font-family: inherit;
}

.main-nav .tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.main-nav .tab.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.main-nav .tab-admin {
  margin-inline-start: auto;
}

.main-nav .tab-admin.active {
  background: var(--danger);
  color: #fff;
}

.inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   ShopLink public theme
   Scoped to the new home page so /classic keeps the legacy admin theme.
   ------------------------------------------------------------------------- */

body.shoplink-home {
  --brand: #111827;
  --accent: #d6071c;
  --accent-ink: #ffffff;
  --accent-soft: #fff0f2;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff7f8;
  --border: #f0dfe2;
  --text: #17181c;
  --muted: #6f727a;
  --shadow: 0 10px 30px rgba(23, 24, 28, 0.08);
  --shadow-lg: 0 18px 45px rgba(214, 7, 28, 0.11);
  background: #fff;
  color: var(--text);
}

.shoplink-home .container {
  width: min(1240px, calc(100% - 48px));
}

.shoplink-home .shop-header {
  background: #fff;
  color: var(--text);
  margin: 0;
  box-shadow: none;
  border-bottom: 1px solid #f3eef0;
}

.shop-header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-block: 10px;
}

.shop-brand {
  color: var(--text);
  gap: 10px;
}

.shop-bag-icon {
  width: 34px;
  height: 34px;
  position: relative;
  display: inline-block;
  border: 2px solid var(--accent);
  border-top: 0;
  border-radius: 4px 4px 8px 8px;
}

.shop-bag-icon::before {
  content: "";
  position: absolute;
  inset-inline: 7px;
  top: -9px;
  height: 14px;
  border: 2px solid var(--accent);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.shop-brand-copy {
  display: grid;
  line-height: 1.1;
}

.shop-brand-copy strong {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0;
}

.shop-brand-copy small {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 3px;
}

.shoplink-home .shop-nav {
  justify-content: center;
  padding: 0;
  gap: 18px;
}

.shoplink-home .main-nav .tab,
.shoplink-home .classic-switch {
  color: #24262d;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 18px 0 15px;
  font-size: 0.92rem;
  position: relative;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
}

.shoplink-home .main-nav .tab:hover,
.shoplink-home .classic-switch:hover {
  background: transparent;
  color: var(--accent);
}

.shoplink-home .main-nav .tab.active {
  background: transparent;
  color: var(--accent);
}

.shoplink-home .main-nav .tab.active::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
}

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

.shoplink-home .session-badge,
.shoplink-home .admin-who {
  color: #777;
  border-color: #eee;
  background: #fff;
}

.shoplink-home .cart-toggle {
  color: var(--text);
  background: #fff;
  border: 0;
  padding: 0;
}

.shoplink-home .cart-badge {
  background: var(--accent);
  color: #fff;
}

.new-order-btn {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(214, 7, 28, 0.18);
}

.shoplink-home .btn-logout-mini,
.shoplink-home .classic-switch {
  border: 1px solid #f0dfe2;
  border-radius: 8px;
  padding: 0.52rem 0.8rem;
  color: var(--accent);
}

.shop-main {
  padding-top: 14px;
}

.shoplink-home.is-cart-view .shop-hero,
.shoplink-home.is-cart-view .shop-order-panel,
.shoplink-home.is-cart-view .shop-showcase,
.shoplink-home.is-cart-view #status {
  display: none;
}

.shop-hero {
  min-height: 370px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 8px;
  padding: 26px 34px;
  border: 1px solid #f6dfe3;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 7, 28, 0.12), transparent 28%),
    linear-gradient(90deg, #fff7f8 0%, #fff0f2 46%, #fff9fa 100%);
  overflow: hidden;
  position: relative;
}

.shop-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background:
    linear-gradient(135deg, transparent 20px, rgba(214, 7, 28, 0.05) 0) 0 0 / 58px 58px,
    linear-gradient(90deg, rgba(214, 7, 28, 0.06), transparent);
  opacity: 0.8;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.33;
  font-weight: 800;
  margin: 0 0 16px;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy p {
  width: min(520px, 100%);
  margin: 0 auto 22px;
  color: #3f424a;
  font-size: 1.02rem;
  line-height: 1.8;
  font-weight: 600;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0 20px;
}

.hero-features span {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #1f2229;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-features b {
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.shoplink-home .btn-primary {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(214, 7, 28, 0.18);
}

.shoplink-home .btn-secondary {
  border-color: #f0c8ce;
  color: var(--accent);
  border-radius: 8px;
  background: #fff;
}

.hero-start,
.hero-how {
  min-width: 170px;
  text-decoration: none;
  text-align: center;
}

.hero-art {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.hero-art img {
  display: block;
  width: min(116%, 760px);
  height: auto;
  object-fit: contain;
  margin-inline-start: -22px;
}

.shop-order-panel {
  margin: 14px auto 18px;
  padding: 18px 22px;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #f4ecee;
}

.shoplink-home #link-form.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.shoplink-home #link-form::before {
  content: "أضف رابط المنتج";
  font-size: 1rem;
  font-weight: 800;
  color: #15171d;
}

.shoplink-home .link-row {
  grid-template-columns: 1fr 170px;
  align-items: stretch;
}

.shoplink-home .link-field {
  border: 1px solid #eee2e4;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

.shoplink-home .link-field input {
  border: 0;
  border-radius: 0;
}

.shoplink-home .btn-paste {
  border: 0;
  border-right: 1px solid #eee2e4;
  border-radius: 0;
  color: var(--accent);
}

.shoplink-home .panel-hint {
  color: #7b7d84;
  font-size: 0.82rem;
}

.shoplink-home .store-grid {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.shoplink-home .store-card {
  border-radius: 8px;
  min-height: 88px;
  box-shadow: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shoplink-home .store-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shoplink-home .store-logo {
  background: transparent;
  color: inherit;
  padding: 0;
}

.shoplink-home .store-actions .btn-secondary {
  color: var(--accent);
  border: 0;
  padding: 0.35rem 0.5rem;
}

.shoplink-home .cart-panel,
.shoplink-home .customers-panel,
.shoplink-home .orders-panel,
.shoplink-home .product-card {
  border: 1px solid #f0e6e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.shoplink-home .cart-panel {
  display: none;
}

.shoplink-home #products-grid:has(.shop-cart-page) {
  display: block;
  padding-bottom: 0;
}

.shop-cart-page {
  display: grid;
  gap: 12px;
  color: #1d1f25;
}

.shop-cart-heading {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 50px;
}

.shop-cart-heading h1 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.shop-cart-heading p {
  margin: 4px 0 0;
  color: #8a8d95;
  font-size: 0.78rem;
  font-weight: 700;
}

.shop-cart-tabs {
  width: min(270px, 100%);
  justify-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #f0e6e8;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.shop-cart-tabs button {
  min-height: 50px;
  border: 0;
  background: #fff;
  color: #1f2229;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.shop-cart-tabs button + button {
  border-right: 1px solid #f0e6e8;
}

.shop-cart-tabs .danger {
  color: var(--accent);
}

.shop-cart-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid #fad9de;
  border-radius: 6px;
  background: #fff5f6;
  color: #9a4b55;
  font-size: 0.84rem;
  font-weight: 700;
}

.shop-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 18px;
  align-items: start;
  direction: ltr;
}

.shop-cart-stores {
  display: grid;
  gap: 12px;
  grid-column: 1;
  direction: rtl;
}

.shop-cart-sidebar {
  grid-column: 2;
  direction: rtl;
}

.shop-store-cart,
.shop-summary-card,
.shop-info-card,
.shop-cart-empty {
  border: 1px solid #f0e6e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 24, 28, 0.04);
}

.shop-store-cart {
  overflow: hidden;
}

.shop-store-head {
  min-height: 58px;
  display: grid;
  grid-template-columns: 128px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #f0e6e8;
}

.shop-store-head h2 {
  margin: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 800;
}

.shop-store-change {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.shop-cart-logo {
  justify-self: end;
  min-width: 82px;
  text-align: center;
  font-weight: 800;
}

.amazon-logo {
  color: #111;
  font-size: 1.15rem;
}

.noon-logo {
  display: inline-grid;
  place-items: center;
  width: 58px;
  min-height: 38px;
  border-radius: 6px;
  background: #ffd914;
  color: #111;
  line-height: 1;
}

.noon-logo small {
  font-size: 0.62rem;
  font-weight: 700;
}

.generic-logo {
  color: #111;
}

.shop-store-items {
  display: grid;
}

.shop-cart-item {
  min-height: 74px;
  display: grid;
  grid-template-columns: 48px 88px 105px minmax(0, 1fr) 74px;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-bottom: 1px solid #f4ecee;
  direction: ltr;
}

.shop-cart-item:last-child {
  border-bottom: 0;
}

.shop-remove-item {
  grid-column: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: #fff8f9;
  color: #7c8088;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.shop-remove-item:hover {
  color: var(--accent);
}

.shop-qty-control {
  grid-column: 2;
  width: 88px;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
  border: 1px solid #eee2e4;
  border-radius: 6px;
  background: #fff;
}

.shop-qty-control button,
.shop-qty-control span {
  display: grid;
  place-items: center;
  border: 0;
  background: #fff;
  font-family: inherit;
  font-weight: 800;
  color: #1f2229;
}

.shop-qty-control button {
  cursor: pointer;
}

.shop-qty-control span {
  border-inline: 1px solid #eee2e4;
  font-size: 0.86rem;
}

.shop-item-price {
  grid-column: 3;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.9rem;
}

.shop-item-copy {
  grid-column: 4;
  display: grid;
  gap: 4px;
  text-align: right;
  min-width: 0;
  direction: rtl;
}

.shop-item-copy a {
  color: #1e2027;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-item-copy a:hover {
  color: var(--accent);
}

.shop-item-copy span {
  color: #7c8088;
  font-size: 0.75rem;
  font-weight: 700;
}

.shop-item-media {
  grid-column: 5;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  justify-self: end;
}

.shop-item-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.shop-img-placeholder {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #f8f8f8;
  color: #9a9da4;
  font-size: 0.66rem;
  text-align: center;
}

.shop-store-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff5f6;
  border-top: 1px solid #fae4e7;
}

.shop-store-summary div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px 18px;
}

.shop-store-summary span {
  color: #555b65;
  font-size: 0.78rem;
  font-weight: 700;
}

.shop-store-summary strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.shop-store-summary .accent {
  color: var(--accent);
  font-size: 1rem;
}

.shop-summary-card {
  padding: 18px 18px 14px;
}

.shop-summary-card h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 800;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 13px;
  color: #5d626b;
  font-size: 0.86rem;
  font-weight: 700;
}

.summary-line strong {
  color: #1d1f25;
  white-space: nowrap;
}

.summary-line.fee strong {
  color: var(--accent);
}

.shop-summary-card hr {
  border: 0;
  border-top: 1px solid #f0e6e8;
  margin: 14px 0;
}

.shop-summary-card p {
  margin: -4px 0 16px;
  color: #8a8d95;
  font-size: 0.75rem;
  line-height: 1.7;
}

.summary-total {
  display: grid;
  gap: 8px;
  margin: 0 -18px 14px;
  padding: 16px 18px;
  background: #fff5f6;
}

.summary-total span {
  font-size: 0.86rem;
  font-weight: 800;
}

.summary-total strong {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
}

.shop-summary-card .btn-primary,
.shop-summary-card .btn-secondary {
  width: 100%;
  margin-top: 8px;
}

.shop-info-card {
  display: grid;
  gap: 5px;
  padding: 14px 18px 14px 72px;
  position: relative;
  min-height: 74px;
}

.shop-info-card::before {
  content: "%";
  position: absolute;
  left: 18px;
  top: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff2f4;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 800;
}

.shop-info-card:first-of-type::before {
  content: "🛡";
  font-size: 1.15rem;
}

.shop-info-card b {
  font-size: 0.9rem;
  font-weight: 800;
}

.shop-info-card span {
  color: #70747d;
  font-size: 0.76rem;
  line-height: 1.7;
}

.shop-cart-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2px;
  border: 1px solid #fae4e7;
  border-radius: 8px;
  background: #fff7f8;
  overflow: hidden;
}

.shop-cart-benefits article {
  min-height: 90px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 4px 12px;
  padding: 16px 22px;
  border-left: 1px solid #fae4e7;
}

.shop-cart-benefits article:last-child {
  border-left: 0;
}

.shop-cart-benefits b {
  grid-row: span 2;
  color: var(--accent);
  font-size: 1.65rem;
  line-height: 1;
}

.shop-cart-benefits strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.shop-cart-benefits span {
  color: #70747d;
  font-size: 0.73rem;
  line-height: 1.6;
}

.shop-cart-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 52px 18px;
  text-align: center;
}

.shop-cart-empty strong {
  font-size: 1.2rem;
}

.shop-cart-empty span {
  color: #777b83;
}

.shop-showcase {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 14px 20px;
  margin-bottom: 26px;
}

.popular-stores {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.store-tile {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #f0e6e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 24, 28, 0.04);
}

.store-tile strong {
  font-size: 1.28rem;
  line-height: 1;
  font-weight: 800;
}

.store-tile span {
  color: #6f727a;
  font-size: 0.76rem;
  font-weight: 700;
}

.store-tile button,
.tracking-card button,
.tracking-card a {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
}

.iherb-tile strong {
  color: #54a121;
}

.ali-tile strong {
  color: #f04d26;
}

.shein-tile strong {
  color: #111;
  letter-spacing: 0;
}

.noon-tile strong {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #ffd914;
  color: #111;
  font-size: 0.96rem;
}

.amazon-tile strong {
  color: #111;
}

.more-tile {
  color: #222;
}

.tracking-card {
  grid-row: span 2;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid #f0e6e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.tracking-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
}

.tracking-card input {
  width: 100%;
  min-width: 0;
  border-radius: 8px;
  padding: 0.72rem 0.8rem;
}

.tracking-card button {
  width: 100%;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  padding: 0.72rem 1rem;
}

.tracking-card a {
  justify-self: center;
}

.benefit-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid #fae4e7;
  border-radius: 8px;
  background: #fff7f8;
  overflow: hidden;
}

.benefit-strip article {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 10px;
  padding: 14px 16px;
  border-left: 1px solid #fae4e7;
}

.benefit-strip article:last-child {
  border-left: 0;
}

.benefit-strip b {
  grid-row: span 2;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
}

.benefit-strip strong {
  font-size: 0.88rem;
  font-weight: 800;
}

.benefit-strip span {
  color: #6f727a;
  font-size: 0.72rem;
  line-height: 1.55;
}

.how-steps {
  grid-column: 1 / -1;
  padding: 18px 14px 20px;
  border: 1px solid #f5e8eb;
  border-radius: 8px;
  background: #fff;
}

.how-steps h2 {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.24rem;
  font-weight: 800;
}

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

.steps-row article {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 116px;
  padding: 18px 12px 14px;
  border: 1px solid #f3e8ea;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.steps-row em {
  position: absolute;
  top: -10px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 800;
}

.steps-row b {
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.steps-row strong {
  font-size: 0.86rem;
  font-weight: 800;
}

.steps-row span {
  color: #6f727a;
  font-size: 0.74rem;
  line-height: 1.55;
}

.classic-home .classic-switch {
  color: var(--accent);
  border: 1px solid rgba(252, 163, 17, 0.45);
  border-radius: 8px;
  padding: 0.32rem 0.7rem;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .shop-header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shoplink-home .shop-nav,
  .shop-actions {
    justify-content: flex-start;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .shoplink-home .container {
    width: min(100% - 24px, 1240px);
  }

  .shop-hero {
    padding: 24px 18px;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-art {
    min-height: 0;
    order: -1;
  }

  .hero-art img {
    width: min(108%, 620px);
    margin-inline-start: 0;
  }

  .shoplink-home .link-row {
    grid-template-columns: 1fr;
  }

  .shoplink-home .store-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-showcase {
    grid-template-columns: 1fr;
  }

  .shop-cart-layout {
    grid-template-columns: 1fr;
    direction: rtl;
  }

  .shop-cart-stores,
  .shop-cart-sidebar {
    grid-column: 1;
  }

  .shop-cart-sidebar {
    order: -1;
  }

  .shop-cart-benefits {
    grid-template-columns: 1fr 1fr;
  }

  .shop-cart-benefits article:nth-child(2n) {
    border-left: 0;
  }

  .shop-store-head {
    grid-template-columns: 1fr auto;
  }

  .shop-store-change {
    grid-column: 1 / -1;
  }

  .shop-cart-item {
    grid-template-columns: 42px 78px 90px minmax(0, 1fr) 58px;
    gap: 10px;
    padding-inline: 12px;
  }

  .popular-stores,
  .benefit-strip,
  .steps-row {
    grid-template-columns: 1fr 1fr;
  }

  .tracking-card {
    grid-row: auto;
  }
}

@media (max-width: 520px) {
  .shoplink-home .shop-nav {
    gap: 14px;
  }

  .shoplink-home .main-nav .tab,
  .shoplink-home .classic-switch {
    font-size: 0.84rem;
  }

  .hero-copy h1 {
    font-size: 1.85rem;
  }

  .hero-features,
  .shoplink-home .store-grid,
  .popular-stores,
  .benefit-strip,
  .shop-cart-benefits,
  .steps-row {
    grid-template-columns: 1fr;
  }

  .benefit-strip article {
    border-left: 0;
    border-bottom: 1px solid #fae4e7;
  }

  .benefit-strip article:last-child {
    border-bottom: 0;
  }

  .shop-cart-tabs {
    width: 100%;
  }

  .shop-cart-alert {
    align-items: flex-start;
  }

  .shop-cart-item {
    grid-template-columns: 52px minmax(0, 1fr) 64px;
    grid-template-areas:
      "remove copy media"
      "qty price media";
  }

  .shop-remove-item {
    grid-area: remove;
    grid-column: auto;
  }

  .shop-qty-control {
    grid-area: qty;
    grid-column: auto;
    width: 82px;
  }

  .shop-item-price {
    grid-area: price;
    grid-column: auto;
  }

  .shop-item-copy {
    grid-area: copy;
    grid-column: auto;
  }

  .shop-item-media {
    grid-area: media;
    grid-column: auto;
  }

  .shop-store-summary {
    grid-template-columns: 1fr;
  }

  .shop-store-summary div {
    min-height: 54px;
    border-bottom: 1px solid #fae4e7;
  }

  .shop-store-summary div:last-child {
    border-bottom: 0;
  }

  .shop-cart-benefits article {
    border-left: 0;
    border-bottom: 1px solid #fae4e7;
  }

  .shop-cart-benefits article:last-child {
    border-bottom: 0;
  }
}
