* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fb;
  color: #1f2937;
}

.hero {
  min-height: 100vh;
  padding: 30px 8%;
  background:
    linear-gradient(rgba(10, 14, 28, 0.72), rgba(10, 14, 28, 0.78)),
    url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  font-size: 1.6rem;
  font-weight: 700;
}

.logo img,
.page-brand img {
  display: block;
  width: 84px;
  height: 84px;
  padding: 0;
  object-fit: cover;
  border: 1px solid rgba(60, 36, 21, 0.12);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.page-brand {
  width: min(1250px, 92%);
  margin: 36px auto 16px;
  display: flex;
  justify-content: center;
  min-height: 144px;
}

.page-brand img {
  width: 144px;
  height: 144px;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.seller-btn {
  background: #1f7a4f;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.admin-btn {
  background: #8b5f00;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.logout-btn {
  background: #b42318;
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.hidden-nav-link {
  display: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  padding: 10px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.hero-text h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}

.primary-btn,
.secondary-btn {
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.3s ease;
}

.primary-btn {
  background: #16a34a;
  color: white;
}

.secondary-btn {
  background: white;
  color: #111827;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

.hero-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  padding: 30px;
  backdrop-filter: blur(12px);
}

.mini-card {
  background: white;
  color: #111827;
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 25px;
}

.mini-card h3 {
  margin-bottom: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: center;
}

.stats strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.features {
  width: min(1200px, 92%);
  margin: -60px auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.collection-section {
  width: min(1250px, 92%);
  margin: 0 auto 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header span {
  color: #16a34a;
  font-weight: 600;
}

.section-header h2 {
  font-size: 2.8rem;
  margin: 10px 0;
}

.bale-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  transition: 0.35s ease;
}

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

.product-image-wrap {
  width: 100%;
  height: 260px;
  background: #f7f7f7;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.25s ease;
  background: white;
}

.product-image:hover {
  transform: scale(1.03);
}

.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-image {
  max-width: 95%;
  max-height: 95%;
  border-radius: 16px;
  object-fit: contain;
  background: white;
}

.modal-close-btn,
.modal-gallery-arrow {
  position: absolute;
  z-index: 10001;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.94);
  color: #3c2415;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.modal-close-btn {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  font-weight: 900;
}

.modal-gallery-arrow {
  top: 50%;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.modal-gallery-prev {
  left: 18px;
}

.modal-gallery-next {
  right: 18px;
}

.modal-image-counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 10001;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.94);
  color: #3c2415;
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.20);
}

.card video {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-content {
  padding: 24px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.3rem;
}

.status {
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.status.available {
  background: #16a34a;
}

.status.preorder {
  background: #f59e0b;
}

.status.sold {
  background: #dc2626;
}

.price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #16a34a;
  margin: 14px 0;
}

.card button {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  background: #16a34a;
  color: white;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-options {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.payment-option {
  display: block;
  border: 2px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
}

.payment-option:hover {
  border-color: #111;
  transform: translateY(-2px);
}

.payment-option.active {
  border-color: #000;
  background: #f7f7f7;
}

.payment-option input {
  display: none;
}

.payment-option-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.payment-desc {
  font-size: 14px;
  color: #666;
}

.payment-details {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fafafa;
}

.hidden {
  display: none;
}

.payment-note {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
}

.bank-box {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.orders-grid {
  display: grid;
  gap: 24px;
}

.orders-feedback .card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.orders-feedback {
  border-radius: 8px;
  padding: 12px 14px;
  background: #f3f6fb;
  color: #1f2937;
  line-height: 1.5;
}

.orders-feedback.success {
  background: #e8f7ef;
  color: #166534;
}

.orders-feedback.error {
  background: #fff1f2;
  color: #9f1239;
}

.order-card {
  background: white;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.order-label {
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.order-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-pill.paid {
  background: #dcfce7;
  color: #166534;
}

.status-pill.awaiting {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.unpaid {
  background: #fee2e2;
  color: #991b1b;
}

.order-details {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  color: #4b5563;
}

.order-items h4 {
  margin-bottom: 12px;
}

.order-item-list {
  display: grid;
  gap: 10px;
}

.order-confirm {
  margin-top: 18px;
}

.seller-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.seller-summary-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.seller-summary-card span {
  display: block;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.seller-summary-card strong {
  display: block;
  font-size: 1.8rem;
  color: #111827;
  margin-bottom: 8px;
}

.seller-summary-card p {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

.seller-dashboard-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  align-items: start;
}

.seller-dashboard-card {
  margin-top: 20px;
}

.dashboard-menu {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #ececec;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.tab-btn.active {
  background: linear-gradient(135deg, #c99511, #8b5f00);
  color: white;
}

.dashboard-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #111827;
}

.manage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 16px;
  margin-bottom: 12px;
  background: #fafafa;
}

.manage-info strong {
  display: block;
  margin-bottom: 4px;
}

.manage-info small {
  color: #666;
}

.manage-actions {
  display: flex;
  gap: 10px;
}

.manage-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

.manage-btn.status {
  background: #c99511;
  color: white;
}

.manage-btn.delete {
  background: #d62828;
  color: white;
}

.manage-btn.hold {
  background: #374151;
  color: white;
}

.manage-btn.refund {
  background: #0f766e;
  color: white;
}

.manage-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.orders-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.summary-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.summary-card h3 {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.summary-card span {
  font-size: 28px;
  font-weight: 700;
  color: #8b5f00;
}

.menu-toggle {
  display: none;
}

.menu-close-btn {
  display: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.super-admin-shell {
  display: grid;
  gap: 20px;
}

.super-admin-panel {
  display: none;
}

.super-admin-panel.active {
  display: block;
}

.super-admin-list {
  display: grid;
  gap: 16px;
}

.super-admin-item {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 18px;
}

.super-admin-item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.super-admin-item p {
  color: #4b5563;
  margin-bottom: 8px;
}

.super-admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.stats-note {
  color: #6b7280;
  line-height: 1.7;
}

.store-profile-card .card-content {
  display: grid;
  gap: 22px;
}

.store-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.store-profile-head h2 {
  margin-bottom: 8px;
}

.store-logo-preview {
  width: 118px;
  height: 118px;
  padding: 12px;
  border: 1px solid rgba(60, 36, 21, 0.12);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.14);
  flex: 0 0 auto;
}

.store-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.store-profile-form {
  display: grid;
  gap: 18px;
}

.store-profile-form .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-profile-form .modern-field.full {
  grid-column: 1 / -1;
}

.field-help {
  display: block;
  margin-top: 8px;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.5;
}

.store-announcement {
  padding: 0 8%;
  background: #ffffff;
}

.store-announcement-inner {
  width: min(1250px, 100%);
  margin: 22px auto 0;
  border: 1px solid rgba(185, 128, 45, 0.28);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fffaf3;
  color: #3c2415;
}

.store-announcement-inner span {
  display: block;
  margin-bottom: 6px;
  color: #8b5f00;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-announcement-inner p {
  margin: 0;
  line-height: 1.7;
}

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

.seller-menu {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
  color: white;
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.seller-menu-head h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.seller-menu-head p {
  color: rgba(255,255,255,0.72);
  word-break: break-word;
  font-size: 0.95rem;
}

.seller-menu-btn {
  width: 100%;
  border: none;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.08);
  color: white;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
}

.seller-menu-btn:hover,
.seller-menu-btn.active {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-2px);
}

.seller-menu-link {
  text-align: center;
  margin-top: 8px;
}

.seller-menu-icon {
  display: none;
}

.seller-menu-overlay {
  display: none;
}

.seller-main {
  display: grid;
  gap: 24px;
}

.seller-panel {
  display: none;
}

.seller-panel.active {
  display: block;
}

.seller-section-stack {
  display: grid;
  gap: 24px;
}

.seller-orders-list,
.payouts-list {
  display: grid;
  gap: 18px;
}

.seller-order-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

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

.seller-order-meta {
  display: grid;
  gap: 8px;
  color: #4b5563;
  margin-bottom: 18px;
}

.seller-order-items {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.seller-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seller-order-actions button,
.order-confirm button {
  width: auto;
  margin-top: 0;
}

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

.seller-upload-grid .field.full {
  grid-column: 1 / -1;
}

.seller-upload-box {
  border: 2px dashed #d1d5db;
  border-radius: 20px;
  padding: 18px;
  background: #f9fafb;
}

.payout-form-shell {
  display: block;
}

.payout-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
}

.payout-main {
  display: grid;
  gap: 20px;
}

.payout-methods {
  display: flex;
  gap: 16px;
}

.payout-card {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 20px;
  background: #141414;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: 0.25s ease;
}

.payout-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.payout-card p {
  color: rgba(255,255,255,0.72);
  line-height: 1.6;
  font-size: 0.95rem;
}

.payout-card:hover,
.payout-card.active {
  border-color: #c7a75b;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.16);
}

.payout-content {
  display: grid;
}

.payout-panel {
  background: #f8fafc;
}

.payout-preview {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, #151515, #1f1f1f);
  border: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 20px;
  min-height: 220px;
}

.payout-preview h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.payout-preview p {
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}

.payout-save-wrap {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
  padding-top: 18px;
}

.payouts-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.payout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}

.payout-line:last-child {
  border-bottom: none;
}

.dashboard-card {
  padding: 30px;
}

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

.settings-grid {
  display: grid;
  gap: 18px;
}

.settings-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f9fafb;
}

.hidden-panel {
  display: none !important;
}

.settings-panel.hidden-panel,
.catalogue-field-panel.hidden-panel,
.catalogue-field-panel[hidden] {
  display: none !important;
}

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

.size-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.size-check-grid input {
  width: auto;
  box-shadow: none;
}

.product-size-picker {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  font-weight: 700;
  color: #111827;
}

.product-size-picker select {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.settings-submit {
  border: none;
  cursor: pointer;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f9fafb;
  color: #374151;
}

.card button:disabled {
  background: #9ca3af;
}

.contact-banner {
  width: min(1200px, 92%);
  margin: 0 auto 80px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: white;
  border-radius: 30px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.white-btn {
  background: white;
  color: #15803d;
}

footer {
  text-align: center;
  padding: 30px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .hero-content,
  .features,
  .contact-banner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2.7rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .contact-banner {
    text-align: center;
    gap: 25px;
  }

  .order-card-top,
  .order-item-row,
  .dashboard-header,
  .settings-panel {
    flex-direction: column;
  }

  .seller-summary-grid,
  .seller-dashboard-grid,
  .seller-shell,
  .seller-upload-grid,
  .payout-layout {
    grid-template-columns: 1fr;
  }

  .payout-methods {
    flex-direction: column;
  }

  .settings-panel {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    border: none;
    border-radius: 14px;
    background: #111;
    color: #fff;
    padding: 12px 14px;
    font-size: 22px;
  }

  .dashboard-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background: #fff;
    padding: 80px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    transition: left .3s ease;
    box-shadow: 0 0 30px rgba(0,0,0,.15);
  }

  .dashboard-menu .menu-close-btn {
    display: block;
    margin-bottom: 6px;
  }

  .dashboard-menu.open {
    left: 0;
  }

  .seller-upload-grid,
  .settings-grid,
  .seller-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .store-profile-form .settings-grid {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    width: 100%;
  }
}

.modern-upload-grid {
  gap: 22px;
}

.catalogue-field-panel {
  grid-column: 1 / -1;
  border: 1px solid #e5e7eb;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 22px;
}

.catalogue-field-panel::before {
  content: "Catalogue details";
  grid-column: 1 / -1;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modern-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #111827;
}

.modern-field input,
.modern-field select,
.modern-field textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: #111827;
  outline: none;
  transition: 0.25s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.modern-field input:focus,
.modern-field select:focus,
.modern-field textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

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

.input-with-prefix {
  display: flex;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.input-with-prefix span {
  background: #f3f6fb;
  color: #4b5563;
  font-weight: 700;
  padding: 14px 16px;
  border-right: 1px solid #dbe3ee;
}

.input-with-prefix input {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.media-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.media-upload-card {
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  padding: 20px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.media-upload-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.media-upload-head h4 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.media-upload-head p {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.93rem;
}

.media-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.media-badge.alt {
  background: #ede9fe;
  color: #6d28d9;
}

.modern-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  padding: 20px;
}

.modern-dropzone:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  transform: translateY(-2px);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.modern-dropzone strong {
  color: #111827;
  margin-bottom: 4px;
}

.modern-dropzone small {
  color: #6b7280;
}

.modern-preview-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 12px;
}

.modern-preview-grid img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.modern-video-preview {
  margin-top: 16px;
  width: 100%;
  min-height: 180px;
  border-radius: 18px;
  background: #0f172a;
}

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

.manage-header p {
  color: #6b7280;
  margin-top: 6px;
}

.manage-list-modern {
  display: grid;
  gap: 16px;
}

.manage-product-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.manage-thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  flex: 0 0 auto;
}

.manage-thumb.placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  color: #6b7280;
  font-size: 0.75rem;
  background: #f3f4f6;
}

.manage-item {
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.manage-info {
  flex: 1;
}

.manage-info strong {
  font-size: 1.05rem;
  color: #111827;
}

.manage-info small {
  color: #6b7280;
  line-height: 1.6;
}

.manage-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.manage-btn.edit {
  background: #111827;
  color: white;
}

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

.edit-modal.show {
  display: flex;
}

.edit-modal-card {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.edit-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.edit-modal-header p {
  color: #6b7280;
  margin-top: 6px;
}

.edit-close-btn {
  border: none;
  background: #f3f4f6;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
}

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

.edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .media-upload-grid,
  .edit-product-form {
    grid-template-columns: 1fr;
  }

  .manage-item,
  .manage-product-main {
    align-items: stretch;
  }

  .manage-product-main {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .media-upload-card {
    padding: 16px;
    border-radius: 20px;
  }

  .modern-dropzone {
    min-height: 140px;
    padding: 16px;
  }

  .modern-field input,
  .modern-field select,
  .modern-field textarea {
    padding: 13px 14px;
    font-size: 0.95rem;
  }

  .edit-modal-card {
    padding: 18px;
    border-radius: 22px;
  }

  .edit-actions {
    flex-direction: column;
  }

  .edit-actions button,
  .edit-actions a {
    width: 100%;
  }

  .manage-product-main {
    flex-direction: column;
  }

  .manage-thumb {
    width: 100%;
    height: 180px;
  }
}

/* =========================
   POLISHED SELLER MOBILE OVERRIDES
========================= */

.modern-field label {
  font-size: 0.95rem;
}

.modern-field textarea {
  line-height: 1.6;
}

.input-with-prefix span {
  white-space: nowrap;
}

.input-with-prefix input {
  background: transparent;
}

.media-upload-head h4 {
  color: #111827;
}

.modern-dropzone strong {
  font-size: 1rem;
}

.modern-dropzone small {
  line-height: 1.5;
}

.modern-video-preview {
  object-fit: cover;
}

.manage-header h2 {
  margin-bottom: 6px;
}

.manage-header p {
  line-height: 1.6;
}

.manage-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.manage-info {
  min-width: 0;
}

.manage-info strong {
  display: block;
  margin-bottom: 6px;
}

.manage-info small {
  display: block;
}

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

.manage-btn {
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  min-height: 42px;
}

.edit-modal-card {
  overflow-y: auto;
}

.edit-modal-header h3 {
  color: #111827;
}

.edit-close-btn {
  flex-shrink: 0;
}

.edit-actions .primary-btn,
.edit-actions .secondary-btn {
  border: none;
  cursor: pointer;
}

.edit-media-section {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.edit-media-header h4 {
  color: #111827;
  margin-bottom: 4px;
}

.edit-media-header p {
  color: #6b7280;
  line-height: 1.5;
}

.edit-current-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}

.edit-image-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.edit-image-item img {
  width: 100%;
  height: 115px;
  object-fit: cover;
  display: block;
}

.edit-image-remove {
  position: absolute;
  right: 8px;
  bottom: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 10px;
  cursor: pointer;
}

.edit-image-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 16px;
  color: #6b7280;
  background: #f8fafc;
}

.edit-image-dropzone {
  min-height: 130px;
}

.modern-field input,
.modern-field select,
.modern-field textarea,
.manage-btn,
.edit-close-btn,
.primary-btn,
.secondary-btn,
.submit-btn,
.tab-btn {
  -webkit-tap-highlight-color: transparent;
}

.modern-field input,
.modern-field select,
.manage-btn,
.primary-btn,
.secondary-btn,
.submit-btn {
  min-height: 48px;
}

@media (max-width: 900px) {
  .manage-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .manage-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .seller-dashboard-card .card-content,
  .card-content {
    padding: 18px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .dashboard-header .secondary-btn,
  .dashboard-header .primary-btn {
    width: 100%;
    text-align: center;
  }

  .modern-upload-grid {
    gap: 18px;
  }

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

  .media-badge {
    align-self: flex-start;
  }

  .dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .modern-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .modern-preview-grid img {
    height: 82px;
    border-radius: 12px;
  }

  .modern-video-preview {
    min-height: 150px;
    border-radius: 16px;
  }

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

  .manage-info strong {
    font-size: 1rem;
  }

  .manage-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .manage-btn {
    width: 100%;
  }

  .edit-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .edit-modal-card {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
  }

  .edit-modal-header {
    align-items: center;
    margin-bottom: 18px;
  }

  .edit-modal-header h3 {
    font-size: 1.1rem;
  }

  .edit-product-form {
    gap: 14px;
  }

  .edit-current-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .seller-dashboard-card .card-content,
  .card-content {
    padding: 14px;
  }

  .modern-field input,
  .modern-field select,
  .modern-field textarea {
    font-size: 0.92rem;
    padding: 12px;
  }

  .input-with-prefix span {
    padding: 12px;
    font-size: 0.85rem;
  }

  .modern-dropzone {
    min-height: 125px;
    padding: 14px;
  }

  .modern-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manage-item {
    padding: 14px;
  }

  .edit-modal-card {
    padding: 16px 14px;
  }

  .edit-current-images {
    grid-template-columns: 1fr;
  }
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 46px !important;
}

.password-field .password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: none;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  width: 24px;
  height: 24px;
  min-height: 0;
  padding: 0;
  margin: 0;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.password-field .password-toggle-btn:hover,
.password-field .password-toggle-btn:focus-visible {
  background: transparent;
  color: #111827;
  outline: none;
  transform: translateY(-50%);
}

.password-field .password-toggle-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.password-field .password-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 420px) {
  .password-field input {
    padding-right: 42px !important;
  }

  .password-field .password-toggle-btn {
    right: 10px;
    width: 22px;
    height: 22px;
  }

  .password-field .password-toggle-btn svg {
    width: 19px;
    height: 19px;
  }
}

.profile-panel-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-panel-header h2 {
  margin-bottom: 6px;
}

.profile-panel-header p {
  color: #6b7280;
  line-height: 1.5;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #173d25, #16a34a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.18);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-profile-card {
  margin-bottom: 28px;
}

.profile-form input[type="file"] {
  padding: 12px;
  background: #fff;
}

.profile-feedback {
  margin-top: 12px;
  font-weight: 600;
  color: #4b5563;
}

.profile-feedback.success {
  color: #166534;
}

.profile-feedback.error {
  color: #b42318;
}

.seller-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
}

.seller-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #111827, #16a34a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-mini-profile strong {
  display: block;
  color: #111827;
}

.seller-mini-profile small {
  display: block;
  color: #6b7280;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .profile-panel-header {
    align-items: flex-start;
  }

  .profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
}

.profile-card-shell {
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.10), transparent 30%),
    #ffffff;
}

.profile-topbar {
  margin-bottom: 24px;
}

.profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-topbar h2 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.profile-topbar p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

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

.profile-side-card {
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 24px;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(22, 101, 52, 0.92)),
    #0f172a;
  color: #ffffff;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
}

.profile-side-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.profile-avatar-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.profile-avatar.large {
  width: 116px;
  height: 116px;
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: linear-gradient(135deg, #f8fafc, #dcfce7);
  color: #14532d;
  font-size: 2rem;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
}

.profile-image-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.profile-image-upload-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-1px);
}

