:root {
  --bg: #f5f6fa;
  --bg-soft: #fff9ef;
  --card: #ffffff;
  --text: #182230;
  --muted: #667085;
  --line: #eadfcb;
  --line-soft: rgba(234, 223, 203, 0.5);
  --brand: #ef4a23;
  --brand-dark: #c93414;
  --brand-yellow: #ffc928;
  --brand-yellow-soft: #fff1b8;
  --accent: #1f4fd6;
  --success: #027a48;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 8px 22px rgba(16, 24, 40, 0.06);
  --shadow: 0 16px 38px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, "Noto Sans Bengali", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(255, 201, 40, 0.12), transparent 24%),
    linear-gradient(180deg, #fffdf9 0%, #f5f6fa 14%, #f6f7fb 100%);
  color: var(--text);
}

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

.container { width: min(1220px, calc(100% - 40px)); max-width: 1220px; margin-inline: auto; }
.narrow { width: min(940px, calc(100% - 32px)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(239, 74, 35, 0.08);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(239, 74, 35, 0.14));
}

.brand strong {
  display: block;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #161b26;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.92rem;
}

.search-box {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(239, 74, 35, 0.12);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}

.search-box:focus-within {
  border-color: rgba(239, 74, 35, 0.34);
  box-shadow: 0 10px 28px rgba(239, 74, 35, 0.14);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--text);
}

.search-box input::placeholder { color: #98a2b3; }

.search-box button {
  border: 0;
  width: 60px;
  height: 56px;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #ff7b2c 0%, var(--brand) 100%);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  transition: transform .2s ease, filter .2s ease;
}

.search-box button:hover {
  filter: brightness(0.98);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.top-actions > a {
  color: #475467;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.top-actions > a:hover {
  background: rgba(255, 201, 40, 0.18);
  color: #1f2937;
  transform: translateY(-1px);
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(239, 74, 35, 0.12);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff7a2b 0%, var(--brand) 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.lang-switch {
  display: inline-flex;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(239, 74, 35, 0.12);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.05);
}

.lang-switch a {
  padding: 9px 14px;
  font-weight: 800;
  color: #475467;
}

.lang-switch a.active {
  background: linear-gradient(180deg, #ffd761 0%, var(--brand-yellow) 100%);
  color: #5c4100;
}

.hero { padding: 24px 0 14px; }

.hero-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.category-panel,
.panel,
.product-card,
.category-card,
.stat-card,
.option-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(234, 223, 203, 0.7);
  box-shadow: var(--shadow-sm);
}

.category-panel {
  padding: 20px;
  background: linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}

.category-panel h3 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.15;
  color: #1f2937;
  position: relative;
  padding-left: 14px;
}

.category-panel h3::before,
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-yellow) 100%);
}

.category-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.category-panel li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #344054;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background-color .18s ease, transform .18s ease, color .18s ease;
}

.category-panel li:hover {
  background: rgba(255, 201, 40, 0.14);
  color: #1f2937;
  transform: translateX(2px);
}

.hero-slider {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,251,245,1) 100%);
  aspect-ratio: 1200 / 525;
  border: 1px solid rgba(239, 74, 35, 0.08);
  box-shadow: var(--shadow-lg);
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 22px 18px 22px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16,24,40,0.10), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity .45s ease;
}

.slide.active { opacity: 1; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.08);
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(16,24,40,0.18);
}

.slider-dots button.active {
  width: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, #ff8a24 100%);
}

.notice-strip {
  margin-top: 14px;
  background: linear-gradient(90deg, #ef4a23 0%, #ff7b17 52%, #ffb21e 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(239, 74, 35, 0.18);
}

.notice-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 14px 0;
  font-weight: 700;
}

.notice-strip .container span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section { padding: 36px 0; }

.alt-bg {
  background: linear-gradient(180deg, rgba(255, 246, 232, 0.66) 0%, rgba(255, 252, 247, 0.96) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

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

.section-head h2 {
  position: relative;
  margin: 0;
  padding-left: 14px;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #1d2939;
}

.section-head a {
  color: var(--brand);
  font-weight: 800;
  background: rgba(239, 74, 35, 0.08);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color .18s ease, transform .18s ease;
}

.section-head a:hover {
  background: rgba(239, 74, 35, 0.14);
  transform: translateY(-1px);
}

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

.product-card {
  position: relative;
  overflow: hidden;
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, #ff8d23 60%, var(--brand-yellow) 100%);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(16, 24, 40, 0.11);
  border-color: rgba(239, 74, 35, 0.16);
}

.product-visual {
  height: 152px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.56), transparent 28%),
    linear-gradient(135deg, #fff0ce 0%, #ffd56e 100%);
  color: #8b3b06;
  text-align: center;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 201, 40, 0.35);
}

