:root {
  --primary: #4CAF50;
  --primary-light: #66BB6A;
  --primary-dark: #2E7D32;
  --accent: #FF9800;
  --accent-light: #FFB74D;
  --accent-dark: #E65100;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --muted: #999999;
  --border: #e0e0e0;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  
  /* Status colors with new palette */
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #f44336;
  --info: #2196F3;
}

/* ===== Dashboard My Products: anti-overlap layout fix ===== */
#dashboardView #myProductsGrid.dashboard-managed-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

#dashboardView .managed-product-card-mini {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

#dashboardView .managed-product-head {
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 12px !important;
}

#dashboardView .managed-product-image {
  width: 84px !important;
  height: 84px !important;
  border-radius: 14px !important;
}

#dashboardView .managed-product-copy {
  min-width: 0 !important;
  display: grid !important;
  gap: 6px !important;
}

#dashboardView .managed-product-title-row {
  display: flex !important;
  align-items: start !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

#dashboardView .managed-product-copy strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

#dashboardView .managed-product-meta-row,
#dashboardView .managed-product-support-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

#dashboardView .managed-product-side {
  min-width: 116px !important;
  max-width: 132px !important;
  display: grid !important;
  justify-items: end !important;
  align-content: start !important;
  gap: 8px !important;
}

#dashboardView .managed-product-price {
  font-size: 1rem !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

#dashboardView .managed-product-status-chip {
  max-width: 100% !important;
  white-space: nowrap !important;
}

#dashboardView .managed-product-actions,
#dashboardView .managed-product-actions-mini {
  margin-top: 2px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

#dashboardView .managed-product-actions .btn,
#dashboardView .managed-product-actions-mini .managed-action-icon {
  width: 100% !important;
  min-height: 38px !important;
}

@media (max-width: 980px) {
  #dashboardView .dashboard-products-toolbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 760px) {
  #dashboardView .managed-product-head {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  #dashboardView .managed-product-image {
    width: 72px !important;
    height: 72px !important;
  }

  #dashboardView .managed-product-side {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-items: start !important;
    grid-template-columns: auto auto !important;
    align-items: center !important;
    column-gap: 10px !important;
    row-gap: 6px !important;
  }

  #dashboardView .managed-product-actions,
  #dashboardView .managed-product-actions-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #f9fdf8 0%, #f2f8f1 100%);
  color: var(--text);
  direction: rtl;
}

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

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

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

.hidden { display: none !important; }
.muted { color: var(--muted); }

.container {
  max-width: none;
  width: 100%;
  margin: auto;
  padding: 0;
}

.app-shell { min-height: 100vh; }

/* ===== الشريط العلوي (topbar) - مدمج ومتجاوب ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.95));
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--primary);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--primary);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.brand-copy { min-width: 0; }

.brand-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
}

.searchbar {
  flex: 1;
  min-width: 200px;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f0f7f0, #f5f9f5);
  border: 2px solid var(--primary-light);
  border-radius: 999px;
  padding: 6px 12px;
  transition: all 0.25s ease;
}

.searchbar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
}

.searchbar-glow {
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.12);
}

.searchbar:focus-within {
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25), 0 0 0 3px rgba(76, 175, 80, 0.1);
  border-color: var(--primary);
}

.searchbar input::placeholder {
  color: #9ca3af;
  transition: color 0.2s;
}

.searchbar input:focus::placeholder {
  color: #cbd5e1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: flex-end;
}

/* ===== أزرار متناسقة مع الهوية البصرية ===== */
.btn {
  border: none;
  cursor: pointer;
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
}

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

.btn-outline {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--secondary);
  background: rgba(149, 187, 58, 0.08);
}

/* layout */
.main-space {
  padding-top: 12px;
  padding-bottom: 40px;
}

.view { padding-bottom: 24px; }
.section { margin-top: 22px; }

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

/* hero */
.hero { margin-top: 8px; }

.hero-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #ffffff;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.25);
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.7vw, 34px);
  line-height: 1.25;
}

.hero-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 70ch;
}

/* cards/forms */
.card {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(2px);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 12px 28px rgba(76, 175, 80, 0.15);
  border-color: var(--primary-light);
}

.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid { display: grid; gap: 12px; }

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  width: 100%;
  border: 2px solid var(--primary-light);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

textarea.field {
  min-height: 110px;
  resize: vertical;
}

.mini-note {
  margin-top: 14px;
  border: 2px dashed var(--primary-light);
  border-radius: 12px;
  padding: 12px;
  background: rgba(76, 175, 80, 0.05);
}

