:root {
  --ink: #15171a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --brand: #16a34a;
  --brand-strong: #15803d;
  --accent: #f97316;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #111827; color: #f9fafb; font-size: 13px; }
.topbar .container, .site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .container { min-height: 36px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header .container { min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 22px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--brand); color: #fff; }
.nav { display: flex; align-items: center; gap: 22px; color: #374151; font-size: 15px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { border: 0; border-radius: 6px; padding: 11px 16px; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.secondary { background: #eef2f7; color: #111827; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.searchbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; box-shadow: var(--shadow); }
.searchbar input, .field { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: #fff; font: inherit; }
.hero { background: #fff; border-bottom: 1px solid var(--line); }
.hero-grid { min-height: 520px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding: 42px 0; }
.hero-copy h1 { margin: 0 0 16px; font-size: 48px; line-height: 1.15; letter-spacing: 0; }
.hero-copy p { margin: 0 0 24px; color: var(--muted); font-size: 18px; max-width: 620px; }
.hero-media { min-height: 430px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #ecfdf5, #fff7ed); position: relative; }
.hero-media img { width: 100%; height: 430px; object-fit: cover; }
.section { padding: 44px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section-title { margin: 0; font-size: 28px; }
.section-subtitle { color: var(--muted); margin: 4px 0 0; }
.category-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.category-tile, .stat, .form-panel, .admin-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.category-tile { padding: 18px; min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 1 / 1; background: #eef2f7; display: grid; place-items: center; color: var(--muted); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px; }
.product-title { margin: 0 0 8px; font-size: 16px; min-height: 50px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: var(--accent); font-weight: 800; font-size: 18px; }
.badge { background: #ecfdf5; color: #ffffff; border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.footer { background: #111827; color: #e5e7eb; padding: 34px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.muted { color: var(--muted); }
.messages { margin: 18px 0; }
.message { padding: 12px 14px; border-radius: 6px; background: #ecfdf5; color: #065f46; }
.form-panel { padding: 24px; max-width: 680px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; align-items: start; }
.detail-media { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.detail-copy { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { padding: 22px; }
.stat strong { display: block; font-size: 34px; }
.admin-panel { padding: 24px; margin-top: 20px; }
.workflow-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 720px; }
.data-table th, .data-table td { text-align: right; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-table th { background: #f3f4f6; font-size: 13px; color: #374151; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; gap: 18px; align-items: start; }
.admin-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 10px; display: grid; gap: 4px; }
.admin-sidebar a { padding: 11px 12px; border-radius: 6px; color: #374151; }
.admin-sidebar a:hover { background: #ecfdf5; color: var(--brand-strong); }
.admin-main { min-width: 0; }

@media (max-width: 900px) {
  .hero-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-strip, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .hero-copy h1 { font-size: 36px; }
  .admin-shell { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 22px, 1180px); }
  .product-grid, .category-strip, .stats-grid { grid-template-columns: 1fr; }
  .site-header .container { flex-wrap: wrap; padding: 12px 0; }
  .header-actions { width: 100%; }
  .header-actions .btn { flex: 1; }
}

/* MarketPro HTML adaptation */
.marketpro-django {
  background: #fff;
  color: hsl(var(--heading-color));
  font-family: var(--body-font, "Inter", Tahoma, Arial, sans-serif);
}
.marketpro-django[dir="rtl"], html[dir="rtl"] .marketpro-django {
  direction: rtl;
}
.site-logo {
  width: 132px;
  max-height: 44px;
  object-fit: contain;
}
.header-inner {
  min-height: 82px;
}
.market-search {
  flex: 1;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 999px;
  padding: 6px;
  background: #fff;
}
.market-search input {
  border: 0;
  outline: 0;
  padding: 0 18px;
  min-width: 0;
  background: transparent;
}
.market-search--page {
  max-width: 520px;
}
.header-action {
  color: hsl(var(--heading-color));
  font-weight: 700;
  white-space: nowrap;
}
.header-action:hover,
.nav-links a:hover,
.footer-links a:hover {
  color: hsl(var(--main));
}
.category-menu {
  position: relative;
}
.category-menu__button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: hsl(var(--main));
  color: #fff;
  font-weight: 800;
}
.category-menu__dropdown {
  display: none;
  position: absolute;
  inset-inline-start: 0;
  top: calc(100% + 8px);
  width: 230px;
  background: #fff;
  border: 1px solid hsl(var(--border-color));
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 40;
}
.category-menu:hover .category-menu__dropdown {
  display: grid;
}
.category-menu__dropdown a,
.category-menu__dropdown span {
  padding: 10px 12px;
  border-radius: 8px;
}
.category-menu__dropdown a:hover {
  background: var(--bg-color-one);
  color: hsl(var(--main));
}
.nav-links a {
  color: hsl(var(--heading-color));
  font-weight: 700;
}
.market-hero-section {
  background:
    linear-gradient(180deg, rgba(245, 250, 247, .96), rgba(255, 255, 255, 0) 72%);
}
.market-hero {
  min-height: 500px;
  padding: clamp(34px, 5vw, 68px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #d7eadf;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 20%, rgba(249, 115, 22, .17), transparent 28%),
    radial-gradient(circle at 84% 74%, rgba(22, 163, 74, .22), transparent 32%),
    linear-gradient(135deg, #f7fff9 0%, #eff9f3 45%, #fff7ed 100%);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}
.market-hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image:
    linear-gradient(90deg, rgba(21, 128, 61, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 128, 61, .12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.market-hero__content {
  max-width: 590px;
  margin-inline-start: auto;
}
.market-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(22, 163, 74, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 14px;
}
.market-hero__title {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: .95;
  margin-bottom: 20px;
  color: #10142f;
}
.market-hero__content p {
  max-width: 56ch;
  color: #475569;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.9;
  margin-bottom: 28px;
}
.market-hero__actions,
.market-hero__chips {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.market-hero__link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: #10142f;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}
.market-hero__chips {
  margin-top: 28px;
}
.market-hero__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #166534;
  font-weight: 800;
  font-size: 13px;
}
.market-hero__visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}
.market-hero__visual::before {
  position: absolute;
  content: "";
  width: min(82%, 430px);
  aspect-ratio: 1;
  left: 8%;
  bottom: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 18px rgba(22, 163, 74, .08), 0 26px 60px rgba(21, 128, 61, .14);
}
.market-hero__main-image {
  position: relative;
  z-index: 4;
  width: min(100%, 560px);
  max-height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(15, 23, 42, .14));
}
.market-hero__rider {
  position: absolute;
  z-index: 2;
  width: min(62%, 330px);
  left: 12%;
  bottom: 0;
  filter: drop-shadow(0 24px 24px rgba(15, 23, 42, .16));
}
.market-hero__product {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px solid rgba(22, 163, 74, .14);
  border-radius: 18px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .1);
}
.market-hero__product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.market-hero__product--large {
  width: 190px;
  height: 170px;
  right: 8%;
  top: 20px;
  padding: 22px;
}
.market-hero__product--small {
  width: 124px;
  height: 118px;
  right: 2%;
  bottom: 42px;
  padding: 16px;
}
.market-category-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  align-content: center;
  padding: 18px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 16px;
  background: #fff;
  transition: .2s ease;
}
.market-category-card:hover,
.market-product-card:hover {
  border-color: hsl(var(--main)) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.market-category-card span {
  color: hsl(var(--heading-color));
  font-weight: 800;
}
.market-category-card small {
  color: #6b7280;
}
.market-product-card {
  min-height: 100%;
  background: #fff;
}
.market-product-card .product-card__cart {
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
}
.market-product-card .product-card__thumb {
  min-height: 170px;
  aspect-ratio: 1 / 1;
  padding: 22px;
}
.market-product-card .product-card__thumb img {
  max-width: 100%;
  max-height: 190px;
  object-fit: contain;
}
.market-product-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  color: #9ca3af;
  border-radius: 12px;
}
.market-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px;
  background: var(--bg-color-two);
}
.footer-links {
  display: grid;
  gap: 8px;
}
.footer-links a {
  color: #d1d5db;
}
.market-filter,
.market-shopbar,
.market-detail-image,
.market-detail-copy {
  background: #fff;
}
.market-filter__link {
  color: hsl(var(--heading-color));
  padding: 10px 12px;
  border-radius: 8px;
}
.market-filter__link:hover {
  background: var(--bg-color-one);
  color: hsl(var(--main));
}
.market-detail-image {
  min-height: 520px;
  padding: 42px;
}
.market-detail-image img {
  max-height: 440px;
  object-fit: contain;
}
.market-detail-copy {
  padding: 22px;
}
.market-detail-copy h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.offers-hero {
  background:
    linear-gradient(135deg, rgba(22, 163, 74, .1), rgba(249, 115, 22, .12)),
    #fff;
}
.offers-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #d8eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .08);
}
.offers-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 13px;
}
.offers-hero h1 {
  margin: 0 0 10px;
  color: #10142f;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 1;
}
.offers-hero p {
  max-width: 58ch;
  margin: 0;
  color: #475569;
  font-size: 17px;
}
.offers-hero__metric {
  flex: 0 0 150px;
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  text-align: center;
}
.offers-hero__metric strong {
  display: block;
  font-size: 42px;
  line-height: 1;
}
.offers-hero__metric span {
  color: #d1d5db;
  font-weight: 700;
}
.offers-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.offers-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.offers-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 999px;
  background: #fff;
  color: hsl(var(--heading-color));
  font-weight: 800;
  font-size: 14px;
}
.offers-tabs a:hover,
.offers-tabs a.active {
  border-color: hsl(var(--main));
  background: hsl(var(--main));
  color: #fff;
}
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.offer-item {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.offer-item:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--main));
  box-shadow: var(--shadow);
}
.offer-item__media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  background: #f8fafc;
  color: #94a3b8;
}
.offer-item__media img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.offer-item__media b {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
}
.offer-item__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.offer-item__meta,
.offer-item__prices,
.offer-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.offer-item__meta span,
.offer-item__meta small {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}
.offer-item h2 {
  min-height: 56px;
  margin: 0;
  color: hsl(var(--heading-color));
  font-size: 18px;
  line-height: 1.55;
}
.offer-item h2 a:hover {
  color: hsl(var(--main));
}
.offer-item__prices {
  justify-content: flex-start;
}
.offer-item__prices strong {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}
.offer-item__prices del {
  color: #94a3b8;
  font-size: 14px;
}
.offer-item__cart {
  color: hsl(var(--main));
  font-weight: 800;
}
.offers-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 300px;
  padding: 32px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}
.offers-empty h2 {
  margin: 0;
  color: #10142f;
}
.offers-empty p {
  max-width: 46ch;
  margin: 0;
  color: #64748b;
}
.offers-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.offers-pagination a,
.offers-pagination span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}
.offers-pagination a {
  color: hsl(var(--main));
}
.wishlist-hero {
  background:
    linear-gradient(135deg, rgba(249, 115, 22, .12), rgba(22, 163, 74, .08)),
    #fff;
}
.tracking-page {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, .88), rgba(255, 255, 255, 0) 320px),
    #fff;
}
.tracking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #d8eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .08);
}
.tracking-copy h1 {
  margin: 0 0 12px;
  color: #10142f;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}
.tracking-copy p {
  max-width: 56ch;
  margin: 0;
  color: #475569;
  font-size: 17px;
}
.tracking-form {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background: #f8fafc;
}
.tracking-form label {
  color: hsl(var(--heading-color));
  font-weight: 900;
}
.tracking-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.tracking-form input {
  min-width: 0;
  border: 1px solid hsl(var(--border-color));
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: hsl(var(--heading-color));
  font: inherit;
  outline: 0;
}
.tracking-form input:focus {
  border-color: hsl(var(--main));
}
.tracking-result,
.tracking-empty {
  margin-top: 24px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.tracking-result {
  padding: 24px;
}
.tracking-result__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.tracking-result__header span {
  display: block;
  color: #64748b;
  font-weight: 700;
}
.tracking-result__header strong {
  color: #10142f;
  font-size: 28px;
}
.tracking-result__header b {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--brand-strong);
}
.tracking-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.tracking-steps span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.tracking-steps span.active {
  background: hsl(var(--main));
  color: #fff;
}
.tracking-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0;
}
.tracking-details div {
  padding: 14px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background: #f8fafc;
}
.tracking-details dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.tracking-details dd {
  margin: 4px 0 0;
  color: #10142f;
  font-weight: 900;
}
.tracking-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 24px;
  text-align: center;
}
.tracking-empty h2,
.tracking-empty p {
  margin: 0;
}
.tracking-empty p {
  color: #64748b;
}
.contact-hero {
  background:
    linear-gradient(135deg, rgba(22, 163, 74, .1), rgba(249, 115, 22, .1)),
    #fff;
}
.contact-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #d8eadf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(15, 23, 42, .08);
}
.contact-hero h1 {
  margin: 0 0 12px;
  color: #10142f;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
}
.contact-hero p {
  max-width: 58ch;
  margin: 0;
  color: #475569;
  font-size: 17px;
}
.contact-hero__quick {
  flex: 0 0 230px;
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
}
.contact-hero__quick span {
  color: #d1d5db;
  font-weight: 700;
}
.contact-hero__quick strong {
  overflow-wrap: anywhere;
  font-size: 19px;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.contact-info,
.contact-card {
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.contact-info {
  display: grid;
  gap: 16px;
  padding: 24px;
}
.contact-info h2,
.contact-card__head h2 {
  margin: 0;
  color: #10142f;
}
.contact-info p {
  margin: 0;
  color: #64748b;
}
.contact-info__list {
  display: grid;
  gap: 10px;
}
.contact-info__list div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  background: #f8fafc;
}
.contact-info__list span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}
.contact-info__list strong {
  color: #10142f;
  overflow-wrap: anywhere;
}
.contact-card {
  padding: 24px;
}
.contact-card__head {
  margin-bottom: 20px;
}
.contact-card__head span {
  display: block;
  margin-bottom: 4px;
  color: hsl(var(--main));
  font-weight: 900;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form-row {
  display: grid;
  gap: 7px;
}
.contact-form-row--full {
  grid-column: 1 / -1;
}
.contact-form-row label {
  color: hsl(var(--heading-color));
  font-size: 14px;
  font-weight: 900;
}
.contact-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid hsl(var(--border-color));
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fafc;
  color: hsl(var(--heading-color));
  font: inherit;
  outline: 0;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
textarea.contact-field {
  min-height: 150px;
  resize: vertical;
}
.contact-field:focus {
  border-color: hsl(var(--main));
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .1);
}
.contact-error {
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
}
.contact-submit {
  margin-top: 18px;
  min-width: 170px;
}

