:root {
  --green-900: #0d3b1f;
  --green-700: #166534;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --earth-100: #f7f5ef;
  --slate-900: #111827;
  --slate-700: #374151;
  --slate-600: #4b5563;
  --text: #1f2937;
  --muted: #6b7280;
  --white: #ffffff;
  --cta: #f59e0b;
  --cta-dark: #d97706;
  --border: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", "Roboto", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--earth-100);
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.container { width: min(1200px, 92%); margin: 0 auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { margin: 0 0 0.6rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 0.55rem; color: var(--slate-700); }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.nav-wrap { display: grid; grid-template-columns: 198px 1fr auto; gap: 0.85rem; align-items: center; padding: 0.6rem 0; }
.brand img { width: 188px; height: auto; display: block; }
.header-search { position: relative; display: flex; }
.header-search input { flex: 1; padding: 0.56rem 2.4rem 0.56rem 0.65rem; border-radius: var(--radius-sm); border: 1px solid var(--border); width: 100%; }
.header-search input:focus { outline: none; border-color: #86efac; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; background: transparent; color: var(--green-700); border: none; padding: 0.3rem 0.4rem; cursor: pointer; }
.header-search button:hover { color: var(--green-900); }
.main-nav { display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a {
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.86rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  transition: all 0.18s ease;
}
.main-nav a:hover { background: #ecfdf5; color: #14532d; }
.nav-cart-link { position: relative; }
.nav-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--green-700);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}
.category-strip { background: #f0fdf4; border-top: 1px solid var(--border); }
.category-scroll { display: flex; overflow: auto; gap: 0.5rem; padding: 0.46rem 0; }
.category-scroll a {
  white-space: nowrap;
  font-weight: 600;
  color: var(--slate-700);
  font-size: 0.8rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #d1fae5;
  border-radius: 999px;
  background: #f8fffa;
}

main { padding: 1rem 0 2.25rem; }
.alert { background: #ecfdf5; border: 1px solid #86efac; padding: 0.62rem 0.76rem; border-radius: var(--radius-md); margin-bottom: 0.85rem; font-size: 0.9rem; }
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; background: linear-gradient(120deg, #ecfdf5, #fefce8); padding: 1.35rem; border-radius: 16px; margin-bottom: 0.95rem; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(1.5rem, 3.2vw, 2.5rem); color: var(--green-900); }
.hero-search { display: flex; gap: 0.45rem; margin: 0.7rem 0; }
.hero-search input, .hero-search button { padding: 0.66rem 0.76rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.hero-search input { flex: 1; }
.hero-search button { background: var(--green-700); color: #fff; border: none; }
.hero-banner { background: rgba(13,59,31,0.9); color: #fff; padding: 1rem; border-radius: var(--radius-lg); }
.hero-banner p { color: #ddfbe5; }
.cta-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.home-search { background: linear-gradient(120deg, #ecfdf5, #fefce8); padding: 1.6rem 1.35rem; border-radius: 16px; margin-bottom: 0.95rem; box-shadow: var(--shadow-sm); }
.home-search-form { display: flex; gap: 0.5rem; max-width: 640px; margin: 0 auto; }
.home-search-form input { flex: 1; padding: 0.72rem 0.85rem; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 0.92rem; }
.home-search-form button { padding: 0.72rem 1.4rem; border-radius: var(--radius-sm); border: none; background: var(--green-700); color: #fff; font-weight: 700; cursor: pointer; }
.home-search-form button:hover { background: var(--green-900); }

.btn { background: var(--cta); color: #111827; border: none; border-radius: var(--radius-sm); padding: 0.52rem 0.82rem; font-size: 0.84rem; font-weight: 700; cursor: pointer; display: inline-block; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--cta-dark); }
.btn-secondary { background: var(--green-700); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--green-700); color: var(--green-700); }

.page-head { margin-bottom: 0.8rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin-bottom: 0.95rem; }
.category-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.76rem; font-weight: 600; text-align: center; font-size: 0.86rem; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.62rem; margin-bottom: 0.75rem; }
.product-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.52rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
.product-card:hover { box-shadow: var(--shadow-md, 0 8px 20px rgba(0,0,0,0.1)); border-color: #86efac; transform: translateY(-2px); }
.product-card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-md); }
.product-card img { width: 100%; height: 172px; object-fit: cover; border-radius: 8px; }
.product-card .actions { position: relative; z-index: 2; }
.product-card h4 { min-height: 36px; margin-top: 0.42rem; margin-bottom: 0.2rem; font-size: 0.84rem; line-height: 1.3; }
.price { font-size: 0.95rem; color: var(--green-700); font-weight: 800; margin: 0.16rem 0 0.06rem; }
.discount { margin: 0; color: var(--muted); text-decoration: line-through; }
.rating, .muted { color: var(--muted); font-size: 0.74rem; line-height: 1.2; }
.actions { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; margin-top: 0.32rem; }
.product-card .btn {
  font-size: 0.7rem;
  padding: 0.33rem 0.54rem;
  border-radius: 6px;
  min-height: 26px;
}

.home-page section > h2 {
  margin-bottom: 0.5rem;
}

.marketplace-products { gap: 0.85rem; }
.marketplace-products.wide-left { grid-template-columns: 260px 1fr; }
.marketplace-products .filter-panel { padding: 0.8rem; border-radius: 12px; }
.marketplace-products .filter-panel h3 { margin-bottom: 0.45rem; }
.marketplace-products .filter-panel form { gap: 0.45rem; }
.marketplace-products .filter-panel label { font-size: 0.82rem; margin-bottom: -0.15rem; color: #4b5563; }
.marketplace-products .filter-panel input,
.marketplace-products .filter-panel select {
  padding: 0.5rem 0.58rem;
  border-radius: 8px;
  font-size: 0.88rem;
}
.marketplace-products .product-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(4, 1fr);
}

.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.trust-badge { display: flex; align-items: flex-start; gap: 0.65rem; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--green-500); border-radius: var(--radius-md); padding: 0.85rem; }
.trust-badge-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #ecfdf5; color: var(--green-700); }
.trust-badge-text { display: flex; flex-direction: column; gap: 0.15rem; }
.trust-badge-text strong { font-size: 0.9rem; color: var(--green-900); }
.trust-badge-text span { font-size: 0.76rem; color: var(--muted); line-height: 1.35; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 0.95rem; }
.wide-left { grid-template-columns: 320px 1fr; align-items: start; }

.payment-result { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.payment-result-head { text-align: center; }
.payment-result-card { width: 100%; max-width: 520px; margin: 0 auto; }
.payment-result-card h3 { text-align: center; margin-bottom: 0.75rem; color: var(--green-900); }
.payment-invoice-table td:first-child { width: 42%; color: var(--muted); font-size: 0.84rem; }
.payment-invoice-table td:last-child { font-weight: 600; font-size: 0.88rem; }
.payment-result-actions { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--border); text-align: center; }
.payment-result-actions .btn { min-width: 180px; text-align: center; }

.order-status-form { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.order-status-form select { min-width: 120px; padding: 0.38rem 0.5rem; font-size: 0.82rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.order-status-form .btn { font-size: 0.72rem; padding: 0.35rem 0.55rem; min-height: 28px; }
.order-status-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f9fafb;
}
.order-status-filter label { font-size: 0.82rem; font-weight: 600; color: #374151; margin: 0; }
.order-status-filter select {
  min-width: 150px;
  padding: 0.45rem 0.55rem;
  font-size: 0.84rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.order-status-filter .btn { font-size: 0.78rem; padding: 0.42rem 0.75rem; min-height: 32px; }
.order-status-filter .btn-secondary {
  background: #fff;
  color: #374151;
  border: 1px solid var(--border);
}
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.table-pagination-info {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.table-pagination-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.table-pagination-links .btn {
  min-width: 2rem;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}
.table-pagination-links .pagination-active {
  pointer-events: none;
  background: var(--green-700);
  border-color: var(--green-700);
}
.list-per-page-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.list-per-page-form label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.list-per-page-form select {
  min-width: 130px;
  padding: 0.45rem 0.55rem;
  font-size: 0.84rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.panel, .promo-card, .filter-panel, .form-card, .checkout-box, .review-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}
.supplier-list { list-style: none; margin: 0; padding: 0; }
.supplier-list li { padding: 0.56rem 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 0.88rem; }

.filter-panel form { display: grid; gap: 0.5rem; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 0.55rem 0.6rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm); font-size: 0.86rem; color: var(--slate-900); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #86efac; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
textarea { min-height: 78px; }

.empty-state { background: #fff; padding: 1.3rem; border-radius: var(--radius-lg); border: 1px dashed #9ca3af; text-align: center; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 0.56rem 0.62rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; font-size: 0.84rem; }
.cart-product-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 180px;
}
.cart-product-image {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f9fafb;
  flex-shrink: 0;
}
.cart-product-cell a {
  color: var(--green-900);
  font-weight: 600;
  text-decoration: none;
}
.cart-product-cell a:hover { text-decoration: underline; }
.password-change-panel { margin-top: 1rem; }
.password-change-form .password-change-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}
.table th { background: #f9fafb; color: #334155; font-weight: 700; }

.checkout-box.sticky { position: sticky; top: 110px; }
.gallery-main { position: relative; overflow: hidden; border-radius: 12px; cursor: zoom-in; max-height: 420px; }
.gallery-main img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; transition: transform 0.12s ease-out; transform-origin: center center; }
.gallery-main.zoomed img { transform: scale(2); }
.thumb-row { margin-top: 0.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.thumb-row img { height: 80px; width: 100%; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s ease; }
.thumb-row img:hover { border-color: #86efac; }
.thumb-row img.active { border-color: var(--green-700); }

.checkout-head { margin-bottom: 0.75rem; }
.checkout-steps {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}
.checkout-steps .step {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 600;
}
.checkout-steps .step.active {
  border-color: #16a34a;
  color: #166534;
  background: #ecfdf5;
}
.checkout-layout { gap: 1.1rem; }
.checkout-form {
  border-radius: 16px;
  padding: 1.1rem;
}
.section-title h3 { margin-bottom: 0.2rem; }
.section-title { margin-bottom: 0.55rem; }
.form-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}
.payment-options {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.payment-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  background: #fcfffd;
}
.payment-option input {
  width: auto;
  margin-top: 0.18rem;
}
.payment-option > span:first-of-type {
  flex: 1;
}
.payment-option strong {
  display: block;
  font-size: 0.95rem;
}
.payment-option small {
  display: block;
  color: #6b7280;
  font-size: 0.82rem;
  margin-top: 0.08rem;
}
.pay-badges {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 24px;
  padding: 0 0.45rem;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.pay-badge.neutral { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.pay-badge.visa { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pay-badge.mc { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.pay-badge.amex { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.pay-badge.bkash { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.pay-badge.nagad { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.trust-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.15rem 0 0.85rem;
}
.trust-row span {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 600;
}
.order-summary-pro { border-radius: 16px; }
.summary-items { display: grid; gap: 0.45rem; margin-bottom: 0.6rem; }
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border-bottom: 1px dashed #e5e7eb;
  padding-bottom: 0.35rem;
}
.summary-item p {
  margin: 0;
  font-size: 0.9rem;
}
.summary-item span {
  font-weight: 700;
  color: #4b5563;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0;
}
.summary-line.total {
  margin-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.5rem;
}
.summary-line.total strong,
.summary-line.total span {
  font-size: 1rem;
  color: #0f5132;
}

.auth-wrap { display: grid; place-items: center; padding: 2rem 0; }
.auth-wrap .form-card { width: min(460px, 100%); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-bottom: 1rem; }
.metric { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.metric p { font-size: 1.4rem; color: var(--green-700); font-weight: 800; margin: 0; }

.chart-placeholder { height: 220px; border-radius: 12px; background: linear-gradient(120deg, #f0fdf4, #dcfce7); border: 1px dashed #16a34a; display: grid; place-items: center; font-weight: 700; color: #166534; }
.dash-nav { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.dash-nav a { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.36rem 0.72rem; font-weight: 600; font-size: 0.82rem; }
.inline-form { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr auto; gap: 0.6rem; align-items: end; }
.badge-warn { color: #b45309; background: #fef3c7; border-radius: 999px; padding: 0.2rem 0.6rem; font-weight: 700; }
.badge-ok { color: #15803d; background: #dcfce7; border-radius: 999px; padding: 0.2rem 0.6rem; font-weight: 700; }
.badge-danger { color: #b91c1c; background: #fee2e2; border-radius: 999px; padding: 0.2rem 0.6rem; font-weight: 700; }
.seller-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.seller-actions form { margin: 0; }

.order-history { display: grid; gap: 0.85rem; }
.order-card { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.85rem; background: #fff; }
.order-card-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.6rem; }
.order-card-head strong { display: block; font-size: 0.95rem; color: var(--green-900); }
.order-card-head .muted { font-size: 0.76rem; }
.order-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.15rem; text-align: right; }
.order-status { font-weight: 700; font-size: 0.74rem; padding: 0.18rem 0.55rem; border-radius: 999px; background: #fef3c7; color: #b45309; }
.order-status.status-confirmed, .order-status.status-delivered { background: #dcfce7; color: #15803d; }
.order-status.status-cancelled, .order-status.status-refunded { background: #fee2e2; color: #b91c1c; }
.order-items { margin: 0; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.order-totals { display: flex; gap: 0.9rem; align-items: center; }
.order-totals strong { color: var(--green-900); }
.seller-dashboard-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}
.seller-sidebar {
  position: sticky;
  top: 110px;
}
.seller-sidebar h3 {
  margin-bottom: 0.65rem;
}
.seller-sidebar nav {
  display: grid;
  gap: 0.35rem;
}
.seller-sidebar nav a {
  display: block;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #374151;
  font-size: 0.86rem;
  font-weight: 650;
  padding: 0.52rem 0.62rem;
}
.seller-sidebar nav a:hover,
.seller-sidebar nav a.active {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #14532d;
}
.seller-main-content {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}
.seller-product-editor .form-grid-two {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.seller-product-form label {
  display: block;
  margin: 0.42rem 0 0.22rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
}
.seller-product-form textarea {
  min-height: 92px;
}
.seller-product-view {
  min-width: 0;
}
.seller-product-view-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
}
.seller-product-count {
  white-space: nowrap;
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.76rem;
  font-weight: 700;
}
.table-wrap {
  overflow-x: auto;
}
.hidden { display: none !important; }

.drag-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.45rem 0 0.7rem;
}
.drag-item {
  width: 92px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  padding: 0.25rem;
  cursor: grab;
  position: relative;
}
.drag-item.dragging {
  opacity: 0.55;
  cursor: grabbing;
}
.drag-item img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.drag-item .drag-label {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.67rem;
  color: #4b5563;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.drag-item .remove-item {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
}

.site-footer { background: #0a1f13; color: #fff; padding: 1.5rem 0; margin-top: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; }
.footer-grid h4 { color: #bbf7d0; }
.footer-grid a { display: block; margin-bottom: 0.3rem; color: #fff; opacity: 0.92; font-size: 0.84rem; }
.newsletter { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.95;
  font-size: 0.9rem;
}
.social-links svg {
  width: 16px;
  height: 16px;
  fill: #86efac;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .wide-left { grid-template-columns: 1fr; }
  .marketplace-products.wide-left { grid-template-columns: 1fr; }
  .seller-dashboard-layout { grid-template-columns: 1fr; }
  .seller-sidebar { position: static; }
  .seller-product-editor .form-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 13.5px; }
  .nav-wrap { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-5, .badge-grid, .split-grid, .metrics-grid { grid-template-columns: 1fr; }
  .form-grid-two { grid-template-columns: 1fr; }
  .seller-product-editor .form-grid-two { grid-template-columns: 1fr; }
  .pay-badges { justify-content: flex-start; margin-top: 0.25rem; }
  .marketplace-products .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card img { height: 144px; }
  .social-links { grid-template-columns: 1fr; }
  .header-search { order: 3; }
  .main-nav { order: 2; }
}