.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* filters */
.filters-shell {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.filters-bar {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #d7dde5;
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.chip.active {
  background: rgba(149, 187, 58, 0.14);
  border-color: rgba(149, 187, 58, 0.4);
  color: #2c4a00;
}

/* category strips */
.category-block { margin-bottom: 30px; }

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.cards-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.cards-strip::-webkit-scrollbar { height: 8px; }
.cards-strip::-webkit-scrollbar-thumb {
  background: #cfd6df;
  border-radius: 999px;
}

/* product cards */
.product-card {
  min-width: 188px;
  max-width: 188px;
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: 0.2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.product-card:hover { transform: translateY(-3px); }

.product-image {
  width: 100%;
  height: 128px;
  background: #e5e7eb;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 6px;
  min-height: 40px;
}

.product-price {
  color: #1f8f43;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card .btn.btn-outline {
  margin-top: 10px;
  width: 100%;
}

/* catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

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

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

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}

/* lists */
.list-stack {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fbfcfe;
}

.managed-product-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.managed-product-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.managed-product-image {
  width: 86px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 86px;
}

.managed-product-image-placeholder {
  background: #eef2f7;
}

.managed-product-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.managed-product-copy strong,
.managed-product-copy .muted {
  overflow-wrap: anywhere;
}

.managed-product-actions {
  width: 100%;
  min-width: 0;
}

.managed-product-actions .btn {
  max-width: 100%;
}

/* profile */
.profile-layout .card:first-child {
  align-self: start;
}

.seller-summary { display: grid; gap: 10px; }

/* messages */
.messages-layout { align-items: start; }

.conversations-card {
  max-height: 700px;
  overflow: auto;
}

.conversation-empty {
  color: var(--muted);
  padding: 40px 10px;
  text-align: center;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal.open { display: flex; }

.modal-content {
  width: min(100%, 920px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.small-modal { width: min(100%, 680px); }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #eef2f7;
  cursor: pointer;
}

/* responsive */
@media (max-width: 1100px) {
  .topbar-inner {
    gap: 12px;
    padding: 10px 0;
  }

  .searchbar {
    max-width: none;
    min-width: 180px;
  }

  .filters-bar { grid-template-columns: 1fr 1fr; }
  .two-cols { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* شريط علوي مدمج على الشاشات المتوسطة/الصغيرة - تجنب الفراغات البيضاء */
@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0;
  }

  .searchbar {
    max-width: none;
    width: 100%;
  }

  .nav-actions {
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }
}

.home-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.home-load-more-wrap .btn {
  min-width: 170px;
}

@media (max-width: 700px) {
  .filters-bar,
  .inline-fields,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-actions { justify-content: center; }

  .product-card {
    min-width: 165px;
    max-width: 165px;
  }

  .hero-card { padding: 18px; }
}

@media (max-width: 500px) {
  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  .managed-product-head {
    flex-wrap: wrap;
  }

  .managed-product-image {
    width: 100%;
    max-width: 110px;
    height: 86px;
  }

  .managed-product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    justify-content: stretch;
  }

  .managed-product-actions .btn {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }
}

/* Restored marketplace card visual details */
.views-row{
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--muted, #6b7280);
  font-size:13px;
}
.views-icon{
  font-size:14px;
  line-height:1;
}
.product-card{
  position:relative;
  overflow:hidden;
}
.product-image{
  width:100%;
  display:block;
  object-fit:cover;
}
/* شريط الحالة - داخل البطاقة بالكامل (RTL: الزاوية العلوية اليمنى) */
.condition-ribbon{
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 90px;
  text-align: center;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  z-index: 10;
  backdrop-filter: blur(4px);
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.condition-new{
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 12px rgba(76, 175, 80, 0.35);
}
.condition-like-new{
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 12px rgba(37, 99, 235, 0.35);
}
.condition-used-good{
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 152, 0, 0.35);
}
.product-card{
  box-shadow:
    0 10px 24px rgba(0,0,0,.08),
    0 0 0 2px var(--primary-light),
    0 0 22px rgba(76, 175, 80,.08);
}
.product-card:hover{
  box-shadow:
    0 16px 32px rgba(0,0,0,.12),
    0 0 0 2px var(--accent),
    0 0 24px rgba(255, 152, 0,.12);
}

/* ===== UI refresh ===== */
:root{
  --hero-green:#1f8f43;
  --hero-red:#c1362f;
  --soft-yellow:#fff1a8;
  --gold:#d4af37;
  --gold-deep:#b08b1c;
}
/* خلفية بيضاء/فاتحة تغطي معظم الموقع */
body{
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.searchbar{
  border: 1px solid rgba(0, 51, 102, 0.1);
  padding: 5px 8px;
}
.searchbar input{ padding: 9px 12px; }
.hero-bleed{ width:100vw; margin-right:calc(50% - 50vw); margin-left:calc(50% - 50vw); }
.hero-card.hero-poster{
  position:relative; border-radius:0; min-height:260px; overflow:hidden;
  background:linear-gradient(115deg, rgba(0,0,0,.18), rgba(0,0,0,.38)),linear-gradient(180deg, rgba(31,143,67,.95) 0 34%, rgba(255,255,255,.94) 34% 67%, rgba(193,54,47,.95) 67% 100%);
  display:flex; align-items:center; box-shadow:none;
}
.hero-overlay{ position:absolute; inset:0; background:radial-gradient(circle at 72% 38%, rgba(255,255,255,.2), transparent 18%),radial-gradient(circle at 16% 72%, rgba(212,175,55,.18), transparent 20%); }
.hero-flag{ position:absolute; inset:0; background:linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,.12) 44% 46%, transparent 46% 100%); opacity:.65; }
.hero-sword{
  position:absolute; left:12%; top:18%; width:340px; height:8px;
  background:linear-gradient(90deg, rgba(212,175,55,.96), rgba(245,232,168,.98), rgba(177,177,177,.92));
  transform:rotate(-18deg); border-radius:999px; box-shadow:0 0 18px rgba(255,241,168,.5);
}
.hero-sword::before{ content:""; position:absolute; right:-12px; top:-4px; width:22px; height:16px; background:linear-gradient(135deg, #e8d37a, #fff2a8); clip-path:polygon(0 50%,100% 0,100% 100%); }
.hero-sword::after{ content:""; position:absolute; left:-28px; top:-12px; width:36px; height:32px; border-radius:12px; background:linear-gradient(135deg, #8f6a13, #d4af37); box-shadow:0 0 14px rgba(212,175,55,.28); }
.hero-text{ position:relative; z-index:2; width:min(720px, 100%); margin-inline-start:auto; margin-inline-end:6%; text-align:right; }
.hero-kicker{ display:inline-flex; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.18); backdrop-filter:blur(8px); margin-bottom:12px; color:#fff6c7; border:1px solid rgba(255,255,255,.18); }
.hero-text h1{ font-size:clamp(30px, 4vw, 52px); margin-bottom:10px; }
.hero-text p{ max-width:62ch; font-size:15px; }
.filters-shell{ border-radius:20px; box-shadow:0 14px 34px rgba(0,0,0,.07); }
.chip{
  transition: all 0.2s ease;
}
.chip:hover{
  transform: translateY(-2px);
  background: rgba(149, 187, 58, 0.1);
  border-color: rgba(149, 187, 58, 0.3);
}
.chip.active{
  background: linear-gradient(135deg, rgba(149, 187, 58, 0.2), rgba(149, 187, 58, 0.1));
  border-color: var(--secondary);
  box-shadow: 0 4px 12px rgba(149, 187, 58, 0.2);
}
.category-header{ margin-bottom:14px; }
.category-title{ display:inline-flex; align-items:center; min-height:38px; padding:0 16px; border-radius:14px; color:var(--primary); border:1px solid rgba(0,51,102,.08); background:linear-gradient(180deg,#fff,#f4f7fb); box-shadow:0 8px 20px rgba(0,0,0,.04); }
.cards-strip{ gap:10px; }
.catalog-grid,.compact-grid{ grid-template-columns:repeat(auto-fill,minmax(216px,1fr)); gap:11px; }
.product-card{
  min-width:216px; max-width:216px; width:216px; padding:0; border-radius:18px; border:1px solid rgba(15,23,42,.06);
  box-shadow:0 14px 34px rgba(0,0,0,.09),0 0 0 1px rgba(59,130,246,.06),0 0 18px rgba(59,130,246,.08);
}
.product-card:hover{ transform:translateY(-4px); box-shadow:0 20px 38px rgba(0,0,0,.12),0 0 0 1px rgba(249,115,22,.08),0 0 22px rgba(249,115,22,.12); }
.product-image,.product-image-placeholder{ height:144px; border-radius:18px 18px 0 0; margin-bottom:0; width:100%; object-fit:cover; }
.product-body{ padding:12px 12px 13px; }
.product-title{ min-height:42px; font-size:14px; margin-bottom:8px; }
.product-price-centered{ text-align:center; font-size:18px; margin-bottom:10px; }
.product-meta-grid{ display:grid; grid-template-columns:74px 1fr; gap:10px; align-items:start; }
.product-region-badge,.views-badge{
  display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:31px; padding:6px 10px; border-radius:12px; font-size:12px; font-weight:700; white-space:nowrap;
}
.views-badge{ position:absolute; top:10px; right:10px; z-index:4; background:linear-gradient(180deg,#fff6c4,#f4dc74); color:#725300; border:1px solid rgba(179,146,24,.28); box-shadow:0 10px 18px rgba(244,220,116,.24); }
.product-region-badge{ background:#f5f7fb; color:#425466; border:1px solid rgba(15,23,42,.06); }
.product-store-block{ min-width:0; }
.store-link{ display:block; width:100%; text-align:right; border:none; background:transparent; padding:0; font-weight:700; color:var(--text); cursor:pointer; margin-bottom:4px; }
.store-rating{ font-size:12px; color:var(--muted); }
.product-actions{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:12px; }
.product-card .btn.btn-outline,.product-card .btn.btn-secondary{ width:100%; margin-top:0; }
.messages-shell{ display:grid; grid-template-columns:340px 1fr; gap:16px; align-items:start; }
.messages-sidebar{ padding:14px; }
.conversations-list{ display:grid; gap:12px; }
.conversation-entry{
  display:grid; grid-template-columns:44px 1fr; gap:10px; width:100%; text-align:right; border:none; background:#fff; border-radius:16px; padding:10px; cursor:pointer; box-shadow:0 8px 18px rgba(0,0,0,.04);
}
.conversation-entry.is-active{ background:linear-gradient(180deg,#f6fbff,#eef6ff); border:1px solid rgba(0,51,102,.08); }
.conversation-avatar{ width:44px; height:44px; border-radius:14px; background:linear-gradient(135deg,var(--primary),#0c5aa4); color:#fff; display:grid; place-items:center; font-weight:700; }
.conversation-topline{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.conversation-status-chip,.chat-chip{ display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:5px 10px; background:#edf2f7; color:var(--primary); font-size:12px; }
.chat-chip.light{ background:#f8f4df; color:#886200; }
.conversation-snippet{ margin-top:6px; line-height:1.5; }
.conversation-card{
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 18px;
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow: 0 14px 28px rgba(15,23,42,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.conversation-card:hover{
  transform: translateY(-2px);
  border-color: rgba(14,116,144,.18);
  box-shadow: 0 18px 36px rgba(15,23,42,.1);
}
.conversation-card.is-active{
  background: linear-gradient(180deg,#f4fbff 0%, #eef7ff 100%);
  border-color: rgba(14,116,144,.22);
  box-shadow: 0 18px 38px rgba(14,116,144,.12);
}
.conversation-avatar-pro{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 22px rgba(15,23,42,.12);
}
.conversation-card-body{
  min-width: 0;
  display: grid;
  gap: 9px;
}
.conversation-row-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.conversation-row-name{
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.conversation-row-time{
  white-space: nowrap;
  font-size: 11px;
  color: #64748b;
}
.conversation-row-product{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#334155;
  font-size:13px;
}
.conversation-row-product strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.conversation-product-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(14,116,144,.08);
  color:#0f766e;
  font-size:11px;
  font-weight:800;
}
.conversation-row-last{
  color:#475569;
  font-size:13px;
  line-height:1.7;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:44px;
}
.conversation-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.conversation-row-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.conversation-meta-note{
  font-size:12px;
  color:#64748b;
}
.conversation-row-status.status-open{
  background:rgba(34,197,94,.12);
  color:#15803d;
}
.conversation-row-status.status-closed{
  background:rgba(100,116,139,.12);
  color:#475569;
}
.conversation-row-status.status-cancelled{
  background:rgba(239,68,68,.12);
  color:#b91c1c;
}
.messages-main-card{ min-height:640px; padding:0; overflow:hidden; }
.chat-layout{ display:grid; grid-template-rows:auto 1fr auto auto; min-height:640px; }
.chat-header{ display:flex; justify-content:space-between; align-items:center; gap:14px; padding:18px 18px 16px; border-bottom:1px solid var(--border); background:linear-gradient(180deg,#ffffff,#f8fbff); }
.chat-thread{
  padding:18px; background:radial-gradient(circle at 20% 20%, rgba(149,187,58,.06), transparent 18%),radial-gradient(circle at 80% 15%, rgba(0,51,102,.04), transparent 16%),#f6f8fb;
  display:grid; gap:10px; align-content:start; overflow:auto;
}
.chat-bubble{ max-width:min(74%, 560px); padding:11px 12px; border-radius:18px; box-shadow:0 10px 24px rgba(0,0,0,.05); }
.chat-bubble.is-other{ background:#fff; border-top-right-radius:6px; }
.chat-bubble.is-me{ margin-inline-start:auto; background:linear-gradient(180deg,#dff6d0,#cbeeb4); border-top-left-radius:6px; }
.chat-sender{ font-size:12px; color:var(--primary); margin-bottom:4px; font-weight:700; }
.chat-body{ line-height:1.8; }
.chat-time{ font-size:11px; color:var(--muted); margin-top:6px; }
.chat-composer{ padding:14px 18px 18px; border-top:1px solid var(--border); background:#fff; }
.chat-textarea{ min-height:90px; }
.chat-composer-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:10px; }
.rating-box{ padding:0 18px 18px; display:grid; gap:10px; }
.conversation-empty-panel{ min-height:640px; display:grid; place-items:center; text-align:center; padding:24px; }
.seller-header-card{ padding:22px; background:linear-gradient(180deg,#fffdf8,#fff); }
.seller-hero{ display:grid; gap:12px; justify-items:center; text-align:center; }
.seller-name-frame{ display:grid; gap:8px; justify-items:center; border:1px solid rgba(212,175,55,.45); background:linear-gradient(180deg,#fffdf4,#fff8dd); border-radius:20px; padding:16px 28px; box-shadow:0 14px 32px rgba(212,175,55,.12); }
.seller-name-frame h2{ margin:0; color:var(--primary); }
.seller-rate-chip{ display:inline-flex; align-items:center; justify-content:center; border-radius:999px; padding:7px 12px; background:rgba(212,175,55,.14); color:#7b5c00; font-weight:700; }
.seller-subline{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
.seller-location-chip,.seller-products-chip{ display:inline-flex; padding:7px 12px; border-radius:999px; background:#eef2f7; color:var(--primary); }
.seller-description{ max-width:74ch; margin:0; line-height:1.9; color:#465467; }
.rating-card{ border:1px solid var(--border); border-radius:14px; padding:12px; background:#fbfcfe; }
.rating-head{ display:flex; justify-content:space-between; gap:8px; align-items:center; }
.rating-stars{ color:#c49200; }
@media (max-width:1100px){ .messages-shell{ grid-template-columns:1fr; } .hero-text{ margin-inline-end:4%; } }
@media (max-width:700px){
  .product-card{ min-width:196px; max-width:196px; width:196px; }
  .catalog-grid,.compact-grid{ grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); }
  .hero-card.hero-poster{ min-height:220px; }
  .hero-sword{ width:210px; left:3%; top:15%; }
  .conversation-card{
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 12px;
  }
  .conversation-avatar-pro{
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }
  .conversation-card-footer{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* seller page refinement */
.seller-header-card{
  padding: 18px 22px;
  margin-bottom: 14px;
}

.seller-feedback-card{
  margin-bottom: 14px;
  overflow: hidden;
}

.seller-products-card{
  padding-top: 16px;
}

.seller-hero-centered{
  align-items: center;
  text-align: center;
}

.seller-title-block{
  display:flex;
  justify-content:center;
  width:100%;
}

.seller-name-frame-centered{
  justify-content:center;
  margin-inline:auto;
  min-width:min(100%, 540px);
}

.seller-subline-centered{
  justify-content: center;
  flex-wrap: wrap;
}

.seller-description-centered{
  margin-inline:auto;
  text-align:center;
  max-width: 88ch;
}

.seller-ratings-strip{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.rating-card-compact{
  min-height: 96px;
}

.seller-products-wide{
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 16px;
}

.seller-products-wide .product-card{
  max-width: none;
  width: 100%;
  min-width: 0;
}

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

.section-pill-title{
  display:inline-flex;
  align-items:center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,51,102,.08), rgba(149,187,58,.16));
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(0,51,102,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.small-label{
  font-size: 13px;
}

.catalog-grid{
  gap: 18px;
}

@media (max-width: 900px){
  .seller-products-wide{
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* ===== شريط البحث مع تأثير glow عند التركيز ===== */
.searchbar-glow {
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.08);
}
.searchbar-glow:focus-within {
  box-shadow: 0 6px 20px rgba(149, 187, 58, 0.2), 0 0 0 3px rgba(149, 187, 58, 0.1);
  border-color: var(--secondary);
}
.chips-persistent{display:flex;flex-wrap:wrap;gap:10px;}
.chip{border:1px solid rgba(0,51,102,.08);background:#fff;border-radius:999px;padding:8px 14px;box-shadow:0 6px 14px rgba(0,0,0,.04);}
.chip.active{background:linear-gradient(135deg,#e9f7d8,#dff1c6);color:#275700;border-color:rgba(149,187,58,.28);}

/* ===== product cards ===== */
.auction-card{border:1px solid rgba(0,51,102,.06);box-shadow:0 12px 28px rgba(15,23,42,.07),0 0 0 1px rgba(59,130,246,.06),0 0 20px rgba(59,130,246,.07);}
.auction-card:hover{box-shadow:0 18px 36px rgba(15,23,42,.11),0 0 0 1px rgba(249,115,22,.10),0 0 24px rgba(249,115,22,.10);}
.product-body-pro{padding:14px 14px 15px;display:grid;gap:10px;}
.product-price-hero{font-size:20px;font-weight:800;color:var(--primary);margin-bottom:2px;}
.pro-meta-grid{grid-template-columns:auto 1fr;align-items:center;gap:12px;}
.region-pill{min-width:86px;background:#f8fafc;}
.product-store-block-pro{display:grid;gap:4px;min-width:0;}
.store-link-pro{font-size:14px;line-height:1.4;}
.store-rating-pro{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:#7a6a23;}
.compact-pill{min-width:62px;padding:6px 8px;}
.product-actions-pro{margin-top:4px;}

/* ===== modal details ===== */
.modal-product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:18px;align-items:start;}
.modal-gallery{display:grid;gap:10px;}
.modal-product-image{width:100%;max-height:338px;object-fit:cover;border-radius:16px;box-shadow:0 10px 26px rgba(0,0,0,.08);}
.modal-placeholder{height:280px;border-radius:16px;background:#eef2f7;}
.modal-product-copy{display:grid;gap:14px;}
.modal-title-row{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;}
.modal-title-row h2{margin:0;font-size:24px;line-height:1.4;color:var(--primary);}
.modal-price{margin:0;white-space:nowrap;}
.detail-card-block{border:1px solid rgba(0,51,102,.07);border-radius:16px;background:#fbfcfe;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.04);}
.detail-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px;}
.detail-card-title{font-weight:800;color:var(--primary);margin-bottom:8px;}
.detail-rows{display:grid;gap:9px;}
.detail-row{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:start;padding-bottom:8px;border-bottom:1px dashed rgba(15,23,42,.08);}
.detail-row:last-child{padding-bottom:0;border-bottom:none;}
.detail-label{font-weight:700;color:#4c6378;}
.detail-value{color:var(--text);line-height:1.8;}
.modal-description{margin:0;line-height:1.95;color:#465467;}
.seller-inline-rating{display:inline-flex;gap:6px;align-items:center;font-size:13px;color:#7a5c00;background:rgba(212,175,55,.10);padding:7px 12px;border-radius:999px;}
.modal-contact-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.modal-purchase-box{display:grid;gap:14px;padding:16px 18px;border-radius:18px;background:linear-gradient(180deg,#fdfefe,#f4f8fb);border:1px solid rgba(0,51,102,.08);box-shadow:0 10px 24px rgba(15,23,42,.05);}
.modal-purchase-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.modal-cart-stock{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:rgba(149,187,58,.14);color:#557812;font-weight:800;font-size:13px;white-space:nowrap;}
.modal-cart-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.modal-qty-stepper{display:inline-flex;align-items:center;gap:8px;padding:8px;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.85);}
.modal-qty-btn{width:40px;height:40px;border:none;border-radius:12px;background:#eef4f8;color:var(--primary);font-size:22px;font-weight:800;display:grid;place-items:center;cursor:pointer;transition:.2s ease;}
.modal-qty-btn:hover{background:#dfe9f1;transform:translateY(-1px);}
.modal-qty-input{width:78px;height:40px;border:none;background:transparent;text-align:center;font-weight:800;font-size:16px;color:var(--text);outline:none;}
.modal-cart-submit{min-width:170px;}

/* ===== seller page ===== */
.seller-hero-pro{gap:14px;}
.seller-name-frame-pro{min-width:min(100%,680px);}
.seller-frame-topline{font-size:12px;font-weight:700;color:#8a6b00;letter-spacing:.2px;}
.seller-rate-chip-pro{font-size:13px;}
.seller-subline-pro{gap:10px;}
.seller-description-pro{font-size:15px;max-width:86ch;}
.seller-contact-btn{margin-top:2px;}
.rating-card-pro{min-height:118px;}

/* ===== messages / whatsapp-like ===== */
.whatsapp-shell{grid-template-columns:360px 1fr;}
.messages-search-wrap{margin:8px 0 12px;}
.messages-search{background:#f8fafc;}
.whatsapp-entry{padding:12px 12px 11px;border:1px solid rgba(15,23,42,.05);background:linear-gradient(180deg,#fff,#fbfdff);}
.whatsapp-entry:hover{background:#f8fbff;}
.conversation-productline{font-size:12px;color:#486174;margin-top:2px;}
.conversation-time{font-size:11px;color:#7b8794;white-space:nowrap;}
.whatsapp-main{padding:0;}
.whatsapp-chat-layout{grid-template-rows:auto 1fr auto auto;min-height:680px;}
.whatsapp-chat-header{position:sticky;top:0;z-index:2;background:linear-gradient(180deg,#ffffff,#f7fbff);}
.chat-person-block{display:flex;align-items:center;gap:12px;}
.chat-person-avatar{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,var(--primary),#0c5aa4);color:#fff;display:grid;place-items:center;font-weight:800;}
.whatsapp-thread{background:radial-gradient(circle at 15% 18%, rgba(149,187,58,.07), transparent 19%),radial-gradient(circle at 83% 10%, rgba(0,51,102,.05), transparent 18%),linear-gradient(180deg,#eff4f8,#f7fafc);padding:20px;gap:12px;overflow:auto;}
.chat-bubble{position:relative;padding:12px 14px 10px;}
.chat-bubble.is-other{background:#fff;border-top-right-radius:8px;}
.chat-bubble.is-me{background:linear-gradient(180deg,#dcf5ca,#cfeeb7);border-top-left-radius:8px;}
.chat-bubble.is-other::before,.chat-bubble.is-me::before{content:"";position:absolute;top:0;width:12px;height:12px;background:inherit;}
.chat-bubble.is-other::before{right:-4px;clip-path:polygon(0 0,100% 50%,0 100%);}
.chat-bubble.is-me::before{left:-4px;clip-path:polygon(100% 0,0 50%,100% 100%);}
.whatsapp-composer{padding:14px 16px 16px;background:#fff;border-top:1px solid var(--border);}
.whatsapp-textarea,.rating-textarea{resize:none;min-height:68px;max-height:110px;border-radius:18px;padding:12px 14px;}
.whatsapp-composer-actions{justify-content:space-between;}
.whatsapp-empty-panel{min-height:680px;background:linear-gradient(180deg,#fbfdff,#f4f8fb);}

@media (max-width:980px){
  .modal-product-layout{grid-template-columns:1fr;}
  .modal-cart-inline{align-items:stretch;}
  .modal-qty-stepper,
  .modal-cart-submit{width:100%;}
  .whatsapp-shell{grid-template-columns:1fr;}
}



/* ===== Restore stable product card ===== */
.cards-strip{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding-bottom:10px;
  scroll-behavior:smooth;
}
.cards-strip::-webkit-scrollbar{height:8px;}
.cards-strip::-webkit-scrollbar-thumb{background:#cfd6df;border-radius:999px;}

.product-card{
  min-width:188px;
  max-width:188px;
  background:#fff;
  border-radius:14px;
  padding:10px;
  border:1px solid var(--border);
  flex-shrink:0;
  transition:.2s ease;
  box-shadow:0 6px 16px rgba(0,0,0,.05);
  position:relative;
  overflow:visible;
}
.product-card:hover{transform:translateY(-3px);}

.product-image{
  width:100%;
  height:128px;
  background:#e5e7eb;
  border-radius:10px;
  margin-bottom:10px;
  object-fit:cover;
  display:block;
}
.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:10px;
}

.product-body{
  padding:0;
  display:grid;
  gap:8px;
}
.product-title{
  font-size:14px;
  font-weight:700;
  line-height:1.45;
  margin-bottom:0;
  min-height:40px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product-price{
  color:#1f8f43;
  font-weight:700;
  margin-bottom:0;
}
.product-price-centered{
  text-align:center;
}

.product-meta-grid{
  display:grid;
  grid-template-columns:74px 1fr;
  gap:10px;
  align-items:start;
}
.product-region-badge,.views-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:31px;
  padding:6px 10px;
  border-radius:12px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}
.views-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
  background:linear-gradient(180deg,#fff6c4,#f4dc74);
  color:#725300;
  border:1px solid rgba(179,146,24,.28);
  box-shadow:0 10px 18px rgba(244,220,116,.24);
}
.product-region-badge{
  background:#f5f7fb;
  color:#425466;
  border:1px solid rgba(15,23,42,.06);
}
.product-store-block{min-width:0;}
.store-link{
  display:block;
  width:100%;
  text-align:right;
  border:none;
  background:transparent;
  padding:0;
  font-weight:700;
  color:var(--text);
  cursor:pointer;
}
.store-rating{
  margin-top:4px;
  color:#9a6700;
  font-size:12px;
  font-weight:700;
}
.product-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.product-card .btn.btn-outline,
.product-card .btn.btn-secondary{
  margin-top:0;
  width:100%;
}

/* ensure home/catalog cards don't stretch awkwardly */
.catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(188px,1fr));
  gap:14px;
  margin-top:16px;
}
.compact-grid{
  grid-template-columns:repeat(auto-fill,minmax(188px,1fr));
}

/* ===== Restore seller page header + wide products ===== */
.seller-header-card,
.seller-feedback-card,
.seller-products-card{ overflow:hidden; }

.seller-hero{
  display:grid;
  gap:12px;
  justify-items:center;
  text-align:center;
}
.seller-name-frame{
  display:grid;
  gap:8px;
  justify-items:center;
  border:1px solid rgba(212,175,55,.45);
  background:linear-gradient(180deg,#fffdf4,#fff8dd);
  border-radius:20px;
  padding:16px 28px;
  box-shadow:0 14px 32px rgba(212,175,55,.12);
}
.seller-name-frame h2{ margin:0; color:var(--primary); }
.seller-frame-topline{
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
  color:#7b5c00;
  opacity:.9;
}
.seller-rate-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  padding:7px 12px;
  background:rgba(212,175,55,.14);
  color:#7b5c00;
  font-weight:700;
}
.seller-subline{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}
.seller-location-chip,.seller-products-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  background:#f7fafc;
  color:#334155;
  border:1px solid rgba(15,23,42,.07);
}
.seller-description{
  margin:0;
  max-width:880px;
  line-height:1.9;
  color:#475569;
}
.seller-hero-centered{ align-items:center; text-align:center; }
.seller-title-block{ display:flex; justify-content:center; width:100%; }
.seller-name-frame-centered{
  justify-content:center;
  margin-inline:auto;
  min-width:min(100%,540px);
}
.seller-subline-centered{
  justify-content:center;
  flex-wrap:wrap;
}
.seller-description-centered{
  margin-inline:auto;
  text-align:center;
  max-width:88ch;
}

.seller-ratings-strip{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.rating-card-compact{ min-height:96px; }

.seller-products-wide{
  grid-template-columns:repeat(auto-fill,minmax(265px,1fr));
  gap:16px;
}
.seller-products-wide .product-card{
  max-width:none;
  min-width:0;
  width:100%;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
}
.section-pill-title{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(0,51,102,.08), rgba(149,187,58,.16));
  color:var(--primary);
  font-size:16px;
  font-weight:700;
  border:1px solid rgba(0,51,102,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.small-label{
  font-size:12px;
  color:#64748b;
}
.seller-contact-btn{
  min-width:190px;
}

@media (max-width: 900px){
  .seller-products-wide{
    grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  }
  .product-card{
    min-width:176px;
    max-width:176px;
  }
  .catalog-grid,.compact-grid{
    grid-template-columns:repeat(auto-fill,minmax(176px,1fr));
  }
}


.product-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.product-modal-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.product-modal-price {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
  color: #0f766e;
}

.product-meta-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.product-meta-item {
  display: flex;
  gap: 8px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  line-height: 1.7;
}

.product-meta-item strong {
  color: #0f172a;
  min-width: 88px;
}

.product-description-box {
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.section-mini-title {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #334155;
}

.seller-info-card {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(209, 150, 60, 0.16);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(209, 150, 60, 0.08);
}

.seller-info-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.seller-info-row strong {
  min-width: 84px;
  color: #0f172a;
}

.seller-description {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  color: #475569;
  line-height: 1.7;
}

.seller-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .product-details-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Professional Product Cards - تكبير، ظل متوهج، انتقال سلس ===== */
.product-card {
  position: relative;
  min-width: 240px;
  max-width: 240px;
  background: #fff;
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(0, 51, 102, 0.06);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    border-color 0.3s ease;
  box-shadow:
    0 4px 20px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(15, 23, 42, 0.03);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(149, 187, 58, 0.2);
  box-shadow:
    0 20px 35px -12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(149, 187, 58, 0.25),
    0 0 24px rgba(149, 187, 58, 0.2);
}

/* Image container - ارتفاع أقل للبطاقة المدمجة */
.product-image-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.06);
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.product-image-placeholder::after {
  content: "🛒";
  font-size: 36px;
  opacity: 0.35;
}

/* Condition ribbon - داخل البطاقة، تدرج + ظل + توهج */
.condition-ribbon {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 80px;
  text-align: center;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  z-index: 10;
  backdrop-filter: blur(4px);
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.condition-new {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 12px rgba(34, 197, 94, 0.35);
}

.condition-like-new {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 12px rgba(37, 99, 235, 0.35);
}

.condition-used-good {
  background: linear-gradient(135deg, #ea580c, #fb923c);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 12px rgba(234, 88, 12, 0.35);
}

/* Body - محتويات متلاصقة */
.product-body,
.product-body-pro {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  min-height: 38px;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-card:hover .product-title {
  color: var(--primary);
}

.product-price,
.product-price-hero {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
  margin: 0 0 2px;
  letter-spacing: -0.02em;
}

.product-price-centered {
  text-align: center;
}

/* Meta grid - تباعد أقل */
.product-meta-grid,
.pro-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-region-badge,
.region-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: #f8fafc;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

.region-icon {
  font-size: 12px;
  opacity: 0.8;
}

.views-badge,
.compact-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  border: 1px solid rgba(180, 140, 20, 0.2);
  position: static;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.15);
}

.views-icon {
  font-size: 12px;
  opacity: 0.9;
}

/* Store block - مدمج */
.product-store-block,
.product-store-block-pro {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 6px;
  margin-top: 2px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.store-link,
.store-link-pro {
  display: block;
  width: 100%;
  text-align: right;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.store-link:hover,
.store-link-pro:hover {
  color: var(--accent);
  opacity: 0.95;
}

.store-rating,
.store-rating-pro {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
}

.star-icon {
  color: #f59e0b;
  font-size: 12px;
}

.rating-count {
  color: #94a3b8;
  font-weight: 500;
}

/* Actions - أزرار مدمجة */
.product-actions,
.product-actions-pro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 4px;
}

.product-card .btn {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.25s ease;
}

.product-card .btn.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.product-card .btn.btn-outline:hover {
  background: rgba(0, 51, 102, 0.06);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.product-card .btn.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #a8d04a 100%);
  color: #1a3d00;
  border: none;
}

.product-card .btn.btn-secondary:hover {
  background: linear-gradient(135deg, #a8d04a 0%, var(--secondary) 100%);
  box-shadow: 0 6px 20px rgba(149, 187, 58, 0.35);
  transform: translateY(-1px);
}

/* Grid layouts */
.catalog-grid,
.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cards-strip {
  gap: 20px;
  padding-bottom: 14px;
}

/* Seller page wide cards */
.seller-products-wide .product-card {
  min-width: 0;
  max-width: none;
  width: 100%;
}

/* Auction card accent */
.auction-card {
  border-color: rgba(59, 130, 246, 0.08);
}

.auction-card:hover {
  border-color: rgba(149, 187, 58, 0.25);
}

@media (max-width: 900px) {
  .product-card {
    min-width: 200px;
    max-width: 200px;
  }

  .product-image-wrap {
    height: 120px;
  }

  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .product-card {
    min-width: 160px;
    max-width: 160px;
  }

  .product-image-wrap {
    height: 110px;
  }

  .product-body,
  .product-body-pro {
    padding: 8px 10px 10px;
    gap: 5px;
  }

  .product-title {
    font-size: 12px;
    min-height: 34px;
  }

  .product-price,
  .product-price-hero {
    font-size: 15px;
  }

  .product-card .btn {
    padding: 6px 8px;
    font-size: 11px;
  }

  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
}


/* ===== Dragon Effect ===== */
#dragon-effect-layer{
  position:fixed;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:0;
}

.dragon-effect-canvas{
  width:100%;
  height:100%;
  display:block;
  pointer-events:none;
}

.app-shell,
.topbar,
.main-space{
  position:relative;
  z-index:1;
}

.modal{
  z-index:200;
}

/* ===== Phase 3 user panels ===== */
.product-actions-pro {
  grid-template-columns: 1fr 1fr;
}

.product-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.btn.is-active-favorite {
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(245,158,11,.18));
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,.18);
}

.favorite-fab {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15,23,42,.16);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.favorite-fab:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 16px 34px rgba(15,23,42,.22);
}

.favorite-fab.is-active-favorite {
  background: rgba(255,235,238,.96);
  color: #dc2626;
  border-color: rgba(220,38,38,.18);
}

.icon-action-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148,163,184,.24);
  border-radius: 14px;
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15,23,42,.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}

.icon-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(14,116,144,.28);
  color: #0f766e;
  box-shadow: 0 14px 28px rgba(15,23,42,.12);
}

.cart-layout,
.orders-layout {
  align-items: start;
}

.cart-item-card,
.order-item-card,
.deal-card {
  display: grid;
  gap: 10px;
}

.cart-item-main {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.cart-item-image {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
  background: #e2e8f0;
}

.cart-item-image.placeholder {
  display: block;
}

.cart-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.cart-item-side {
  min-width: 180px;
}

.cart-item-head,
.order-row-head,
.deal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-item-actions,
.order-item-actions,
.deal-actions,
.account-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.summary-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

/* ===== Mobile-focused design improvements ===== */
@media (max-width: 900px) {
  body {
    background: linear-gradient(180deg, #f4f7f6 0%, #eef4f3 100%);
  }

  .topbar {
    border-bottom: 1px solid rgba(17, 82, 53, 0.16);
    box-shadow: 0 10px 28px rgba(26, 54, 50, 0.08);
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    justify-content: center;
    width: 100%;
  }

  .header-nav-links {
    width: 100%;
    display: flex;
    justify-content: space-around;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav-actions {
    justify-content: center;
    gap: 8px;
  }

  .hero-card.hero-poster {
    min-height: 320px;
    padding: 28px 18px;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(17, 100, 61, 0.96) 0%, rgba(255,255,255,0.92) 100%);
  }

  .hero-text {
    text-align: center;
    margin-inline: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    gap: 12px;
    justify-items: center;
  }

  .hero-actions .boxed-btn,
  .hero-actions .rainbow-btn-inner {
    width: 100%;
    max-width: 320px;
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero-text p {
    font-size: 15px;
    max-width: 100%;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
  }

  .hero-sword {
    display: none;
  }

  .filters-shell {
    border-radius: 22px;
    padding: 18px;
  }

  .filters-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filters-shell .field {
    font-size: 15px;
    min-height: 48px;
  }

  .search-box {
    max-width: 100%;
    margin: 0 auto;
  }

  .search-input {
    min-height: 50px;
    font-size: 16px;
  }

  .product-card {
    min-width: auto;
    max-width: 100%;
    width: 100%;
    border-radius: 20px;
  }

  .product-image-wrap {
    height: 170px;
  }

  .product-image,
  .product-image img,
  .product-image-placeholder {
    border-radius: 20px 20px 0 0;
  }

  .product-body {
    padding: 14px 14px 16px;
    gap: 10px;
  }

  .product-title {
    font-size: 15px;
    min-height: 44px;
  }

  .product-price {
    font-size: 17px;
  }

  .product-card .btn {
    padding: 11px 14px;
    font-size: 13px;
    border-radius: 14px;
  }

  .product-actions {
    gap: 10px;
  }

  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
  }

  .cards-strip {
    gap: 14px;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 10px 14px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 -10px 24px rgba(15,23,42,0.12);
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(15,23,42,0.08);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    flex: 1;
    min-height: 44px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    background: #f8fafc;
    border: 1px solid rgba(15,23,42,0.08);
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav button:hover {
    background: #eef4f8;
  }

  .search-area-panel {
    max-width: calc(100vw - 24px);
    margin: 0 12px;
    border-radius: 22px;
  }

  .mobile-sheet {
    padding: 0;
  }

  .mobile-sheet-body {
    padding: 18px;
  }

  .mobile-sheet-head {
    padding: 18px;
  }

  .mobile-sheet-close {
    width: 42px;
    height: 42px;
  }

  .mobile-sheet-field {
    gap: 8px;
  }

  .mobile-sheet-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mobile-conversation-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .messages-shell {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .messages-sidebar {
    padding: 14px;
    border-radius: 24px;
  }

  .messages-main-card {
    border-radius: 24px;
    overflow: hidden;
  }

  .chat-thread,
  .whatsapp-thread {
    padding: 16px;
  }

  .chat-bubble {
    padding: 12px 14px;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    padding: 14px 10px;
    gap: 10px;
  }

  .header-nav-links {
    gap: 6px;
  }

  .nav-actions {
    gap: 6px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 14px;
  }

  .field {
    min-height: 48px;
  }

  .hero-card.hero-poster {
    min-height: 280px;
    padding: 24px 16px;
  }

  .hero-title {
    font-size: clamp(26px, 10vw, 38px);
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .boxed-btn,
  .hero-actions .rainbow-btn-inner {
    max-width: 100%;
    width: 100%;
  }

  .product-card .btn {
    font-size: 13px;
  }

  .product-meta-grid {
    gap: 8px;
  }

  .product-region-badge,
  .views-badge,
  .compact-pill {
    font-size: 11px;
    padding: 6px 8px;
    min-height: 30px;
  }

  .product-title {
    font-size: 14px;
  }

  .catalog-grid,
  .compact-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .mobile-bottom-nav {
    padding: 10px 12px;
    gap: 6px;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    font-size: 12px;
    min-height: 42px;
  }

  .mobile-sheet-body {
    padding: 14px;
  }

  .search-input {
    font-size: 15px;
  }
}


.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.summary-line.compact {
  margin: 0;
}

.order-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.deal-strip {
  display: grid;
  gap: 10px;
  margin: 14px 18px 0;
}

.compact-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.order-line-card {
  display: grid;
  gap: 6px;
}

.linked-orders-card {
  display: grid;
  gap: 12px;
}

.linked-orders-list {
  display: grid;
  gap: 10px;
}

.linked-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  text-align: right;
  cursor: pointer;
}

.linked-order-item:hover {
  background: #eef6ff;
  border-color: rgba(14,116,144,.18);
}

.soft-empty {
  padding: 18px;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.08);
}

.loading-box {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f8fafc, #eef2f7, #f8fafc);
  background-size: 200% 100%;
  animation: loadingPulse 1.4s linear infinite;
  color: var(--muted);
  text-align: center;
}

.toast-container {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 260;
  display: grid;
  gap: 10px;
  width: min(92vw, 360px);
}

.toast {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 18px 36px rgba(15,23,42,.2);
  animation: toastIn .22s ease;
}

.toast.info { background: linear-gradient(135deg, #0f766e, #0ea5a4); }
.toast.success { background: linear-gradient(135deg, #15803d, #22c55e); }
.toast.error { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.toast-title {
  font-size: 13px;
  font-weight: 800;
}

.toast-message {
  font-size: 13px;
  line-height: 1.7;
}

.confirm-modal-card {
  max-width: 420px;
}

.deal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.deal-status.pending { background: rgba(245,158,11,.14); color: #a16207; }
.deal-status.agreed { background: rgba(34,197,94,.12); color: #15803d; }
.deal-status.cancelled { background: rgba(239,68,68,.12); color: #b91c1c; }

@keyframes loadingPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 2026 Design Refresh Override ===== */
:root {
  --bg: #ffffff;
  --text: #111827;
  --card: #ffffff;
  --muted: #f3f4f6;
  --muted-text: #4b5563;
  --border: rgba(0, 0, 0, 0.1);
  --input-bg: #f3f3f5;
  --danger: #d4183d;
  --radius: 12px;
  --brand-start: #2563eb;
  --brand-end: #7c3aed;
  --brand-soft: #eff6ff;
  --surface: #ffffff;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.main-space {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 40px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  gap: 18px;
}

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

.brand-badge,
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.brand-text,
.brand-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-copy .muted {
  color: var(--muted-text);
}

.muted,
.entity-subtitle,
.entity-meta,
.inline-muted,
.conversation-meta-note,
.small-label,
.mini-note,
.section-head p,
.hero-text p,
.brand-copy .muted {
  color: var(--muted-text);
}

.searchbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: none;
}

.searchbar input {
  color: var(--text);
}

.searchbar-glow {
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.searchbar:focus-within {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.nav-actions {
  gap: 10px;
}

.header-nav-row {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px 0 12px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.16);
}

.btn-primary:hover {
  filter: brightness(.96);
}

.btn-secondary {
  color: #fff;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
}

.btn-light {
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.btn-light:hover {
  background: #f9fafb;
}

.btn-outline {
  color: #111827;
  background: #fff;
  border-color: #d1d5db;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #c7d2fe;
}

.cart-nav-btn {
  position: relative;
}

.header-nav-row .btn {
  position: relative;
  overflow: visible;
}

.cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 24px;
  height: 24px;
  padding-inline: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
  z-index: 2;
}

.hero-card.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff, #fdf2f8);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero-overlay,
.hero-flag,
.hero-sword {
  opacity: .18;
}

.hero-text {
  color: var(--text);
  margin-inline-end: 4%;
}

.hero-kicker {
  color: #1d4ed8;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-text h1 {
  font-size: clamp(40px, 6vw, 72px);
  color: var(--text);
  line-height: 1.08;
  max-width: 12ch;
}

.hero-text h1::after {
  content: " منتجات محلية";
  display: block;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  color: #4b5563;
  max-width: 58ch;
  font-size: 16px;
}

.filters-shell,
.filters-box {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin-bottom: 32px;
  border: 1px solid rgba(0,0,0,.04);
}

.chips,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  color: #374151;
  box-shadow: none;
}

.chip.active,
.pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
}

.field,
.form-input,
.form-select,
.form-textarea,
.searchbar input {
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: .2s ease;
}

.field:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.searchbar input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .25s ease, transform .25s ease;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  transform: translateY(-4px);
}

.product-image-wrap {
  aspect-ratio: 1 / 1;
  height: auto;
  background: #f9fafb;
}

.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.product-price-hero,
.product-price {
  color: #111827;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.cart-layout > .card:last-child {
  position: sticky;
  top: 96px;
  align-self: start;
}

.summary-box {
  background: #fff;
}

.summary-line span {
  color: #374151;
  font-weight: 600;
}

.summary-line strong {
  color: #111827;
}

.modal {
  background: rgba(0,0,0,.5);
}

.modal-content,
.modal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.site-footer {
  background: #111827;
  color: #d1d5db;
  margin-top: 64px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  line-height: 2;
}

.site-footer a:hover {
  color: #60a5fa;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 0;
}

.footer-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 980px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .searchbar {
    max-width: none;
  }

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

  .cart-layout > .card:last-child {
    position: static;
  }

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

  .header-nav-row {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: 100%;
    padding: 0;
  }

  .hero-card.hero-poster {
    min-height: 260px;
  }

  .hero-text h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

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

@media (max-width: 700px) {
  .product-quick-actions {
    grid-template-columns: 1fr;
  }

  .cart-item-head,
  .order-row-head,
  .deal-head {
    flex-direction: column;
  }
}

/* ===== Phase 3 UX polish ===== */
.muted,
.mini-note,
.soft-empty,
.inline-muted,
.detail-state-copy,
.order-state-copy,
.cart-meta-row .muted {
  color: #374151;
}

.field::placeholder,
.searchbar input::placeholder,
textarea::placeholder {
  color: #6b7280;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #f8fafc;
  color: #1f2937;
  font-weight: 600;
}

.check-field input {
  width: 18px;
  height: 18px;
}

.delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.delivery-pill.is-available {
  background: #ecfdf5;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.24);
}

.delivery-pill.is-unavailable {
  background: #f8fafc;
  color: #475569;
}

.product-delivery-pill,
.detail-delivery-pill,
.cart-delivery-pill,
.order-delivery-pill {
  margin-top: 10px;
}

.cart-meta-row,
.order-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.cart-qty-stepper{display:inline-flex;align-items:center;gap:8px;padding:8px;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 20px rgba(15,23,42,.05);}
.cart-qty-btn{width:38px;height:38px;border:none;border-radius:12px;background:#edf3f7;color:var(--primary);font-size:22px;font-weight:800;display:grid;place-items:center;cursor:pointer;transition:.2s ease;}
.cart-qty-btn:hover{background:#dde8ef;transform:translateY(-1px);}
.cart-qty-input {
  width:78px;
  min-width:78px;
  max-width:78px;
  text-align:center;
  font-weight:800;
  padding-inline:8px;
}

.btn-block {
  width: 100%;
}

.marketplace-order-card,
.marketplace-order-line,
.cart-item-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.order-state-copy {
  font-size: 14px;
  line-height: 1.8;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.order-progress-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.order-progress-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  text-align: center;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.order-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #cbd5e1;
}

.order-progress-step.done,
.order-progress-step.current {
  color: #111827;
}

.order-progress-step.done .order-progress-dot {
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
}

.order-progress-step.current {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.18);
}

.order-progress-step.current .order-progress-dot {
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.order-progress-strip.is-cancelled .order-progress-step {
  color: #991b1b;
  background: #fef2f2;
}

.order-progress-strip.is-cancelled .order-progress-dot {
  background: #ef4444;
}

.deal-status.status-info {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.deal-status.status-accent {
  background: rgba(124, 58, 237, 0.12);
  color: #6d28d9;
}

.deal-status.status-progress {
  background: rgba(245, 158, 11, 0.14);
  color: #a16207;
}

.deal-status.status-success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.deal-status.status-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.order-actions-empty {
  margin-top: 14px;
}

.favorites-grid-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.favorite-card-wrap {
  display: grid;
  gap: 14px;
}

.favorite-card-wrap .product-card {
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.favorite-card-wrap .product-card:hover {
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.11);
}

.order-progress-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.order-status-row .btn {
  min-height: 44px;
  padding-inline: 16px;
}

@media (max-width: 900px) {
  .order-progress-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .order-progress-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-status-row .btn {
    width: 100%;
  }
}

.favorite-remove-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  margin-top: -4px;
  justify-self: center;
  transition: color .2s ease, transform .2s ease;
}

.favorite-remove-btn:hover {
  color: #dc2626;
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .order-progress-strip {
    grid-template-columns: 1fr;
  }
}

/* ===== Compact product cards + routing links ===== */
.product-card {
  min-height: 100%;
  width: min(100%, 320px);
  margin-inline: auto;
}

.condition-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  min-width: 88px;
  padding: 7px 14px 7px 18px;
  border-radius: 0 0 0 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.condition-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 55%);
  pointer-events: none;
}

.condition-new {
  background: linear-gradient(135deg, #b20710, #e50914);
}

.condition-like-new {
  background: linear-gradient(135deg, #0f172a, #334155);
}

.condition-used-good {
  background: linear-gradient(135deg, #92400e, #ea580c);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-detail-link {
  display: none;
}

.product-detail-link:hover {
  transform: none;
  background: transparent;
  box-shadow: none;
}

.product-body,
.product-body-pro {
  padding: 12px 14px 12px;
  gap: 6px;
}

.product-title {
  min-height: auto;
  margin-bottom: 0;
  line-height: 1.45;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title-compact {
  -webkit-line-clamp: 1;
  font-size: 15px;
}

.product-price,
.product-price-hero {
  color: #2e7d32;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0;
}

.product-info-stack {
  display: grid;
  gap: 4px;
}

.product-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price-inline {
  font-size: 1.1rem;
  color: #2e7d32;
}

.product-delivery-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.product-delivery-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.product-delivery-icon.is-available {
  background: #dcfce7;
  color: #166534;
}

.product-delivery-icon.is-unavailable {
  background: #fee2e2;
  color: #b91c1c;
}

.product-info-row-muted,
.product-location-text,
.product-views-text {
  color: #5a6e7a;
  font-size: 0.85rem;
}

.product-store-inline {
  min-width: 0;
  max-width: 58%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 700;
}

.product-rating-inline {
  color: #475569;
  font-size: 0.88rem;
  white-space: nowrap;
}

.product-rating-star {
  color: #f5b042;
}

.product-actions-pro {
  min-height: 36px;
  margin-top: 0;
}

.product-actions-compact {
  min-height: auto;
  margin-top: 4px;
}

.product-actions-compact .btn {
  min-height: 38px;
}

.product-card-spacer {
  display: block;
  min-height: 36px;
}

.product-card-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0;
}

.product-inline-action {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #eef2ff;
  color: #1e3a8a;
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.product-inline-action:hover {
  transform: translateY(-1px);
  background: #e0e7ff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.product-inline-action-solid {
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  color: #fff;
  border-color: transparent;
}

.product-inline-action-solid:hover {
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  filter: brightness(.97);
  color: #fff;
}

.cart-plus-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-inline-start: 6px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.24);
}

.delivery-info-card {
  max-width: 420px;
}

.catalog-grid,
.compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.auction-card {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.auction-card:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.product-card {
  width: 100%;
  max-width: 192px;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image-wrap {
  aspect-ratio: 1 / 0.72;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.02);
}

.product-body,
.product-body-pro {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-link,
.store-link-pro,
.product-store-inline {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media (min-width: 1801px) {
  .container {
    max-width: none;
    width: 100%;
    margin-inline: auto;
    padding: 0;
  }

  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .product-card {
    max-width: 180px;
  }
}

@media (min-width: 1400px) and (max-width: 1800px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
}

@media (min-width: 480px) and (max-width: 599px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    max-width: 192px;
    border-radius: 14px;
  }

  .product-image-wrap {
    aspect-ratio: 1 / 0.62;
  }

  .product-body,
  .product-body-pro {
    padding: 10px;
    gap: 6px;
  }

  .condition-ribbon {
    min-width: 0;
    max-width: calc(100% - 48px);
    padding: 5px 8px 5px 10px;
    font-size: 12px;
    letter-spacing: .25px;
    line-height: 1.2;
  }

  .favorite-fab {
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .product-title,
  .product-title-compact {
    font-size: 12px;
    line-height: 1.35;
  }

  .product-price-inline,
  .product-price,
  .product-price-hero {
    font-size: 12px;
  }

  .product-info-row {
    gap: 6px;
  }

  .product-location-text,
  .product-views-text,
  .product-rating-inline,
  .product-store-inline {
    font-size: 12px;
  }

  .product-delivery-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 14px;
  }

  .product-card-bottom-actions {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .product-inline-action,
  .product-actions-compact .btn,
  .product-card .btn {
    min-height: 34px;
    padding: 0 8px;
    font-size: 12px;
    border-radius: 10px;
  }

  .product-quick-actions {
    gap: 6px;
    margin-top: 6px;
  }

  .icon-action-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 15px;
  }
}

@media (max-width: 479px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-image-wrap {
    aspect-ratio: 1 / 0.58;
  }

  .product-body,
  .product-body-pro {
    padding: 9px;
    gap: 5px;
  }

  .condition-ribbon {
    max-width: calc(100% - 44px);
    padding: 4px 7px 4px 9px;
    font-size: 12px;
    letter-spacing: .2px;
    white-space: normal;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .favorite-fab {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .product-title,
  .product-title-compact {
    font-size: 12px;
    line-height: 1.3;
    -webkit-line-clamp: 2;
  }

  .product-info-row {
    gap: 5px;
  }

  .product-info-row-muted {
    justify-content: space-between;
  }

  .product-price-inline {
    font-size: 12px;
  }

  .product-delivery-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .product-location-text,
  .product-views-text,
  .product-rating-inline {
    font-size: 12px;
  }

  .product-store-inline {
    flex: 1 1 110px;
    font-size: 12px;
  }

  .product-rating-inline {
    flex: 1 1 auto;
  }

  .product-card-bottom-actions {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .product-inline-action,
  .product-actions-compact .btn {
    width: 100%;
    min-height: 32px;
    font-size: 12px;
  }

  .product-body,
  .product-body-pro {
    padding: 8px;
  }

  .product-info-row-muted {
    gap: 4px;
  }

  .product-location-text,
  .product-views-text {
    font-size: 12px;
  }

  .product-quick-actions {
    gap: 6px;
  }

  .icon-action-button {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px;
  }
}

.notification-item {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
}

.notification-item.is-unread {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.notification-item-head,
.notification-item-actions,
.support-widget-head,
.support-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-item-actions {
  justify-content: flex-start;
}

.support-floating-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1100;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #0f766e, #22c55e);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(15, 118, 110, 0.28);
  cursor: pointer;
}

.support-widget {
  position: fixed;
  left: 20px;
  bottom: 78px;
  width: min(360px, calc(100vw - 28px));
  z-index: 1100;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.support-widget.hidden {
  display: none;
}

.support-widget-head {
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.support-widget-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.support-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.support-messages-list {
  max-height: 300px;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-inline-end: 4px;
}

.support-message-bubble {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
}

.support-message-bubble.is-user {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.support-message-bubble.is-admin {
  background: #ecfdf5;
  border: 1px solid rgba(34, 197, 94, 0.16);
}

.support-message-meta,
.support-message-time {
  color: #64748b;
  font-size: 12px;
}

.support-compose {
  align-items: flex-end;
}

.support-compose .field {
  min-height: 74px;
}

.content-static-body {
  display: grid;
  gap: 10px;
  line-height: 1.9;
}

@media (max-width: 599px) {
  .support-floating-btn {
    left: 12px;
    bottom: 12px;
    padding: 11px 15px;
  }

  .support-widget {
    left: 10px;
    bottom: 64px;
    width: calc(100vw - 20px);
  }
}

/* ===== Conversations Refresh ===== */
.messages-shell,
.whatsapp-shell {
  gap: 18px;
  align-items: stretch;
}

.conversations-card,
.messages-main-card,
.whatsapp-main {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.conversations-list {
  gap: 10px;
}

.conversation-card,
.conversation-entry {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.conversation-card:hover,
.conversation-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
  border-color: rgba(37, 99, 235, 0.18);
}

.conversation-card.is-active,
.conversation-entry.is-active {
  background: linear-gradient(180deg, #eef6ff, #f8fbff);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.1);
}

.conversation-row-name,
.conversation-row-product strong,
.conversation-row-last,
.conversation-header-title,
.chat-sender,
.chat-body,
.conversation-header-subtitle,
.conversation-meta-note,
.conversation-productline,
.conversation-time,
.message-bubble,
.message-bubble .message-meta {
  color: #111111 !important;
}

.conversation-row-last {
  line-height: 1.65;
  color: #1f2937 !important;
}

.conversation-row-time,
.conversation-meta-note,
.chat-time,
.message-meta,
.chat-header .muted,
.linked-order-item .muted,
.compact-card .muted {
  color: #4b5563 !important;
}

.chat-header,
.whatsapp-chat-header {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding: 16px 18px;
}

.chat-thread,
.whatsapp-thread {
  background:
    radial-gradient(circle at 20% 16%, rgba(37, 99, 235, 0.05), transparent 20%),
    radial-gradient(circle at 84% 12%, rgba(34, 197, 94, 0.06), transparent 18%),
    linear-gradient(180deg, #f8fafc, #eef4f8);
  padding: 18px;
  gap: 14px;
}

.chat-bubble {
  max-width: min(76%, 620px);
  color: #111111;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.chat-bubble.is-other {
  background: linear-gradient(180deg, #ffffff, #f9fbfd);
}

.chat-bubble.is-me {
  background: linear-gradient(180deg, #e8f7db, #d9f0c8);
}

.chat-body {
  font-size: 14px;
  line-height: 1.85;
}

.chat-sender {
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.chat-time {
  font-size: 11px;
  margin-top: 8px;
}

.chat-chip {
  background: #eef2ff;
  color: #1e3a8a;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.chat-chip.light {
  background: #f0fdf4;
  color: #166534;
  border-color: rgba(34, 197, 94, 0.12);
}

.whatsapp-composer {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.whatsapp-textarea,
.conversation-input {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.whatsapp-textarea::placeholder,
.conversation-input::placeholder {
  color: #6b7280;
}

.conversation-empty-panel,
.whatsapp-empty-panel {
  background: linear-gradient(180deg, #fbfdff, #f4f8fb);
  color: #111111;
}

@media (max-width: 900px) {
  .chat-thread,
  .whatsapp-thread {
    padding: 14px;
  }

  .chat-bubble {
    max-width: 88%;
  }
}

/* ===== Messaging + Support Refresh ===== */
.messages-shell,
.whatsapp-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 22px;
}

.conversations-card,
.messages-main-card {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 30%);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
}

.messages-sidebar {
  overflow: hidden;
}

.messages-head {
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.messages-search-wrap {
  margin-bottom: 14px;
}

.messages-search {
  border-radius: 16px;
  min-height: 48px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #111827;
}

.conversations-list {
  display: grid;
  gap: 12px;
  max-height: 72vh;
  overflow: auto;
  padding-inline-end: 4px;
}

.conversation-list-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 40px 18px;
  text-align: center;
  border-radius: 24px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.conversation-list-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 24px;
  background: linear-gradient(135deg, #dbeafe, #ecfeff);
}

.conversation-card,
.conversation-entry {
  width: 100%;
  text-align: right;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
}

.conversation-card.is-active,
.conversation-entry.is-active {
  transform: translateY(-2px);
}

.conversation-avatar-pro {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.conversation-card-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.conversation-row-top,
.conversation-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.conversation-row-name,
.conversation-row-last,
.conversation-row-product strong {
  color: #0f172a !important;
}

.conversation-row-name {
  font-size: 15px;
  font-weight: 800;
}

.conversation-row-last,
.conversation-row-product strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row-product {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.conversation-product-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.conversation-row-time,
.conversation-meta-note {
  color: #64748b !important;
  font-size: 12px;
  flex-shrink: 0;
}

.messages-main-card {
  min-height: 78vh;
  overflow: hidden;
}

.conversation-empty-panel,
.whatsapp-empty-panel {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 44px 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.08), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(59, 130, 246, 0.08), transparent 20%),
    linear-gradient(180deg, #fbfdff, #f1f5f9);
}

.chat-layout,
.whatsapp-chat-layout {
  min-height: 78vh;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
}

.chat-header,
.whatsapp-chat-header {
  padding: 18px 22px;
}

.chat-person-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-person-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe, #dcfce7);
  color: #111827;
  font-weight: 800;
  font-size: 20px;
}

.chat-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-strip {
  display: grid;
  gap: 12px;
  padding: 16px 18px 0;
}

.compact-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.chat-thread,
.whatsapp-thread {
  overflow: auto;
  padding: 22px 20px;
}

.chat-bubble {
  position: relative;
  padding: 14px 16px;
  border-radius: 20px;
}

.chat-bubble.is-me {
  border-bottom-left-radius: 8px;
}

.chat-bubble.is-other {
  border-bottom-right-radius: 8px;
}

.chat-body {
  color: #111827 !important;
  word-break: break-word;
}

.chat-composer,
.whatsapp-composer {
  padding: 16px 18px 18px;
}

.chat-composer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.support-floating-btn {
  left: 18px;
  bottom: 18px;
  padding: 14px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f766e, #22c55e 65%, #86efac);
  box-shadow: 0 22px 44px rgba(15, 118, 110, 0.26);
}

.support-widget {
  left: 18px;
  bottom: 86px;
  width: min(400px, calc(100vw - 24px));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.support-widget-head {
  padding: 18px 18px 16px;
  background: linear-gradient(135deg, #ecfdf5, #ecfeff);
}

.support-widget-body {
  gap: 14px;
  padding: 16px;
}

.support-quick-actions {
  gap: 10px;
}

.support-quick-actions .btn {
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.2);
  background: #fff;
}

.support-messages-list {
  max-height: 380px;
  min-height: 250px;
  padding: 6px 2px 6px 0;
  gap: 10px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fafc, #eef6f3);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px;
}

.support-conversation-banner,
.support-loading-state,
.support-error-state,
.support-empty-state {
  border-radius: 18px;
  padding: 14px 16px;
}

.support-conversation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.support-conversation-banner.is-open,
.support-status-pill.is-open {
  color: #0f766e;
}

.support-conversation-banner.is-pending,
.support-status-pill.is-pending {
  color: #b45309;
}

.support-conversation-banner.is-closed,
.support-status-pill.is-closed {
  color: #475569;
}

.support-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid currentColor;
}

.support-empty-state,
.support-loading-state,
.support-error-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(148, 163, 184, 0.28);
}

.support-empty-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 24px;
  background: linear-gradient(135deg, #dbeafe, #dcfce7);
}

.support-message-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.support-message-bubble.is-user {
  margin-inline-start: auto;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border: 1px solid rgba(34, 197, 94, 0.18);
}

.support-message-bubble.is-admin {
  margin-inline-end: auto;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.support-message-meta,
.support-message-time,
.support-message-text {
  color: #111827;
}

.support-message-meta {
  font-size: 12px;
  font-weight: 800;
}

.support-message-time {
  font-size: 11px;
  color: #64748b;
}

.support-message-text {
  line-height: 1.8;
}

.support-compose {
  align-items: stretch;
  gap: 12px;
}

.support-compose .field {
  min-height: 86px;
  border-radius: 18px;
  background: #fff;
  color: #111827;
}

@media (max-width: 980px) {
  .messages-shell,
  .whatsapp-shell {
    grid-template-columns: 1fr;
  }

  .messages-main-card,
  .conversation-empty-panel,
  .whatsapp-empty-panel,
  .chat-layout,
  .whatsapp-chat-layout {
    min-height: auto;
  }

  .conversations-list {
    max-height: none;
  }
}

@media (max-width: 599px) {
  .messages-shell,
  .whatsapp-shell {
    gap: 14px;
  }

  .conversations-card,
  .messages-main-card,
  .support-widget {
    border-radius: 22px;
  }

  .conversation-card,
  .conversation-entry {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 12px;
  }

  .conversation-avatar-pro,
  .chat-person-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 18px;
  }

  .support-widget {
    left: 10px;
    bottom: 68px;
    width: calc(100vw - 20px);
  }

  .support-floating-btn {
    left: 10px;
    bottom: 10px;
    padding: 12px 16px;
  }

  .support-messages-list {
    min-height: 220px;
    max-height: 320px;
  }

  .support-message-bubble,
  .chat-bubble {
    max-width: 92%;
  }
}

.security-challenge-box,
.verification-modal-body,
.verification-status-box {
  display: grid;
  gap: 10px;
}

.security-challenge-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #eef6f3);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.security-challenge-prompt,
.verification-status-box {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.7;
}

.verification-modal-body {
  padding-top: 8px;
}

.verification-status-box {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.verification-action-row {
  display: flex;
  justify-content: flex-start;
}

.product-card-refined{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  height:100%;
}

.product-card-refined .product-image-wrap{
  aspect-ratio:1 / 0.66;
  flex:0 0 auto;
}

.product-card-refined .product-body,
.product-card-refined .product-body-pro{
  padding:8px 10px 0;
  gap:6px;
  margin-top:-2px;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
}

.product-card-refined .product-title,
.product-card-refined .product-title-compact{
  min-height:40px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}

.product-card-refined .product-info-stack{
  display:grid;
  gap:4px;
  min-height:72px;
  align-content:start;
}

.product-card-refined .product-store-block,
.product-card-refined .product-store-block-pro{
  gap:2px;
}

.product-card-refined .product-card-bottom-actions-wide{
  display:grid;
  grid-template-columns:minmax(0, 1fr);
  width:calc(100% + 20px);
  margin-top:auto;
  margin-inline:-10px;
  margin-bottom:-1px;
  align-self:stretch;
}

.product-inline-action-wide{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:34px;
  border:none;
  border-top:1px solid rgba(15,23,42,.08);
  border-radius:0 0 14px 14px;
  background:linear-gradient(180deg,#f4f8fb,#e5edf3);
  color:#102a43;
  font-weight:800;
  letter-spacing:.1px;
  padding:0 12px;
  box-sizing:border-box;
}

.product-inline-action-wide:hover{
  background:linear-gradient(180deg,#eaf2f7,#dfe8ef);
  color:#0d2238;
}

@media (max-width: 599px){
  .catalog-grid,
  .compact-grid{
    gap:12px;
  }

  .catalog-grid .product-card,
  .compact-grid .product-card{
    width:100%;
    min-width:0;
    max-width:none;
  }

  .cards-strip{
    gap:12px;
    padding-inline:2px;
  }

  .cards-strip .product-card{
    flex:0 0 176px;
    width:176px;
    min-width:176px;
    max-width:176px;
  }

  .product-card-refined .product-body,
  .product-card-refined .product-body-pro{
    padding:7px 8px 0;
    gap:5px;
  }

  .product-card-refined .product-title,
  .product-card-refined .product-title-compact{
    min-height:34px;
  }

  .product-card-refined .product-card-bottom-actions-wide{
    display:grid;
    grid-template-columns:minmax(0, 1fr);
    width:calc(100% + 16px);
    margin-top:auto;
    margin-inline:-8px;
    margin-bottom:-1px;
  }

  .product-inline-action-wide{
    display:flex;
    width:100%;
    min-height:30px;
    border-radius:0 0 12px 12px;
    font-size:12px;
  }
}

.orders-layout .card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

#ordersList {
  display: grid;
  gap: 14px;
}

.marketplace-order-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.marketplace-order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

.marketplace-order-card .order-row-head strong {
  font-size: 16px;
  color: #0f172a;
}

.marketplace-order-card .order-inline-meta {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.marketplace-order-card .muted {
  font-size: 13px;
}

.order-details-box {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.detail-state-copy {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5fb 100%);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.order-lines-stack {
  display: grid;
  gap: 12px;
}

.marketplace-order-line {
  padding: 12px;
}

.order-line-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.order-line-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.order-item-actions {
  margin-top: 16px;
}

.order-item-actions .btn {
  min-height: 42px;
}

.order-actions-empty {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
}

@media (max-width: 700px) {
  .marketplace-order-card {
    padding: 14px;
  }

  .order-line-main {
    align-items: stretch;
  }

  .order-item-actions .btn {
    width: 100%;
  }
}

/* ===== Store Refresh: Neutral Marketplace Theme ===== */
:root {
  --store-primary: #2563eb;
  --store-cta: #22c55e;
  --store-bg: #f9fafb;
  --store-surface: #ffffff;
  --store-text: #111827;
  --store-text-secondary: #6b7280;
  --store-border: #e5e7eb;
  --store-warning: #f59e0b;
  --store-danger: #ef4444;
  --store-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

body {
  background: var(--store-bg);
  color: var(--store-text);
}

body::before {
  display: none;
}

.app-shell {
  background: transparent;
}

.site-header,
.topbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--store-border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  padding: 12px 0;
  gap: 14px;
}

.brand {
  padding: 0;
  background: transparent;
  border: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--store-primary), #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.brand-title,
.brand-text {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--store-text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.brand-copy .muted {
  color: var(--store-text-secondary);
}

.searchbar {
  max-width: 720px;
  min-height: 56px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.searchbar:focus-within {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.searchbar input {
  color: var(--store-text);
  font-size: 14px;
  font-weight: 500;
}

.searchbar input::placeholder {
  color: #9ca3af;
}

.searchbar .btn,
.btn-secondary {
  background: var(--store-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.btn-primary,
.btn-success {
  background: var(--store-cta);
  color: #fff;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.18);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--store-border);
  color: var(--store-text);
}

.btn-light {
  background: #fff;
  color: var(--store-text);
  border: 1px solid var(--store-border);
}

.main-space {
  padding-top: 18px;
}

.hero.hero-bleed {
  width: auto;
  margin: 0;
}

.hero-card.hero-poster {
  min-height: auto;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow);
}

.hero-overlay {
  background: none;
  opacity: 1;
}

.hero-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 360px);
  gap: 24px;
  padding: 28px;
}

.hero-text {
  color: var(--store-text);
}

.hero-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: var(--store-primary);
  border: 1px solid rgba(37, 99, 235, 0.12);
  font-weight: 800;
}

.hero-text h1 {
  color: var(--store-text);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  margin: 12px 0;
}

.hero-text h1::after {
  display: none;
}

.hero-text p {
  color: var(--store-text-secondary);
  font-size: 15px;
  line-height: 1.9;
}

.hero-media-frame {
  width: min(100%, 340px);
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--store-border);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.hero-media-art {
  min-height: 250px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.filters-shell,
.filters-box,
.card,
.summary-box,
.modal-content,
.modal-card,
.product-card,
.marketplace-order-card,
.marketplace-order-line,
.cart-item-card {
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  box-shadow: var(--store-shadow);
}

.filters-shell,
.filters-box {
  padding: 20px;
}

.section-head {
  align-items: end;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--store-text-secondary);
  margin: 6px 0 0;
}

.filters-shell {
  border-radius: 22px;
}

.filters-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(140px, 0.8fr));
  gap: 12px;
  align-items: center;
}

.chips-persistent {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip,
.pill {
  background: #fff;
  color: var(--store-text-secondary);
  border: 1px solid var(--store-border);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.chip:hover,
.pill:hover {
  color: var(--store-primary);
  border-color: rgba(37, 99, 235, 0.18);
  background: #f8fbff;
}

.chip.active,
.pill.active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--store-primary);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: none;
}

.category-block {
  margin-bottom: 32px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.category-title {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  color: var(--store-text);
  border: 1px solid var(--store-border);
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  font-weight: 800;
}

.cards-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 210px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.cards-strip .product-card {
  scroll-snap-align: start;
}

.cards-strip::-webkit-scrollbar {
  height: 8px;
}

.cards-strip::-webkit-scrollbar-thumb {
  background: #dbe3ee;
  border-radius: 999px;
}

.catalog-grid,
.compact-grid {
  gap: 14px;
}

.favorites-grid-shell {
  gap: 20px;
}

.seller-header-card,
.seller-feedback-card {
  background: var(--store-surface);
}

.mini-note {
  background: #f8fafc;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  padding: 12px 14px;
}

.field,
.form-input,
.form-select,
.form-textarea,
.searchbar input {
  border-color: var(--store-border);
  background: #fff;
  color: var(--store-text);
}

.field::placeholder,
.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.field:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.product-card {
  border-radius: 16px;
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.product-card-refined .product-body,
.product-card-refined .product-body-pro {
  padding: 12px 12px 0;
}

.product-title,
.product-title-compact {
  color: var(--store-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.product-price,
.product-price-inline,
.store-product-price {
  color: var(--store-text);
  font-weight: 900;
}

.muted,
.mini-note,
.soft-empty,
.inline-muted,
.detail-state-copy,
.order-state-copy,
.cart-meta-row .muted {
  color: var(--store-text-secondary);
}

.product-inline-action-wide {
  background: #f3f4f6;
  color: var(--store-text);
  border-top: 1px solid var(--store-border);
}

.product-inline-action-wide:hover {
  background: #eef2f7;
  color: var(--store-primary);
}

.checkout-layout {
  align-items: start;
}

.checkout-form-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.field-stack {
  display: grid;
  gap: 8px;
  color: var(--store-text);
  font-weight: 700;
}

.checkout-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.checkout-item-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.checkout-summary-box {
  margin-bottom: 16px;
}

.store-product-view-shell {
  padding: 20px;
}

.store-product-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.store-product-gallery {
  gap: 12px;
}

.product-page-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--store-primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.store-title-row h2 {
  margin: 0;
  color: var(--store-text);
  font-size: 30px;
  line-height: 1.3;
}

.store-product-description {
  color: var(--store-text-secondary);
  line-height: 1.9;
  white-space: pre-line;
}

.store-purchase-box {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid var(--store-border);
}

.store-buy-btn {
  min-width: 180px;
}

.section-head h2,
.section-head h3,
.card h2,
.card h3,
.detail-card-title {
  color: var(--store-text);
}

.site-footer {
  background: #fff;
  color: var(--store-text-secondary);
  border-top: 1px solid var(--store-border);
  margin-top: 52px;
}

.site-footer a:hover {
  color: var(--store-primary);
}

.footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.footer-title {
  color: var(--store-text);
  font-weight: 800;
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .hero-shell,
  .store-product-layout {
    grid-template-columns: 1fr;
  }

  .hero-media-frame {
    width: 100%;
  }

  .filters-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .hero-shell {
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .filters-bar {
    grid-template-columns: 1fr;
  }

  .category-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cards-strip {
    grid-auto-columns: minmax(180px, 180px);
    gap: 6px;
    padding-inline: 2px;
  }

  .checkout-item-card,
  .checkout-item-main {
    align-items: flex-start;
  }

  .checkout-item-card {
    flex-direction: column;
  }

  .store-buy-btn {
    width: 100%;
  }

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

:root {
  --site-marble-image: url("/assets/site/qatna-hero.png");
  --site-hero-image: url("/assets/site/qatna-hero.png");
  --site-gold-1: #d4af37;
  --site-gold-2: #f0d989;
  --site-gold-3: #9d7420;
  --site-ink: #100d09;
  --site-surface: rgba(255, 249, 238, 0.9);
}

body {
  background-image: var(--site-marble-image);
  background-position: top center;
  background-size: 420px auto;
  background-repeat: repeat;
  background-attachment: scroll;
  color: #1c1610;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.14), rgba(10, 8, 6, 0.2)),
    radial-gradient(circle at 18% 22%, rgba(212, 175, 55, 0.08), transparent 20%);
  pointer-events: none;
  z-index: -1;
}

.app-shell {
  background: transparent;
}

.site-header,
.topbar {
  background: rgba(16, 13, 9, 0.78);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  gap: 18px;
  padding: 14px 0;
}

.brand {
  gap: 14px;
  padding: 8px 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.08), rgba(212, 175, 55, 0.06));
  border: 1px solid rgba(212, 175, 55, 0.14);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #1f1710, #4d3920 42%, #d4af37 100%);
  color: #fff6da;
  font-size: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-title,
.brand-text {
  color: #fff4d0;
  background: linear-gradient(90deg, #fff7de, var(--site-gold-1) 52%, #f7e0a4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0.3px;
}

.brand-copy .muted {
  color: rgba(255, 244, 208, 0.78);
  font-size: 12px;
}

.searchbar {
  max-width: 660px;
  min-height: 62px;
  padding: 7px 8px 7px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.94), rgba(249, 236, 209, 0.86));
  border: 1px solid rgba(212, 175, 55, 0.36);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.searchbar:focus-within {
  border-color: rgba(212, 175, 55, 0.72);
  box-shadow:
    0 20px 38px rgba(0, 0, 0, 0.18),
    0 0 0 5px rgba(212, 175, 55, 0.14);
}

.searchbar input {
  min-height: 46px;
  background: transparent;
  color: #1b1713;
  font-size: 15px;
  font-weight: 600;
}

.searchbar input::placeholder {
  color: #77624b;
}

.searchbar .btn {
  min-height: 46px;
  min-width: 120px;
  border-radius: 999px;
  background: linear-gradient(135deg, #18120c, #43311c 38%, #d4af37);
  color: #fff4d1;
  box-shadow: 0 12px 24px rgba(56, 41, 21, 0.28);
}

.header-nav-row .btn-light,
.header-nav-row .btn-outline,
.header-nav-row .btn-primary {
  border-radius: 999px;
}

.header-nav-row .btn-light {
  background: rgba(255, 248, 235, 0.92);
  color: #2d2215;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.header-nav-row .btn-outline {
  color: #fff0c5;
  border-color: rgba(212, 175, 55, 0.28);
  background: rgba(255, 249, 235, 0.05);
}

.header-nav-row .btn-primary {
  background: linear-gradient(135deg, #f0d989, #d4af37 54%, #7a5816);
  color: #261a0e;
}

.main-space {
  padding-top: 22px;
}

.hero.hero-bleed {
  padding: 12px 0 6px;
}

.hero-card.hero-poster {
  min-height: 430px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(9, 7, 6, 0.88), rgba(24, 18, 12, 0.78)),
    var(--site-marble-image) center / cover no-repeat;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-overlay {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, 0.86) 0%, rgba(10, 8, 6, 0.62) 44%, rgba(10, 8, 6, 0.18) 100%),
    radial-gradient(circle at 22% 28%, rgba(212, 175, 55, 0.18), transparent 18%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 34px 42px;
}

.hero-text {
  width: 100%;
  margin: 0;
  color: #f7edd0;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(250, 237, 202, 0.1);
  color: #f7e1a0;
  border: 1px solid rgba(212, 175, 55, 0.22);
  backdrop-filter: blur(10px);
}

.hero-text h1 {
  max-width: 10ch;
  margin: 12px 0 14px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.95;
  color: #fff8e7;
}

.hero-text h1::after {
  content: "";
}

.hero-text p {
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.95;
  color: rgba(255, 244, 220, 0.86);
}

.hero-media-frame {
  justify-self: end;
  width: min(100%, 380px);
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 247, 228, 0.16), rgba(212, 175, 55, 0.09));
  border: 1px solid rgba(212, 175, 55, 0.26);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.hero-media-art {
  min-height: 320px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.1), rgba(8, 6, 4, 0.28)),
    var(--site-hero-image) center / cover no-repeat;
  border: 1px solid rgba(255, 244, 220, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.filters-shell,
.filters-box {
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.94), rgba(248, 236, 212, 0.88));
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: 0 22px 40px rgba(20, 14, 9, 0.12);
}

.filters-bar .field,
.filters-bar select {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(106, 84, 44, 0.16);
}

.section-title,
.category-title {
  color: #2a1d10;
}

.card,
.product-card,
.summary-box,
.modal-content,
.modal-card {
  backdrop-filter: blur(8px);
  box-shadow:
    0 18px 36px rgba(9, 7, 5, 0.18),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    0 0 26px rgba(212, 175, 55, 0.06);
  border-color: rgba(139, 108, 42, 0.14);
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .hero-media-frame {
    justify-self: stretch;
    width: 100%;
  }

  .hero-media-art {
    min-height: 240px;
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    padding: 10px 0 14px;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .searchbar {
    max-width: 100%;
    min-height: 56px;
  }

  .hero-card.hero-poster {
    min-height: 360px;
    border-radius: 26px;
  }

  .hero-shell {
    gap: 18px;
    padding: 22px 16px;
  }

  .hero-text h1 {
    font-size: clamp(34px, 11vw, 52px);
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-media-art {
    min-height: 190px;
  }
}

/* ===== Store Refresh: Orders, Messages, Notifications, Catalog Polish ===== */

.section-head {
  align-items: end;
  gap: 14px;
}

.section-head h2,
.section-head h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.section-head p,
.muted {
  color: #6b7280;
}

.section-pill-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
}

.hero.hero-bleed {
  padding: 8px 0 4px;
}

.hero-card.hero-poster {
  min-height: 340px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.92)),
    var(--site-marble-image) center / cover no-repeat;
  border: 1px solid #e5e7eb;
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.08);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(249, 250, 251, 0.95) 0%, rgba(249, 250, 251, 0.78) 48%, rgba(249, 250, 251, 0.28) 100%);
}

.hero-shell {
  gap: 24px;
  padding: 28px 34px;
}

.hero-text {
  color: #111827;
}

.hero-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.12);
  backdrop-filter: none;
}

.hero-text h1 {
  max-width: 12ch;
  color: #111827;
  font-size: clamp(36px, 5vw, 58px);
}

.hero-text p {
  max-width: 56ch;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.hero-media-frame {
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.hero-media-art {
  min-height: 260px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.filters-shell,
.filters-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.filters-bar .field,
.filters-bar select {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.category-block,
.seller-header-card,
.seller-feedback-card,
.seller-products-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.cards-strip {
  gap: 16px;
  padding-bottom: 10px;
}

.cards-strip .product-card {
  min-width: 212px;
}

.catalog-grid,
.compact-grid {
  gap: 18px;
}

.product-card {
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.product-card:hover {
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.orders-layout {
  gap: 20px;
  align-items: start;
}

.orders-layout > .card,
.messages-sidebar,
.messages-main-card,
#notificationsView .card {
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

#ordersList,
#notificationsList,
.conversations-list {
  gap: 14px;
}

#ordersList .card,
.marketplace-order-card,
#notificationsList > * {
  border-radius: 18px;
}

#ordersList .card,
.marketplace-order-card {
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#ordersList .card:hover,
.marketplace-order-card:hover,
.marketplace-order-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.08);
}

#orderDetailsPanel {
  min-height: 420px;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  color: #111827;
}

#orderDetailsPanel .conversation-empty,
#conversationDetails.conversation-empty {
  min-height: 280px;
  border-radius: 18px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  color: #6b7280;
}

.messages-shell {
  gap: 20px;
  align-items: stretch;
}

.messages-head {
  margin-bottom: 14px;
}

.messages-head p {
  max-width: 32ch;
}

.messages-search-wrap {
  margin-bottom: 14px;
}

.messages-search {
  min-height: 48px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.conversations-card {
  padding: 18px;
}

.messages-main-card {
  padding: 18px;
}

.conversation-card {
  padding: 14px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
}

.conversation-card:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.08);
}

.conversation-card.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.12);
}

.conversation-card-body,
.conversation-card-footer,
.conversation-card .muted,
.conversation-card .small,
.conversation-card strong,
.conversation-card h4 {
  color: #111827;
}

.conversation-card-footer {
  color: #6b7280;
}

.whatsapp-main,
.messages-main-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.chat-header,
.conversation-header,
.thread-head {
  border-bottom: 1px solid #eef2f7;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.chat-thread,
.conversation-messages {
  background:
    linear-gradient(180deg, rgba(249, 250, 251, 0.9), rgba(243, 247, 252, 0.95));
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 16px;
}

.chat-bubble,
.message-bubble,
.conversation-message {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.chat-bubble.is-own,
.message-bubble.is-own,
.conversation-message.is-own {
  border-color: rgba(34, 197, 94, 0.18);
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
}

.chat-bubble:not(.is-own),
.message-bubble:not(.is-own),
.conversation-message:not(.is-own) {
  background: #ffffff;
}

.notification-item {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.notification-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.07);
}

.notification-item.is-unread {
  border-inline-start: 4px solid #2563eb;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.notification-item-head,
.notification-item-actions {
  gap: 12px;
}

.notification-item strong,
.notification-item .notification-title,
.notification-item .muted {
  color: #111827;
}

.notification-item .muted,
.notification-item time {
  color: #6b7280;
}

.footer-grid {
  gap: 24px;
}

@media (max-width: 980px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .hero-card.hero-poster {
    min-height: 300px;
  }

  .orders-layout,
  .messages-shell {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .hero-card.hero-poster {
    min-height: 280px;
    border-radius: 22px;
  }

  .hero-shell {
    padding: 18px 16px;
  }

  .hero-text h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-media-art {
    min-height: 180px;
  }

  .orders-layout > .card,
  .messages-sidebar,
  .messages-main-card,
  #notificationsView .card {
    border-radius: 18px;
  }

  .conversations-card,
  .messages-main-card,
  #orderDetailsPanel {
    padding: 14px;
  }

  .catalog-grid,
  .compact-grid {
    gap: 14px;
  }
}

/* ===== Store Refresh: Header, Product View, Cart, Checkout ===== */

.header-nav-row {
  gap: 10px;
}

.header-nav-row .btn-light,
.header-nav-row .btn-outline,
.header-nav-row .btn-primary {
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  font-weight: 700;
}

.header-nav-row .btn-light {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.header-nav-row .btn-light:hover {
  border-color: rgba(37, 99, 235, 0.24);
  color: #2563eb;
  background: #f8fbff;
}

.header-nav-row .btn-outline {
  background: #ffffff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

.header-nav-row .btn-primary {
  background: #22c55e;
  color: #ffffff;
}

.cart-badge {
  top: -11px;
  right: -9px;
  min-width: 22px;
  height: 22px;
  border: 2px solid #f9fafb;
  box-shadow: 0 10px 18px rgba(220, 38, 38, 0.22);
}

.store-product-view-shell {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.06);
}

.store-product-layout {
  gap: 24px;
  align-items: start;
}

.store-product-gallery,
.store-product-info {
  background: transparent;
}

.store-product-gallery .main-product-image,
.store-product-gallery img:first-child,
.store-product-media-primary {
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

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

.store-title-row h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.store-product-description {
  margin-top: 14px;
  font-size: 15px;
}

.store-purchase-box {
  padding: 18px;
  border-radius: 20px;
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.store-purchase-box .quantity-selector,
.store-purchase-box .quantity-control,
.store-purchase-box .qty-stepper {
  min-height: 48px;
}

.store-buy-btn,
#confirmCheckoutBtn,
#submitCartOrderBtn {
  min-height: 50px;
  border-radius: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cart-layout,
.checkout-layout {
  gap: 20px;
  align-items: start;
}

.cart-item-card,
.checkout-item-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.cart-item-main,
.checkout-item-main {
  gap: 14px;
}

.cart-item-image,
.checkout-item-image,
.checkout-item-thumb {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.cart-item-copy,
.checkout-item-copy {
  gap: 6px;
}

.cart-item-copy strong,
.checkout-item-copy strong {
  color: #111827;
}

.cart-item-actions {
  gap: 10px;
}

.cart-summary-box,
.checkout-summary-box,
.summary-box {
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.checkout-form-grid .field,
.checkout-form-grid textarea {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.checkout-form-grid textarea {
  min-height: 120px;
  border-radius: 16px;
  resize: vertical;
}

@media (max-width: 980px) {
  .store-product-view-shell {
    padding: 18px;
  }

  .store-product-layout,
  .cart-layout,
  .checkout-layout {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .header-nav-row {
    gap: 8px;
  }

  .header-nav-row .btn-light,
  .header-nav-row .btn-outline,
  .header-nav-row .btn-primary {
    min-height: 40px;
    padding-inline: 12px;
  }

  .cart-badge {
    top: -8px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .store-product-view-shell {
    padding: 14px;
    border-radius: 18px;
  }

  .store-purchase-box {
    padding: 14px;
    border-radius: 16px;
  }

  .cart-item-card,
  .checkout-item-card {
    padding: 12px;
    border-radius: 16px;
  }
}

/* ===== Store Refresh: Background, Profile, Seller, Modals ===== */

:root {
  --store-bg: #f3f6fb;
  --store-bg-accent: #eef3f9;
}

body {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.85), transparent 30%),
    linear-gradient(180deg, var(--store-bg) 0%, var(--store-bg-accent) 100%);
  color: var(--store-text);
}

.app-shell {
  background: transparent;
}

.card,
.modal-content,
.modal-card,
.summary-box {
  border: 1px solid #e5e7eb;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.profile-layout,
.two-cols.profile-layout {
  gap: 20px;
  align-items: start;
}

.profile-layout > .card,
.seller-header-card,
.seller-feedback-card,
.seller-products-card,
#dashboardView .card {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.profile-layout .card:first-child,
#dashboardUserInfo,
.seller-summary {
  color: #111827;
}

.stats-grid .card,
#dashboardView .stats-grid > * {
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.seller-summary {
  gap: 12px;
}

.seller-ratings-strip {
  gap: 14px;
}

.seller-ratings-strip > *,
.seller-rating-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

.modal {
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
}

.modal-content,
.modal-card {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 24px;
}

.modal-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

.modal-header h2,
.modal-header h3 {
  margin: 0;
  color: #111827;
}

.icon-btn {
  background: #f3f6fb;
  border: 1px solid #e5e7eb;
  color: #111827;
}

.icon-btn:hover {
  background: #eaf2ff;
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.2);
}

.field,
select,
textarea {
  background: #f9fafb;
  border-color: #e5e7eb;
}

.field:focus,
select:focus,
textarea:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

@media (max-width: 980px) {
  .profile-layout,
  .two-cols.profile-layout {
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .profile-layout > .card,
  .seller-header-card,
  .seller-feedback-card,
  .seller-products-card,
  #dashboardView .card,
  .modal-content,
  .modal-card {
    border-radius: 18px;
  }

  .modal-content,
  .modal-card {
    padding: 14px;
  }
}

/* ===== Store Palette Lock: Remove Marble / Gold Theme ===== */

:root {
  --store-primary: #2563EB;
  --store-cta: #22C55E;
  --store-bg: #F9FAFB;
  --store-surface: #FFFFFF;
  --store-text: #111827;
  --store-text-secondary: #6B7280;
  --store-border: #E5E7EB;
  --store-warning: #F59E0B;
  --store-danger: #EF4444;
  --site-marble-image: none;
  --site-hero-image: none;
  --site-gold-1: #2563EB;
  --site-gold-2: #60A5FA;
  --site-gold-3: #1D4ED8;
}

body {
  background: #F9FAFB;
  background-image: none;
  color: #111827;
}

body::before {
  display: none !important;
}

.site-header,
.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.brand-mark {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
}

.searchbar {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.searchbar:focus-within {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.searchbar input,
.searchbar input::placeholder {
  color: #6B7280;
}

.searchbar input {
  color: #111827;
}

.btn-secondary,
.searchbar .btn,
.header-nav-row .btn-outline {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.18);
}

.btn-primary,
.btn-success,
.store-buy-btn,
#confirmCheckoutBtn,
#submitCartOrderBtn,
.header-nav-row .btn-primary {
  background: #22C55E;
  color: #FFFFFF;
  border-color: #22C55E;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.18);
}

.header-nav-row .btn-light {
  background: #FFFFFF;
  color: #111827;
  border: 1px solid #E5E7EB;
}

.hero-card.hero-poster {
  min-height: 340px;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F3F7FD 54%, #EEF4FF 100%);
  border: 1px solid #E5E7EB;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.06);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(249, 250, 251, 0.98) 0%, rgba(249, 250, 251, 0.84) 52%, rgba(249, 250, 251, 0.28) 100%);
}

.hero-text,
.hero-text h1,
.hero-text p,
.section-title,
.category-title {
  color: #111827;
}

.hero-kicker {
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  border: 1px solid rgba(37, 99, 235, 0.12);
  backdrop-filter: none;
}

.hero-media-frame {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.hero-media-art {
  background:
    linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 52%, #FFFFFF 100%);
  border: 1px solid #E5E7EB;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.filters-shell,
.filters-box,
.card,
.product-card,
.summary-box,
.modal-content,
.modal-card,
.profile-layout > .card,
.seller-header-card,
.seller-feedback-card,
.seller-products-card,
#dashboardView .card {
  background: #FFFFFF;
  border-color: #E5E7EB;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: none;
}

.filters-bar .field,
.filters-bar select,
.field,
select,
textarea {
  background: #F9FAFB;
  border-color: #E5E7EB;
}

.muted,
.mini-note,
.inline-muted,
.detail-state-copy,
.order-state-copy,
.cart-meta-row .muted,
.hero-text p,
.section-head p {
  color: #6B7280;
}

@media (max-width: 599px) {
  .catalog-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-grid .product-card,
  .compact-grid .product-card {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .cards-strip {
    gap: 12px;
    grid-auto-columns: 176px;
    padding-bottom: 8px;
  }

  .cards-strip .product-card {
    width: 176px !important;
    min-width: 176px !important;
    max-width: 176px !important;
  }
}

/* ===== Topbar Slim Refresh ===== */
body {
  font-family: "Inter", "Cairo", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at 85% 12%, rgba(149, 187, 58, 0.05), transparent 18%),
    linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
}

.topbar {
  position: relative;
  top: auto;
  z-index: 1000;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    backdrop-filter 0.2s ease,
    border-color 0.2s ease;
}

.topbar.topbar-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1400px;
  min-height: 64px;
  margin: 0 auto;
  padding: 12px 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #003366, #0c4f90);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: none;
}

.brand-copy {
  min-width: 0;
}

.brand-title,
.brand-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.1;
  color: #0f172a;
}

#siteBrandTagline {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
}

.searchbar,
.searchbar-glow {
  flex: 1 1 auto;
  min-width: 240px;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 2px 4px 2px 16px;
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(208, 213, 221, 0.72);
  border-radius: 40px;
  box-shadow: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.searchbar:focus-within {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(149, 187, 58, 0.34);
  box-shadow: 0 0 0 2px rgba(149, 187, 58, 0.2);
}

.searchbar input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  padding: 8px 0;
  font-size: 14px;
  color: #0f172a;
}

.searchbar input::placeholder {
  color: #94a3b8;
}

.searchbar .btn {
  height: 34px;
  padding-inline: 16px;
}

.nav-actions,
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.header-nav-row {
  position: static;
  top: auto;
  z-index: auto;
  grid-column: auto;
  width: auto;
  background: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  box-shadow: none;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary,
.btn-success,
.store-buy-btn,
#confirmCheckoutBtn,
#submitCartOrderBtn,
.header-nav-row .btn-primary {
  background: linear-gradient(135deg, #95bb3a 0%, #7fa82f 100%);
  color: #1a2e00;
  border-color: rgba(127, 168, 47, 0.26);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover,
.btn-success:hover,
.store-buy-btn:hover,
#confirmCheckoutBtn:hover,
#submitCartOrderBtn:hover,
.header-nav-row .btn-primary:hover {
  background: linear-gradient(135deg, #9fc942 0%, #88b535 100%);
  box-shadow: 0 2px 6px rgba(149, 187, 58, 0.3);
}

.btn-secondary,
.searchbar .btn {
  background: rgba(0, 51, 102, 0.1);
  color: #003366;
  border-color: transparent;
}

.btn-secondary:hover,
.searchbar .btn:hover {
  background: rgba(0, 51, 102, 0.18);
}

.btn-outline,
.header-nav-row .btn-outline {
  background: transparent;
  border-color: #d0d5dd;
  color: #1f2937;
}

.btn-outline:hover,
.header-nav-row .btn-outline:hover {
  border-color: #95bb3a;
  background: rgba(149, 187, 58, 0.08);
}

.btn-light,
.header-nav-row .btn-light {
  background: rgba(0, 0, 0, 0.04);
  color: #4b5563;
  border-color: transparent;
}

.btn-light:hover,
.header-nav-row .btn-light:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #374151;
}

@media (max-width: 1100px) {
  .topbar-inner {
    max-width: none;
    gap: 12px;
    flex-wrap: wrap;
  }

  .searchbar,
  .searchbar-glow {
    order: 3;
    width: 100%;
    max-width: none;
  }

  .header-nav-row {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .topbar {
    min-height: 56px;
  }

  .topbar-inner {
    min-height: 56px;
    padding: 10px 16px;
    gap: 10px;
  }

  .brand-title,
  .brand-text {
    font-size: 16px;
  }

  #siteBrandTagline {
    display: none;
  }

  .searchbar,
  .searchbar-glow {
    min-width: 0;
    height: 38px;
  }

  .nav-actions,
  .header-nav-row {
    gap: 6px;
  }

  .btn {
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
  }

  .searchbar .btn {
    height: 32px;
    padding-inline: 14px;
  }
}

/* ===== Chat Date/Time Refresh ===== */
.chat-day-separator {
  display: flex;
  justify-content: center;
  margin: 10px 0 4px;
}

.chat-day-separator span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.chat-bubble {
  position: relative;
  padding: 10px 12px 8px;
}

.chat-body-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-body {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.chat-time,
.chat-time-inline {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-inline-start: 6px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.chat-time {
  display: none;
}

.chat-sender {
  margin-bottom: 4px;
}

/* ===== Messages Frame + Mobile Picker ===== */
.messages-shell,
.whatsapp-shell {
  align-items: stretch;
}

.conversations-card,
.messages-main-card,
.whatsapp-main {
  min-height: calc(100vh - 170px);
  height: calc(100vh - 170px);
  max-height: calc(100vh - 170px);
}

.conversations-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.conversations-card.is-attention {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18), 0 18px 34px rgba(15, 23, 42, 0.12);
  transition: box-shadow 180ms ease;
}

.conversations-list {
  min-height: 0;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.messages-main-card,
.whatsapp-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#conversationDetails {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-layout,
.whatsapp-chat-layout {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.chat-thread,
.whatsapp-thread {
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 16px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-composer,
.whatsapp-composer {
  flex: 0 0 auto;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.chat-textarea,
.whatsapp-textarea {
  width: 100%;
  min-height: 88px;
  max-height: 148px;
}

.chat-composer-actions,
.whatsapp-composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.chat-composer-actions .btn,
.whatsapp-composer-actions .btn {
  min-width: 112px;
}

.conversation-empty-panel,
.whatsapp-empty-panel {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 20px;
}

.mobile-conversation-picker {
  display: none;
}

.mobile-conversation-toggle {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #0f172a;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.mobile-conversation-label {
  color: #64748b;
  font-size: 12px;
  flex: 0 0 auto;
}

.mobile-conversation-toggle strong {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-conversation-arrow {
  flex: 0 0 auto;
  color: #64748b;
  transition: transform 0.18s ease;
}

.mobile-conversation-picker.is-open .mobile-conversation-arrow {
  transform: rotate(180deg);
}

.mobile-conversations-menu {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  max-height: min(42vh, 320px);
  overflow-y: auto;
  padding-inline-end: 2px;
}

.mobile-conversation-option {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  text-align: right;
  cursor: pointer;
}

.mobile-conversation-option span {
  color: #64748b;
  font-size: 12px;
}

.mobile-conversation-option.is-active {
  border-color: rgba(37, 99, 235, 0.24);
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

@media (max-width: 900px) {
  .messages-shell,
  .whatsapp-shell {
    grid-template-columns: 1fr;
  }

  .conversations-card {
    display: none;
  }

  .mobile-conversation-picker {
    display: block;
    margin-bottom: 14px;
  }

  .messages-main-card,
  .whatsapp-main {
    min-height: calc(100vh - 140px);
    height: calc(100vh - 140px);
    max-height: calc(100vh - 140px);
  }

  .chat-header,
  .whatsapp-chat-header {
    padding: 14px 14px 12px;
  }

  .chat-thread,
  .whatsapp-thread {
    padding: 16px 12px;
  }

  .chat-composer,
  .whatsapp-composer {
    padding: 12px;
  }

  .chat-textarea,
  .whatsapp-textarea {
    min-height: 76px;
  }

  .chat-composer-actions .btn,
  .whatsapp-composer-actions .btn {
    width: 100%;
  }
}

/* ===== Messages UX Hotfix ===== */
.conversations-card {
  min-height: calc(100dvh - 170px);
  max-height: calc(100dvh - 170px);
}

.conversations-list {
  max-height: min(68dvh, 720px);
}

.messages-main-card,
.whatsapp-main {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

#conversationDetails {
  height: auto;
  overflow: visible;
}

.chat-layout,
.whatsapp-chat-layout {
  min-height: 0;
  height: auto;
  overflow: visible;
}

.chat-thread,
.whatsapp-thread {
  flex: 0 1 auto;
  min-height: 260px;
  max-height: min(54dvh, 540px);
  overflow-y: auto;
}

.chat-composer,
.whatsapp-composer {
  position: relative;
  padding: 12px 16px 16px;
}

.chat-textarea,
.whatsapp-textarea {
  display: block;
  width: 100%;
  min-height: 96px;
}

.deal-strip {
  gap: 8px;
  padding-top: 10px;
}

.linked-orders-card.chat-linked-order {
  gap: 8px;
  padding: 10px 12px;
}

.chat-linked-order .deal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.chat-linked-order .linked-order-summary {
  min-width: 0;
}

.chat-linked-order .linked-order-summary strong {
  display: block;
  margin-bottom: 4px;
}

.chat-linked-order .deal-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.chat-linked-order .deal-actions .btn {
  height: 34px;
  padding: 0 14px;
}

@media (max-width: 900px) {
  .messages-main-card,
  .whatsapp-main {
    overflow: visible;
  }

  .chat-thread,
  .whatsapp-thread {
    min-height: 220px;
    max-height: min(42dvh, 380px);
    padding: 14px 12px;
  }

  .chat-textarea,
  .whatsapp-textarea {
    min-height: 90px;
  }

  .chat-linked-order .deal-head {
    grid-template-columns: 1fr;
  }

  .chat-linked-order .deal-actions .btn {
    width: 100%;
  }
}

/* ===== Compact Open Conversations ===== */
.conversations-list {
  gap: 3px;
}

.conversation-card,
.conversation-entry {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  row-gap: 0;
  border-radius: 10px;
  padding: 3px 6px;
  min-height: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.conversation-avatar,
.conversation-avatar-pro {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  font-size: 10px;
}

.conversation-card-body {
  min-width: 0;
  gap: 1px;
}

.conversation-row-top,
.conversation-card-footer {
  gap: 4px;
}

.conversation-row-name {
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-row-time,
.conversation-meta-note {
  font-size: 8px;
  white-space: nowrap;
}

.conversation-row-product {
  gap: 3px;
  align-items: center;
}

.conversation-row-product strong {
  font-size: 10px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-product-chip {
  padding: 0 5px;
  border-radius: 999px;
  font-size: 8px;
}

.conversation-row-last {
  font-size: 9px;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.conversation-row-status {
  padding: 1px 5px;
  font-size: 8px;
}

@media (max-width: 900px) {
  .conversation-card,
  .conversation-entry {
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 3px 5px;
  }

  .conversation-avatar,
  .conversation-avatar-pro {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    font-size: 10px;
  }
}

/* ===== Restored Conversation UI ===== */
.chat-header,
.whatsapp-chat-header {
  padding: 6px 8px;
  margin-bottom: 0;
  gap: 8px;
}

.chat-header .chat-person-block > div > .muted,
.whatsapp-chat-header .chat-person-block > div > .muted {
  display: none;
}

.chat-person-block {
  gap: 6px;
}

.chat-person-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 9px;
  font-size: 11px;
}

.chat-header h3,
.whatsapp-chat-header h3 {
  margin: 0;
  font-size: 12px;
  line-height: 1.1;
}

.chat-header-meta {
  gap: 4px;
}

.chat-chip {
  padding: 2px 6px;
  font-size: 9px;
  line-height: 1.1;
}

.chat-header-meta .btn {
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.deal-strip {
  gap: 4px;
  padding: 6px 8px 0;
}

.linked-orders-card.chat-linked-order {
  gap: 4px;
  padding: 6px 8px;
  border-radius: 12px;
}

.chat-linked-order .deal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: start;
}

.chat-linked-order .linked-order-summary strong {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
  line-height: 1.1;
}

.chat-linked-order .linked-order-summary .muted {
  font-size: 9px;
  line-height: 1.15;
}

.chat-linked-order .deal-status {
  padding: 2px 6px;
  font-size: 9px;
}

.chat-linked-order .deal-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.chat-linked-order .deal-actions .btn {
  height: 24px;
  padding: 0 8px;
  font-size: 10px;
}

.chat-composer,
.whatsapp-composer {
  padding: 6px 8px 8px;
}

.chat-input-shell,
.whatsapp-input-shell {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(100%, 360px);
}

.chat-singleline-input,
.chat-textarea,
.whatsapp-textarea {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  max-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  line-height: 28px;
  resize: none;
}

.chat-send-inline-btn {
  flex: 0 0 auto;
  min-width: 58px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

@media (max-width: 900px) {
  .chat-header,
  .whatsapp-chat-header {
    padding: 5px 7px;
  }

  .chat-person-avatar {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    border-radius: 8px;
    font-size: 10px;
  }

  .chat-header h3,
  .whatsapp-chat-header h3 {
    font-size: 11px;
  }

  .chat-chip {
    padding: 2px 5px;
    font-size: 8px;
  }

  .chat-header-meta .btn,
  .chat-linked-order .deal-actions .btn {
    height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }

  .deal-strip {
    padding: 5px 7px 0;
  }

  .linked-orders-card.chat-linked-order {
    padding: 5px 7px;
    gap: 3px;
  }

  .chat-linked-order .deal-head {
    grid-template-columns: 1fr;
  }

  .chat-linked-order .linked-order-summary strong {
    font-size: 10px;
  }

  .chat-linked-order .linked-order-summary .muted,
  .chat-linked-order .deal-status {
    font-size: 8px;
  }

  .chat-composer,
  .whatsapp-composer {
    padding: 6px 7px 7px;
  }

  .chat-singleline-input,
  .chat-textarea,
  .whatsapp-textarea {
    min-height: 26px;
    height: 26px;
    max-height: 26px;
    line-height: 26px;
    padding: 0 9px;
  }

  .chat-send-inline-btn {
    min-width: 52px;
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }
}

/* ===== Ogani-inspired marketplace product card refresh ===== */
.product-card.product-card-refined {
  width: min(100%, 320px);
  min-height: 100%;
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.98));
  border: 1px solid rgba(0, 51, 102, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255,255,255,.85) inset;
  transition: box-shadow 0.35s ease, border-color 0.25s ease;
}

.cards-strip .product-card.product-card-refined {
  width: 232px;
  min-width: 232px;
  max-width: 232px;
  margin-inline: 4px;
}

.catalog-grid .product-card.product-card-refined,
.compact-grid .product-card.product-card-refined,
.seller-products-wide .product-card.product-card-refined {
  min-width: 0;
  max-width: none;
  width: min(100%, 320px);
}

@media (min-width: 900px) {
  .cards-strip {
    gap: 28px;
  }

  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    gap: 28px;
  }
}

.product-card.product-card-refined:hover,
.product-card.product-card-refined:focus-within {
  transform: none !important;
  border-color: rgba(149, 187, 58, 0.26);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(149, 187, 58, 0.08);
}

.product-card-refined .product-image-wrap {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, #eef3f8 0%, #dce6f2 100%);
  isolation: isolate;
}

.product-card-refined .product-image-wrap img,
.product-card-refined .product-image-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-card-refined .product-image-wrap img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.product-card-refined:hover .product-image-wrap img,
.product-card-refined:focus-within .product-image-wrap img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.product-card-refined .product-image-placeholder {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, rgba(255,255,255,.75), transparent 45%), linear-gradient(135deg, #edf2f7, #d7e2ee);
}

.product-card-refined .product-image-placeholder::after {
  content: "🛍";
  font-size: 42px;
  opacity: 0.38;
}

.product-card-refined .product-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.12) 50%, rgba(15, 23, 42, 0.72) 100%);
  opacity: 0.08;
  transition: opacity 0.3s ease;
}

.product-card-refined:hover .product-image-overlay,
.product-card-refined:focus-within .product-image-overlay {
  opacity: 1;
}

.product-card-refined .condition-ribbon {
  top: 14px;
  right: 14px;
  z-index: 3;
  min-width: 0;
  max-width: calc(100% - 28px);
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 0.1px;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.product-card-refined .product-hover-actions {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.28s;
}

.product-card-refined:hover .product-hover-actions,
.product-card-refined:focus-within .product-hover-actions {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

.product-card-refined .product-hover-action {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  background: rgba(255,255,255,.96);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18), 0 1px 0 rgba(255,255,255,.7) inset;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.product-card-refined .product-hover-action:nth-child(2) {
  transition-delay: 0s;
}

.product-card-refined .product-hover-action:nth-child(3) {
  transition-delay: 0s;
}

.product-card-refined .product-hover-action:hover {
  transform: none;
  filter: brightness(0.99);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2), 0 1px 0 rgba(255,255,255,.85) inset;
}

.product-card-refined .product-hover-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(149, 187, 58, 0.22), 0 18px 34px rgba(15, 23, 42, 0.24);
}

.product-card-refined .product-hover-action-favorite.is-active-favorite {
  background: linear-gradient(180deg, #fff1f2, #ffe4e6);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.18);
}

.product-card-refined .product-hover-action-detail:hover {
  background: linear-gradient(180deg, #eef7ff, #dbeafe);
  color: #0f4f90;
  border-color: rgba(12, 74, 110, 0.12);
}

.product-card-refined .product-hover-action-cart:hover {
  background: linear-gradient(180deg, #f6ffe3, #e5f6b6);
  color: #557812;
  border-color: rgba(149, 187, 58, 0.24);
}

.product-card-refined .product-body,
.product-card-refined .product-body-pro {
  display: grid;
  gap: 5px;
  padding: 10px 12px 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.product-card-refined .product-title,
.product-card-refined .product-title-compact {
  min-height: 36px;
  margin: 0;
  color: #10243a;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  -webkit-line-clamp: 2;
}

.product-card-refined:hover .product-title,
.product-card-refined:focus-within .product-title {
  color: var(--primary);
}

.product-card-refined .product-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -8px;
  margin-bottom: -3px;
}

.product-card-refined .product-price,
.product-card-refined .product-price-inline,
.product-card-refined .product-price-hero {
  margin: 0;
  color: #16803c;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.18);
}

.product-card-refined .product-meta-grid,
.product-card-refined .pro-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: stretch;
}

.product-card-refined .product-meta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-card-refined .product-region-badge,
.product-card-refined .views-badge {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card-refined .product-region-badge {
  background: linear-gradient(180deg, #f7fafc, #eef4f8);
  color: #44596c;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.product-card-refined .views-badge {
  background: linear-gradient(180deg, #fff7e6, #ffefc2);
  color: #8a5c06;
  border: 1px solid rgba(202, 138, 4, 0.18);
  box-shadow: none;
}

.product-card-refined .product-views-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 3;
  min-height: auto;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(15, 23, 42, 0.45);
}

.product-card-refined .product-store-block,
.product-card-refined .product-store-block-pro {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding-top: 6px;
  margin-top: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.product-card-refined .product-store-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card-refined .store-link,
.product-card-refined .store-link-pro,
.product-card-refined .product-store-inline {
  color: #1d334a;
  font-size: 13px;
  font-weight: 800;
  flex: 1 1 auto;
  min-width: 0;
}

.product-card-refined .store-link:hover,
.product-card-refined .store-link-pro:hover,
.product-card-refined .product-store-inline:hover {
  color: var(--primary);
}

.product-card-refined .product-rating-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 4px;
  color: #5b6d7d;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-card-refined .product-rating-star {
  color: #d1963c;
}

.product-card-refined .rating-count {
  color: #94a3b8;
}

.product-card-refined .product-delivery-icon {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.product-card-refined .product-delivery-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

@media (hover: none), (pointer: coarse) {
  .product-card-refined .product-image-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.08) 45%, rgba(15, 23, 42, 0.52) 100%);
  }

  .product-card-refined .product-hover-actions {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 10px);
  }

  .product-card-refined.is-mobile-actions-visible .product-hover-actions,
  .product-card-refined.is-mobile-actions-visible:focus-within .product-hover-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 599px) {
  .cards-strip {
    gap: 10px;
  }

  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    gap: 10px;
  }

  .cards-strip .product-card.product-card-refined {
    width: 208px;
    min-width: 208px;
    max-width: 208px;
  }

  .product-card.product-card-refined {
    border-radius: 18px;
  }

  .product-card-refined .product-image-wrap {
    border-radius: 18px 18px 0 0;
    aspect-ratio: 1 / 0.86;
  }

  .product-card-refined .condition-ribbon {
    top: 10px;
    right: 10px;
    padding: 7px 10px;
    font-size: 10px;
    max-width: calc(100% - 20px);
  }

  .product-card-refined .product-hover-actions {
    bottom: 12px;
    gap: 8px;
  }

  .product-card-refined .product-hover-action {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .product-card-refined .product-body,
  .product-card-refined .product-body-pro {
    padding: 9px 10px 9px;
    gap: 5px;
  }

  .product-card-refined .product-title,
  .product-card-refined .product-title-compact {
    min-height: 34px;
    font-size: 12px;
  }

  .product-card-refined .product-price,
  .product-card-refined .product-price-inline,
  .product-card-refined .product-price-hero {
    font-size: 18px;
  }

  .product-card-refined .product-meta-grid,
  .product-card-refined .pro-meta-grid {
    grid-template-columns: 1fr;
  }

  .product-card-refined .product-meta-inline {
    gap: 6px;
  }

  .product-card-refined .product-store-rating-row {
    gap: 8px;
  }
}

@media (max-width: 479px) {
  .cards-strip {
    gap: 8px;
  }

  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    gap: 8px;
  }

  .cards-strip .product-card.product-card-refined {
    width: 194px;
    min-width: 194px;
    max-width: 194px;
  }

  .product-card-refined .product-hover-action {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .product-card-refined .product-region-badge,
  .product-card-refined .views-badge {
    min-height: 30px;
    padding: 0 8px;
    font-size: 11px;
  }

  .product-card-refined .product-meta-inline {
    gap: 5px;
  }

  .product-card-refined .product-views-corner {
    top: 10px;
    left: 10px;
    right: auto;
    min-height: auto;
    padding: 0;
  }

  .product-card-refined .product-rating-inline,
  .product-card-refined .store-link,
  .product-card-refined .store-link-pro,
  .product-card-refined .product-store-inline {
    font-size: 12px;
  }

  .product-card-refined .product-store-rating-row {
    gap: 6px;
  }
}

/* ===== Fruitkha-inspired header + hero refresh ===== */
body.search-area-open {
  overflow: hidden;
}

.topbar.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  background:
    linear-gradient(180deg, rgba(245, 246, 248, 0.72), rgba(232, 235, 239, 0.54));
  border-bottom: 1px solid rgba(62, 69, 79, 0.12);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(12px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.topbar.site-header.topbar-scrolled {
  background:
    linear-gradient(180deg, rgba(216, 220, 226, 0.96), rgba(174, 181, 190, 0.92));
  border-bottom-color: rgba(50, 56, 65, 0.18);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
  backdrop-filter: blur(18px);
}

.topbar.site-header .topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding-block: 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2a3138;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 0;
}

.brand-mark.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, var(--secondary), var(--primary));
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.brand-title.brand-text {
  color: #2a3138;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

#siteBrandTagline {
  color: #606873;
  font-size: 10px;
  line-height: 1.1;
}

.header-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.header-nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #3d4650;
  text-decoration: none;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-nav-link:hover,
.header-nav-link:focus-visible,
.header-nav-link.is-active {
  color: #1f252c;
  background: rgba(87, 95, 106, 0.08);
  transform: translateY(-1px);
}

.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.site-header .btn {
  min-height: 32px;
  border-radius: 999px;
  padding-inline: 10px;
  border-width: 1px;
  font-weight: 700;
  box-shadow: none;
  font-size: 12px;
  line-height: 1;
}

.site-header .btn-light,
.site-header .btn-outline {
  background: rgba(255, 255, 255, 0.16);
  color: #2b3138;
  border-color: rgba(71, 79, 90, 0.1);
}

.site-header .btn-light:hover,
.site-header .btn-light:focus-visible,
.site-header .btn-outline:hover,
.site-header .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(71, 79, 90, 0.16);
  color: #1d2329;
}

.site-header .btn-primary {
  background: linear-gradient(135deg, var(--accent), #f6d67f);
  color: #111826;
  border-color: transparent;
}

.site-header .btn-primary:hover,
.site-header .btn-primary:focus-visible {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.topbar.site-header.topbar-scrolled .btn-light,
.topbar.site-header.topbar-scrolled .btn-outline {
  background: rgba(255, 255, 255, 0.18);
}

.header-icon-btn.search-toggle-btn {
  min-width: auto;
  width: auto;
  padding-inline: 8px;
  gap: 4px;
  font-size: 12px;
}

.header-icon-btn.search-toggle-btn span[aria-hidden="true"] {
  font-size: 14px;
  line-height: 1;
}

.mobile-header-menu {
  position: relative;
  display: none;
}

.mobile-header-menu-toggle {
  min-width: 38px;
  padding-inline: 10px;
}

.mobile-header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(270px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(71, 79, 90, 0.12);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(16px);
  display: grid;
  gap: 6px;
}

.mobile-header-dropdown-item {
  appearance: none;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(87, 95, 106, 0.06);
  color: #25303b;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.mobile-header-dropdown-item.is-danger {
  color: #9f1239;
  background: rgba(244, 63, 94, 0.08);
}

.site-header .cart-badge {
  background: linear-gradient(135deg, var(--accent), #ffe39b);
  color: #122033;
  font-weight: 800;
}

.search-area {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.search-area.search-active {
  opacity: 1;
  pointer-events: auto;
}

.search-area-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(18, 60, 118, 0.38), transparent 28%),
    rgba(5, 10, 20, 0.82);
  backdrop-filter: blur(12px);
}

.search-area-panel {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  border-radius: 30px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(11, 21, 42, 0.96), rgba(7, 14, 28, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 60px rgba(0, 0, 0, 0.35);
}

.search-close-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.search-area-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  color: #fff;
}

.search-area-kicker {
  color: #a8c6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.search-area-copy h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.search-area-copy p {
  margin: 0;
  color: rgba(228, 236, 255, 0.78);
  line-height: 1.9;
}

.searchbar.searchbar-overlay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.searchbar.searchbar-overlay input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.searchbar.searchbar-overlay input::placeholder {
  color: rgba(224, 232, 248, 0.48);
}

.searchbar.searchbar-overlay .btn {
  min-height: 48px;
  padding-inline: 22px;
}

.main-space {
  padding-top: 64px;
}

.hero.hero-fruitkha.hero-bleed {
  position: relative;
  margin-top: -64px;
  margin-bottom: 0;
  padding-top: 0;
}

.hero-fruitkha .hero-card.hero-poster {
  position: relative;
  min-height: 86vh;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    linear-gradient(180deg, rgba(3, 10, 20, 0.34), rgba(4, 11, 21, 0.82)),
    linear-gradient(115deg, rgba(5, 17, 37, 0.86), rgba(10, 32, 67, 0.58)),
    var(--site-hero-image);
  background-size: cover;
  background-position: center;
  box-shadow: none;
}

.hero-fruitkha .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 220, 135, 0.16), transparent 18%),
    radial-gradient(circle at 78% 30%, rgba(66, 167, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(3, 10, 20, 0.34) 0%, rgba(3, 10, 20, 0.7) 100%);
}

.hero-fruitkha .hero-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 36px));
  min-height: 86vh;
  margin-inline: auto;
  padding: 160px 24px 148px;
  display: grid;
  place-items: center;
}

.hero-fruitkha .hero-text {
  width: min(760px, 100%);
  margin: 0;
  text-align: center;
  color: #fff;
}

.hero-fruitkha .hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f6d98f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-fruitkha .hero-text h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.06;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.hero-fruitkha .hero-text h1::after {
  display: none;
}

.hero-fruitkha .hero-text p {
  margin: 0 auto;
  max-width: 62ch;
  color: rgba(232, 239, 252, 0.84);
  font-size: 17px;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.boxed-btn,
.bordered-btn {
  appearance: none;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.boxed-btn {
  background: linear-gradient(135deg, var(--accent), #f5d16b);
  color: #111827;
  box-shadow: 0 18px 32px rgba(245, 209, 107, 0.22);
}

.bordered-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.boxed-btn:hover,
.boxed-btn:focus-visible,
.bordered-btn:hover,
.bordered-btn:focus-visible,
.search-close-btn:hover,
.search-close-btn:focus-visible {
  transform: translateY(-2px);
}

.benefits-section {
  position: relative;
  z-index: 4;
  margin-top: -78px;
  padding-top: 0;
}

.hero-benefits-shell {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-benefit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.94));
  border: 1px solid rgba(14, 27, 54, 0.08);
  box-shadow: 0 20px 42px rgba(13, 24, 43, 0.12);
}

.hero-benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(28, 98, 214, 0.12), rgba(17, 166, 114, 0.18));
  color: var(--primary);
  font-size: 22px;
  font-weight: 800;
}

.hero-benefit-copy {
  display: grid;
  gap: 6px;
}

.hero-benefit-copy h3 {
  margin: 0;
  color: #13233d;
  font-size: 18px;
}

.hero-benefit-copy p {
  margin: 0;
  color: #59657b;
  line-height: 1.85;
}

#filtersSection {
  padding-top: 28px;
}

#filtersSection .filters-shell {
  width: min(1120px, calc(100vw - 36px));
  margin: 0 auto;
}

.topbar.site-header :focus-visible,
.search-area :focus-visible,
.hero.hero-fruitkha :focus-visible {
  outline: 2px solid rgba(255, 220, 135, 0.95);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .topbar.site-header .topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .header-nav-row {
    justify-content: center;
  }

  .hero-fruitkha .hero-card.hero-poster,
  .hero-fruitkha .hero-shell {
    min-height: 78vh;
  }
}

@media (max-width: 840px) {
  .main-space {
    padding-top: 92px;
  }

  .hero.hero-fruitkha.hero-bleed {
    margin-top: -92px;
  }

  #siteBrandTagline {
    display: none;
  }

  .header-nav-links {
    gap: 8px;
  }

  .header-nav-link {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .hero-fruitkha .hero-shell {
    padding: 180px 20px 126px;
  }

  .hero-fruitkha .hero-text h1 {
    font-size: clamp(34px, 8vw, 54px);
  }

  .hero-fruitkha .hero-text p {
    font-size: 15px;
  }

  .hero-benefits-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar.site-header .topbar-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 62px;
    padding-block: 6px;
    gap: 8px;
  }

  .brand {
    width: auto;
    justify-content: center;
    min-width: 0;
  }

  .header-nav-row {
    width: auto;
  }

  .header-nav-row {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .site-header .btn {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .header-nav-links {
    display: none;
  }

  .header-nav-row > .btn:not(.search-toggle-btn),
  .header-nav-row > .mobile-header-menu {
    display: none;
  }

  .mobile-header-menu {
    display: block !important;
  }

  .mobile-header-dropdown {
    right: 0;
    left: auto;
  }

  .main-space {
    padding-top: 84px;
  }

  .hero.hero-fruitkha.hero-bleed {
    margin-top: -84px;
  }

  .hero-fruitkha .hero-card.hero-poster,
  .hero-fruitkha .hero-shell {
    min-height: auto;
  }

  .hero-fruitkha .hero-shell {
    width: min(100vw - 20px, 100%);
    padding: 192px 16px 118px;
  }

  .search-area {
    padding: 16px;
  }

  .search-area-panel {
    width: min(100vw - 20px, 100%);
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .searchbar.searchbar-overlay {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .searchbar.searchbar-overlay .btn {
    width: 100%;
  }

  .benefits-section {
    margin-top: -54px;
  }

  .hero-benefits-shell,
  #filtersSection .filters-shell {
    width: min(100vw - 20px, 100%);
  }

  .hero-benefit-card {
    grid-template-columns: 1fr;
  }
}

/* Mobile storefront shell overrides */
.mobile-bottom-nav,
.mobile-sheet-backdrop,
.mobile-sheet,
.mobile-filters-toolbar {
  display: none;
}

body.mobile-sheet-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .cart-layout,
  .checkout-layout,
  .orders-layout,
  .two-cols,
  .profile-layout,
  .messages-shell,
  .whatsapp-shell,
  .store-product-layout {
    grid-template-columns: 1fr !important;
  }

  .messages-main-card,
  .whatsapp-main {
    min-height: auto;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 620px) {
  :root {
    --mobile-topbar-height: 76px;
    --mobile-bottom-nav-height: 76px;
    --mobile-inline-space: 14px;
    --mobile-surface: rgba(255, 255, 255, 0.96);
    --mobile-border: rgba(15, 23, 42, 0.08);
    --mobile-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  }

  html,
  body,
  .app-shell,
  .main-space,
  .view {
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    padding-inline: 0;
  }

  .topbar.site-header {
    inset: 0 0 auto;
    padding-inline: var(--mobile-inline-space);
    background: rgba(248, 250, 252, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
  }

  .topbar.site-header .topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    min-height: var(--mobile-topbar-height);
    padding-block: 10px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
    justify-content: flex-start;
  }

  .brand-mark.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    flex: 0 0 auto;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-title.brand-text {
    font-size: 15px;
    line-height: 1.15;
  }

  #siteBrandTagline {
    display: none !important;
  }

  .header-nav-links {
    display: none !important;
  }

  .header-nav-row {
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .header-nav-row > .btn:not(.search-toggle-btn),
  .header-nav-row > .mobile-header-menu {
    display: none;
  }

  .header-nav-row > .search-toggle-btn,
  .header-nav-row > .mobile-header-menu {
    display: inline-flex;
  }

  .mobile-header-menu {
    display: inline-flex !important;
  }

  .mobile-header-menu-toggle,
  .header-icon-btn.search-toggle-btn {
    min-width: 42px;
    min-height: 42px;
    padding-inline: 11px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: #0f172a;
  }

  .header-icon-btn.search-toggle-btn span:last-child {
    display: none;
  }

  .main-space {
    padding-top: calc(var(--mobile-topbar-height) + 12px);
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 28px);
  }

  .main-space > .view {
    padding-inline: var(--mobile-inline-space);
  }

  .hero.hero-fruitkha.hero-bleed {
    margin-top: 0;
    padding: 0;
  }

  .hero-fruitkha .hero-card.hero-poster {
    min-height: auto;
    border-radius: 30px;
    background-position: center;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
  }

  .hero-fruitkha .hero-shell {
    width: 100%;
    min-height: auto;
    padding: 28px 18px;
    display: block;
  }

  .hero-fruitkha .hero-text {
    width: 100%;
    text-align: right;
  }

  .hero-fruitkha .hero-kicker {
    min-height: 34px;
    padding-inline: 14px;
    margin-bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero-fruitkha .hero-text h1 {
    margin-bottom: 12px;
    font-size: clamp(30px, 10vw, 42px);
    line-height: 1.12;
    max-width: none;
  }

  .hero-fruitkha .hero-text p {
    max-width: none;
    font-size: 14px;
    line-height: 1.85;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
  }

  .boxed-btn,
  .bordered-btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 18px;
    font-size: 13px;
  }

  .benefits-section {
    margin-top: 14px;
    padding-top: 0;
  }

  .hero-benefits-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-benefit-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-benefit-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 18px;
  }

  #filtersSection {
    padding-top: 18px;
  }

  #filtersSection .filters-shell {
    width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 24px;
  }

  .mobile-filters-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mobile-filters-summary {
    display: none;
  }

  .mobile-filters-summary-label,
  .mobile-sort-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-filters-summary strong {
    color: #0f172a;
    font-size: 16px;
  }

  .mobile-filters-toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    width: 100%;
  }

  .mobile-sort-field {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .mobile-sort-field .field {
    min-height: 42px;
    padding-inline: 12px;
    border-radius: 14px;
  }

  .mobile-filters-sheet-toggle {
    min-height: 42px;
    padding-inline: 16px;
    border-radius: 14px;
    white-space: nowrap;
  }

  #filtersSection .filters-bar,
  #categoryChips {
    display: none !important;
  }

  #resultsCount {
    display: none;
  }

  .cards-strip {
    grid-auto-columns: clamp(220px, 74vw, 280px);
    gap: 12px;
    padding-bottom: 6px;
    scroll-padding-inline: var(--mobile-inline-space);
  }

  .cards-strip .product-card.product-card-refined {
    width: clamp(220px, 74vw, 280px);
    min-width: clamp(220px, 74vw, 280px);
    max-width: clamp(220px, 74vw, 280px);
    margin-inline: 0;
  }

  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .catalog-grid .product-card.product-card-refined,
  .compact-grid .product-card.product-card-refined,
  .seller-products-wide .product-card.product-card-refined {
    width: 100%;
    max-width: none;
  }

  .product-card.product-card-refined {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  }

  .product-card-refined .product-image-wrap {
    aspect-ratio: 1 / 0.94;
    border-radius: 20px 20px 0 0;
  }

  .product-card-refined .condition-ribbon {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    font-size: 10px;
  }

  .product-card-refined .product-image-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.06) 0%, rgba(15, 23, 42, 0.08) 42%, rgba(15, 23, 42, 0.44) 100%);
  }

  .product-card-refined .product-hover-actions {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) !important;
    bottom: 12px;
    gap: 8px;
  }

  .product-card-refined .product-hover-action {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .product-card-refined .product-body,
  .product-card-refined .product-body-pro {
    display: grid;
    gap: 8px;
    padding: 12px 12px 14px;
  }

  .product-card-refined .product-title,
  .product-card-refined .product-title-compact {
    min-height: 32px;
    font-size: 13px;
    line-height: 1.45;
    text-align: right;
  }

  .product-card-refined .product-price-row {
    justify-content: flex-start;
    margin: 0;
  }

  .product-card-refined .product-price,
  .product-card-refined .product-price-inline,
  .product-card-refined .product-price-hero {
    font-size: 18px;
  }

  .product-card-refined .product-meta-inline,
  .product-card-refined .product-store-rating-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .product-card-refined .product-region-badge,
  .product-card-refined .views-badge {
    min-height: 28px;
    font-size: 11px;
  }

  .product-card-refined .product-store-block,
  .product-card-refined .product-store-block-pro {
    padding-top: 8px;
  }

  .product-card-refined .store-link,
  .product-card-refined .store-link-pro,
  .product-card-refined .product-store-inline,
  .product-card-refined .product-rating-inline {
    font-size: 12px;
  }

  .section-head,
  .category-header,
  .account-actions-row,
  .modal-cart-inline,
  .checkout-item-card,
  .checkout-item-main,
  .notification-item-head,
  .notification-item-actions,
  .support-widget-head,
  .support-compose {
    align-items: stretch;
  }

  .section-head,
  .category-header,
  .account-actions-row,
  .modal-cart-inline,
  .nav-actions,
  .deal-head {
    flex-direction: column;
  }

  .section-head,
  .card,
  .seller-header-card,
  .seller-feedback-card,
  .seller-products-card,
  .store-product-view-shell {
    border-radius: 22px;
  }

  .section-head .nav-actions,
  .account-actions-row,
  .deal-actions,
  .product-card-bottom-actions,
  .product-card-refined .product-card-bottom-actions-wide {
    width: 100%;
  }

  .section-head .btn,
  .account-actions-row .btn,
  .deal-actions .btn,
  .modal-cart-inline .btn,
  .store-buy-btn,
  .nav-actions .btn,
  .mobile-sheet-actions .btn,
  .chat-composer-actions .btn,
  .whatsapp-composer-actions .btn {
    width: 100%;
  }

  .store-product-view-shell {
    padding: 16px;
  }

  .store-product-layout {
    gap: 16px;
  }

  .store-title-row {
    display: grid;
    gap: 10px;
  }

  .store-title-row h2 {
    font-size: 24px;
    line-height: 1.45;
  }

  .store-product-description,
  .detail-rows {
    line-height: 1.8;
  }

  .modal-gallery.store-product-gallery {
    display: grid;
    gap: 10px;
  }

  .modal-product-image {
    border-radius: 18px;
  }

  .messages-main-card,
  .whatsapp-main {
    min-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-bottom-nav-height) - 40px);
    height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-bottom-nav-height) - 40px);
    max-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-bottom-nav-height) - 40px);
    overflow: hidden;
    border-radius: 22px;
  }

  .mobile-conversation-picker {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 12px;
    padding: 2px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
  }

  .chat-layout,
  .whatsapp-chat-layout {
    min-height: 100%;
    height: 100%;
  }

  .chat-thread,
  .whatsapp-thread {
    padding: 16px 12px 22px;
  }

  .chat-composer,
  .whatsapp-composer {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
  }

  .chat-input-shell,
  .whatsapp-input-shell {
    align-items: stretch;
  }

  .chat-singleline-input,
  .chat-textarea,
  .whatsapp-textarea {
    min-height: 48px;
  }

  .site-footer {
    margin-top: 36px;
    padding-inline: var(--mobile-inline-space);
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 16px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 0;
  }

  .mobile-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 118;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
  }

  .mobile-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 119;
    max-height: min(82dvh, 720px);
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: var(--mobile-surface);
    border-top: 1px solid var(--mobile-border);
    box-shadow: 0 -18px 36px rgba(15, 23, 42, 0.16);
  }

  .mobile-header-sheet {
    max-height: min(78dvh, 640px);
  }

  .mobile-sheet-handle {
    width: 54px;
    height: 5px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
  }

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

  .mobile-sheet-head h3 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 20px;
  }

  .mobile-sheet-kicker {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .mobile-sheet-close {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
  }

  .mobile-sheet-body {
    display: grid;
    gap: 14px;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 2px;
  }

  .mobile-sheet-menu {
    display: grid;
    gap: 8px;
  }

  .mobile-sheet-menu .mobile-header-dropdown-item {
    min-height: 48px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #0f172a;
    font-size: 14px;
  }

  .mobile-filters-sheet-grid {
    display: grid;
    gap: 12px;
  }

  .mobile-sheet-field {
    display: grid;
    gap: 6px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-sheet-field .field {
    min-height: 46px;
    border-radius: 14px;
  }

  .mobile-sheet-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

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

  .mobile-sheet-chips .chip {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    position: fixed;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 117;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-nav-item {
    position: relative;
    min-height: 56px;
    padding: 8px 4px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #475569;
    display: grid;
    place-items: center;
    gap: 3px;
  }

  .mobile-bottom-nav-item.is-active {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.88), rgba(239, 246, 255, 0.94));
    color: #0f3a79;
  }

  .mobile-bottom-nav-icon {
    font-size: 17px;
    line-height: 1;
  }

  .mobile-bottom-nav-label {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }

  .mobile-bottom-nav-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
  }

  .header-nav-row {
    flex-direction: row !important;
    align-items: center;
  }

  .header-nav-row .btn {
    width: auto !important;
  }
}

@media (max-width: 390px) {
  .hero-actions,
  .mobile-sheet-actions,
  .mobile-sheet-chips,
  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    grid-template-columns: 1fr !important;
  }

  .main-space > .view {
    padding-inline: 12px;
  }

  .hero-fruitkha .hero-shell,
  #filtersSection .filters-shell,
  .store-product-view-shell,
  .card,
  .messages-main-card,
  .whatsapp-main {
    border-radius: 20px;
  }

  .mobile-filters-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-filters-toolbar-actions {
    width: 100%;
    flex-direction: column;
  }

  .mobile-sort-field {
    min-width: 0;
  }

  .cards-strip .product-card.product-card-refined {
    width: min(84vw, 280px);
    min-width: min(84vw, 280px);
    max-width: min(84vw, 280px);
  }

  .mobile-bottom-nav {
    gap: 6px;
    padding: 8px;
  }

  .mobile-bottom-nav-item {
    min-height: 54px;
    border-radius: 14px;
  }
}

/* ===== Mobile-first RTL marketplace refinements ===== */
.topbar.site-header.topbar-mobile-hidden {
  transform: translateY(calc(-100% - 10px));
  box-shadow: none;
}

.product-card.product-card-refined[data-open-product-card] {
  cursor: pointer;
}

.product-card.product-card-refined[data-open-product-card]:focus-visible {
  outline: 2px solid rgba(149, 187, 58, 0.8);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  :root {
    --mobile-topbar-height: 56px;
    --mobile-bottom-nav-height: 72px;
    --mobile-inline-space: 0px;
  }

  .topbar.site-header {
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  }

  .topbar.site-header .topbar-inner {
    position: relative;
    grid-template-columns: 1fr;
    min-height: var(--mobile-topbar-height);
    padding-block: 6px;
  }

  .brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-self: center;
    margin-inline: auto;
    max-width: calc(100% - 72px);
  }

  .brand-mark.brand-badge {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .brand-title.brand-text {
    font-size: 14px;
    font-weight: 800;
  }

  .brand-copy {
    display: grid;
    min-width: 0;
  }

  .header-nav-row {
    position: absolute;
    inset-inline: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    justify-content: flex-start;
    flex-direction: row !important;
    pointer-events: none;
    z-index: 2;
  }

  .header-nav-row > .search-toggle-btn,
  .header-nav-row > .mobile-header-menu {
    pointer-events: auto;
  }

  .mobile-header-menu-toggle,
  .header-icon-btn.search-toggle-btn {
    min-width: 44px;
    min-height: 44px;
    border-radius: 14px;
    padding-inline: 12px;
  }

  .main-space {
    padding-top: calc(var(--mobile-topbar-height) + 12px);
    padding-bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 24px);
  }

  .main-space > .view {
    padding-inline: 0;
  }

  .view {
    padding-bottom: 20px;
  }

  .section {
    margin-top: 20px;
  }

  .section-head {
    padding-inline: 16px;
    margin-bottom: 12px;
  }

  .hero.hero-fruitkha.hero-bleed {
    margin-bottom: 0;
  }

  .hero-fruitkha .hero-card.hero-poster {
    border-radius: 28px;
    min-height: 320px;
  }

  .hero-fruitkha .hero-shell {
    padding: 22px 20px 24px;
  }

  .hero-fruitkha .hero-kicker {
    min-height: 32px;
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hero-fruitkha .hero-text h1 {
    font-size: clamp(30px, 9.6vw, 34px);
    line-height: 1.14;
  }

  .hero-fruitkha .hero-text p {
    font-size: 15px;
    line-height: 1.8;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .boxed-btn,
  .bordered-btn {
    min-height: 48px;
    font-size: 14px;
    font-weight: 800;
  }

  .hero-benefits-shell {
    padding-inline: 16px;
    gap: 10px;
  }

  .hero-benefit-card {
    padding: 14px;
    border-radius: 22px;
  }

  .hero-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 16px;
  }

  .hero-benefit-copy h3 {
    font-size: 14px;
  }

  .hero-benefit-copy p {
    font-size: 13px;
    line-height: 1.6;
  }

  #filtersSection .filters-shell {
    margin-inline: 16px;
    padding: 14px;
    border-radius: 22px;
  }

  .mobile-filters-toolbar {
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .mobile-filters-summary strong {
    font-size: 15px;
  }

  .mobile-sort-field .field,
  .mobile-filters-sheet-toggle {
    min-height: 44px;
  }

  .mobile-sheet {
    max-height: 88dvh;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .mobile-sheet-body {
    gap: 12px;
  }

  .mobile-sheet-field .field {
    min-height: 48px;
  }

  .mobile-bottom-nav {
    right: 0;
    left: 0;
    bottom: env(safe-area-inset-bottom);
    min-height: 72px;
    padding: 8px;
    border-radius: 0;
  }

  .mobile-bottom-nav-item {
    min-height: 56px;
    padding: 8px 4px 7px;
  }

  .mobile-bottom-nav-item.is-active {
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.96), rgba(239, 246, 255, 0.98));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
  }

  .mobile-bottom-nav-icon {
    font-size: 18px;
  }

  .mobile-bottom-nav-label {
    font-size: 11px;
  }

  .search-area {
    padding: 14px;
  }

  .search-area-backdrop {
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
  }

  .search-area-panel {
    width: min(100vw - 24px, 100%);
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  }

  .search-close-btn {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    border-color: rgba(148, 163, 184, 0.2);
    background: #ffffff;
    color: #0f172a;
  }

  .search-area-copy {
    gap: 6px;
    margin-bottom: 12px;
    color: #0f172a;
  }

  .search-area-kicker {
    color: #64748b;
    letter-spacing: 0.08em;
  }

  .search-area-copy h3 {
    font-size: 24px;
    color: #0f172a;
  }

  .search-area-copy p {
    color: #475569;
    font-size: 14px;
    line-height: 1.75;
  }

  .searchbar.searchbar-overlay {
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .searchbar.searchbar-overlay input {
    color: #0f172a;
    min-height: 38px;
  }

  .searchbar.searchbar-overlay input::placeholder {
    color: #94a3b8;
  }

  .searchbar.searchbar-overlay .btn {
    min-height: 46px;
  }

  .cards-strip {
    grid-auto-columns: clamp(168px, 46vw, 184px);
    gap: 12px;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .cards-strip .product-card.product-card-refined {
    width: clamp(168px, 46vw, 184px);
    min-width: clamp(168px, 46vw, 184px);
    max-width: clamp(168px, 46vw, 184px);
  }

  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding-inline: 0;
  }

  .product-card.product-card-refined {
    border-radius: 22px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  }

  .product-card-refined .product-image-wrap {
    aspect-ratio: 4 / 3;
    border-radius: 22px 22px 0 0;
  }

  .product-card-refined .product-image-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.08) 60%, rgba(15, 23, 42, 0.24) 100%);
  }

  .product-card-refined .condition-ribbon {
    display: none;
  }

  .product-card-refined .product-views-corner {
    display: none;
  }

  .product-card-refined .product-hover-actions {
    left: auto;
    right: 12px;
    bottom: 12px;
    transform: none !important;
    gap: 8px;
  }

  .product-card-refined:hover .product-hover-actions,
  .product-card-refined:focus-within .product-hover-actions {
    transform: none;
  }

  .product-card-refined .product-hover-action {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .product-card-refined .product-body,
  .product-card-refined .product-body-pro {
    gap: 6px;
    padding: 9px 10px 10px;
  }

  .product-card-refined .product-title,
  .product-card-refined .product-title-compact {
    display: block;
    min-height: 0;
    font-size: 13.5px;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-refined .product-price-row {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 0;
  }

  .product-card-refined .product-price,
  .product-card-refined .product-price-inline,
  .product-card-refined .product-price-hero {
    font-size: 18px;
    text-shadow: none;
  }

  .product-card-refined .product-meta-inline {
    gap: 6px;
  }

  .product-card-refined .product-region-badge {
    min-height: 28px;
    font-size: 11px;
    padding-inline: 8px;
  }

  .product-card-refined .product-delivery-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #f8fafc;
  }

  .product-card-refined .product-store-block,
  .product-card-refined .product-store-block-pro {
    padding-top: 5px;
  }

  .product-card-refined .product-store-rating-row {
    gap: 8px;
  }

  .product-card-refined .store-link,
  .product-card-refined .store-link-pro,
  .product-card-refined .product-store-inline,
  .product-card-refined .product-rating-inline {
    font-size: 12px;
  }

  .messages-shell,
  .whatsapp-shell {
    gap: 0;
  }

  .messages-main-card,
  .whatsapp-main {
    min-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-bottom-nav-height) - 28px);
    height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-bottom-nav-height) - 28px);
    max-height: calc(100dvh - var(--mobile-topbar-height) - var(--mobile-bottom-nav-height) - 28px);
    border-radius: 22px;
    overflow: hidden;
  }

  #conversationDetails,
  .chat-layout,
  .whatsapp-chat-layout {
    min-height: 100%;
    height: 100%;
    overflow: hidden;
  }

  .mobile-conversation-picker {
    position: sticky;
    top: 0;
    z-index: 4;
    margin-bottom: 10px;
    padding-top: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  }

  .mobile-conversation-toggle {
    min-height: 56px;
    border-radius: 18px;
    padding: 10px 14px;
  }

  .chat-header,
  .whatsapp-chat-header {
    min-height: 56px;
    padding: 8px 12px 10px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .chat-thread,
  .whatsapp-thread {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    padding: 14px 12px 18px;
  }

  .chat-composer,
  .whatsapp-composer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .chat-input-shell,
  .whatsapp-input-shell {
    width: 100%;
    gap: 8px;
  }

  .chat-singleline-input,
  .chat-textarea,
  .whatsapp-textarea {
    min-height: 42px;
    height: 42px;
    max-height: 42px;
    line-height: 42px;
    font-size: 14px;
  }

  .chat-send-inline-btn {
    min-width: 68px;
    height: 42px;
    font-size: 13px;
  }
}

@media (min-width: 391px) and (max-width: 480px) {
  :root {
    --mobile-inline-space: 18px;
  }
}

@media (min-width: 481px) and (max-width: 620px) {
  :root {
    --mobile-inline-space: 20px;
  }
}

@media (max-width: 360px) {
  .hero-actions,
  .catalog-grid,
  .compact-grid,
  .seller-products-wide {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  body.chat-screen-active .messages-sidebar,
  body.chat-screen-active .conversations-card,
  body.chat-screen-active .section-head.messages-head,
  body.chat-screen-active .messages-search-wrap,
  body.chat-screen-active #conversationsList {
    display: none !important;
  }

  body.chat-screen-active,
  body.chat-screen-active .app-shell {
    overflow: hidden;
    height: 100dvh;
  }

  body.chat-screen-active .topbar.site-header,
  body.chat-screen-active .site-footer,
  body.chat-screen-active .support-floating-btn,
  body.chat-screen-active .support-widget {
    display: none !important;
  }

  body.chat-screen-active .mobile-bottom-nav {
    display: grid !important;
    z-index: 160;
    right: 12px;
    left: 12px;
    bottom: env(safe-area-inset-bottom);
  }

  body.chat-screen-active .main-space {
    padding: 0 !important;
  }

  body.chat-screen-active #messagesView {
    position: fixed;
    inset: 0 0 calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) - 16px) 0;
    z-index: 140;
    padding: 0 !important;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
  }

  body.chat-screen-active .messages-shell,
  body.chat-screen-active .whatsapp-shell {
    width: 100%;
    height: 100%;
    max-height: 100%;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.chat-screen-active .messages-main-card,
  body.chat-screen-active .whatsapp-main {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: #ffffff;
  }

  body.chat-screen-active .messages-main-card.card,
  body.chat-screen-active .whatsapp-main.card,
  body.chat-screen-active .card.messages-main-card,
  body.chat-screen-active .card.whatsapp-main {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  body.chat-screen-active #conversationDetails,
  body.chat-screen-active .chat-layout,
  body.chat-screen-active .whatsapp-chat-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  body.chat-screen-active .chat-header,
  body.chat-screen-active .whatsapp-chat-header {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: auto;
    padding: calc(env(safe-area-inset-top) + 6px) 12px 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  body.chat-screen-active .chat-header-leading {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  body.chat-screen-active .chat-person-block {
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
  }

  body.chat-screen-active .chat-header-title-block {
    display: grid;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  body.chat-screen-active .chat-header h3,
  body.chat-screen-active .whatsapp-chat-header h3 {
    font-size: 14px;
    line-height: 1.2;
  }

  body.chat-screen-active .chat-presence {
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
    margin-top: 2px;
  }

  body.chat-screen-active .chat-header-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  body.chat-screen-active .chat-header-meta > :only-child {
    grid-column: 1 / -1;
  }

  body.chat-screen-active .chat-header-action-btn {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 800;
  }

  body.chat-screen-active .chat-header-cta-btn {
    background: linear-gradient(180deg, #d9f99d, #bef264);
    color: #365314;
    border: 1px solid rgba(132, 204, 22, 0.32);
    box-shadow: 0 10px 20px rgba(132, 204, 22, 0.16);
  }

  body.chat-screen-active .chat-header-cta-btn:hover,
  body.chat-screen-active .chat-header-cta-btn:focus-visible {
    background: linear-gradient(180deg, #ecfccb, #d9f99d);
    color: #2f4b10;
  }

  body.chat-screen-active .chat-thread,
  body.chat-screen-active .whatsapp-thread {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 12px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  }

  body.chat-screen-active .chat-composer,
  body.chat-screen-active .whatsapp-composer {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 4px 12px env(safe-area-inset-bottom);
    margin-bottom: -8px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  body.chat-screen-active .chat-input-shell,
  body.chat-screen-active .whatsapp-input-shell {
    width: 100%;
  }

  body.chat-screen-active .chat-singleline-input,
  body.chat-screen-active .chat-textarea,
  body.chat-screen-active .whatsapp-textarea {
    min-height: 44px;
    height: 44px;
    max-height: 44px;
    line-height: 44px;
    border-radius: 999px;
  }

  body.chat-screen-active .chat-send-inline-btn {
    min-width: 72px;
    height: 44px;
    border-radius: 999px;
    background: linear-gradient(180deg, #d9f99d, #bef264);
    color: #365314;
    border: 1px solid rgba(132, 204, 22, 0.32);
    box-shadow: 0 10px 18px rgba(132, 204, 22, 0.14);
  }

  body.chat-screen-active .mobile-conversation-picker {
    position: fixed;
    top: 60px;
    right: 12px;
    left: 12px;
    z-index: 150;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  body.chat-screen-active .mobile-conversation-toggle {
    display: none;
  }

  body.chat-screen-active .mobile-conversations-menu {
    margin-top: 0;
    padding: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(12px);
    max-height: min(42dvh, 360px);
  }

  body.chat-screen-active .mobile-conversation-option {
    min-height: 52px;
    border-radius: 16px;
  }
}

.chat-order-sheet-modal {
  align-items: flex-end;
}

.chat-order-sheet {
  width: min(100%, 560px);
  max-height: 70vh;
  border-radius: 28px 28px 0 0;
  padding: 12px 16px 18px;
}

.chat-order-sheet-handle {
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.4);
}

.chat-order-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.chat-order-sheet-kicker {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.chat-order-sheet-head h3 {
  margin: 4px 0 0;
  font-size: 20px;
  color: #0f172a;
}

.chat-order-sheet-close {
  flex: 0 0 auto;
}

.chat-order-sheet-body {
  display: grid;
}

.chat-order-sheet-card {
  display: grid;
  gap: 14px;
}

.chat-order-sheet-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  background: #eef2f7;
}

.chat-order-sheet-image-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eef2f7, #dbe4ef);
}

.chat-order-sheet-image-placeholder::after {
  content: "🛍";
  font-size: 36px;
  opacity: 0.35;
}

.chat-order-sheet-copy {
  display: grid;
  gap: 8px;
}

.chat-order-sheet-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.chat-order-sheet-price {
  color: #16803c;
  font-size: 18px;
  font-weight: 900;
}

.chat-order-sheet-status {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.chat-order-sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (max-width: 620px) {
  .chat-order-sheet {
    width: 100%;
    max-height: 68dvh;
  }
}

@media (max-width: 900px) {
  body.chat-screen-active .mobile-bottom-nav {
    right: 0;
    left: 0;
    bottom: 0;
    min-height: 64px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: #ffffff;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
    backdrop-filter: none;
  }

  body.chat-screen-active #messagesView {
    inset: 0 0 calc(64px + env(safe-area-inset-bottom)) 0;
    background: #f5f7fa;
  }

  body.chat-screen-active .messages-main-card,
  body.chat-screen-active .whatsapp-main {
    background: #f5f7fa;
  }

  body.chat-screen-active #conversationDetails,
  body.chat-screen-active .chat-layout,
  body.chat-screen-active .whatsapp-chat-layout {
    display: flex;
    flex-direction: column;
    background: #f5f7fa;
  }

  body.chat-screen-active .chat-header,
  body.chat-screen-active .whatsapp-chat-header {
    min-height: 56px;
    padding: calc(env(safe-area-inset-top) + 6px) 14px 10px;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
  }

  body.chat-screen-active .chat-header-leading {
    align-items: center;
    gap: 10px;
  }

  body.chat-screen-active .chat-icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
  }

  body.chat-screen-active .chat-back-btn,
  body.chat-screen-active .chat-menu-trigger {
    flex: 0 0 auto;
  }

  body.chat-screen-active .chat-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
  }

  body.chat-screen-active .chat-avatar-badge {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
  }

  body.chat-screen-active .chat-avatar-status-dot {
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #ffffff;
  }

  body.chat-screen-active .chat-person-block {
    display: block;
    min-width: 0;
  }

  body.chat-screen-active .chat-header-title-block {
    gap: 2px;
  }

  body.chat-screen-active .chat-header h3,
  body.chat-screen-active .whatsapp-chat-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
  }

  body.chat-screen-active .chat-presence {
    margin-top: 0;
    font-size: 12px;
    color: #64748b;
  }

  body.chat-screen-active .chat-header-meta {
    display: none;
  }

  body.chat-screen-active .chat-header-menu-wrap {
    position: relative;
    flex: 0 0 auto;
  }

  body.chat-screen-active .chat-header-menu-wrap summary {
    list-style: none;
  }

  body.chat-screen-active .chat-header-menu-wrap summary::-webkit-details-marker {
    display: none;
  }

  body.chat-screen-active .chat-header-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 196px;
    padding: 8px;
    display: grid;
    gap: 4px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
    z-index: 8;
  }

  body.chat-screen-active .chat-header-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    text-align: right;
    cursor: pointer;
  }

  body.chat-screen-active .chat-header-menu-item:hover {
    background: #f8fafc;
  }

  body.chat-screen-active .chat-order-context-bar {
    width: 100vw;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #fef3c7;
    cursor: pointer;
    text-align: right;
  }

  body.chat-screen-active .chat-order-context-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffffff;
    flex: 0 0 auto;
  }

  body.chat-screen-active .chat-order-context-thumb-fallback {
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  }

  body.chat-screen-active .chat-order-context-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  body.chat-screen-active .chat-order-context-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.chat-screen-active .chat-order-context-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #854d0e;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.chat-screen-active .chat-order-context-cta {
    flex: 0 0 auto;
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
  }

  body.chat-screen-active .chat-thread,
  body.chat-screen-active .whatsapp-thread {
    padding: 14px;
    background: #f5f7fa;
    gap: 8px;
  }

  body.chat-screen-active .chat-row {
    display: flex;
    width: 100%;
  }

  body.chat-screen-active .chat-row.is-me {
    justify-content: flex-start;
  }

  body.chat-screen-active .chat-row.is-other {
    justify-content: flex-end;
  }

  body.chat-screen-active .chat-day-separator {
    margin: 10px 0 12px;
  }

  body.chat-screen-active .chat-day-separator span {
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
  }

  body.chat-screen-active .chat-bubble {
    max-width: 75%;
    padding: 10px 14px 8px;
    border-radius: 18px;
    box-shadow: none;
  }

  body.chat-screen-active .chat-bubble.is-me {
    background: #0f766e;
    color: #ffffff;
    border-bottom-right-radius: 6px;
  }

  body.chat-screen-active .chat-bubble.is-other {
    background: #e5e7eb;
    color: #111827;
    border-bottom-left-radius: 6px;
  }

  body.chat-screen-active .chat-body {
    line-height: 1.7;
    font-size: 14px;
  }

  body.chat-screen-active .chat-meta-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.88;
  }

  body.chat-screen-active .chat-row.is-me .chat-meta-inline {
    justify-content: flex-start;
    color: rgba(255, 255, 255, 0.88);
  }

  body.chat-screen-active .chat-row.is-other .chat-meta-inline {
    justify-content: flex-end;
    color: #6b7280;
  }

  body.chat-screen-active .chat-composer,
  body.chat-screen-active .whatsapp-composer {
    position: sticky;
    bottom: 0;
    margin-bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
  }

  body.chat-screen-active .chat-input-shell,
  body.chat-screen-active .whatsapp-input-shell {
    display: flex;
    align-items: flex-end;
    gap: 8px;
  }

  body.chat-screen-active .chat-input-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 24px;
    background: #f3f4f6;
  }

  body.chat-screen-active .chat-singleline-input,
  body.chat-screen-active .chat-textarea,
  body.chat-screen-active .whatsapp-textarea {
    width: 100%;
    min-height: 24px;
    height: 24px;
    max-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 24px;
    font-size: 14px;
    box-shadow: none;
  }

  body.chat-screen-active .chat-singleline-input:focus,
  body.chat-screen-active .chat-textarea:focus,
  body.chat-screen-active .whatsapp-textarea:focus {
    outline: none;
    box-shadow: none;
  }

  body.chat-screen-active .chat-send-inline-btn {
    width: 36px;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    box-shadow: none;
    font-size: 18px;
    flex: 0 0 auto;
  }

  body.chat-screen-active .chat-send-inline-btn.is-send {
    background: #0f766e;
    color: #ffffff;
  }

  body.chat-screen-active .mobile-conversation-picker {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 220;
    margin: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.4);
  }

  body.chat-screen-active .mobile-conversation-picker.is-open {
    display: block;
  }

  body.chat-screen-active .mobile-conversation-toggle {
    display: none;
  }

  body.chat-screen-active .mobile-conversations-menu {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 12px 16px calc(var(--global-bottom-nav-height) + env(safe-area-inset-bottom) + 10px);
    border-radius: 28px 28px 0 0;
    background: #ffffff;
    box-shadow: 0 -18px 36px rgba(15, 23, 42, 0.18);
    max-height: calc(100dvh - var(--global-bottom-nav-height) - env(safe-area-inset-bottom) - 24px);
    overflow: auto;
  }

  body.chat-screen-active .mobile-conversations-sheet-head {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  body.chat-screen-active .mobile-conversations-sheet-handle {
    width: 40px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: #cbd5e1;
  }

  body.chat-screen-active .mobile-conversations-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    text-align: right;
  }

  body.chat-screen-active .mobile-conversations-search {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: #f3f4f6;
    font: inherit;
    color: #111827;
  }

  body.chat-screen-active .mobile-conversations-sheet-list {
    display: grid;
  }

  body.chat-screen-active .mobile-conversation-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 0;
    background: transparent;
    text-align: right;
  }

  body.chat-screen-active .mobile-conversation-option:last-child {
    border-bottom: 0;
  }

  body.chat-screen-active .mobile-conversation-option.is-active {
    background: transparent;
  }

  body.chat-screen-active .mobile-conversation-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 800;
    flex: 0 0 auto;
  }

  body.chat-screen-active .mobile-conversation-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
  }

  body.chat-screen-active .mobile-conversation-copy strong,
  body.chat-screen-active .mobile-conversation-copy span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.chat-screen-active .mobile-conversation-copy strong {
    color: #111827;
    font-size: 14px;
  }

  body.chat-screen-active .mobile-conversation-copy span {
    color: #6b7280;
    font-size: 12px;
  }

  body.chat-screen-active .chat-order-sheet {
    border-radius: 28px 28px 0 0;
    background: #ffffff;
  }

  body.chat-screen-active .chat-order-sheet-copy {
    gap: 10px;
  }

  body.chat-screen-active .chat-order-sheet-actions .btn {
    min-height: 44px;
    border-radius: 14px;
  }
}

.mobile-conversations-menu,
.mobile-conversations-sheet-list {
  scroll-padding-bottom: calc(var(--global-bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
}

.mobile-conversations-sheet-list {
  padding-bottom: calc(var(--global-bottom-nav-height) + env(safe-area-inset-bottom) + 6px);
}

.store-direct-buy-btn {
  background: linear-gradient(180deg, #16a34a, #15803d);
  border-color: transparent;
  box-shadow: 0 14px 24px rgba(22, 163, 74, 0.16);
}

.store-direct-buy-btn:hover,
.store-direct-buy-btn:focus-visible {
  background: linear-gradient(180deg, #22c55e, #16a34a);
}

@media (hover: none), (pointer: coarse) {
  .product-card.product-card-refined .product-hover-actions {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .product-card.product-card-refined.is-mobile-actions-visible .product-hover-actions,
  .product-card.product-card-refined.is-mobile-actions-visible:focus-within .product-hover-actions {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .product-card.product-card-refined.is-mobile-actions-visible .product-image-overlay {
    opacity: 1 !important;
  }
}

@media (max-width: 900px) {
  .modal-cart-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .store-buy-btn,
  .store-direct-buy-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 901px) {
  #messagesView {
    padding-top: 12px;
  }

  .messages-shell,
  .whatsapp-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }

  .messages-sidebar.conversations-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 14px;
    margin: 0;
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  }

  .messages-main-card.whatsapp-main {
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 180px);
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f5f7fa;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  #conversationDetails,
  .chat-layout,
  .whatsapp-chat-layout {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    height: 100%;
    background: #f5f7fa;
  }

  .chat-header,
  .whatsapp-chat-header {
    min-height: 68px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  }

  .chat-header-leading {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .chat-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f172a;
    font-size: 20px;
    cursor: pointer;
  }

  .chat-avatar-wrap {
    position: relative;
    flex: 0 0 auto;
  }

  .chat-avatar-badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #eef2f7;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
  }

  .chat-avatar-status-dot {
    position: absolute;
    bottom: 1px;
    left: 1px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #ffffff;
  }

  .chat-person-block {
    flex: 1 1 auto;
    min-width: 0;
  }

  .chat-header-title-block {
    display: grid;
    gap: 2px;
  }

  .chat-header h3,
  .whatsapp-chat-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
  }

  .chat-presence {
    font-size: 12px;
    color: #64748b;
  }

  .chat-header-menu-wrap {
    position: relative;
    flex: 0 0 auto;
  }

  .chat-header-menu-wrap summary {
    list-style: none;
  }

  .chat-header-menu-wrap summary::-webkit-details-marker {
    display: none;
  }

  .chat-header-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 220px;
    padding: 8px;
    display: grid;
    gap: 4px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
    z-index: 10;
  }

  .chat-header-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #0f172a;
    font: inherit;
    text-align: right;
    cursor: pointer;
  }

  .chat-header-menu-item:hover {
    background: #f8fafc;
  }

  .chat-order-context-bar {
    width: 100%;
    margin: 0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    background: #fef3c7;
    cursor: pointer;
    text-align: right;
  }

  .chat-order-context-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 14px;
    background: #ffffff;
    flex: 0 0 auto;
  }

  .chat-order-context-thumb-fallback {
    display: grid;
    place-items: center;
    font-size: 24px;
  }

  .chat-order-context-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .chat-order-context-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .chat-order-context-subline {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #854d0e;
    font-size: 12px;
  }

  .chat-order-context-cta {
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
  }

  .chat-thread,
  .whatsapp-thread {
    flex: 1 1 auto;
    padding: 18px;
    overflow-y: auto;
    background: #f5f7fa;
  }

  .chat-row {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
  }

  .chat-row.is-me {
    justify-content: flex-start;
  }

  .chat-row.is-other {
    justify-content: flex-end;
  }

  .chat-bubble {
    max-width: 72%;
    padding: 10px 14px 8px;
    border-radius: 18px;
  }

  .chat-bubble.is-me {
    background: #0f766e;
    color: #ffffff;
    border-bottom-right-radius: 6px;
  }

  .chat-bubble.is-other {
    background: #e5e7eb;
    color: #111827;
    border-bottom-left-radius: 6px;
  }

  .chat-meta-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    font-size: 11px;
  }

  .chat-row.is-me .chat-meta-inline {
    color: rgba(255, 255, 255, 0.88);
  }

  .chat-row.is-other .chat-meta-inline {
    color: #6b7280;
    justify-content: flex-end;
  }

  .chat-composer,
  .whatsapp-composer {
    padding: 12px 18px 16px;
    background: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .chat-input-shell,
  .whatsapp-input-shell {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .chat-input-box {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 24px;
    background: #f3f4f6;
  }

  .chat-singleline-input,
  .chat-textarea,
  .whatsapp-textarea {
    width: 100%;
    min-height: 24px;
    height: 24px;
    max-height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    line-height: 24px;
    font-size: 14px;
    box-shadow: none;
  }

  .chat-singleline-input:focus,
  .chat-textarea:focus,
  .whatsapp-textarea:focus {
    outline: none;
    box-shadow: none;
  }

  .chat-send-inline-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    box-shadow: none;
    font-size: 18px;
  }
}

/* ===== UI Polish for Internal Storefront Screens ===== */
:root {
  --polish-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  --polish-border: rgba(226, 232, 240, 0.9);
  --polish-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
  --polish-shadow-soft: 0 10px 22px rgba(15, 23, 42, 0.05);
  --polish-radius-xl: 26px;
  --polish-radius-lg: 20px;
  --polish-radius-md: 16px;
}

#productView,
#sellerView,
#cartView,
#checkoutView,
#ordersView,
#profileView {
  animation: polishViewFade 220ms ease;
}

@keyframes polishViewFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#productView .section-head,
#sellerView .section-head,
#cartView .section-head,
#checkoutView .section-head,
#ordersView .section-head,
#profileView .section-head {
  margin-bottom: 16px;
}

#productView .section-head h2,
#sellerView .section-head h2,
#cartView .section-head h2,
#checkoutView .section-head h2,
#ordersView .section-head h2,
#profileView .section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}

#productView .section-head .muted,
#sellerView .section-head .muted,
#cartView .section-head .muted,
#checkoutView .section-head .muted,
#ordersView .section-head .muted,
#profileView .section-head .muted {
  max-width: 62ch;
}

#productView .card,
#sellerView .card,
#cartView .card,
#checkoutView .card,
#ordersView .card,
#profileView .card,
.store-product-view-shell,
.seller-header-card,
.seller-feedback-card,
.seller-products-card {
  border-radius: var(--polish-radius-xl);
  border: 1px solid var(--polish-border);
  background: var(--polish-surface);
  box-shadow: var(--polish-shadow);
}

#productView .btn,
#sellerView .btn,
#cartView .btn,
#checkoutView .btn,
#ordersView .btn,
#profileView .btn {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

#productView .btn:hover,
#sellerView .btn:hover,
#cartView .btn:hover,
#checkoutView .btn:hover,
#ordersView .btn:hover,
#profileView .btn:hover,
#productView .btn:focus-visible,
#sellerView .btn:focus-visible,
#cartView .btn:focus-visible,
#checkoutView .btn:focus-visible,
#ordersView .btn:focus-visible,
#profileView .btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

.store-product-view-shell {
  overflow: hidden;
}

.store-product-layout {
  gap: 22px;
  align-items: start;
}

.store-product-gallery {
  border-radius: var(--polish-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #eef2f7, #dbe5ef);
  box-shadow: var(--polish-shadow-soft);
}

.modal-product-image,
.store-product-gallery .product-image.modal-placeholder {
  border-radius: 0;
}

.store-product-copy {
  gap: 18px;
}

.store-title-row {
  align-items: start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.product-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.store-title-row h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

.store-product-price {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 900;
  color: #059669;
  text-shadow: none;
}

.detail-card-block {
  padding: 16px 18px;
  border-radius: var(--polish-radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.82);
}

.detail-card-title {
  color: #0f172a;
  font-weight: 800;
}

.detail-rows {
  gap: 10px;
}

.detail-row {
  padding-bottom: 10px;
}

.store-product-description {
  line-height: 1.9;
  color: #334155;
}

.store-purchase-box {
  padding: 18px;
  border-radius: var(--polish-radius-lg);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.14);
}

.modal-purchase-head {
  gap: 14px;
}

.modal-cart-stock {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #0f766e;
  font-weight: 800;
}

.modal-cart-inline {
  margin-top: 16px;
  gap: 12px;
}

.modal-qty-stepper,
.cart-qty-stepper {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.seller-summary {
  min-height: 0;
}

.seller-header-card {
  overflow: hidden;
}

.seller-hero-pro {
  padding: 6px 0;
}

.seller-name-frame-pro {
  padding: 18px 22px;
  border-radius: var(--polish-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,252,0.88));
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--polish-shadow-soft);
}

.seller-name-frame-pro h2 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 6px;
}

.seller-rate-chip-pro,
.seller-location-chip,
.seller-products-chip {
  border-radius: 999px;
  box-shadow: none;
}

.seller-description-pro {
  max-width: 68ch;
  line-height: 1.9;
}

.seller-ratings-strip {
  gap: 14px;
}

.rating-card.rating-card-pro {
  border-radius: var(--polish-radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255,255,255,0.82);
  box-shadow: var(--polish-shadow-soft);
}

.profile-layout > .card,
.cart-layout > .card,
.checkout-layout > .card,
.orders-layout > .card {
  overflow: hidden;
}

#profileSummary .list-stack,
#ordersList.list-stack,
#cartItemsList.list-stack,
#checkoutItemsList.list-stack {
  gap: 12px;
}

.cart-item-card,
.list-item.cart-item-card {
  padding: 16px;
  border-radius: var(--polish-radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--polish-shadow-soft);
}

.cart-item-image {
  border-radius: 16px;
}

.cart-item-copy strong {
  color: #0f172a;
}

.cart-meta-row {
  gap: 10px;
  margin-top: 8px;
}

.cart-summary-box,
#checkoutSummaryPanel .summary-box {
  padding: 18px;
  border-radius: var(--polish-radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(241,245,249,0.9));
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--polish-shadow-soft);
}

.summary-line {
  min-height: 36px;
}

.summary-line strong {
  color: #0f172a;
}

.checkout-form-grid {
  gap: 14px;
}

.field-stack > span {
  color: #334155;
  font-weight: 700;
}

#orderDetailsPanel,
.conversation-empty {
  border-radius: var(--polish-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(16,185,129,0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.82), rgba(248,250,252,0.92));
  border: 1px dashed rgba(148, 163, 184, 0.38);
}

.messages-sidebar.conversations-card .messages-head {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .store-product-layout,
  .cart-layout,
  .checkout-layout,
  .orders-layout,
  .profile-layout,
  .two-cols.profile-layout {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .store-product-view-shell,
  .seller-header-card,
  .seller-feedback-card,
  .seller-products-card,
  #productView .card,
  #sellerView .card,
  #cartView .card,
  #checkoutView .card,
  #ordersView .card,
  #profileView .card {
    border-radius: 22px;
  }

  .store-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-title-row h2,
  .seller-name-frame-pro h2 {
    font-size: 24px;
  }

  .store-product-price {
    font-size: 26px;
  }

  .modal-cart-inline,
  .account-actions-row,
  .section-head,
  .modal-purchase-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-summary-box,
  #checkoutSummaryPanel .summary-box {
    position: sticky;
    bottom: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom) + 12px);
    z-index: 2;
  }
}

/* ===== Unified Bottom Nav + Search Polish ===== */
:root {
  --global-bottom-nav-height: 78px;
  --global-bottom-nav-offset: 14px;
  --global-bottom-nav-width: min(760px, calc(100vw - 28px));
}

body {
  padding-bottom: 0;
}

.main-space {
  padding-bottom: calc(var(--global-bottom-nav-height) + var(--global-bottom-nav-offset) + env(safe-area-inset-bottom) + 26px) !important;
}

.mobile-bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  position: fixed;
  left: 50%;
  bottom: calc(var(--global-bottom-nav-offset) + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: var(--global-bottom-nav-width);
  max-width: calc(100vw - 28px);
  z-index: 140;
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.12),
    0 4px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.mobile-bottom-nav-item {
  position: relative;
  min-height: 58px;
  padding: 8px 6px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #475569;
  display: grid;
  place-items: center;
  gap: 4px;
  transition: transform 160ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.mobile-bottom-nav-item.is-active {
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.96), rgba(240, 253, 244, 0.98));
  color: #166534;
  box-shadow:
    inset 0 0 0 1px rgba(34, 197, 94, 0.12),
    0 10px 20px rgba(34, 197, 94, 0.12);
}

.mobile-bottom-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.mobile-bottom-nav-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.mobile-bottom-nav-badge {
  position: absolute;
  top: 5px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.26);
}

.search-area {
  padding: 18px;
  z-index: 145;
}

.search-area-backdrop {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 22%),
    rgba(8, 15, 28, 0.7);
  backdrop-filter: blur(16px);
}

.search-area-panel {
  width: min(760px, calc(100vw - 28px));
  border-radius: 32px;
  padding: 30px 28px 24px;
  background:
    radial-gradient(circle at top right, rgba(220, 252, 231, 0.24), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.94));
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 34px 70px rgba(15, 23, 42, 0.2);
  color: #0f172a;
  transform: translateY(16px) scale(0.98);
  transition: transform 240ms ease, opacity 220ms ease;
}

.search-area.search-active .search-area-panel {
  transform: translateY(0) scale(1);
}

.search-close-btn {
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.76);
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.search-area-copy {
  gap: 12px;
  margin-bottom: 20px;
  color: #0f172a;
}

.search-area-kicker {
  color: #16a34a;
  letter-spacing: 0.14em;
}

.search-area-copy h3 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
}

.search-area-copy p {
  color: #475569;
  max-width: 58ch;
}

.searchbar.searchbar-overlay {
  gap: 12px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.searchbar.searchbar-overlay input {
  height: 56px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.85);
  color: #0f172a;
  font-size: 15px;
  padding-inline: 18px;
}

.searchbar.searchbar-overlay .btn {
  min-width: 118px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border-color: transparent;
  box-shadow: 0 16px 26px rgba(22, 163, 74, 0.18);
}

.search-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.search-quick-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(187, 247, 208, 0.92);
  border-radius: 999px;
  background: rgba(240, 253, 244, 0.96);
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 180ms ease, box-shadow 180ms ease;
}

.search-quick-chip:hover,
.search-quick-chip:focus-visible {
  transform: translateY(-1px);
  background: #dcfce7;
  box-shadow: 0 10px 20px rgba(34, 197, 94, 0.12);
}

body.chat-screen-active .mobile-bottom-nav {
  border-radius: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  transform: none;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

@media (min-width: 901px) {
  :root {
    --global-bottom-nav-height: 84px;
    --global-bottom-nav-width: min(820px, calc(100vw - 48px));
  }

  .topbar.site-header {
    padding-bottom: 8px;
  }

  .main-space {
    padding-bottom: calc(var(--global-bottom-nav-height) + 34px) !important;
  }

  .mobile-bottom-nav {
    grid-template-columns: repeat(5, minmax(96px, 1fr));
    padding: 12px;
  }

  .mobile-bottom-nav-item {
    min-height: 60px;
  }

  .search-area-panel {
    padding: 34px 32px 28px;
  }
}

@media (max-width: 900px) {
  :root {
    --global-bottom-nav-height: 72px;
    --global-bottom-nav-offset: 10px;
    --global-bottom-nav-width: calc(100vw - 20px);
  }

  .mobile-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: calc(var(--global-bottom-nav-offset) + env(safe-area-inset-bottom));
    width: auto;
    max-width: calc(100vw - 20px);
    transform: none;
    border-radius: 24px;
    gap: 8px;
    padding: 8px;
  }

  .mobile-bottom-nav-item {
    min-height: 54px;
    border-radius: 16px;
  }

  .search-area {
    padding: 12px;
  }

  .search-area-panel {
    width: calc(100vw - 16px);
    border-radius: 28px;
    padding: 24px 18px 18px;
  }

  .searchbar.searchbar-overlay {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .searchbar.searchbar-overlay .btn {
    width: 100%;
  }

  .search-quick-actions {
    gap: 8px;
  }

  .search-quick-chip {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
  }
}

/* ===== Orders Experience Refresh ===== */
.orders-page-toolbar {
  margin: -2px 0 16px;
}

.orders-status-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 2px;
  scrollbar-width: thin;
}

.orders-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.orders-status-tab strong {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 11px;
}

.orders-status-tab.is-active {
  background: linear-gradient(180deg, #2b5e3b, #224a2f);
  color: #fff;
  box-shadow: 0 14px 26px rgba(43, 94, 59, 0.18);
}

.orders-status-tab.is-active strong {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.order-card-pro {
  display: grid;
  gap: 0;
  padding: 0;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.94);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.order-card-pro:hover,
.order-card-pro:focus-visible,
.order-card-pro.is-active {
  transform: translateY(-2px);
  border-color: rgba(43, 94, 59, 0.18);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.08);
}

.order-card-pro-head,
.order-card-party,
.order-card-products,
.order-card-total,
.order-card-actions {
  padding-inline: 16px;
}

.order-card-pro-head {
  padding-top: 16px;
  padding-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #edf2f7;
}

.order-card-head-main {
  display: grid;
  gap: 6px;
}

.order-card-id {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
}

.order-card-date {
  font-size: 12px;
  color: #64748b;
}

.order-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.order-card-status.is-pending {
  background: #fef3c7;
  color: #b45309;
}

.order-card-status.is-success {
  background: #e0f2e9;
  color: #2b5e3b;
}

.order-card-status.is-progress,
.order-card-status.is-accent {
  background: #dbeafe;
  color: #1e40af;
}

.order-card-status.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.order-card-party {
  padding-top: 12px;
  padding-bottom: 10px;
  display: grid;
  gap: 8px;
  background: #fff;
  border-bottom: 1px solid #edf2f7;
}

.order-card-party-name,
.order-card-party-address {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.order-card-party-name strong {
  color: #1e293b;
  font-size: 14px;
}

.order-card-party-address {
  color: #475569;
  font-size: 12px;
  line-height: 1.7;
}

.order-card-products {
  padding-top: 12px;
  padding-bottom: 12px;
  display: grid;
  gap: 10px;
}

.order-card-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-card-product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 16px;
  background: #eef2f6;
  border: 1px solid #e5e7eb;
  flex: 0 0 auto;
}

.order-card-product-thumb-placeholder {
  background: linear-gradient(135deg, #eef2f6, #dbe4ef);
}

.order-card-product-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-card-product-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card-product-meta,
.order-card-fallback-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

.order-card-total {
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid #edf2f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: #1e293b;
}

.order-card-actions {
  padding-top: 12px;
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid #edf2f7;
  background: #fff;
}

.order-details-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
}

.order-details-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.order-details-eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.order-details-hero h3 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
}

.order-details-party {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
}

.order-details-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-details-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.order-details-stat span {
  color: #64748b;
  font-size: 12px;
}

.order-details-stat strong {
  color: #0f172a;
  font-size: 14px;
}

.order-item-actions-pro {
  display: grid;
}

#orderDetailsPanel .order-line-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid #edf2f7;
}

@media (max-width: 900px) {
  .orders-page-toolbar {
    margin-bottom: 14px;
  }

  .orders-status-tabs {
    gap: 8px;
    padding-inline: 0;
  }

  .orders-status-tab {
    min-height: 40px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .order-card-pro-head,
  .order-card-party,
  .order-card-products,
  .order-card-total,
  .order-card-actions {
    padding-inline: 14px;
  }

  .order-card-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .order-details-hero {
    padding: 16px;
    border-radius: 20px;
  }

  .order-details-hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .order-details-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Desktop Overflow Fixes ===== */
@media (min-width: 901px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .app-shell,
  .main-space,
  .site-footer,
  .site-footer .container,
  .footer-grid,
  .footer-grid > div,
  .footer-bottom {
    min-width: 0;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    overflow: hidden;
  }

  .site-footer,
  .site-footer * {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .footer-bottom {
    padding-inline: 8px;
  }
}

/* ===== Search Overlay Stability Fix ===== */
.search-area-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  overflow: hidden;
}

.search-area-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-bottom: 0;
  padding-top: 28px;
}

.search-area-copy h3,
.search-area-copy p {
  max-width: 100%;
}

.searchbar.searchbar-overlay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.searchbar.searchbar-overlay input {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.searchbar.searchbar-overlay .btn {
  margin: 0;
}

.search-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  min-width: 0;
  margin-top: 0;
}

.search-quick-chip {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .search-area-panel {
    gap: 14px;
    padding-top: 52px;
  }

  .search-area-copy {
    padding-top: 0;
  }

  .search-close-btn {
    top: 12px;
    left: 12px;
    z-index: 2;
  }

  .searchbar.searchbar-overlay {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .searchbar.searchbar-overlay input {
    height: 50px;
  }

  .searchbar.searchbar-overlay .btn {
    width: 100%;
    min-width: 0;
    height: 48px;
  }

  .search-quick-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .search-quick-chip {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .search-area-panel {
    width: calc(100vw - 12px);
    padding: 52px 14px 14px;
    border-radius: 24px;
  }

  .search-area-copy h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  .search-area-copy p {
    font-size: 13px;
    line-height: 1.7;
  }

  .search-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== Seller Dashboard Upgrade ===== */
#dashboardView {
  display: grid;
  gap: 18px;
}

.dashboard-hero-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(43, 94, 59, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(30, 64, 175, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,252,0.98));
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
}

.dashboard-hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(43, 94, 59, 0.08);
  color: #2b5e3b;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dashboard-hero-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  color: #111827;
}

.dashboard-hero-copy p {
  margin: 0;
  color: #6b7280;
  line-height: 1.8;
}

.dashboard-hero-actions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dashboard-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dashboard-action-pill:hover,
.dashboard-action-pill:focus-visible {
  transform: translateY(-1px);
  background: #f9fafb;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-stat-card {
  position: relative;
  overflow: hidden;
}

.dashboard-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2b5e3b, #1e40af);
  opacity: 0.9;
}

.dashboard-stat-card .stat-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.dashboard-stat-card .value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  color: #111827;
}

.dashboard-stat-card .label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-orders-list,
.dashboard-spotlight-products {
  display: grid;
  gap: 12px;
}

.dashboard-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  background: #fff;
  text-align: right;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.dashboard-order-row:hover,
.dashboard-order-row:focus-visible {
  transform: translateY(-1px);
  background: #f9fafb;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.dashboard-order-main,
.dashboard-order-secondary {
  display: grid;
  gap: 4px;
}

.dashboard-order-main strong {
  color: #111827;
  font-size: 15px;
}

.dashboard-order-main span,
.dashboard-order-secondary span:first-child {
  color: #6b7280;
  font-size: 12px;
}

.dashboard-products-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(160px, 0.8fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-products-toolbar .field {
  min-height: 46px;
  border-radius: 16px;
  background: #f9fafb;
}

.managed-product-card {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(229, 231, 235, 0.95);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.managed-product-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.managed-product-image {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #eef2f7;
  flex: 0 0 auto;
}

.managed-product-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.managed-product-copy strong {
  color: #111827;
  font-size: 15px;
}

.managed-product-meta-row,
.managed-product-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.managed-product-meta-row {
  color: #6b7280;
  font-size: 12px;
}

.managed-product-price {
  color: #2b5e3b;
  font-size: 15px;
  font-weight: 800;
}

.managed-product-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.managed-product-status-published {
  background: #d1fae5;
  color: #047857;
}

.managed-product-status-draft {
  background: #fef3c7;
  color: #b45309;
}

.managed-product-status-hidden,
.managed-product-status-archived {
  background: #e5e7eb;
  color: #4b5563;
}

.managed-product-status-sold {
  background: #dbeafe;
  color: #1d4ed8;
}

.managed-product-actions {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.managed-product-actions .btn {
  min-height: 38px;
  border-radius: 999px;
  padding-inline: 14px;
}

.dashboard-spotlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.dashboard-spotlight-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(145deg, #e0e7ff, #c7d2fe);
  border: 1px solid #e5e7eb;
  flex: 0 0 auto;
}

.dashboard-spotlight-copy {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 4px;
}

.dashboard-spotlight-copy strong {
  color: #111827;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-spotlight-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .dashboard-products-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .dashboard-hero-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .dashboard-hero-copy h3 {
    font-size: 24px;
  }

  .dashboard-order-row,
  .dashboard-spotlight-card,
  .managed-product-head {
    flex-direction: column;
    align-items: stretch;
  }

  .managed-product-image,
  .dashboard-spotlight-thumb {
    width: 100%;
    height: 160px;
  }

  .managed-product-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== Topbar + Search Rebuild ===== */
.topbar.site-header {
  position: sticky;
  top: 0;
  z-index: 140;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.topbar.site-header .topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px 24px;
}

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

.brand-mark.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

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

.brand-title.brand-text {
  font-size: 18px;
  font-weight: 900;
  color: #111827;
}

#siteBrandTagline {
  color: #6b7280;
  font-size: 12px;
}

.header-nav-links {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.header-nav-link {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.header-nav-link.is-active,
.header-nav-link:hover,
.header-nav-link:focus-visible {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.header-nav-row {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  flex-wrap: nowrap;
}

.header-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  color: #111827 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.mobile-header-menu {
  display: none !important;
}

.search-area {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.search-area.search-active {
  opacity: 1;
  pointer-events: auto;
}

.search-area-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 24%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 22%),
    rgba(10, 15, 28, 0.62);
  backdrop-filter: blur(18px);
}

.search-area-panel {
  position: relative;
  width: min(680px, calc(100vw - 28px));
  display: grid;
  gap: 16px;
  padding: 58px 28px 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96));
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.search-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  z-index: 2;
}

.search-overlay-head {
  display: grid;
  gap: 10px;
}

.search-area-kicker {
  color: #16a34a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.search-overlay-head h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
}

.search-overlay-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.8;
}

.search-overlay-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.search-overlay-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96);
}

.search-overlay-icon {
  flex: 0 0 auto;
  color: #16a34a;
  font-size: 18px;
}

.search-overlay-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  outline: none;
  box-shadow: none;
}

.search-overlay-input::placeholder {
  color: #94a3b8;
}

.search-overlay-submit {
  min-width: 118px;
  min-height: 58px;
  border-radius: 20px;
  box-shadow: 0 14px 26px rgba(22, 163, 74, 0.18);
}

.search-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.search-quick-chip {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  text-align: center;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .topbar.site-header .topbar-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 62px;
    padding: 10px 14px;
    gap: 10px;
  }

  .header-nav-links {
    display: none !important;
  }

  #siteBrandTagline {
    display: none !important;
  }

  .brand {
    justify-self: center;
    margin-inline: auto;
  }

  .header-nav-row {
    justify-self: end;
  }

  .header-search-trigger {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .header-search-trigger span:last-child {
    display: none;
  }

  .header-nav-row > .btn:not(.header-search-trigger) {
    display: none;
  }

  .search-area {
    padding: 10px;
  }

  .search-area-panel {
    width: calc(100vw - 12px);
    padding: 56px 14px 14px;
    border-radius: 24px;
    gap: 14px;
  }

  .search-overlay-head h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  .search-overlay-head p {
    font-size: 13px;
    line-height: 1.7;
  }

  .search-overlay-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .search-overlay-field,
  .search-overlay-submit {
    min-height: 50px;
    border-radius: 18px;
  }

  .search-quick-actions {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ===== Final header + search stabilization ===== */
.topbar.site-header {
  position: sticky !important;
  top: 0 !important;
  inset: auto !important;
  z-index: 140 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(20px) saturate(1.15) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.07) !important;
}

.topbar.site-header .topbar-inner {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  min-height: 76px !important;
  padding: 12px 24px !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.brand-mark.brand-badge {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #2b5e3b, #163924) !important;
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(43, 94, 59, 0.22) !important;
}

.brand-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.brand-title.brand-text {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
}

#siteBrandTagline {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 12px !important;
}

.header-nav-links {
  justify-self: center !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px !important;
  border-radius: 999px !important;
  background: rgba(248, 250, 252, 0.9) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.header-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.header-nav-link.is-active,
.header-nav-link:hover,
.header-nav-link:focus-visible {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

.header-nav-row {
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.header-search-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  background: #f8fafc !important;
  transform: translateY(-1px);
}

#mobileHeaderDropdown {
  display: none;
}

.mobile-header-menu {
  position: relative;
  display: inline-flex !important;
  align-items: center;
}

.mobile-header-menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06) !important;
  font-weight: 800;
}

.mobile-header-menu-toggle:hover,
.mobile-header-menu-toggle:focus-visible {
  background: #f8fafc !important;
  transform: translateY(-1px);
}

.mobile-header-menu-toggle span[aria-hidden="true"] {
  font-size: 16px;
  line-height: 1;
}

.mobile-header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 190px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.96);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.mobile-header-dropdown.hidden {
  display: none !important;
}

#homeView #filtersSection .filters-shell,
#homeView .mobile-filters-toolbar {
  position: static !important;
  top: auto !important;
}

.search-area {
  position: fixed !important;
  inset: 0 !important;
  z-index: 220 !important;
  display: grid !important;
  place-items: center !important;
  padding: 18px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.search-area.search-active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.search-area-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(circle at top right, rgba(43, 94, 59, 0.18), transparent 24%),
    radial-gradient(circle at top left, rgba(30, 64, 175, 0.14), transparent 22%),
    rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(16px) !important;
}

.search-area-panel {
  position: relative !important;
  isolation: isolate !important;
  width: min(720px, calc(100vw - 28px)) !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 18px !important;
  padding: 60px 26px 24px !important;
  border-radius: 30px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.97)) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.2) !important;
  overflow: clip !important;
}

.search-area-panel > * {
  min-width: 0 !important;
}

.search-close-btn {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
}

.search-overlay-head {
  display: grid !important;
  gap: 10px !important;
}

.search-area-kicker {
  color: #2b5e3b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em !important;
}

.search-overlay-head h3 {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: clamp(26px, 4vw, 40px) !important;
  line-height: 1.08 !important;
}

.search-overlay-head p {
  margin: 0 !important;
  color: #64748b !important;
  line-height: 1.8 !important;
}

.search-overlay-form {
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.search-overlay-field {
  position: relative !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  border-radius: 20px !important;
  background: #fff !important;
  border: 1px solid rgba(226, 232, 240, 0.96) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.96) !important;
  overflow: hidden !important;
}

.search-overlay-icon {
  flex: 0 0 auto !important;
  color: #2b5e3b !important;
  font-size: 18px !important;
}

.search-overlay-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  font-size: 15px !important;
  outline: none !important;
  box-shadow: none !important;
}

.search-overlay-input::placeholder {
  color: #94a3b8 !important;
}

.search-overlay-submit {
  flex: 0 0 124px !important;
  min-width: 124px !important;
  min-height: 58px !important;
  border-radius: 20px !important;
  box-shadow: 0 14px 28px rgba(43, 94, 59, 0.2) !important;
}

.search-overlay-suggestions {
  display: grid !important;
  gap: 10px !important;
}

.search-overlay-suggestions-label {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.search-quick-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 !important;
}

.search-quick-chip {
  width: 100% !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (max-width: 900px) {
  .topbar.site-header .topbar-inner {
    grid-template-columns: auto 1fr auto !important;
    min-height: 62px !important;
    padding: 10px 14px !important;
    gap: 10px !important;
  }

  .header-nav-links {
    display: none !important;
  }

  #siteBrandTagline {
    display: none !important;
  }

  .brand {
    justify-self: center !important;
    margin-inline: auto !important;
    max-width: calc(100% - 56px) !important;
  }

  .header-nav-row {
    justify-self: start !important;
  }

  .header-search-trigger {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  .header-search-trigger span:last-child {
    display: none !important;
  }

  .mobile-header-menu-toggle {
    min-width: 44px !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  .mobile-header-menu-toggle span:last-child {
    display: none !important;
  }

  .header-nav-row > .btn:not(.header-search-trigger):not(.mobile-header-menu-toggle) {
    display: none !important;
  }

  .search-area {
    padding: 10px !important;
  }

  .search-area-panel {
    width: calc(100vw - 12px) !important;
    padding: 56px 14px 14px !important;
    border-radius: 24px !important;
    gap: 14px !important;
  }

  .search-overlay-head h3 {
    font-size: 22px !important;
    line-height: 1.15 !important;
  }

  .search-overlay-head p {
    font-size: 13px !important;
    line-height: 1.7 !important;
  }

  .search-overlay-form {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .search-overlay-field,
  .search-overlay-submit {
    min-height: 50px !important;
    border-radius: 18px !important;
  }

  .search-overlay-submit {
    flex: 0 0 auto !important;
    min-width: 100% !important;
    width: 100% !important;
  }

  .search-quick-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* ===== Final seller dashboard layout ===== */
#dashboardView {
  display: grid !important;
  gap: 16px !important;
}

.dashboard-screen-head {
  align-items: center !important;
  margin-bottom: 0 !important;
}

.dashboard-screen-head h2 {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

#dashboardUserInfo {
  color: #64748b !important;
  font-size: 0.8rem !important;
}

.dashboard-hero-panel {
  gap: 14px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  background: #ffffff !important;
  border: 1px solid #e9eef5 !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05) !important;
}

.dashboard-hero-kicker {
  min-height: 28px !important;
  margin-bottom: 8px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(43, 94, 59, 0.08) !important;
  color: #2b5e3b !important;
  font-size: 11px !important;
}

.dashboard-hero-copy h3 {
  font-size: clamp(26px, 4vw, 34px) !important;
  margin-bottom: 6px !important;
}

.dashboard-hero-copy p {
  font-size: 0.9rem !important;
  line-height: 1.75 !important;
}

.dashboard-hero-actions {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  padding-bottom: 6px !important;
  scrollbar-width: thin;
}

.dashboard-action-pill {
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  box-shadow: none !important;
}

#statsGrid.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  padding: 0 !important;
}

.dashboard-stat-card {
  padding: 14px 12px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
}

.dashboard-stat-card::before {
  height: 3px !important;
}

.dashboard-stat-card .stat-icon {
  display: block !important;
  font-size: 1.5rem !important;
  margin-bottom: 6px !important;
}

.dashboard-stat-card .value {
  font-size: 1.4rem !important;
  line-height: 1.2 !important;
}

.dashboard-stat-card .label {
  font-size: 0.72rem !important;
  line-height: 1.45 !important;
}

.dashboard-surface-card {
  border-radius: 24px !important;
  border: 1px solid #edf2f7 !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

.dashboard-surface-card .section-head {
  margin-bottom: 14px !important;
}

.dashboard-surface-card .section-head h3 {
  font-size: 1rem !important;
}

#dashboardRecentOrders.dashboard-orders-list,
#dashboardSpotlightProducts.dashboard-spotlight-products,
#myProductsGrid.dashboard-managed-grid {
  display: grid !important;
  gap: 0 !important;
}

.dashboard-order-row {
  padding: 12px 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.dashboard-order-row:last-child {
  border-bottom: 0 !important;
}

.dashboard-order-row:hover,
.dashboard-order-row:focus-visible {
  transform: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dashboard-order-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.dashboard-order-main strong {
  font-size: 0.82rem !important;
}

.dashboard-order-main span {
  font-size: 0.68rem !important;
}

.dashboard-order-total {
  font-weight: 800 !important;
  color: #2b5e3b !important;
}

.dashboard-products-toolbar {
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin-bottom: 8px !important;
}

.dashboard-products-toolbar #dashboardProductSearch {
  grid-column: 1 / -1 !important;
}

.dashboard-products-toolbar .field {
  min-height: 44px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
}

#dashboardProductsCounter {
  margin-top: 4px !important;
  font-size: 0.72rem !important;
}

.dashboard-managed-grid .muted {
  padding: 14px 0 !important;
}

.managed-product-card-mini {
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.managed-product-card-mini:last-child {
  border-bottom: 0 !important;
}

.managed-product-head {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 12px !important;
  align-items: center !important;
}

.managed-product-image {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
}

.managed-product-copy {
  gap: 4px !important;
}

.managed-product-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.managed-product-copy strong {
  font-size: 0.82rem !important;
  line-height: 1.45 !important;
}

.managed-product-meta-row,
.managed-product-support-row {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  color: #6c7a91 !important;
  font-size: 0.62rem !important;
}

.managed-product-side {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: left;
}

.managed-product-price {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

.managed-product-side-note {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
}

.managed-product-status-chip {
  min-height: 24px !important;
  padding: 0 10px !important;
  font-size: 0.65rem !important;
}

.managed-product-actions-mini {
  margin-top: 10px !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.managed-action-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  font-size: 1rem;
  transition: background 180ms ease, transform 180ms ease;
}

.managed-action-icon:hover,
.managed-action-icon:focus-visible {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.dashboard-icon-open { color: var(--primary); }
.dashboard-icon-hide { color: var(--accent); }
.dashboard-icon-publish { color: var(--primary); }
.dashboard-icon-sold { color: var(--primary-dark); }
.dashboard-icon-draft { color: #7c3aed; }
.dashboard-icon-delete { color: var(--accent-dark); }

.dashboard-spotlight-card {
  padding: 12px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f2f5 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.dashboard-spotlight-card:last-child {
  border-bottom: 0 !important;
}

.dashboard-spotlight-thumb {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
}

.dashboard-spotlight-copy strong {
  font-size: 0.82rem !important;
}

.dashboard-spotlight-badge {
  min-height: 24px !important;
  padding: 0 10px !important;
  font-size: 0.65rem !important;
}

@media (min-width: 900px) {
  #dashboardView {
    gap: 20px !important;
  }

  #statsGrid.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .dashboard-products-toolbar {
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(0, 0.7fr)) !important;
  }

  .dashboard-products-toolbar #dashboardProductSearch {
    grid-column: auto !important;
  }
}

@media (max-width: 620px) {
  #dashboardView {
    gap: 14px !important;
  }

  .dashboard-screen-head {
    padding-inline: 4px !important;
  }

  .dashboard-screen-head h2 {
    font-size: 1rem !important;
  }

  #dashboardUserInfo {
    font-size: 0.72rem !important;
  }

  .dashboard-hero-panel {
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 12px !important;
  }

  .dashboard-hero-copy h3 {
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
  }

  .dashboard-hero-copy p {
    font-size: 0.78rem !important;
    line-height: 1.6 !important;
  }

  .dashboard-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .dashboard-action-pill {
    width: 100% !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.72rem !important;
  }

  #statsGrid.stats-grid {
    gap: 10px !important;
  }

  .dashboard-stat-card {
    padding: 12px 10px !important;
  }

  .dashboard-stat-card .stat-icon {
    font-size: 1.25rem !important;
  }

  .dashboard-stat-card .value {
    font-size: 1.18rem !important;
  }

  .dashboard-stat-card .label {
    font-size: 0.66rem !important;
  }

  .dashboard-surface-card {
    border-radius: 20px !important;
    padding: 14px !important;
  }

  .dashboard-surface-card .section-head {
    margin-bottom: 10px !important;
    align-items: center !important;
  }

  .dashboard-surface-card .section-head h3 {
    font-size: 0.95rem !important;
  }

  .dashboard-surface-card .section-head .muted {
    font-size: 0.68rem !important;
    line-height: 1.45 !important;
  }

  .dashboard-orders-card .section-head .muted,
  .dashboard-products-card .section-head .muted {
    display: none !important;
  }

  .dashboard-order-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 0 !important;
  }

  .dashboard-order-main,
  .dashboard-order-secondary {
    display: contents !important;
  }

  .dashboard-order-main strong {
    grid-column: 1 / 2;
    font-size: 0.78rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-order-main span {
    display: none !important;
  }

  .dashboard-order-total {
    grid-column: 2 / 3;
    font-size: 0.75rem !important;
    white-space: nowrap;
  }

  .dashboard-order-row .order-card-status {
    grid-column: 3 / 4;
    justify-self: end;
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 0.63rem !important;
    white-space: nowrap;
  }

  .dashboard-products-toolbar {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }

  .dashboard-products-toolbar #dashboardProductSearch {
    grid-column: 1 / -1 !important;
  }

  .dashboard-products-toolbar .field {
    min-height: 40px !important;
    font-size: 0.76rem !important;
  }

  .managed-product-card-mini {
    display: grid !important;
    gap: 8px !important;
    padding: 10px 0 !important;
  }

  .managed-product-head {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
  }

  .managed-product-image {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  .managed-product-title-row {
    justify-content: flex-start !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }

  .managed-product-copy strong {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.76rem !important;
  }

  .managed-product-meta-row {
    gap: 8px !important;
    font-size: 0.58rem !important;
  }

  .managed-product-support-row,
  .managed-product-side-note {
    display: none !important;
  }

  .managed-product-price {
    font-size: 0.76rem !important;
    white-space: nowrap;
  }

  .managed-product-status-chip {
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 0.58rem !important;
  }

  .managed-product-actions-mini {
    margin-top: 0 !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 2px !important;
  }

  .managed-action-icon {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 auto !important;
    font-size: 0.92rem !important;
  }

  .dashboard-spotlight-card {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    padding: 10px 0 !important;
  }

  .dashboard-spotlight-thumb {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
  }

  .dashboard-spotlight-copy strong {
    font-size: 0.76rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dashboard-spotlight-badge {
    min-height: 22px !important;
    padding: 0 8px !important;
    font-size: 0.58rem !important;
    white-space: nowrap;
  }
}

#dashboardView.hidden {
  display: none !important;
}

#homeView .dashboard-hero-panel,
#homeView .dashboard-surface-card,
#homeView .dashboard-orders-card,
#homeView .dashboard-manage-card,
#homeView .dashboard-products-card,
#homeView #statsGrid,
#homeView #dashboardRecentOrders,
#homeView #myProductsGrid,
#homeView #dashboardSpotlightProducts,
#homeView .dashboard-order-row,
#homeView .managed-product-card-mini,
#homeView .managed-product-head,
#homeView .managed-product-actions-mini,
#homeView .dashboard-spotlight-card {
  display: none !important;
}

#dashboardView .dashboard-manage-card .dashboard-managed-grid {
  display: grid !important;
  gap: 0 !important;
}

#dashboardView .managed-product-card-mini {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
}

#dashboardView .managed-product-head {
  grid-column: 1 / 2 !important;
}

#dashboardView .managed-product-actions-mini {
  grid-column: 2 / 3 !important;
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  overflow-x: auto !important;
}

#dashboardView .managed-product-actions-mini .managed-action-icon {
  flex: 0 0 auto !important;
}

@media (max-width: 620px) {
  #dashboardView .managed-product-card-mini {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  #dashboardView .managed-product-actions-mini {
    gap: 4px !important;
  }
}

@media (min-width: 821px) {
  #dashboardView .managed-product-card-mini {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    column-gap: 16px !important;
  }

  #dashboardView .managed-product-head {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) minmax(120px, auto) !important;
    align-items: start !important;
    gap: 14px !important;
    min-width: 0 !important;
  }

  #dashboardView .managed-product-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 6px !important;
  }

  #dashboardView .managed-product-title-row {
    display: block !important;
  }

  #dashboardView .managed-product-copy strong {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  #dashboardView .managed-product-meta-row,
  #dashboardView .managed-product-support-row {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 6px !important;
    column-gap: 12px !important;
    min-width: 0 !important;
    font-size: 0.68rem !important;
    line-height: 1.5 !important;
  }

  #dashboardView .managed-product-side {
    min-width: 128px !important;
    display: grid !important;
    gap: 6px !important;
    align-self: start !important;
    justify-items: end !important;
    text-align: left !important;
  }

  #dashboardView .managed-product-status-chip {
    min-height: 26px !important;
    font-size: 0.66rem !important;
    white-space: nowrap !important;
  }

  #dashboardView .managed-product-price {
    white-space: nowrap !important;
    font-size: 0.9rem !important;
  }

  #dashboardView .managed-product-actions-mini {
    min-width: max-content !important;
    align-self: center !important;
    justify-content: flex-end !important;
  }

  #dashboardView .managed-product-side-note {
    white-space: nowrap !important;
    font-size: 0.66rem !important;
  }
}

@media (min-width: 901px) {
  #messagesView {
    min-height: calc(100vh - 176px) !important;
    height: calc(100vh - 176px) !important;
    padding-top: 12px !important;
    padding-bottom: 0 !important;
  }

  #messagesView .messages-shell,
  #messagesView .whatsapp-shell {
    display: grid !important;
    grid-template-columns: 320px minmax(0, 1fr) !important;
    align-items: stretch !important;
    min-height: 100% !important;
    height: 100% !important;
  }

  #messagesView .messages-main-card,
  #messagesView .whatsapp-main {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  #messagesView #conversationDetails {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #messagesView .chat-layout,
  #messagesView .whatsapp-chat-layout {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #messagesView .chat-header,
  #messagesView .whatsapp-chat-header,
  #messagesView .chat-order-context-bar {
    flex: 0 0 auto !important;
  }

  #messagesView .chat-thread,
  #messagesView .whatsapp-thread {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    padding-bottom: 18px !important;
  }

  #messagesView .chat-composer,
  #messagesView .whatsapp-composer {
    position: relative !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    flex: 0 0 auto !important;
    margin-top: auto !important;
    margin: 0 !important;
    padding: 12px 18px 16px !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    z-index: 2 !important;
  }
}

/* ===== Product create modal refresh ===== */
.product-form-modal-card {
  width: min(100%, 560px) !important;
  padding: 18px !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #fdfefe, #f7fafc) !important;
}

.product-form-modal-card .modal-header {
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
}

.product-form-modal-card .modal-header h2 {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

.product-create-form {
  display: grid !important;
  gap: 16px !important;
}

.product-form-section {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.product-form-media-section {
  padding-bottom: 14px;
}

.product-form-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.product-form-section-head h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 800;
}

.product-form-kicker {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.product-upload-panel {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 20px;
  border: 1px dashed #cbd5e1;
  background: linear-gradient(180deg, #fafcff, #f4f8fc);
  cursor: pointer;
}

.product-upload-emoji {
  font-size: 2rem;
}

.product-upload-panel strong {
  color: #1e293b;
  font-size: 0.92rem;
}

.product-upload-panel p {
  margin: 0;
  color: #8c9ab0;
  font-size: 0.72rem;
  line-height: 1.6;
}

.product-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
}

.product-upload-input {
  display: none !important;
}

.product-upload-preview {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.product-upload-empty {
  min-height: 40px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.product-upload-preview-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.product-upload-preview-name {
  min-width: 0;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-upload-preview-size {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.product-form-field {
  display: grid;
  gap: 6px;
}

.product-form-field > span {
  color: #5b6e8c;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-form-textarea {
  min-height: 96px;
  resize: vertical;
}

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

.product-delivery-check {
  margin-top: 2px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
}

.product-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-form-actions .btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .product-form-modal-card {
    width: min(100%, 100vw - 12px) !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }

  .product-form-section {
    border-radius: 20px;
    padding: 14px;
  }

  .product-form-row,
  .product-form-actions {
    grid-template-columns: 1fr;
  }
}

/* ===== Home UI Refresh (non-destructive overrides) ===== */
#homeView .hero-actions .boxed-btn {
  background: linear-gradient(135deg, #ffd966, #ffb347);
  color: #5a3e0b;
  border: none;
  box-shadow: 0 8px 18px rgba(255, 179, 71, 0.32);
  font-weight: 700;
}

#homeView .hero-actions .boxed-btn:hover,
#homeView .hero-actions .boxed-btn:focus-visible {
  background: linear-gradient(135deg, #ffe085, #ffc55a);
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(255, 179, 71, 0.42);
}

#homeView .hero-benefit-card {
  border: 1px solid rgba(240, 216, 122, 0.75);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#homeView .hero-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(2, 6, 23, 0.12);
}

#homeView .home-products-section {
  margin-top: 18px;
}

#homeView .home-products-head h2 {
  margin: 0;
}

.btn,
.card,
.filters-shell,
.chip,
.field,
.product-card,
.product-card-refined,
.header-nav-link,
.search-area-panel,
.search-overlay-field,
.dashboard-action-pill,
.mobile-header-dropdown-item,
.mobile-header-menu-toggle,
.product-hover-action {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.card:hover,
.filters-shell:hover,
.chip:hover,
.product-card:hover,
.product-card-refined:hover,
.header-nav-link:hover,
.search-area-panel:hover,
.search-overlay-field:hover,
.dashboard-action-pill:hover,
.mobile-header-dropdown-item:hover,
.mobile-header-menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.field:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 94, 59, 0.45);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

/* ===== Exact Home Layout Override ===== */
:root {
  --home-primary: #2b5e3b;
  --home-primary-dark: #1f452c;
  --home-primary-light: #e8f5e9;
  --home-gold-a: #FFD966;
  --home-gold-b: #FFB347;
  --home-gray-50: #f9fafc;
  --home-gray-100: #f3f4f6;
  --home-gray-200: #e5e7eb;
  --home-gray-600: #6b7280;
  --home-gray-800: #1f2937;
  --home-radius-sm: 8px;
  --home-radius-md: 12px;
  --home-radius-lg: 16px;
  --home-radius-xl: 24px;
  --home-radius-full: 9999px;
  --home-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --home-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --home-transition: all 0.2s ease;
}

body {
  background: #f8fafc;
}

.topbar.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eef2f6;
  box-shadow: none;
  z-index: 30;
}

.home-topbar-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.side-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-symbol {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--home-primary);
  border-radius: var(--home-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.seen-letter {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  background: linear-gradient(135deg, #FFE6B0, #FFD966, #FFB347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shimmer-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  animation: shimmerMove 3s ease-in-out infinite;
}

@keyframes shimmerMove {
  0% { left: -100%; opacity: 0; }
  20% { opacity: 1; }
  40% { left: 120%; opacity: 0; }
  100% { left: 150%; opacity: 0; }
}

.brand-title-side {
  font-weight: 800;
  font-size: 1rem;
  color: var(--home-gray-800);
}

.menu-container { position: relative; }

.menu-toggle {
  background: var(--home-gray-100);
  border: none;
  border-radius: var(--home-radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--home-transition);
}

.menu-toggle:hover {
  background: var(--home-gray-200);
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.dropdown-menu {
  position: absolute;
  top: 45px;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: var(--home-radius-lg);
  box-shadow: var(--home-shadow-md);
  overflow: hidden;
  display: none;
  z-index: 40;
}

.dropdown-menu.show { display: block; }

.dropdown-item {
  width: 100%;
  background: none;
  border: none;
  text-align: right;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--home-gray-800);
  cursor: pointer;
  transition: var(--home-transition);
}

.dropdown-item:hover {
  background: var(--home-gray-100);
  transform: translateX(-4px);
}

.dropdown-divider {
  height: 1px;
  background: #eef2f6;
  margin: 4px 0;
}

.dropdown-item.add-product {
  color: var(--home-primary);
  font-weight: 600;
}

#homeView {
  max-width: 100%;
}

#homeView .hero-bleed {
  margin-left: calc(-1 * (100vw - 100%) / 2);
  margin-right: calc(-1 * (100vw - 100%) / 2);
  padding-left: calc((100vw - 100%) / 2);
  padding-right: calc((100vw - 100%) / 2);
}

#homeView .hero {
  padding: 20px 0;
}

#homeView .hero-card {
  background: linear-gradient(145deg, var(--home-primary), var(--home-primary-dark));
  border-radius: var(--home-radius-xl);
  padding: 32px 20px;
  color: #fff;
  text-align: center;
  box-shadow: none;
}

#homeView .hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 8px;
}

#homeView .hero-card h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

#homeView .hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
  align-items: center;
}

#homeView .golden-btn {
  background: linear-gradient(135deg, var(--home-gold-a), var(--home-gold-b));
  color: #5a3e0b;
  padding: 10px 24px;
  border-radius: var(--home-radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  transition: var(--home-transition);
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#homeView .golden-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--home-shadow-md);
  background: linear-gradient(135deg, #FFE085, #FFC55A);
}

#homeView .rainbow-btn-outer {
  display: inline-block;
  border-radius: var(--home-radius-full);
  background: conic-gradient(from var(--angle), #ff4545, #ffa500, #ffff00, #00ff99, #006aff, #ff0095, #ff4545);
  animation: rotate-rainbow 4s linear infinite;
  padding: 2px;
  transition: var(--home-transition);
}

#homeView .rainbow-btn-outer:hover {
  transform: translateY(-3px);
  filter: brightness(1.05);
}

#homeView .rainbow-btn-inner {
  background: var(--home-primary);
  border-radius: calc(var(--home-radius-full) - 2px);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.85rem;
  color: white;
  border: none;
  cursor: pointer;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-rainbow {
  to { --angle: 360deg; }
}

#homeView .benefits-section { padding: 16px; }

#homeView .hero-benefits-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#homeView .hero-benefit-card {
  background: var(--home-primary-light);
  border: 1px solid rgba(240, 216, 122, 0.7);
  border-radius: var(--home-radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: var(--home-transition);
}

#homeView .hero-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-md);
}

#homeView .filters-shell {
  background: #fff;
  border-radius: var(--home-radius-lg);
  padding: 20px 18px;
  margin: 16px;
  box-shadow: var(--home-shadow-sm);
  border: 1px solid #edf2f7;
}

#homeView .filters-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#homeView .field {
  border: 1px solid #e2e8f0;
  border-radius: var(--home-radius-md);
  transition: var(--home-transition);
}

#homeView .field:hover {
  border-color: var(--home-primary);
  transform: translateY(-1px);
  box-shadow: var(--home-shadow-sm);
}

#homeView #applyFiltersBtn {
  background: linear-gradient(135deg, var(--home-primary), var(--home-primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--home-radius-full);
  font-weight: 600;
}

#homeView #applyFiltersBtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.google-search-wrapper {
  margin: 16px;
  position: relative;
}

.search-container { position: relative; width: 100%; }

.rainbow-border {
  position: absolute;
  inset: -2px;
  border-radius: var(--home-radius-full);
  background: conic-gradient(from var(--angle), #ff4545, #ffa500, #ffff00, #00ff99, #006aff, #ff0095, #ff4545);
  animation: rotate-rainbow 3s linear infinite;
  z-index: 0;
  opacity: 0.6;
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--home-radius-full);
  padding: 4px 20px 4px 16px;
  z-index: 1;
  transition: var(--home-transition);
}

.search-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.search-icon {
  font-size: 1.2rem;
  color: var(--home-gray-600);
  margin-left: 12px;
}

.search-input {
  flex: 1;
  border: none;
  padding: 14px 0;
  font-size: 1rem;
  background: transparent;
  outline: none;
}

#homeView #homeProductsSection {
  margin: 24px 16px;
}

#homeView .home-products-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--home-gray-800);
}

#homeView .product-card,
#homeView .product-card-refined {
  transition: var(--home-transition);
}

#homeView .product-card:hover,
#homeView .product-card-refined:hover {
  transform: translateY(-4px);
  box-shadow: var(--home-shadow-md);
}

.site-footer {
  background: #fff;
  border-top: 1px solid #eef2f6;
}

.site-footer a {
  transition: var(--home-transition);
}

.site-footer a:hover {
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  #homeView .hero-benefits-shell {
    flex-direction: row;
  }

  #homeView .filters-bar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #homeView .filters-bar .field {
    flex: 1;
  }
}

/* ===== Requested fine-tuning pass ===== */
#homeView .hero-actions {
  flex-wrap: nowrap;
  gap: 10px;
}

#homeView .hero-actions .golden-btn,
#homeView .hero-actions .rainbow-btn-inner {
  min-width: 132px;
  text-align: center;
  white-space: nowrap;
}

#homeView .hero-benefit-icon {
  display: none;
}