.product-visual.featured {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.5), transparent 28%),
    linear-gradient(135deg, #e9f1ff 0%, #d3e0ff 100%);
  color: #173999;
  border-color: rgba(31, 79, 214, 0.18);
}

.product-card h3 {
  font-size: 1rem;
  line-height: 1.42;
  margin: 0 0 8px;
  min-height: 46px;
  color: #1d2939;
}

.seller {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 12px;
  min-height: 20px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.price-row strong {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 900;
}

.price-row span {
  color: #98a2b3;
  text-decoration: line-through;
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff7b2c 0%, var(--brand) 100%);
  color: #fff;
  font-weight: 800;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(239, 74, 35, 0.22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(239, 74, 35, 0.28);
  filter: brightness(0.98);
}

.btn-wide { width: 100%; }

.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(31, 79, 214, 0.18);
  box-shadow: none;
}

.btn-outline:hover {
  box-shadow: none;
  background: rgba(31, 79, 214, 0.06);
}

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

.promo-grid img {
  width: 100%;
  height: 268px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid rgba(239, 74, 35, 0.08);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.promo-grid img:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(16, 24, 40, 0.12);
}

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

.category-card {
  padding: 20px 16px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(16, 24, 40, 0.1);
  border-color: rgba(239, 74, 35, 0.12);
}

.category-card .emoji {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 1.95rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff2d0 0%, #ffe294 100%);
}

.category-card span {
  display: block;
  color: #1f2937;
  font-weight: 700;
}