.profile-side-meta {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 20px;
}

.profile-side-meta h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.profile-side-meta p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  word-break: break-word;
}

.profile-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(220, 252, 231, 0.16);
  color: #bbf7d0;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-side-note {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.profile-side-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  line-height: 1.7;
}

.profile-form-modern {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-section-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.profile-section-head {
  margin-bottom: 18px;
}

.profile-section-head h3 {
  margin: 0 0 5px;
  color: #111827;
  font-size: 1.08rem;
}

.profile-section-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.profile-form-modern .settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form-modern .field.full {
  grid-column: 1 / -1;
}

.profile-form-modern .modern-field input,
.profile-form-modern .modern-field textarea {
  background: #f8fafc;
}

.profile-form-modern .modern-field input:focus,
.profile-form-modern .modern-field textarea:focus {
  border-color: #111827;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.profile-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 0;
}

.profile-action-row .settings-submit {
  min-width: 210px;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.20);
}

.profile-action-row .profile-feedback {
  margin: 0;
  text-align: right;
}

@media (max-width: 980px) {
  .profile-layout-modern {
    grid-template-columns: 1fr;
  }

  .profile-side-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 640px) {
  .profile-card-shell .card-content {
    padding: 18px;
  }

  .profile-layout-modern {
    gap: 18px;
  }

  .profile-side-card,
  .profile-section-card {
    border-radius: 20px;
    padding: 18px;
  }

  .profile-avatar.large {
    width: 96px;
    height: 96px;
    font-size: 1.65rem;
  }

  .profile-form-modern .settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-action-row .settings-submit {
    width: 100%;
    min-width: 0;
  }

  .profile-action-row .profile-feedback {
    text-align: left;
  }
}