#homeView .hero-benefit-copy p {
  display: none;
}

.google-search-wrapper .search-box:hover,
.google-search-wrapper .search-box:focus-within {
  transform: none;
  box-shadow: none;
}

.google-search-wrapper .search-box {
  box-shadow: none;
}

.footer {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: #ffffff;
  border-top: 3px solid var(--accent);
  padding: 32px 20px 24px;
  margin-top: 40px;
  box-shadow: 0 -4px 16px rgba(76, 175, 80, 0.15);
}

.footer-container {
  max-width: 480px;
  margin: 0 auto;
}

.footer-brand {
  text-align: center;
  margin-bottom: 24px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-brand p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateY(-1px);
}

.footer-copyright {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
}

@media (max-width: 768px) {
  .home-topbar-layout {
    padding: 10px 14px;
  }

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

  .seen-letter {
    font-size: 1.45rem;
  }

  .menu-toggle {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  #homeView .hero-card {
    padding: 24px 14px;
    border-radius: 18px;
  }

  #homeView .hero-card h1 {
    font-size: 1.7rem;
  }

  #homeView .hero-actions {
    gap: 8px;
  }

  #homeView .hero-actions .golden-btn,
  #homeView .hero-actions .rainbow-btn-inner {
    min-width: 124px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }

  #homeView .benefits-section,
  #homeView .filters-shell,
  .google-search-wrapper,
  #homeView #homeProductsSection {
    margin-left: 12px;
    margin-right: 12px;
  }

  #homeView .hero-benefits-shell {
    flex-direction: row;
    gap: 10px;
  }

  #homeView .hero-benefit-card {
    flex: 1;
    padding: 14px 8px;
  }

  #homeView .hero-benefit-copy h3 {
    font-size: 0.9rem;
  }

  #homeView .filters-bar {
    gap: 10px;
  }
}