/* EasyDev HTML adaptation for admin pages */
.easydev-admin {
  background: #f2f4f7;
  color: #333;
  min-height: 100vh;
}
.easydev-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.easydev-sidebar {
  background: #fff;
  border-inline-end: 1px solid #e6e9ef;
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.easydev-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 24px;
  font-weight: 800;
  font-size: 20px;
}
.easydev-brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.easydev-menu {
  display: grid;
  gap: 6px;
}
.easydev-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: #646777;
  border-radius: 8px;
  font-weight: 600;
}
.easydev-menu a:hover,
.easydev-menu a.active {
  color: #fff;
  background: #70bbfd;
}
.easydev-main {
  min-width: 0;
}
.easydev-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid #e6e9ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.easydev-content {
  padding: 28px;
}
.easydev-page-title {
  margin-bottom: 22px;
}
.easydev-card {
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e6e9ef;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.easydev-card__body {
  padding: 22px;
}
.easydev-stat {
  display: grid;
  gap: 8px;
}
.easydev-stat span {
  color: #999;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.easydev-stat strong {
  font-size: 32px;
  color: #333;
}
.crud-image-preview {
  display: grid;
  gap: 10px;
  width: min(100%, 360px);
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  background: #f9fafc;
}
.crud-image-preview span {
  color: #646777;
  font-size: 13px;
  font-weight: 800;
}
.crud-image-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.settings-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.settings-page-title span {
  color: #70bbfd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.settings-page-title h3 {
  margin: 4px 0 6px;
  color: #333;
  font-size: 28px;
}
.settings-page-title p {
  margin: 0;
  color: #777;
}
.settings-alert {
  border: 0;
  border-radius: 6px;
}
.settings-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.settings-summary,
.settings-panel {
  border: 1px solid #e6e9ef;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.settings-summary {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 22px;
}
.settings-summary__mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #70bbfd;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.settings-summary h4 {
  margin: 0;
  color: #333;
}
.settings-summary p {
  margin: 0;
  color: #777;
  overflow-wrap: anywhere;
}
.settings-summary__list {
  display: grid;
  gap: 8px;
  margin: 4px 0;
}
.settings-summary__list span {
  padding: 10px 12px;
  border-radius: 6px;
  background: #f5f7fb;
  color: #555;
  font-weight: 700;
}
.settings-save {
  width: 100%;
}
.settings-panels {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.settings-panel {
  padding: 22px;
}
.settings-panel__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef0f4;
}
.settings-panel__head > span {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef7ff;
  color: #70bbfd;
  font-weight: 900;
}
.settings-panel__head h4 {
  margin: 0 0 4px;
  color: #333;
}
.settings-panel__head p {
  margin: 0;
  color: #888;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.settings-row {
  display: grid;
  gap: 7px;
}
.settings-row--full {
  grid-column: 1 / -1;
}
.settings-row label {
  margin: 0;
  color: #444;
  font-size: 13px;
  font-weight: 800;
}
.settings-field {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  padding: 10px 12px;
  background: #f9fafc;
  color: #333;
  font: inherit;
  outline: 0;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
textarea.settings-field {
  min-height: 118px;
  resize: vertical;
}
.settings-field:focus {
  border-color: #70bbfd;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(112, 187, 253, .16);
}
.settings-error {
  color: #dc3545;
  font-size: 12px;
  font-weight: 700;
}
.settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 0 4px;
}