/* Marketplace homepage foundation */
.market-hero {
  min-height: auto;
  padding: 24px 6% 72px;
  background:
    linear-gradient(135deg, rgba(10, 15, 26, 0.94), rgba(12, 68, 39, 0.82)),
    url('https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 42px;
}

.market-hero .logo {
  flex-shrink: 0;
}

.market-hero .nav-links {
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-hero .nav-links a {
  border-radius: 999px;
  padding: 9px 12px;
  color: #ffffff;
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.category-menu {
  position: relative;
  display: inline-flex;
}

.category-menu-btn {
  min-height: 38px;
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(36, 21, 13, 0.46);
  color: #fff8ef;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.category-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1500;
  display: none;
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(60, 36, 21, 0.12);
  border-radius: 8px;
  background: #fff8ef;
  box-shadow: 0 18px 42px rgba(36, 21, 13, 0.22);
}

.category-menu-panel.open {
  display: grid;
  gap: 6px;
}

.category-menu-panel button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 11px;
  background: transparent;
  color: #3c2415;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.category-menu-panel button:hover {
  border-color: rgba(60, 36, 21, 0.12);
  background: #f3e2c8;
}

.market-hero .nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.market-hero .seller-btn,
.market-hero .admin-btn,
.market-hero .logout-btn {
  padding: 10px 14px;
}

.mobile-menu-btn {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d9ffe6;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.90);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-search input {
  width: 100%;
  min-height: 58px;
  border: none;
  border-radius: 18px;
  padding: 0 18px;
  color: #111827;
  font: inherit;
  outline: none;
}

.hero-search button {
  min-height: 58px;
  border: none;
  border-radius: 18px;
  padding: 0 24px;
  background: #facc15;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-promo-stack {
  display: grid;
  gap: 16px;
}

.promo-slider-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.26), transparent 36%),
    rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.promo-slider-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.22);
}