@media (max-width: 420px) {
  #homeView .hero-card h1 {
    font-size: 1.52rem;
  }

  #homeView .hero-kicker {
    font-size: 0.64rem;
  }

  #homeView .hero-actions .golden-btn,
  #homeView .hero-actions .rainbow-btn-inner {
    min-width: 114px;
    font-size: 0.76rem;
    padding: 8px 12px;
  }

  #homeView .hero-benefit-copy h3 {
    font-size: 0.82rem;
    white-space: normal;
  }

  .dropdown-menu {
    min-width: 200px;
  }
}

/* ===== User requested alignment pass ===== */
.topbar.site-header {
  margin-bottom: 0 !important;
}

.topbar .topbar-inner {
  align-items: center !important;
}

.brand-copy #siteBrandTagline {
  display: none !important;
}

.brand-mark.topbar-logo-wrap {
  position: relative !important;
  overflow: hidden !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.topbar-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 217, 102, 0.55));
}

#homeView .hero-card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)), url('/assets/site/qatna-hero.png') center/cover no-repeat !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 12px 14px 8px !important;
  min-height: 300px !important;
  display: flex !important;
}

#homeView .hero-kicker,
#homeView #heroDescription {
  display: none !important;
}

#homeView .hero-text {
  text-align: center;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#homeView .hero-text h1 {
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