@media (max-width: 991px) {
  .header-inner,
  .nav-bar .flex-between {
    flex-wrap: wrap;
  }
  .market-search {
    order: 3;
    max-width: none;
    width: 100%;
  }
  .market-hero {
    min-height: auto;
    padding: 32px 22px;
    border-radius: 18px;
  }
  .market-hero__content {
    max-width: none;
    margin-inline-start: 0;
  }
  .market-hero__title {
    max-width: none;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }
  .market-hero__visual {
    min-height: 320px;
    margin-top: 8px;
  }
  .market-hero__visual::before {
    width: min(86%, 340px);
    left: 5%;
  }
  .market-hero__rider {
    width: min(68%, 270px);
    left: 10%;
  }
  .market-hero__product--large {
    width: 142px;
    height: 128px;
    right: 2%;
  }
  .market-hero__product--small {
    width: 96px;
    height: 90px;
    right: 0;
    bottom: 30px;
  }
  .offers-hero__inner,
  .tracking-shell,
  .contact-hero__inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .offers-hero__inner {
    display: grid;
  }
  .contact-hero__inner {
    display: grid;
  }
  .contact-hero__quick {
    width: min(100%, 260px);
  }
  .offers-hero__metric {
    min-height: 116px;
    width: 150px;
  }
  .offers-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .tracking-steps {
    grid-template-columns: 1fr;
  }
  .easydev-layout {
    grid-template-columns: 1fr;
  }
  .easydev-sidebar {
    position: static;
    height: auto;
  }
  .settings-page-title,
  .settings-shell {
    grid-template-columns: 1fr;
  }
  .settings-page-title {
    display: grid;
  }
  .settings-summary {
    position: static;
  }
  .settings-grid,
  .settings-grid--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .market-hero__actions {
    align-items: stretch;
  }
  .market-hero__actions .btn,
  .market-hero__link {
    flex: 1 1 150px;
    justify-content: center;
  }
  .market-hero__chips {
    gap: 8px;
  }
  .market-hero__chips span {
    flex: 1 1 100px;
    justify-content: center;
  }
  .market-hero__visual {
    min-height: 280px;
  }
  .market-hero__product--large {
    width: 120px;
    height: 112px;
    padding: 16px;
  }
  .market-hero__product--small {
    width: 82px;
    height: 78px;
    padding: 12px;
  }
  .tracking-form div,
  .offer-item__actions {
    grid-template-columns: 1fr;
  }
  .tracking-form div,
  .offer-item__actions,
  .offer-item__meta,
  .offer-item__prices {
    align-items: stretch;
    flex-direction: column;
  }
  .tracking-form input {
    min-height: 46px;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-card,
  .contact-info {
    padding: 18px;
  }
  .contact-submit {
    width: 100%;
  }
  .settings-actions {
    flex-direction: column;
  }
  .settings-actions .btn {
    width: 100%;
  }
}

/* Wishlist heart button on product cards */
.wishlist-heart {
  border: 0;
  background: #ffffff;
  color: #c7c7c7;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, color 0.15s ease;
}
.wishlist-heart:hover {
  color: #e23b3b;
  transform: scale(1.1);
}
.wishlist-heart--on {
  color: #e23b3b;
}