.promo-slide {
  position: relative;
  z-index: 1;
  display: none;
  animation: fadeSlide 0.55s ease;
}

.promo-slide.active {
  display: block;
}

.promo-slide span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #fde68a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.promo-slide h3 {
  max-width: 360px;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.promo-slide p {
  max-width: 360px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

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

.promo-image-marquee {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
}

.promo-image-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 12px;
  animation: marketplaceMarquee 22s linear infinite;
}

.promo-image-marquee:hover .promo-image-track {
  animation-play-state: paused;
}

.promo-image-card {
  display: flex;
  align-items: flex-end;
  width: 150px;
  height: 96px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 20px;
  padding: 12px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -70px 45px rgba(0, 0, 0, 0.46);
}

.promo-image-card span {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
}

.fashion-one {
  background-image: url('https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=500&q=80');
}

.fashion-two {
  background-image: url('https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=500&q=80');
}

.fashion-three {
  background-image: url('https://images.unsplash.com/photo-1542060748-10c28b62716f?auto=format&fit=crop&w=500&q=80');
}

.fashion-four {
  background-image: url('https://images.unsplash.com/photo-1523779105320-d1cd346ff52b?auto=format&fit=crop&w=500&q=80');
}

@keyframes marketplaceMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mini-market-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-market-stats div {
  min-height: 122px;
  border-radius: 22px;
  padding: 18px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.mini-market-stats strong,
.mini-market-stats span {
  display: block;
}

.mini-market-stats strong {
  margin-bottom: 7px;
  font-size: 1rem;
}

.mini-market-stats span {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.55;
}

.section-header.left {
  text-align: left;
}

.catalogue-strip,
.market-banner-row {
  width: min(1250px, 92%);
  margin: 0 auto 76px;
}

.catalogue-strip {
  margin-top: -34px;
}

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

.catalogue-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 26px;
  padding: 24px 20px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.catalogue-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -56px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.18);
}