#homeView .hero-actions {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

#homeView .hero-actions .boxed-btn,
#homeView .hero-actions .bordered-btn {
  height: 42px;
  line-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
}

#homeView .hero-actions .boxed-btn {
  background: linear-gradient(135deg, #FFD966, #FFB347) !important;
  color: #5a3e0b !important;
  border: none !important;
}

#homeView .hero-benefit-copy p,
#homeView .hero-benefit-icon {
  display: none !important;
}

#homeView .hero-benefit-copy h3 {
  margin: 0;
}

.google-search-wrapper .search-box,
.google-search-wrapper .search-box:hover,
.google-search-wrapper .search-box:focus-within {
  transform: none !important;
  box-shadow: none !important;
}

.google-search-wrapper .search-box {
  padding-top: 4px;
  padding-bottom: 4px;
}

.google-search-wrapper .search-input {
  padding-top: 8px;
  padding-bottom: 8px;
}

#filtersSection .filters-bar .field,
#filtersSection .filters-bar #applyFiltersBtn {
  min-height: 46px;
}

#filtersSection .filters-bar #applyFiltersBtn {
  border-radius: 12px !important;
  padding: 0 16px !important;
}

.mobile-header-menu {
  margin-inline-start: auto !important;
}

.mobile-header-dropdown {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: min(320px, 84vw) !important;
  max-width: 84vw !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  border-left: 1px solid #eef2f6 !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  overflow-y: auto !important;
  z-index: 1300 !important;
}