.footer {
  margin-top: 42px;
  padding: 44px 0;
  color: #d0d5dd;
  background:
    radial-gradient(circle at top right, rgba(255, 201, 40, 0.12), transparent 20%),
    linear-gradient(180deg, #171f2d 0%, #101828 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-grid > div {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  width: 200px;
  margin-bottom: 14px;
}

.footer h4 {
  color: #fff;
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.footer p,
.footer li,
.footer a {
  color: #d0d5dd;
  line-height: 1.7;
}

.footer ul {
  padding-left: 18px;
  margin: 0;
}

.footer a:hover { color: #fff; }

.auth-card input,
.auth-card textarea,
.panel select,
.panel input,
.panel textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #d8dfec;
  margin: 8px 0 14px;
  background: #fff;
  outline: 0;
}

.auth-card input:focus,
.auth-card textarea:focus,
.panel select:focus,
.panel input:focus,
.panel textarea:focus {
  border-color: rgba(239, 74, 35, 0.34);
  box-shadow: 0 0 0 4px rgba(239, 74, 35, 0.08);
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.order-summary > div {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-total {
  font-size: 1.16rem;
  font-weight: 900;
}

.cart-table,
.mini-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th,
.cart-table td,
.mini-table th,
.mini-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.cart-table th,
.mini-table th {
  color: #344054;
  font-weight: 800;
  background: #fff9ef;
}

.radio-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}

.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.option-card { padding: 18px; }

.success-box {
  background: #ecfdf3;
  color: var(--success);
  border: 1px solid #abefc6;
  padding: 16px;
  border-radius: 16px;
}

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

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

.stat-card { padding: 20px; }

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--brand);
}

.dashboard-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 18px;
}

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

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 999px;
  border: 3px solid #f5f6fa;
}
::-webkit-scrollbar-track { background: #f5f6fa; }

@media (max-width: 1180px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-actions {
    justify-content: flex-start;
  }

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

@media (max-width: 980px) {
  .hero-slider { aspect-ratio: 16 / 9; }

  .product-grid,
  .promo-grid,
  .category-grid,
  .checkout-grid,
  .checkout-options,
  .stats-grid,
  .dashboard-panels,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .notice-strip .container {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 100%); }

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

  .brand img {
    width: 54px;
    height: 54px;
  }

  .brand strong { font-size: 1rem; }
  .brand small { font-size: 0.88rem; }

  .search-box input {
    padding: 14px 14px;
    font-size: 0.96rem;
  }

  .search-box button {
    width: 54px;
    height: 52px;
  }

  .category-panel,
  .product-card,
  .category-card,
  .panel,
  .option-card { border-radius: 18px; }

  .hero-slider {
    border-radius: 22px;
    aspect-ratio: 4 / 3;
  }

  .section {
    padding: 28px 0;
  }

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

  .section-head h2 { font-size: 1.4rem; }

  .product-visual { height: 138px; }

  .promo-grid img { height: auto; }

  .footer {
    margin-top: 28px;
    padding: 32px 0;
  }
}


/* Header overflow fix */
.topbar .container,
.hero .container,
.notice-strip .container {
  overflow: visible;
}

.search-box input {
  min-width: 0;
}

.hero-slider, .promo-grid, .product-grid, .category-grid {
  min-width: 0;
}

@media (max-width: 1280px) {
  .topbar-inner {
    grid-template-columns: minmax(210px, 250px) minmax(220px, 1fr) auto;
    gap: 14px;
  }

  .top-actions > a {
    padding: 8px 8px;
    font-size: 0.92rem;
  }
}

@media (max-width: 1100px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}


/* Hero alignment + slimmer category panel fix (2026-04-25) */
.hero .container {
  overflow: visible;
}

.hero-grid {
  grid-template-columns: minmax(235px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.hero-grid > * {
  min-width: 0;
}

.category-panel {
  width: 100%;
  max-width: 260px;
  justify-self: start;
  padding: 18px 16px;
}

.category-panel h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.category-panel ul {
  gap: 4px;
}

.category-panel li {
  padding: 9px 10px;
}

.hero-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: start;
  aspect-ratio: 16 / 7;
}

.slide {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .category-panel {
    max-width: 100%;
  }

  .hero-slider {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 720px) {
  .category-panel {
    padding: 16px 14px;
  }

  .category-panel h3 {
    font-size: 1.25rem;
  }
}

.flash-banner {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(239,74,35,.16);
  background: #fff7ed;
  color: #9a3412;
  box-shadow: var(--shadow-sm);
}
.flash-banner.success { background: #ecfdf3; color: #027a48; border-color: rgba(2,122,72,.16); }
.flash-banner.error { background: #fef3f2; color: #b42318; border-color: rgba(180,35,24,.16); }
.flash-banner.warning { background: #fff7e6; color: #8a5a00; border-color: rgba(255,201,40,.45); }

.slim-panel { padding-right: 14px; }
.slim-panel ul { gap: 4px; }
.slim-panel li { padding: 7px 8px; }

.product-thumb {
  background: linear-gradient(180deg, #fff 0%, #fff7e8 100%);
  border-radius: 18px;
  height: 160px;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 14px;
}
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

.stack-form { display: grid; gap: 10px; }
.form-grid { display: grid; gap: 14px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.wide-card { max-width: 760px; margin-inline: auto; }
.small-box { margin-top: 14px; }
.inline-form { display: flex; align-items: center; gap: 8px; }
.inline-form input { min-width: 120px; }
.mini-review-form textarea, .mini-review-form input[type="text"] { width: 100%; }
.btn-sm { padding: 10px 12px; font-size: .9rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  text-transform: capitalize;
  background: #f2f4f7;
  color: #344054;
}
.status-pill.approved, .status-pill.paid, .status-pill.delivered { background: #ecfdf3; color: #027a48; }
.status-pill.pending, .status-pill.processing, .status-pill.confirmed { background: #fff7e6; color: #8a5a00; }
.status-pill.rejected, .status-pill.cancelled { background: #fef3f2; color: #b42318; }
.status-pill.draft { background: #f2f4f7; color: #475467; }

.admin-table td, .admin-table th { vertical-align: top; }

.success-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8e1 0%, #fff4cb 100%);
  border: 1px solid rgba(255, 201, 40, 0.45);
  color: #8a5a00;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .inline-form { display: grid; }
}

/* Revised phase-2 seller store styles */
.card-actions-inline { display:flex; gap:10px; flex-wrap:wrap; }
.plain-list { margin:0; padding-left:18px; }
.plain-list li { margin:8px 0; color: var(--text); }
.four-up { grid-template-columns: repeat(4, minmax(0,1fr)); }
.product-link { color: inherit; display:block; }
.tab-links { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.tab-links a { padding:10px 14px; border-radius:999px; background:#fff; border:1px solid var(--line); font-weight:700; color:var(--muted); }
.tab-links a.active { background: linear-gradient(180deg, #ffefe2 0%, #fff7ed 100%); color: var(--brand-dark); border-color: rgba(239,74,35,.25); }
.seller-layout { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:22px; align-items:start; }
.seller-sidebar { background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow: var(--shadow-sm); overflow:hidden; position:sticky; top:92px; }
.seller-brand { display:flex; align-items:center; gap:12px; padding:20px; background:linear-gradient(180deg, #fff7ee 0%, #fff 100%); border-bottom:1px solid var(--line-soft); }
.seller-brand-logo { width:54px; height:54px; border-radius:18px; display:grid; place-items:center; background:linear-gradient(180deg, #ff7b2c 0%, var(--brand) 100%); color:#fff; font-weight:900; font-size:1.15rem; }
.seller-brand strong { display:block; }
.seller-brand small { color:var(--muted); }
.seller-nav { display:grid; padding:10px; gap:6px; }
.seller-nav a { padding:12px 14px; border-radius:14px; color:#475467; font-weight:700; }
.seller-nav a.active, .seller-nav a:hover { background:#fff1e9; color:var(--brand-dark); }
.seller-content { min-width:0; }
.seller-product-layout { display:grid; grid-template-columns: minmax(0,1fr) 280px; gap:20px; align-items:start; }
.product-form-main { padding:20px; }
.product-form-side { display:grid; gap:18px; }
.form-section { padding:18px 0; border-bottom:1px solid var(--line-soft); }
.form-section:last-child { border-bottom:0; }
.form-section h3 { margin:0 0 12px; font-size:1.5rem; }
.sticky-submit { justify-content:flex-end; position:sticky; bottom:0; background:#fff; padding-top:16px; }
.review-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:18px; }
.review-card { padding:18px; }
.rating-stars { color:#f59e0b; letter-spacing:2px; margin:8px 0; }
.product-page { display:grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1.1fr) 320px; gap:20px; align-items:start; }
.product-gallery, .product-summary, .seller-card { padding:20px; }
.main-image { background:linear-gradient(180deg, #fff 0%, #fff9ef 100%); border:1px solid var(--line-soft); border-radius:20px; display:grid; place-items:center; min-height:420px; overflow:hidden; }
.main-image img { width:100%; height:100%; object-fit:contain; }
.thumb-row { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.thumb-row img { width:80px; height:80px; object-fit:cover; border-radius:12px; border:1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size:.95rem; margin:0 0 10px; }
.price-stack { display:grid; gap:4px; margin:16px 0; }
.price-stack strong { font-size:2rem; color:var(--brand-dark); }
.price-stack span { color:var(--muted); }
.variant-box { margin:14px 0; }
.variant-chip { display:inline-flex; padding:10px 14px; border-radius:12px; border:1px solid var(--line); background:#fff7ef; font-weight:700; }
.spec-table { display:grid; gap:8px; margin:18px 0; }
.spec-table div { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:12px; background:#faf7f1; }
.desc-block { margin-top:20px; }
.product-side { display:grid; gap:18px; }
.seller-mini { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.seller-mini img { width:64px; height:64px; border-radius:16px; object-fit:cover; border:1px solid var(--line); }
.store-hero { position:relative; background:linear-gradient(180deg, #f4f6fb 0%, #fff 100%); }
.store-hero > img { width:100%; max-height:260px; object-fit:cover; }
.store-hero-card { margin-top:-70px; position:relative; z-index:1; }
.store-id { display:flex; align-items:center; gap:18px; background:rgba(255,255,255,.94); backdrop-filter: blur(10px); border:1px solid rgba(255,255,255,.6); box-shadow: var(--shadow); border-radius:24px; padding:20px; }
.store-id img { width:96px; height:96px; border-radius:22px; object-fit:cover; border:1px solid var(--line); }
.store-toolbar { padding:14px 18px; display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:18px; }
.inline-search { max-width:360px; margin-left:auto; }
.store-grid { display:grid; grid-template-columns: 260px minmax(0,1fr); gap:20px; align-items:start; }
.store-sidebar { padding:18px; position:sticky; top:92px; }
.store-main { min-width:0; }
.store-banner-card { padding:18px; margin-bottom:18px; }
.seller-dash-panels { grid-template-columns: repeat(2, minmax(0,1fr)); }
.mini-review-form textarea { width:100%; }
@media (max-width: 1100px) {
  .seller-layout, .store-grid, .seller-product-layout, .product-page { grid-template-columns: 1fr; }
  .seller-sidebar, .store-sidebar { position:static; }
  .four-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review-grid, .seller-dash-panels { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .four-up { grid-template-columns: 1fr; }
  .store-id { align-items:flex-start; flex-direction:column; }
}


.flash-banner.info { background:#eff8ff; color:#175cd3; border-color: rgba(23,92,211,.16); }
.auth-links { margin-top:12px; display:grid; gap:10px; }
.seller-nav-group + .seller-nav-group { margin-top:12px; padding-top:12px; border-top:1px solid var(--line-soft); }
.seller-nav-title { padding:6px 10px 4px; font-size:.76rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:800; }

/* --- Phase 2 v2 fixes --- */
.topbar-inner {
  grid-template-columns: minmax(190px, 250px) minmax(220px, 1fr) minmax(360px, auto);
}

.top-actions {
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.top-actions > a.active,
.cart-link.active {
  background: rgba(255, 201, 40, 0.2);
  color: #1f2937;
}

.top-actions.seller-nav > a,
.top-actions.admin-nav > a {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(239,74,35,0.08);
}

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

.seller-content,
.store-main,
.product-summary,
.product-side { min-width: 0; }

.seller-sidebar {
  position: sticky;
  top: 94px;
  background: linear-gradient(180deg, #fff 0%, #fffaf2 100%);
  border: 1px solid rgba(234,223,203,.7);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.seller-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(234,223,203,.7);
}

.seller-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(180deg, #ff7b2c 0%, var(--brand) 100%);
}

.seller-nav { padding: 10px 14px 16px; }
.seller-nav-group + .seller-nav-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(234,223,203,.55); }
.seller-nav-title { font-size: .82rem; font-weight: 800; letter-spacing: .08em; color: #667085; text-transform: uppercase; margin-bottom: 8px; }
.seller-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: #344054;
}
.seller-nav a:hover, .seller-nav a.active {
  background: rgba(255, 201, 40, 0.18);
  color: #1f2937;
}

.seller-dashboard-head,
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

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

.admin-quick-grid { margin-top: 18px; }

.option-card {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
  border: 1px solid rgba(234,223,203,.8);
  box-shadow: var(--shadow-sm);
}

.option-card strong { display: block; margin-bottom: 6px; }
.option-card span { color: var(--muted); font-size: .94rem; }

.mini-review-form textarea { width: 100%; min-height: 72px; }
.admin-action-stack { display: grid; gap: 8px; }
.btn-danger { background: linear-gradient(180deg, #dc3545 0%, #b42318 100%); color: #fff; border: none; }
.inline-form { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.admin-two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }

.store-hero { position: relative; overflow: hidden; }
.store-hero > img { width: 100%; height: 240px; object-fit: cover; }
.store-hero-card { margin-top: -58px; position: relative; z-index: 2; }
.store-id {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(234,223,203,.8);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  border-radius: 22px;
}
.store-id img { width: 68px; height: 68px; object-fit: contain; border-radius: 16px; background: #fff7e8; }
.store-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 20px; align-items: start; }
.store-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.inline-search { max-width: 360px; }
.store-sidebar { padding: 18px; position: sticky; top: 94px; }
.store-banner-card { margin-bottom: 18px; }

.auth-card h2, .section-head h2, .dashboard-head h2 { margin-top: 0; }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: .82rem; }
.status-pill.pending { background: #fff3cd; color: #8a6100; }
.status-pill.approved, .status-pill.active, .status-pill.delivered, .status-pill.paid { background: #d1fadf; color: #027a48; }
.status-pill.rejected, .status-pill.suspended, .status-pill.cancelled { background: #fee4e2; color: #b42318; }
.status-pill.draft { background: #eaecf0; color: #475467; }

@media (max-width: 1180px) {
  .topbar-inner { grid-template-columns: minmax(170px, 230px) minmax(180px, 1fr); }
  .top-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 980px) {
  .hero-grid, .seller-layout, .store-grid, .admin-two-col, .quick-grid {
    grid-template-columns: 1fr;
  }
  .store-hero-card { margin-top: 16px; }
  .store-sidebar, .seller-sidebar { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(1220px, calc(100% - 24px)); }
  .topbar-inner { grid-template-columns: 1fr; }
  .search-box button { width: 54px; }
  .store-toolbar, .dashboard-head, .seller-dashboard-head { flex-direction: column; }
}

/* Phase 2 v3 patch */
.top-actions > a.active,
.cart-link.active {
  background: linear-gradient(180deg, #fff4d3 0%, #ffe6b7 100%);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(239,74,35,.18);
}

.topbar.context-public .top-actions.public-header-links {
  gap: 10px;
}

.topbar.context-seller,
.topbar.context-admin {
  background: rgba(255, 249, 236, 0.97);
}

.topbar.context-seller .topbar-inner,
.topbar.context-admin .topbar-inner {
  grid-template-columns: minmax(220px, 280px) minmax(260px, 420px) minmax(300px, 1fr);
  align-items: center;
  gap: 16px;
}

.topbar.context-seller .brand img,
.topbar.context-admin .brand img {
  width: 54px;
  height: 54px;
}

.topbar.context-seller .brand strong,
.topbar.context-admin .brand strong {
  font-size: 1rem;
}

.topbar.context-seller .brand small,
.topbar.context-admin .brand small {
  font-size: .82rem;
}

.topbar.context-seller .search-box,
.topbar.context-admin .search-box {
  max-width: 420px;
}

.topbar.context-seller .top-actions,
.topbar.context-admin .top-actions {
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  align-content: center;
}

.topbar.context-seller .top-actions > a,
.topbar.context-admin .top-actions > a {
  font-size: .84rem;
  padding: 7px 10px;
}

.topbar.context-seller .lang-switch,
.topbar.context-admin .lang-switch {
  margin-left: 6px;
}

.seller-entry-card { text-align: left; }
.two-up { grid-template-columns: repeat(2, minmax(0,1fr)); }

.admin-table .inline-form select,
.admin-table .inline-form input[type="text"] {
  min-width: 112px;
}

.category-edit-grid {
  display: grid;
  gap: 12px;
}
.category-edit-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(234,223,203,.8);
  background: linear-gradient(180deg, #fff 0%, #fffaf3 100%);
}
.category-edit-card .row-inline {
  display: grid;
  grid-template-columns: 110px 1.2fr 1.2fr 1fr 92px 110px 110px;
  gap: 8px;
  align-items: center;
}
.category-edit-card .mini-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.category-edit-card label { font-size: .84rem; color: var(--muted); }
.category-edit-card input, .category-edit-card select { width: 100%; }
.small-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; color: var(--muted); }

@media (max-width: 1180px) {
  .topbar.context-seller .topbar-inner,
  .topbar.context-admin .topbar-inner {
    grid-template-columns: minmax(180px, 240px) minmax(160px, 1fr);
  }
  .topbar.context-seller .top-actions,
  .topbar.context-admin .top-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .two-up,
  .category-edit-card .row-inline {
    grid-template-columns: 1fr;
  }
}


/* Phase 2 v4 patch */
.topbar.context-seller .top-actions.seller-header-links,
.topbar.context-admin .top-actions.admin-header-links {
  display:flex;
  flex-wrap:nowrap;
  justify-content:flex-end;
  align-items:center;
  gap:6px;
}
.topbar.context-seller .top-actions.seller-header-links > a,
.topbar.context-admin .top-actions.admin-header-links > a {
  white-space:nowrap;
}
.rating-row { display:flex; align-items:center; gap:6px; margin:8px 0 10px; }
.rating-row .stars { color:#f4b400; letter-spacing:1px; font-size:.95rem; }
.rating-row .rating-meta { color:#667085; font-weight:700; font-size:.92rem; }
.seller-popup-modal { position:fixed; inset:0; display:none; z-index:1200; }
.seller-popup-modal.is-open { display:block; }
.seller-popup-backdrop { position:absolute; inset:0; background:rgba(15,23,42,.46); }
.seller-popup-card { position:relative; z-index:1; width:min(860px, calc(100% - 28px)); margin:5vh auto 0; background:#fff; border-radius:24px; padding:20px; box-shadow:0 32px 80px rgba(15,23,42,.28); }
.seller-popup-card h3 { margin:0 0 14px; font-size:1.5rem; }
.seller-popup-card img { width:100%; max-height:70vh; object-fit:contain; border-radius:16px; background:#fff8ef; }
.seller-popup-close { position:absolute; top:10px; right:12px; width:42px; height:42px; border:0; border-radius:999px; background:#fff1e9; color:#c93414; font-size:1.6rem; font-weight:700; }
.popup-note { color:#667085; font-size:.92rem; margin-top:12px; }
.option-card .small-action { display:block; margin-top:8px; color:#ef4a23; font-weight:700; }
@media (max-width: 1180px) {
  .topbar.context-seller .top-actions.seller-header-links,
  .topbar.context-admin .top-actions.admin-header-links { grid-column:1 / -1; justify-content:flex-start; flex-wrap:wrap; }
}

/* Phase 3 starter patch */
.hp-field { position:absolute !important; left:-9999px !important; width:1px; height:1px; opacity:0; }
.signup-form-grid { position:relative; }
.top-actions.public-header-links { gap: 10px; }
.product-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  font-size: .98rem;
}
.product-card .seller {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.3em;
  margin-bottom: 8px;
}
.product-card .price-row { margin-bottom: 8px; }
.product-card .card-actions-inline { gap: 8px; }
.product-card .btn,
.product-card .btn-outline { padding: 10px 12px; font-size: .92rem; border-radius: 12px; }
.product-thumb { height: 170px; margin-bottom: 12px; }
.product-thumb img { object-fit: contain; }
.radio-list label {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  line-height:1.3;
}
.radio-list input[type="radio"] { margin:0; flex:0 0 auto; }
.seller-entry-layout { display:grid; grid-template-columns: minmax(0,1.25fr) 360px; gap:22px; }
.seller-entry-hero, .seller-entry-side { padding:28px; }
.seller-entry-hero h1 { margin:0 0 12px; font-size:2.2rem; }
.eyebrow { display:inline-block; font-weight:800; color:var(--brand-dark); background:#fff1e9; padding:8px 12px; border-radius:999px; margin-bottom:12px; }
.seller-entry-cta .option-card { min-height: 120px; }
.seller-entry-promo img { width:100%; border-radius:16px; margin-top:12px; }
.label-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.link-chip { border:0; background:#fff1e9; color:var(--brand-dark); font-weight:700; padding:7px 10px; border-radius:999px; cursor:pointer; }
.hidden { display:none !important; }
.editor-wrap { display:grid; gap:8px; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:8px; }
.editor-toolbar button { border:1px solid var(--line); background:#fff; color:#344054; border-radius:10px; padding:8px 10px; font-weight:700; cursor:pointer; }
.editor-toolbar button:hover { background:#fff7ef; border-color:rgba(239,74,35,.25); }
.editor-surface { min-height:180px; border:1px solid #d0d5dd; border-radius:16px; padding:14px; background:#fff; outline:none; }
.editor-surface:focus { border-color: rgba(239,74,35,.45); box-shadow: 0 0 0 4px rgba(239,74,35,.08); }
.existing-image-grid, .new-image-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.image-chip { border:1px dashed #d0d5dd; background:#fff; border-radius:16px; padding:10px; display:grid; gap:8px; }
.image-chip img { width:100%; aspect-ratio:1 / 1; object-fit:cover; border-radius:12px; background:#faf7f1; }
.image-chip-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.mini-check { display:flex; align-items:center; gap:6px; font-size:.82rem; color:#475467; }
.mini-danger { border:0; background:#fee4e2; color:#b42318; border-radius:999px; width:28px; height:28px; font-size:1rem; cursor:pointer; }
.image-chip input[type="number"] { width:100%; }
.side-score, .side-tips { padding:18px; }
.compact-list li { margin:8px 0; }
.product-page-v2 { display:grid; gap:18px; }
.product-page-top { display:grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) 310px; gap:20px; align-items:start; }
.product-description-wide { padding:22px; }
.desc-columns { display:grid; grid-template-columns: minmax(0,1.4fr) minmax(260px, .8fr); gap:24px; }
.rich-output { color:#1d2939; line-height:1.7; }
.rich-output ul, .rich-output ol { padding-left:20px; margin:10px 0; }
.side-mini-panel h4 { margin:0 0 10px; font-size:1.1rem; }
.seller-metric-grid { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:0; }
.seller-metric-grid > div { padding:10px 8px; border-right:1px solid var(--line-soft); }
.seller-metric-grid > div:last-child { border-right:0; }
.seller-metric-grid small { display:block; color:#667085; min-height:34px; }
.seller-metric-grid strong { display:block; font-size:1.45rem; color:#1d2939; }

@media (max-width: 1100px) {
  .seller-entry-layout,
  .product-page-top,
  .desc-columns { grid-template-columns: 1fr; }
  .existing-image-grid, .new-image-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .existing-image-grid, .new-image-grid { grid-template-columns: 1fr 1fr; }
  .seller-metric-grid { grid-template-columns: 1fr; }
}

/* Phase 3 seller/admin split + product form fix patch */
.topbar.context-seller .topbar-inner,
.topbar.context-admin .topbar-inner {
  grid-template-columns: minmax(220px, 260px) minmax(220px, 1fr) auto;
  row-gap: 8px;
}
.topbar.context-seller .top-actions,
.topbar.context-admin .top-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.topbar.context-seller .top-actions > a,
.topbar.context-admin .top-actions > a {
  font-size: .82rem;
  padding: 7px 11px;
}
.topbar.context-seller .search-box,
.topbar.context-admin .search-box {
  max-width: none;
}
.topbar.context-seller .brand strong,
.topbar.context-admin .brand strong { font-size: .98rem; }
.topbar.context-seller .brand small,
.topbar.context-admin .brand small { font-size: .78rem; }

.text-link {
  color: #2f6fed;
  font-weight: 700;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; color: #1f54c7; }

.stat-link { text-decoration: none; color: inherit; display: block; }
.stat-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(16,24,40,.10); }

.readiness-list li { display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }

.manage-products-overview { display:grid; gap:16px; margin-bottom:16px; }
.overview-pills { display:flex; gap:10px; flex-wrap:wrap; }
.overview-pill {
  display:inline-flex; align-items:center; gap:10px; padding:10px 14px; border-radius:999px;
  background:#fff8ef; border:1px solid rgba(239,74,35,.12); color:#475467; font-weight:700; text-decoration:none;
}
.overview-pill strong { color:#ef4a23; }
.overview-pill.active { background:#fff1e9; border-color: rgba(239,74,35,.32); color:#111827; }
.manage-filter-row { display:flex; gap:12px; flex-wrap:wrap; }
.manage-filter-row input { flex:1 1 320px; }
.manage-product-info { display:grid; grid-template-columns:72px minmax(0,1fr); gap:12px; align-items:start; }
.manage-product-info img { width:72px; height:72px; object-fit:cover; border-radius:12px; border:1px solid rgba(234,223,203,.9); background:#fff; }
.product-title-link { color:#111827; text-decoration:none; font-weight:800; }
.product-title-link:hover { color:#ef4a23; }
.score-pill {
  display:inline-flex; align-items:center; justify-content:center; min-width:74px; padding:6px 10px;
  border-radius:999px; font-weight:800; font-size:.9rem;
}
.score-pill.good { background:#ecfdf3; color:#027a48; }
.score-pill.mid { background:#fff7e6; color:#b54708; }
.score-pill.poor { background:#fef3f2; color:#b42318; }

.seller-product-layout-wide { align-items:start; }
.seller-product-layout-wide .product-form-main { grid-column:1; }
.seller-product-layout-wide .product-form-side { grid-column:2; }
.seller-product-layout-wide .product-form-full { grid-column:1 / -1; padding:22px; }
.compact-main { padding:20px; }
.form-section-tight { padding-bottom:0; }
.media-extra-grid { margin-top:14px; }
.new-image-grid, .existing-image-grid { display:flex; flex-wrap:wrap; gap:12px; margin-top:14px; }
.image-chip {
  width:132px; padding:10px; border-radius:16px; background:#fffaf2; border:1px solid rgba(234,223,203,.9);
}
.image-chip img { width:100%; height:92px; object-fit:cover; border-radius:12px; display:block; background:#fff; }
.image-chip small { display:block; margin-top:8px; line-height:1.25; word-break:break-word; }
.image-chip-actions { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:8px; }
.mini-danger { border:0; background:#fee4e2; color:#b42318; width:28px; height:28px; border-radius:999px; font-weight:800; }
.media-thumb-row { flex-wrap:wrap; }
.media-thumb { min-width:92px; min-height:46px; border-radius:12px; border:1px solid rgba(239,74,35,.15); background:#fff8ef; color:#ef4a23; font-weight:800; padding:8px 10px; }
.full-submit-row { justify-content:flex-end; }

@media (max-width: 1180px) {
  .seller-product-layout-wide { grid-template-columns:1fr; }
  .seller-product-layout-wide .product-form-side,
  .seller-product-layout-wide .product-form-main,
  .seller-product-layout-wide .product-form-full { grid-column:auto; }
}

@media (max-width: 860px) {
  .manage-product-info { grid-template-columns:1fr; }
  .topbar.context-seller .topbar-inner,
  .topbar.context-admin .topbar-inner { grid-template-columns:1fr; }
}

/* Phase 3 editor + seller route hotfix */
.editor-wrap,
.editor-wrap * {
  box-sizing: border-box;
}

.editor-wrap {
  min-width: 0;
}

.editor-wrap textarea,
.editor-wrap [contenteditable="true"],
.editor-wrap .editor-surface,
.editor-wrap .rich-editor {
  width: 100% !important;
  min-height: 180px;
  max-height: 360px;
  overflow: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  resize: vertical;
}

.editor-toolbar {
  flex-wrap: wrap;
  gap: 6px;
}

.editor-toolbar button {
  margin-bottom: 4px;
}

.product-form-full .form-grid.two-col {
  align-items: start;
}