.catalogue-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 163, 74, 0.22);
}

.catalogue-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #111827;
  color: #facc15;
  font-size: 1.35rem;
  font-weight: 900;
}

.catalogue-card h3 {
  margin-bottom: 8px;
  color: #111827;
}

.catalogue-card p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.94rem;
}

.market-banner-row {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 20px;
}

.market-banner {
  min-height: 220px;
  border-radius: 30px;
  padding: 34px;
  color: #ffffff;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.primary-banner {
  background:
    radial-gradient(circle at right, rgba(250, 204, 21, 0.22), transparent 30%),
    linear-gradient(135deg, #111827, #14532d);
}

.ad-banner {
  background:
    radial-gradient(circle at right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #7c4a03, #d6a00f);
}

.market-banner span {
  display: inline-flex;
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  opacity: 0.9;
}

.market-banner h3 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.1;
}

.market-banner p {
  max-width: 640px;
  line-height: 1.75;
  opacity: 0.92;
}

.marketplace-product-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.product-image-placeholder {
  background: linear-gradient(135deg, #111827, #14532d);
  color: #facc15;
  font-weight: 900;
  font-size: 1.5rem;
}

.product-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 4px;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 800;
}

.fixed-price-chip {
  background: #dcfce7;
  color: #166534;
}

.product-gallery {
  display: grid;
  gap: 10px;
  padding: 0;
}

.product-gallery .product-image-wrap {
  position: relative;
  margin-bottom: 0;
}

.product-image-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(88px, 0.55fr);
  gap: 8px;
  padding: 12px 12px 0;
}

.product-grid-photo {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: none;
  border-radius: 14px;
  background: #f3e8d7;
  cursor: pointer;
  padding: 0;
}

.product-grid-photo-main {
  min-height: 218px;
}

.product-grid-photo-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-grid-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.more-photo-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(36, 21, 13, 0.58);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 900;
}

.product-image-count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(36, 21, 13, 0.78);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.product-image-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scrollbar-width: thin;
}

.product-image-thumb {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 0;
  background: #f3e8d7;
  cursor: pointer;
}

.product-image-thumb.active {
  border-color: var(--yk-gold);
}

.product-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.coming-category-card {
  grid-column: 1 / -1;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  padding: 30px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.coming-category-card.compact {
  text-align: center;
}

.coming-category-card.dark {
  background:
    radial-gradient(circle at right, rgba(250, 204, 21, 0.18), transparent 28%),
    linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
}

.coming-category-card h3 {
  margin-bottom: 8px;
}

.coming-category-card p {
  color: inherit;
  line-height: 1.65;
}

.browse-results {
  scroll-margin-top: 20px;
}

.browse-results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: -6px 0 18px;
}

.browse-results-toolbar span {
  color: #6b4a2f;
  font-weight: 800;
}

.browse-results-toolbar button {
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  background: #3c2415;
  color: #fff8ef;
  font-weight: 800;
  cursor: pointer;
}

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

  .catalogue-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-market-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .market-hero .navbar {
    flex-direction: row;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .market-hero .nav-links {
    position: fixed;
    top: 86px;
    left: 16px;
    right: 16px;
    z-index: 1200;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
  }

  .market-hero .nav-links.open {
    display: flex;
  }

  .market-hero .nav-links a {
    color: #111827;
    padding: 12px 14px;
  }

  .market-hero .nav-links a:hover {
    background: #f1f5f9;
  }

  .market-hero .seller-btn,
  .market-hero .admin-btn,
  .market-hero .logout-btn {
    color: #ffffff;
  }

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

  .hero-search button {
    width: 100%;
  }

  .mini-market-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .market-hero {
    padding: 18px 5% 56px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .market-hero .logo {
    font-size: 1.1rem;
  }

  .market-hero .logo img {
    width: 63px;
    height: 63px;
  }

  .hero-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-quick-links {
    flex-direction: column;
  }

  .hero-quick-links .primary-btn,
  .hero-quick-links .secondary-btn {
    text-align: center;
  }

  .promo-slider-card {
    min-height: 250px;
    border-radius: 26px;
    padding: 24px;
  }

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

  .catalogue-card {
    min-height: 190px;
  }

  .market-banner {
    padding: 26px;
  }
}

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

  .promo-image-card {
    width: 132px;
    height: 86px;
  }
}

/* =========================================
   YENKASA MOBILE-FIRST MARKETPLACE TIGHTENING
========================================= */
:root {
  --yk-bg: #f7ead7;
  --yk-surface: #fff8ef;
  --yk-brown: #3c2415;
  --yk-dark: #24150d;
  --yk-gold: #d4a24c;
  --yk-gold-soft: #ebc988;
  --yk-muted: #7b604a;
  --yk-border: rgba(60, 36, 21, 0.10);
}

body {
  background: var(--yk-bg);
  color: var(--yk-dark);
}

.collection-section,
.catalogue-strip,
.market-banner-row,
.contact-banner {
  width: min(1200px, 92%);
}

.section-header {
  margin-bottom: 22px;
}

.section-header,
.section-header.left {
  text-align: left;
}

.section-header span {
  color: var(--yk-gold);
}

.section-header h2 {
  color: var(--yk-brown);
  font-size: 1.75rem;
  line-height: 1.14;
  margin: 8px 0;
}