.site-footer {
  margin-top: 0 !important;
  padding-top: 24px;
}

.home-products-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.main-space {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#homeCategorySections .category-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

#homeCategorySections .category-block {
  margin-bottom: 20px !important;
}

.product-card-refined .product-title,
.product-card-refined .product-price,
.product-card-refined .product-price-inline,
.product-card-refined .product-price-hero {
  text-align: center !important;
}

.product-card-refined .product-price-row {
  justify-content: center !important;
}

@media (max-width: 900px) {
  #homeView .hero-benefits-shell {
    flex-direction: column !important;
    gap: 10px;
  }

  #homeView .hero-actions {
    gap: 8px;
  }

  #homeView .hero-card {
    min-height: 260px !important;
  }
}

/* ===== Final lock for requested home look ===== */
.topbar.site-header {
  margin-bottom: 0 !important;
}

#homeView .hero.hero-fruitkha.hero-bleed {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.main-space {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.brand-copy #siteBrandTagline {
  display: none !important;
}

.brand-mark.topbar-logo-wrap {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
}

.topbar-logo-img {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 0 8px rgba(255, 217, 102, 0.55)) !important;
}

.brand-mark.topbar-logo-wrap .shimmer-effect {
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 58% !important;
  height: 100% !important;
  pointer-events: none !important;
}

.topbar .brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.topbar .brand-title {
  color: #1f2937 !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.header-nav-links {
  display: none !important;
}

.header-nav-row {
  margin-inline-start: auto !important;
}

.mobile-header-menu {
  display: flex !important;
  margin-inline-start: auto !important;
}

.mobile-header-dropdown {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: auto !important;
  bottom: 0 !important;
  width: min(320px, 84vw) !important;
  max-width: 84vw !important;
  height: 100dvh !important;
  border-radius: 0 !important;
  border-left: 1px solid #eef2f6 !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  overflow-y: auto !important;
  z-index: 1300 !important;
}

#homeView .hero-card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)), url('/assets/site/qatna-hero.png') center/cover no-repeat !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 12px 14px 8px !important;
  min-height: 300px !important;
  display: flex !important;
}

#homeView #heroTitle {
  color: #fff !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

#homeView .hero-text {
  width: 100% !important;
  min-height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
}

#homeView .hero-actions {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

#homeView .hero-actions .golden-btn,
#homeView .hero-actions .rainbow-btn-inner {
  height: 42px !important;
  min-height: 42px !important;
  line-height: 42px !important;
  padding: 0 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

#homeView .hero-actions .golden-btn {
  background: linear-gradient(135deg, #FFD966, #FFB347) !important;
  color: #5a3e0b !important;
  border: none !important;
}