.section-header p {
  color: var(--yk-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.primary-btn {
  background: linear-gradient(135deg, var(--yk-gold), #b9802d);
  color: var(--yk-dark);
  font-weight: 800;
}

.secondary-btn {
  background: #ffffff;
  color: var(--yk-brown);
  font-weight: 700;
}

.white-btn {
  background: var(--yk-surface);
  color: var(--yk-brown);
}

.market-hero {
  min-height: auto;
  padding: 16px 4% 42px;
  background:
    radial-gradient(circle at 88% 16%, rgba(212, 162, 76, 0.25), transparent 30%),
    linear-gradient(135deg, rgba(36, 21, 13, 0.96), rgba(92, 52, 24, 0.88)),
    url('https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.topbar {
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.market-hero .logo {
  min-width: 0;
  gap: 10px;
  font-size: 1rem;
}

.market-hero .logo img {
  display: block;
  width: 72px;
  height: 72px;
  max-width: 100%;
  object-fit: cover;
}

.market-hero .logo span {
  color: #fff7ea;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.1;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.14);
  color: #fff8ef;
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.market-hero .nav-links {
  position: fixed;
  top: 70px;
  left: 12px;
  right: 12px;
  z-index: 1200;
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  max-height: calc(100vh - 86px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--yk-border);
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.98);
  box-shadow: 0 18px 42px rgba(36, 21, 13, 0.22);
}

.market-hero .nav-links.open {
  display: flex;
}

.market-hero .nav-links .menu-close-btn {
  display: block;
  width: 100%;
  margin-bottom: 5px;
  background: #ffffff;
}

.market-hero .nav-links a {
  color: var(--yk-brown);
  background: transparent;
  padding: 9px 11px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.market-hero .category-menu {
  width: 100%;
}

.market-hero .category-menu-btn {
  width: 100%;
  border-radius: 12px;
  background: #f3e2c8;
  color: #3c2415;
}

.market-hero .category-menu-panel {
  position: static;
  width: 100%;
  margin-top: 6px;
  box-shadow: none;
}

.market-hero .nav-links a:hover {
  background: #f4e5cf;
}

.market-hero .seller-btn,
.market-hero .admin-btn,
.market-hero .logout-btn {
  color: #ffffff !important;
  text-align: center;
}

.market-hero .seller-btn {
  background: #7a4b1d;
}

.market-hero .admin-btn {
  background: #a86e18;
}

.market-hero .logout-btn {
  background: #7f1d1d;
}

.hero-shell {
  grid-template-columns: 1fr;
  gap: 18px;
}

.hero-copy {
  order: 1;
}

.hero-promo-stack {
  order: 2;
  gap: 14px;
}

.hero-tag {
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(255, 248, 239, 0.12);
  color: #f9d892;
  font-size: 0.76rem;
  line-height: 1.3;
}

.hero-copy h1 {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: 2rem;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 100%;
  color: rgba(255, 248, 239, 0.90);
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero-search {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
  padding: 8px;
  border: 1px solid rgba(255, 248, 239, 0.16);
  border-radius: 18px;
  background: rgba(255, 248, 239, 0.14);
}

.hero-search input {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 0.95rem;
}

.hero-search button {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  font-size: 0.94rem;
}

.hero-quick-links {
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.hero-quick-links .primary-btn,
.hero-quick-links .secondary-btn {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  text-align: center;
}

.promo-slider-card {
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
}

.promo-slide span {
  margin-bottom: 10px;
  font-size: 0.72rem;
}

.promo-slide h3 {
  max-width: 100%;
  font-size: 1.55rem;
  line-height: 1.06;
}

.promo-slide p {
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.65;
}

.promo-image-marquee {
  border-radius: 18px;
}

.promo-image-track {
  gap: 10px;
  padding: 10px;
}

.promo-image-card {
  width: 118px;
  height: 80px;
  border-radius: 16px;
  padding: 10px;
}

.promo-image-card span {
  font-size: 0.76rem;
}

.mini-market-stats {
  grid-template-columns: 1fr;
  gap: 10px;
}

.mini-market-stats div {
  min-height: auto;
  padding: 14px;
  border-radius: 18px;
}

.catalogue-strip {
  margin-top: -8px;
  margin-bottom: 42px;
}

.catalogue-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.catalogue-card {
  min-height: auto;
  padding: 18px 16px;
  border-radius: 20px;
}

.catalogue-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--yk-brown);
  color: var(--yk-gold-soft);
}

.catalogue-card h3 {
  color: var(--yk-brown);
  font-size: 1.02rem;
}

.catalogue-card p {
  color: var(--yk-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.market-banner-row {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 42px;
}

.market-banner {
  min-height: auto;
  padding: 22px 18px;
  border-radius: 22px;
}

.primary-banner {
  background:
    radial-gradient(circle at right, rgba(235, 201, 136, 0.20), transparent 32%),
    linear-gradient(135deg, #2f1b10, #6b4321);
}

.ad-banner {
  background:
    radial-gradient(circle at right, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #8a5b18, #c58b25);
}

.market-banner h3 {
  font-size: 1.45rem;
  line-height: 1.14;
}

.market-banner p {
  font-size: 0.94rem;
  line-height: 1.65;
}

.collection-section {
  margin: 0 auto 42px;
}

.bale-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.marketplace-product-card {
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(36, 21, 13, 0.08);
}

.marketplace-product-card:hover {
  transform: none;
}

.marketplace-product-card .product-image-wrap {
  height: 210px;
  margin-bottom: 10px;
  border-radius: 16px;
}

.marketplace-product-card .product-image-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(82px, 0.65fr);
  gap: 7px;
  padding: 10px 10px 0;
}

.marketplace-product-card .product-grid-photo-main {
  min-height: 205px;
}

.marketplace-product-card .card-content {
  padding: 16px;
}

.marketplace-product-card .card-top {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.marketplace-product-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.marketplace-product-card .status {
  padding: 7px 10px;
  font-size: 0.74rem;
}

.marketplace-product-card .price {
  margin: 12px 0;
  color: var(--yk-brown);
  font-size: 1.25rem;
}

.product-meta-line {
  gap: 7px;
  margin: 12px 0 4px;
}

.product-chip {
  min-height: 30px;
  padding: 6px 10px;
  background: #f3e8d7;
  color: #6b4a2f;
  font-size: 0.74rem;
}

.marketplace-product-card button {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--yk-gold), #b9802d);
  color: var(--yk-dark);
  font-size: 0.92rem;
}

.marketplace-product-card .card-actions {
  gap: 8px;
}

.seller-mini-profile {
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px;
  border-radius: 14px;
  background: #fcf4e8;
}

.seller-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3c2415, #8a5b18);
}

.coming-category-card {
  padding: 22px 18px;
  border-radius: 20px;
}

.contact-banner {
  display: grid;
  gap: 14px;
  margin: 0 auto 42px;
  padding: 22px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #4e2f1b, #8c5a2a);
  text-align: left;
}

.contact-banner h2 {
  font-size: 1.4rem;
  line-height: 1.15;
}

.contact-banner p {
  font-size: 0.94rem;
  line-height: 1.6;
}

.contact-banner .primary-btn {
  width: 100%;
  text-align: center;
}

.support-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.support-launcher-btn,
.support-live-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  padding: 10px 15px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.25);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.support-live-chat-btn {
  background: #ffffff;
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.35);
}

.support-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 20, 18, 0.58);
}

.support-modal.show {
  display: flex;
}

.support-modal-card {
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.support-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.support-modal-head span {
  display: block;
  margin-bottom: 5px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.support-modal-head h2 {
  color: #1f2937;
  font-size: 1.32rem;
  line-height: 1.2;
}

.support-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #edf7f5;
  color: #0f766e;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 800;
}

.support-form {
  display: grid;
  gap: 13px;
  padding: 18px;
}

.support-field {
  display: grid;
  gap: 7px;
}

.support-field label {
  color: #374151;
  font-size: 0.88rem;
  font-weight: 800;
}

.support-field input,
.support-field textarea {
  width: 100%;
  border: 1px solid #d7e3df;
  border-radius: 8px;
  padding: 11px 12px;
  color: #1f2937;
  font: inherit;
}

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

#supportWebsite {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.support-feedback {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.support-feedback.info {
  background: #edf7f5;
  color: #0f766e;
}

.support-feedback.success {
  background: #e7f7ef;
  color: #11613d;
}

.support-feedback.error {
  background: #fff0f0;
  color: #9f1d1d;
}

.support-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.support-secondary-btn,
.support-submit-btn {
  border: none;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
}

.support-secondary-btn {
  background: #eef2f1;
  color: #33413d;
}

.support-submit-btn {
  background: #0f766e;
  color: #ffffff;
}

.support-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

footer {
  padding: 20px 14px 28px;
  color: var(--yk-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

footer a {
  color: var(--yk-brown);
  font-weight: 800;
  text-decoration: none;
}

.policy-shell {
  width: min(980px, 92%);
  margin: 0 auto 60px;
}

.policy-hero {
  margin: 20px 0 22px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(212, 162, 76, 0.24), transparent 34%),
    linear-gradient(135deg, #2f1b10, #6b4321);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(36, 21, 13, 0.14);
}

.policy-hero span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #f9d892;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-hero h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 5vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.policy-hero p {
  max-width: 760px;
  color: rgba(255, 248, 239, 0.9);
  line-height: 1.75;
}

.policy-hero small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 248, 239, 0.74);
}

.policy-card {
  margin-bottom: 14px;
  padding: 20px;
  border: 1px solid var(--yk-border);
  border-radius: 22px;
  background: var(--yk-surface);
  box-shadow: 0 12px 26px rgba(36, 21, 13, 0.06);
}

.policy-card h2 {
  margin-bottom: 10px;
  color: var(--yk-brown);
  font-size: 1.18rem;
}

.policy-card p,
.policy-card li {
  color: var(--yk-muted);
  line-height: 1.75;
}

.policy-card p + p {
  margin-top: 10px;
}

.policy-card ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 18px;
}

.policy-card a {
  color: var(--yk-brown);
  font-weight: 800;
}

.policy-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.policy-actions .primary-btn,
.policy-actions .secondary-btn {
  text-align: center;
}

@media (min-width: 700px) {
  .market-hero {
    padding: 20px 5% 56px;
  }

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

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

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

  .mini-market-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-quick-links {
    flex-direction: row;
  }

  .hero-quick-links .primary-btn,
  .hero-quick-links .secondary-btn {
    width: auto;
  }

  .policy-actions {
    display: flex;
  }
}

@media (min-width: 980px) {
  .mobile-menu-btn {
    display: none;
  }

  .market-hero {
    padding: 24px 6% 72px;
  }

  .topbar {
    margin-bottom: 42px;
  }

  .market-hero .nav-links {
    position: static;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .market-hero .nav-links a {
    color: #fff8ef;
    padding: 9px 11px;
    font-size: 0.9rem;
  }

  .market-hero .category-menu {
    width: auto;
  }

  .market-hero .category-menu-btn {
    width: auto;
    border-radius: 999px;
    background: rgba(36, 21, 13, 0.46);
    color: #fff8ef;
    font-size: 0.9rem;
  }

  .market-hero .category-menu-panel {
    position: absolute;
    width: 230px;
    margin-top: 0;
    box-shadow: 0 18px 42px rgba(36, 21, 13, 0.22);
  }

  .market-hero .nav-links a:hover {
    background: rgba(255, 248, 239, 0.12);
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 30px;
  }

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

  .hero-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-search button {
    width: auto;
    min-width: 140px;
  }

  .catalogue-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .market-banner-row {
    grid-template-columns: 1.35fr 0.85fr;
  }

  .bale-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .contact-banner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .contact-banner .primary-btn {
    width: auto;
  }
}

@media (max-width: 380px) {
  .market-hero .logo span {
    font-size: 0.86rem;
  }

  .market-hero .logo img {
    width: 51px;
    height: 51px;
  }

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

  .hero-copy p,
  .section-header p,
  .market-banner p,
  .contact-banner p {
    font-size: 0.9rem;
  }

  .marketplace-product-card .card-content {
    padding: 14px;
  }

  .marketplace-product-card .product-image-wrap {
    height: 190px;
  }

  .marketplace-product-card .product-image-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-product-card .product-grid-photo-main {
    min-height: 180px;
  }

  .marketplace-product-card .product-grid-photo-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .marketplace-product-card .product-grid-photo-stack .product-grid-photo {
    height: 72px;
  }
}

/* Final nav contrast override: keep menu readable on light flyer backgrounds. */
.market-hero .nav-links a {
  background: rgba(255, 248, 239, 0.92);
  color: var(--yk-brown) !important;
  border: 1px solid rgba(60, 36, 21, 0.10);
}

.market-hero .nav-links a:hover {
  background: #f4e5cf;
}

.market-hero .seller-btn,
.market-hero .admin-btn,
.market-hero .logout-btn {
  color: #ffffff !important;
  border: none;
}

.market-hero .seller-btn {
  background: #5f381c !important;
}

.market-hero .admin-btn {
  background: #b7791f !important;
}

.market-hero .logout-btn {
  background: #7f1d1d !important;
}

@media (min-width: 980px) {
  .market-hero .nav-links a {
    background: rgba(255, 248, 239, 0.18);
    color: #fff8ef !important;
    border-color: rgba(255, 248, 239, 0.20);
  }

  .market-hero .nav-links a:hover {
    background: rgba(255, 248, 239, 0.30);
  }

  .market-hero .seller-btn,
  .market-hero .admin-btn,
  .market-hero .logout-btn {
    color: #ffffff !important;
  }
}

/* UI visibility guard: avoid hidden or white-on-white menu controls. */
.market-hero .topbar {
  position: relative;
  z-index: 1301;
}

.market-hero .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  line-height: 1.15;
  white-space: nowrap;
}

.market-hero .category-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

.market-hero .nav-links .hidden-nav-link {
  display: none !important;
}

.market-hero .nav-links .admin-btn,
.market-hero .nav-links .seller-btn {
  display: inline-flex !important;
  font-weight: 800;
}

@media (max-width: 979px) {
  .market-hero .nav-links {
    background: #fff8ef !important;
    border: 1px solid rgba(60, 36, 21, 0.16);
  }

  .market-hero .nav-links a {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    background: #f3e2c8 !important;
    color: #3c2415 !important;
    border: 1px solid rgba(60, 36, 21, 0.12);
    box-shadow: none;
  }

  .market-hero .category-menu-btn {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    background: #f3e2c8 !important;
    color: #3c2415 !important;
    border: 1px solid rgba(60, 36, 21, 0.12);
    box-shadow: none;
  }

  .market-hero .nav-links .seller-btn {
    background: #5f381c !important;
    color: #ffffff !important;
  }

  .market-hero .nav-links .admin-btn {
    background: #b7791f !important;
    color: #ffffff !important;
  }

  .market-hero .nav-links .logout-btn {
    background: #7f1d1d !important;
    color: #ffffff !important;
  }

  .mobile-menu-btn {
    background: #fff8ef !important;
    color: #3c2415 !important;
    border-color: rgba(60, 36, 21, 0.22);
  }
}

@media (min-width: 980px) {
  .market-hero .nav-links a {
    background: rgba(36, 21, 13, 0.46) !important;
    color: #fff8ef !important;
    border: 1px solid rgba(255, 248, 239, 0.22);
  }

  .market-hero .category-menu-btn {
    background: rgba(36, 21, 13, 0.46) !important;
    color: #fff8ef !important;
    border: 1px solid rgba(255, 248, 239, 0.22);
  }

  .market-hero .nav-links .seller-btn {
    background: #5f381c !important;
  }

  .market-hero .nav-links .admin-btn {
    background: #b7791f !important;
  }
}

/* Notifications */
.notifications-page {
  max-width: 1100px;
}

.compact-dashboard-menu {
  margin-bottom: 20px;
}

.compact-dashboard-menu.menu-closed {
  display: none;
}

.compact-dashboard-menu .compact-menu-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-toolbar {
  margin-bottom: 18px;
}

.notification-toolbar .card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.notification-toolbar h3 {
  margin: 0 0 6px;
  color: var(--yk-brown, #3c2415);
}

.notification-toolbar p {
  margin: 0;
  color: var(--yk-muted, #7b604a);
  line-height: 1.55;
}

.notifications-list {
  display: grid;
  gap: 14px;
}

.notification-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.notification-filter-btn {
  border: 1px solid rgba(60, 36, 21, 0.12);
  background: #fff8ef;
  color: #3c2415;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.notification-filter-btn.active {
  background: #3c2415;
  color: #ebc988;
}

.notification-group {
  display: grid;
  gap: 14px;
}

.notification-group-title {
  color: #3c2415;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 6px 0 -2px;
  text-transform: uppercase;
}

.notification-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(60, 36, 21, 0.10);
  border-radius: 22px;
  background: #fff8ef;
  box-shadow: 0 12px 28px rgba(36, 21, 13, 0.08);
}

.notification-card.unread {
  border-color: rgba(180, 121, 31, 0.42);
  background: linear-gradient(135deg, #fff8ef 0%, #fff1d7 100%);
}

.notification-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #3c2415;
  color: #ebc988;
  font-size: 1.15rem;
  font-weight: 900;
}

.notification-body {
  min-width: 0;
}

.notification-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.notification-card-head h3 {
  margin: 0;
  color: #24150d;
  font-size: 1.02rem;
  line-height: 1.3;
}

.notification-card-head span {
  flex-shrink: 0;
  color: #7b604a;
  font-size: 0.82rem;
}

.notification-body p {
  margin: 0;
  color: #5f4531;
  line-height: 1.65;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.notification-meta span,
.mark-read-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f3e2c8;
  color: #3c2415;
  font-size: 0.78rem;
  font-weight: 800;
}

.mark-read-btn {
  border: none;
  background: #b7791f;
  color: #ffffff;
  cursor: pointer;
}

.mark-read-btn.muted {
  background: #f3e2c8;
  color: #3c2415;
}

.mark-read-btn.danger {
  background: #9f1d1d;
  color: #ffffff;
}

.notification-empty {
  text-align: center;
}

@media (max-width: 640px) {
  .notification-toolbar .card-content {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-toolbar .primary-btn {
    width: 100%;
    text-align: center;
  }

  .notification-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-card {
    grid-template-columns: 40px 1fr;
    padding: 15px;
    border-radius: 18px;
  }

  .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .notification-card-head {
    flex-direction: column;
    gap: 4px;
  }
}

/* =========================
   REGISTRATION PAGE ONLY
========================= */

.register-card-shell {
  border-radius: 28px;
  overflow: hidden;
}

.register-form-modern {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.register-grid .full {
  grid-column: 1 / -1;
}

.seller-kyc-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(60, 36, 21, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #fffdf8 0%, #f8efe2 100%);
}

.seller-kyc-panel.hidden {
  display: none;
}

.seller-kyc-header span {
  display: inline-block;
  margin-bottom: 8px;
  color: #b7791f;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seller-kyc-header h3 {
  margin: 0 0 6px;
  color: #3c2415;
  font-size: 1.2rem;
}

.seller-kyc-header p {
  margin: 0;
  color: #7b604a;
  line-height: 1.6;
}

.register-form-modern .modern-field small.register-field-help {
  display: block;
  margin-top: 8px;
  color: #7b604a;
  line-height: 1.5;
  font-size: 0.86rem;
}

.register-form-modern input[type="file"] {
  width: 100%;
  min-height: 52px;
  border: 1px dashed #c89a4a;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fffaf3;
  color: #3c2415;
}

.register-form-modern input[type="file"]::file-selector-button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  margin-right: 12px;
  background: #3c2415;
  color: #fff8ef;
  font-weight: 700;
  cursor: pointer;
}

.register-form-modern .submit-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #d4a24c, #b9802d);
  color: #24150d;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.register-form-modern .submit-btn:hover {
  transform: translateY(-1px);
}

.register-form-modern .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

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

  .seller-kyc-panel {
    padding: 18px;
    border-radius: 20px;
  }
}