#homeView .hero-actions .rainbow-btn-outer {
  display: inline-block !important;
  padding: 2px !important;
  border-radius: 999px !important;
  background: conic-gradient(from var(--angle), #ff4545, #ffa500, #ffff00, #00ff99, #006aff, #ff0095, #ff4545) !important;
  animation: rotate-rainbow 4s linear infinite !important;
}

#homeView .hero-actions .rainbow-btn-inner {
  background: var(--home-primary, #2b5e3b) !important;
  color: #fff !important;
  border: none !important;
}

#homeView .hero-benefit-copy p,
#homeView .hero-benefit-icon {
  display: none !important;
}

#homeView .hero-benefit-copy h3 {
  margin: 0 !important;
}

.google-search-wrapper .search-box,
.google-search-wrapper .search-box:hover,
.google-search-wrapper .search-box:focus-within {
  transform: none !important;
  box-shadow: none !important;
}

.google-search-wrapper .search-box {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.google-search-wrapper .search-input {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#filtersSection .filters-bar .field,
#filtersSection .filters-bar #applyFiltersBtn {
  min-height: 46px !important;
  height: 46px !important;
}

#filtersSection .filters-bar #applyFiltersBtn {
  border-radius: 12px !important;
  padding: 0 16px !important;
}

#homeCategorySections .category-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

#homeCategorySections .category-block {
  margin-bottom: 20px !important;
}

.product-card-refined .product-title,
.product-card-refined .product-price,
.product-card-refined .product-price-inline,
.product-card-refined .product-price-hero {
  text-align: center !important;
}

.product-card-refined .product-price-row {
  justify-content: center !important;
}

.site-footer {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

.site-footer.footer {
  background: #fff !important;
  border-top: 1px solid #eef2f6 !important;
  padding: 32px 20px 24px !important;
  margin-top: 0 !important;
}

.site-footer.footer .footer-container {
  max-width: 480px !important;
  margin: 0 auto !important;
}

.site-footer.footer .footer-brand {
  text-align: center !important;
  margin-bottom: 24px !important;
}

.site-footer.footer .footer-brand h3 {
  font-size: 1.3rem !important;
  font-weight: 800 !important;
}

.site-footer.footer .footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px 24px !important;
  margin-bottom: 24px !important;
}

.site-footer.footer .footer-links a {
  color: var(--home-gray-600, #6b7280) !important;
  text-decoration: none !important;
  font-size: 0.75rem !important;
}

.site-footer.footer .footer-copyright {
  text-align: center !important;
  font-size: 0.7rem !important;
  color: #8c9ab0 !important;
  border-top: 1px solid #eef2f6 !important;
  padding-top: 20px !important;
}

@media (max-width: 900px) {
  .topbar .topbar-inner.home-topbar-layout {
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  .header-nav-row > .btn {
    display: none !important;
  }

  .mobile-header-menu {
    display: flex !important;
    margin-inline-start: auto !important;
  }

  .mobile-header-menu-toggle {
    min-height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    gap: 6px !important;
  }

  .mobile-header-menu-toggle span[aria-hidden="true"] {
    font-size: 1.05rem !important;
  }

  .topbar .brand-mark.topbar-logo-wrap {
    width: 40px !important;
    height: 40px !important;
  }

  .topbar .topbar-logo-img {
    width: 32px !important;
    height: 32px !important;
  }

  .topbar .brand-title {
    font-size: 0.98rem !important;
  }

  #homeView .hero-benefits-shell {
    flex-direction: column !important;
    gap: 10px !important;
  }

  #homeView .hero-card {
    min-height: 260px !important;
  }
}

/* ===== Final polish: mobile filters + topbar clarity ===== */
.topbar.site-header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(7px) saturate(1.03) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05) !important;
}

.topbar.site-header .topbar-inner {
  min-height: 68px !important;
}

@media (max-width: 900px) {
  .topbar.site-header {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  }

  .topbar.site-header .topbar-inner.home-topbar-layout {
    min-height: 62px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
  }

  #homeView #filtersSection .filters-shell {
    border-radius: 18px !important;
    padding: 12px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.96)) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05) !important;
  }

  #homeView .mobile-filters-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(241,245,249,0.92)) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
  }

  #homeView .mobile-filters-summary {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  #homeView .mobile-filters-summary-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #64748b !important;
  }

  #homeView .mobile-filters-summary strong {
    font-size: 14px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
  }

  #homeView .mobile-filters-toolbar-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #homeView .mobile-sort-field {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #homeView .mobile-sort-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    padding-inline: 2px !important;
  }

  #homeView .mobile-sort-field .field {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(203, 213, 225, 0.95) !important;
    background: #fff !important;
    box-shadow: none !important;
    padding-inline: 12px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
  }

  #homeView .mobile-filters-sheet-toggle {
    min-height: 44px !important;
    height: 44px !important;
    padding-inline: 14px !important;
    border-radius: 12px !important;
    border: none !important;
    background: linear-gradient(145deg, #2b5e3b, #1f452c) !important;
    color: #fff !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 20px rgba(43, 94, 59, 0.2) !important;
    white-space: nowrap !important;
  }

  #homeView .mobile-filters-sheet-toggle:hover,
  #homeView .mobile-filters-sheet-toggle:focus-visible {
    transform: translateY(-1px) !important;
    filter: brightness(1.03) !important;
  }
}

/* ===== Hard reset: remove layered blur on topbar ===== */
.topbar.site-header,
.site-header.topbar,
header.topbar.site-header {
  position: sticky !important;
  top: 0 !important;
  inset: auto !important;
  z-index: 180 !important;
  background: #ffffff !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid #e6ebf2 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  opacity: 1 !important;
}

.topbar.site-header::before,
.topbar.site-header::after,
.site-header.topbar::before,
.site-header.topbar::after {
  content: none !important;
  display: none !important;
  background: none !important;
  backdrop-filter: none !important;
}

.topbar.site-header .topbar-inner,
.site-header.topbar .topbar-inner {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar.site-header * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (max-width: 900px) {
  .topbar.site-header,
  .site-header.topbar,
  header.topbar.site-header {
    background: #ffffff !important;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.035) !important;
    border-bottom: 1px solid #e9edf3 !important;
  }
}

/* ===== Brand visibility fix (larger logo + clear platform name) ===== */
.topbar .brand {
  min-width: 0 !important;
}

.topbar .brand-copy {
  min-width: 0 !important;
}

@media (max-width: 900px) {
  .topbar.site-header .topbar-inner.home-topbar-layout {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    padding-inline: 10px !important;
  }

  .topbar .brand {
    grid-column: 1 !important;
    justify-self: start !important;
    max-width: 100% !important;
    gap: 6px !important;
  }

  .topbar .brand-mark.topbar-logo-wrap {
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
    flex: 0 0 46px !important;
    overflow: hidden !important;
  }

  .topbar .topbar-logo-img {
    width: 58px !important;
    height: 58px !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: scale(1.06) !important;
  }

  .topbar .brand-copy {
    min-width: 0 !important;
    max-width: clamp(150px, 50vw, 250px) !important;
  }

  .topbar .brand-title,
  .topbar .brand-title.brand-text {
    font-size: 1.12rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .header-nav-row {
    grid-column: 3 !important;
    justify-self: end !important;
    margin-inline-end: 4px !important;
  }

  .mobile-header-menu {
    flex: 0 0 auto !important;
  }

  .mobile-header-menu-toggle {
    width: auto !important;
    min-width: 92px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 12px !important;
    justify-content: center !important;
    gap: 6px !important;
    border-radius: 999px !important;
  }

  .mobile-header-menu-toggle span:last-child {
    display: inline !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
  }
}

@media (max-width: 900px) {
  #homeView #filtersSection,
  #homeView #filtersSection .filters-shell,
  #homeView .mobile-filters-toolbar,
  #homeView .mobile-filters-toolbar-actions {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
  }

  #homeView .mobile-filters-toolbar {
    padding: 8px !important;
  }

  #homeView .mobile-filters-toolbar-actions {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
  }

  #homeView .mobile-sort-field .field {
    min-width: 0 !important;
    width: 100% !important;
    padding-inline: 10px !important;
  }

  #homeView .mobile-filters-sheet-toggle {
    min-width: 0 !important;
    max-width: 122px !important;
    width: auto !important;
    padding-inline: 10px !important;
    font-size: 0.8rem !important;
  }
}

/* ===== Global mobile topbar overflow fix ===== */
@media (max-width: 900px) {
  .topbar.site-header {
    overflow: hidden !important;
  }

  .topbar.site-header .topbar-inner,
  .topbar.site-header .topbar-inner.home-topbar-layout {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    min-height: 60px !important;
    padding: 8px 8px !important;
    overflow: hidden !important;
  }

  .topbar .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 72px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .topbar .brand-copy {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .topbar .brand-title,
  .topbar .brand-title.brand-text {
    font-size: 0.98rem !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

.topbar .brand-mark.topbar-logo-wrap {
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
}

.topbar .topbar-logo-img {
  width: 54px !important;
  height: 54px !important;
  transform: scale(1.03) !important;
}

  .header-nav-links,
  .header-search-trigger {
    display: none !important;
  }

  .header-nav-row {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .mobile-header-menu {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }

  .mobile-header-menu-toggle {
    width: auto !important;
    min-width: 64px !important;
    max-width: 92px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    gap: 5px !important;
    font-size: 0.76rem !important;
    border-radius: 999px !important;
  }
}

@media (max-width: 420px) {
  .mobile-header-menu-toggle {
    min-width: 40px !important;
    width: 40px !important;
    max-width: 40px !important;
    padding: 0 !important;
    justify-content: center !important;
  }

  .mobile-header-menu-toggle span:last-child {
    display: none !important;
  }
}

/* ===== Mobile filters visual centering tweak ===== */
@media (max-width: 900px) {
  #homeView #filtersSection .filters-shell {
    width: calc(100% - 6px) !important;
    margin-inline: auto !important;
    transform: translateX(-8px) !important;
  }

  #homeView .mobile-filters-toolbar {
    width: 100% !important;
    margin-inline: auto !important;
  }
}

/* ===== Platform name: simple text style (no wave/effects) ===== */
.topbar .brand-title,
.topbar .brand-title.brand-text,
#siteBrandTitle {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #1f452c !important;
  text-shadow: none !important;
  filter: none !important;
  animation: none !important;
  transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 800 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: #1f452c !important;
}

/* ===== Product card behavior: favorite always visible + single-tap open ===== */
.product-card.product-card-refined .product-hover-actions {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 4 !important;
  gap: 0 !important;
}

/* ===== Mobile topbar strict alignment override (brand + menu) ===== */
@media (max-width: 900px) {
  .topbar.site-header,
  .site-header.topbar {
    min-height: 68px !important;
  }

  .topbar.site-header .topbar-inner,
  .topbar.site-header .topbar-inner.home-topbar-layout {
    min-height: 68px !important;
    height: 68px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .topbar .brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 58px) !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .topbar .brand-mark.topbar-logo-wrap {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 10px !important;
  }

  .topbar .topbar-logo-img {
    width: 50px !important;
    height: 50px !important;
    transform: scale(1.02) !important;
  }

  .topbar .brand-copy {
    min-width: 0 !important;
    max-width: 100% !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
  }

  .topbar .brand-title,
  .topbar .brand-title.brand-text,
  #siteBrandTitle {
    font-size: 1.02rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .header-nav-row {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .header-nav-row > .btn:not(.mobile-header-menu-toggle):not(.header-search-trigger) {
    display: none !important;
  }

  .mobile-header-menu {
    width: 44px !important;
    min-width: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  .mobile-header-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  .mobile-header-menu-toggle span:last-child {
    display: none !important;
  }

  .mobile-header-menu-toggle span[aria-hidden="true"] {
    font-size: 1.1rem !important;
    line-height: 1 !important;
  }
}

.product-card.product-card-refined .product-hover-action {
  width: 38px !important;
  height: 38px !important;
}

.product-card.product-card-refined .product-hover-action-cart {
  display: none !important;
}

.product-card.product-card-refined .product-image-overlay {
  opacity: 0.14 !important;
}

/* ===== Dashboard managed products: prevent control overlap ===== */
#dashboardView #myProductsGrid.dashboard-managed-grid {
  gap: 10px !important;
}

#dashboardView .managed-product-card-mini {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 14px !important;
  border: 1px solid #e8edf3 !important;
  background: #fff !important;
}

#dashboardView .managed-product-head {
  display: grid !important;
  grid-template-columns: 72px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
}

#dashboardView .managed-product-image {
  width: 72px !important;
  height: 72px !important;
  border-radius: 12px !important;
}

#dashboardView .managed-product-side {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: none !important;
}

#dashboardView .managed-product-actions-mini {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

#dashboardView .managed-product-actions-mini .managed-action-icon {
  width: 100% !important;
  min-height: 36px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

@media (min-width: 900px) {
  #dashboardView .managed-product-head {
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
  }

  #dashboardView .managed-product-side {
    grid-column: auto !important;
    display: grid !important;
    justify-items: end !important;
    align-content: start !important;
  }

  #dashboardView .managed-product-actions-mini {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===== Category header: keep "مشاهدة الكل" inline with title ===== */
#homeCategorySections .category-header {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

#homeCategorySections .category-header .category-title {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

#homeCategorySections .category-header .btn[data-show-category] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: fit-content !important;
  margin: 0 !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  align-self: center !important;
}

@media (max-width: 900px) {
  #homeCategorySections .category-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }
}

/* ===== Dashboard controls visibility restore ===== */
#dashboardView .managed-product-actions-mini {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
  overflow: visible !important;
}

#dashboardView .managed-product-actions-mini .managed-action-icon {
  width: 100% !important;
  min-height: 36px !important;
  height: auto !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  color: #1f2937 !important;
}

#dashboardView .managed-product-actions-mini .managed-action-glyph {
  font-size: 0.95rem !important;
  line-height: 1 !important;
}

#dashboardView .managed-product-actions-mini .managed-action-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

@media (min-width: 821px) {
  #dashboardView .managed-product-actions-mini {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ===== Final override: mobile filters alignment (shift left) ===== */
@media (max-width: 900px) {
  #homeView #filtersSection {
    padding-inline: 0 !important;
  }

  #homeView #filtersSection .filters-shell {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    margin-inline: auto !important;
    transform: none !important;
  }

  #homeView .mobile-filters-toolbar {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: 8px !important;
    box-sizing: border-box !important;
  }

  #homeView .mobile-filters-toolbar-actions {
    justify-content: flex-start !important;
    gap: 8px !important;
  }
}

/* ===== Product card price: light outlined green pill ===== */
.product-card.product-card-refined .product-price-row {
  justify-content: center !important;
}

.product-card.product-card-refined .product-price,
.product-card.product-card-refined .product-price-inline,
.product-card.product-card-refined .product-price-hero {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 12px !important;
  border: 1px solid rgba(43, 94, 59, 0.34) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #2f6f46 !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  box-shadow: 0 1px 5px rgba(43, 94, 59, 0.11) !important;
  transform: translateY(-1px) !important;
  margin-inline: auto !important;
}

/* ===== Product card title: softer weight ===== */
.product-card.product-card-refined .product-title,
.product-card.product-card-refined .product-title-compact {
  font-weight: 600 !important;
}

/* ===== Conversations status colors + web layout stabilization ===== */
#messagesView .conversation-row-status.status-order-awaiting,
#messagesView .conversation-row-status.status-order-cancelled {
  background: rgba(239, 68, 68, 0.14) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

#messagesView .conversation-row-status.status-order-accepted {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #15803d !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
}

#messagesView .conversation-tail-label.status-order-awaiting,
#messagesView .conversation-tail-label.status-order-cancelled {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239, 68, 68, 0.24) !important;
}

#messagesView .conversation-tail-label.status-order-accepted {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #15803d !important;
  border: 1px solid rgba(34, 197, 94, 0.24) !important;
}

@media (min-width: 901px) {
  #messagesView .messages-shell,
  #messagesView .whatsapp-shell {
    display: grid !important;
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 14px !important;
    min-height: calc(100vh - 188px) !important;
    height: calc(100vh - 188px) !important;
  }

  #messagesView .messages-sidebar.conversations-card,
  #messagesView .conversations-card {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #messagesView .messages-main-card,
  #messagesView .whatsapp-main {
    position: relative !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #messagesView #conversationDetails,
  #messagesView .chat-layout,
  #messagesView .whatsapp-chat-layout {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #messagesView .chat-thread,
  #messagesView .whatsapp-thread {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
  }

  #messagesView .chat-composer,
  #messagesView .whatsapp-composer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
    margin-top: auto !important;
    position: relative !important;
    z-index: 3 !important;
  }

  #messagesView .conversations-list {
    display: grid !important;
    align-content: start !important;
    gap: 10px !important;
    padding: 0 !important;
    overflow-y: auto !important;
  }

  #messagesView .conversation-card,
  #messagesView .conversation-entry {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 10px !important;
    row-gap: 6px !important;
    min-height: 104px !important;
    padding: 12px !important;
    border-radius: 14px !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
  }

  #messagesView .conversation-avatar,
  #messagesView .conversation-avatar-pro {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 0.95rem !important;
  }

  #messagesView .conversation-card-body {
    display: grid !important;
    gap: 6px !important;
    min-width: 0 !important;
  }

  #messagesView .conversation-row-top,
  #messagesView .conversation-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  #messagesView .conversation-row-name {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  #messagesView .conversation-row-time,
  #messagesView .conversation-meta-note {
    font-size: 0.7rem !important;
  }

  #messagesView .conversation-row-product strong {
    font-size: 0.8rem !important;
  }

  #messagesView .conversation-row-last {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 28px !important;
  }

  #messagesView .conversation-last-text {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #messagesView .conversation-tail-label {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
  }

  #messagesView .messages-sidebar .conversations-list {
    overflow-x: hidden !important;
  }

  #messagesView .chat-row {
    display: flex !important;
    width: 100% !important;
  }

  #messagesView .chat-row.is-me .chat-bubble {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  #messagesView .chat-row.is-other .chat-bubble {
    margin-right: auto !important;
    margin-left: 0 !important;
  }

}

/* ===== Final chat colors polish (desktop + mobile) ===== */
#messagesView .chat-thread,
#messagesView .whatsapp-thread {
  background:
    radial-gradient(circle at 18% 14%, rgba(43, 94, 59, 0.06), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(15, 118, 110, 0.05), transparent 20%),
    #f6f8fb !important;
}

#messagesView .chat-bubble {
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

#messagesView .chat-row.is-me .chat-bubble,
#messagesView .chat-bubble.is-me {
  background: linear-gradient(180deg, #e9ffdc, #d8fbc8) !important;
  color: #1f2937 !important;
  border-color: rgba(124, 179, 66, 0.45) !important;
}

#messagesView .chat-row.is-other .chat-bubble,
#messagesView .chat-bubble.is-other {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

#messagesView .chat-row.is-me .chat-meta-inline {
  color: #4d7c0f !important;
}

#messagesView .chat-row.is-other .chat-meta-inline {
  color: #64748b !important;
}

#messagesView .chat-send-state {
  font-weight: 700 !important;
}

#messagesView .chat-day-separator span {
  background: rgba(226, 232, 240, 0.92) !important;
  color: #475569 !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
}

/* ===== Mobile chat side alignment hard-fix ===== */
@media (max-width: 900px) {
  #messagesView .chat-row {
    display: flex !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }

  #messagesView .chat-row.is-me {
    justify-content: flex-end !important;
  }

  #messagesView .chat-row.is-other {
    justify-content: flex-start !important;
  }

  #messagesView .chat-row .chat-bubble {
    width: fit-content !important;
    max-width: min(82%, 360px) !important;
    margin: 0 !important;
  }

  #messagesView .chat-row.is-me .chat-bubble {
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  #messagesView .chat-row.is-other .chat-bubble {
    margin-right: auto !important;
    margin-left: 0 !important;
  }
}

/* ===== Home ads slots (top + bottom) ===== */
#homeView .home-ads-section {
  padding-top: 14px;
  padding-bottom: 12px;
}

#homeView .home-ads-grid,
#homeView .home-ads-single {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

#homeView .home-ad-card {
  width: 100%;
  aspect-ratio: 8 / 3;
  min-height: 140px;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: block;
  text-align: right;
  background: linear-gradient(135deg, #f5f5f5, #ffffff);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#homeView .home-ad-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

#homeView .home-ad-card.is-clickable {
  border: 0;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

#homeView .home-ad-media {
  position: absolute;
  inset: 0;
}

#homeView .home-ad-image,
#homeView .home-ad-image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#homeView .home-ad-image-placeholder {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

#homeView .home-ad-card.has-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

#homeView .home-ad-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px 24px;
}

#homeView .home-ad-title {
  margin: 0;
  font-size: clamp(1rem, 2.7vw, 1.35rem);
  line-height: 1.28;
  font-weight: 800;
  color: var(--primary-dark);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#homeView .home-ad-subtitle {
  margin: 0;
  font-size: clamp(0.82rem, 2.2vw, 1rem);
  line-height: 1.5;
  color: var(--text-secondary);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
  #homeView .home-ads-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
  }

  #homeView .home-ads-grid,
  #homeView .home-ads-single {
    max-width: 100%;
  }

  #homeView .home-ad-card {
    aspect-ratio: 16 / 7;
    min-height: 126px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  #homeView .home-ad-body {
    padding: 14px 14px;
    gap: 6px;
  }
}

/* ===== Mobile topbar hard fix ===== */
@media (max-width: 900px) {
  header.topbar.site-header.topbar-layout-lock {
    min-height: 64px !important;
    height: 64px !important;
  }

  header.topbar.site-header.topbar-layout-lock .topbar-inner.home-topbar-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 44px !important;
    align-items: center !important;
    min-height: 64px !important;
    height: 64px !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }

  header.topbar.site-header.topbar-layout-lock .brand {
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  header.topbar.site-header.topbar-layout-lock .topbar-logo-img {
    width: 46px !important;
    height: 46px !important;
  }

  header.topbar.site-header.topbar-layout-lock #siteBrandTitle {
    font-size: 0.98rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  header.topbar.site-header.topbar-layout-lock .header-nav-row {
    width: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
    justify-content: center !important;
    transform: translate(36px, -14px) !important;
  }

  header.topbar.site-header.topbar-layout-lock .header-nav-row > .btn:not(.mobile-header-menu-toggle):not(.header-search-trigger) {
    display: none !important;
  }

  header.topbar.site-header.topbar-layout-lock .mobile-header-menu {
    width: 44px !important;
    min-width: 44px !important;
    margin: 0 !important;
  }

  header.topbar.site-header.topbar-layout-lock .mobile-header-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}


/* ─────────────────────────────────────────────────────────────────
   شريط دوائر المتاجر (Sellers Strip)
   منقول من marketplace-v2 (مرجع بصري) commit c422592/3da1fa6
   استبدلت Font Awesome icon بـ emoji للحفاظ على عدم تحميل CSS خارجي.
   ───────────────────────────────────────────────────────────────── */
.home-sellers-strip {
  background: transparent !important;
  padding: 4px 0 0 !important;
  margin: 6px 0 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
.sellers-strip-head {
  display: flex;
  align-items: center;
  padding: 0 16px;
  margin-bottom: 10px;
}
.sellers-strip-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sellers-strip-title i,
.sellers-strip-title span[aria-hidden="true"] { color: #2b5e3b; font-size: 14px; }
.sellers-strip-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 14px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sellers-strip-scroll::-webkit-scrollbar { display: none; }

.seller-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 74px;
  max-width: 74px;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px 4px 8px;
  border-radius: 18px;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.seller-circle-item:hover,
.seller-circle-item:active {
  background: rgba(43,94,59,0.06);
  transform: translateY(-1px);
}

.seller-circle-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(15,23,42,0.14);
  overflow: hidden;
  flex-shrink: 0;
  font-family: inherit;
  line-height: 1;
}
.seller-circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.seller-circle-name {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  font-family: inherit;
}

/* Loading skeleton */
.seller-circle-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 74px;
  padding: 6px 4px 8px;
  flex-shrink: 0;
}
.seller-circle-skeleton .skeleton-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(90deg, #e5e9ef 25%, #f4f6f8 50%, #e5e9ef 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s infinite;
}
.seller-circle-skeleton .skeleton-name {
  width: 44px;
  height: 9px;
  background: #e5e9ef;
  border-radius: 5px;
  animation: sk-shimmer 1.4s infinite;
}
@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hide sellers strip on chat full-screen mode (consistent with existing safe-zone rules) */
body.chat-screen-active .home-sellers-strip {
  display: none !important;
}
