/* YardCo professional design pass
   Loaded after page styles to normalize the app into a calmer SaaS interface. */

:root {
  --green: #0b804d;
  --green-dark: #08663d;
  --green-soft: #eef7f2;
  --blue: #315d7a;
  --blue-soft: #f0f5f7;
  --off-white: #fcf9f1;
  --surface: #ffffff;
  --surface-alt: #f7f4eb;
  --border: #e5ded2;
  --border-strong: #d7cebf;
  --text: #171b18;
  --text-soft: #667269;
  --danger: #a43a3a;
  --warning: #986000;
  --success: #0b804d;

  --shadow-sm: 0 1px 2px rgba(17, 24, 20, 0.04), 0 8px 18px rgba(17, 24, 20, 0.04);
  --shadow-md: 0 1px 2px rgba(17, 24, 20, 0.05), 0 12px 24px rgba(17, 24, 20, 0.06);
  --shadow-lg: var(--shadow-md);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --container: 1180px;
}

* {
  letter-spacing: 0 !important;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--off-white);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.container,
.navbar-inner {
  width: min(1240px, calc(100% - 40px));
}

.page-section {
  padding: 28px 0 42px;
}

.surface-card,
.sidebar-card,
.product-card,
.listing-card,
.notice-card,
.hub-request-card,
.hub-item-card,
.settings-panel,
.mini-panel,
.wallet-balance-card,
.notifications-summary,
.notifications-feed-card,
.checkout-card,
.auth-card,
.staff-card,
.wishlist-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
}

.surface-card .surface-card,
.mini-panel.surface-card {
  box-shadow: none !important;
}

.section-eyebrow {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title,
.home-market-title,
.home-section-title,
.notifications-title,
.settings-title,
.product-title,
.auth-card-title,
.staff-title,
.shop-profile-title,
.hub-section-title,
.settings-heading,
.sell-heading,
.checkout-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 2.5vw, 2.7rem) !important;
  line-height: 1.15 !important;
  margin-bottom: 10px !important;
}

.section-subtitle,
.muted,
.product-card-meta,
.listing-description,
.notice-copy p,
.shop-profile-copy,
.hub-request-note {
  color: var(--text-soft);
}

.section-subtitle {
  max-width: 680px;
  font-size: 1.03rem;
  line-height: 1.55;
}

.hero-shell,
.browse-hero-shell,
.hub-hero-shell,
.hub-list-hero-shell,
.onboarding-hero-shell,
.auth-brand-panel,
.shop-public-profile-card,
.yard-profile-banner,
.yard-avatar,
.hub-request-media,
.hub-item-media,
.checkout-item-media,
.product-seller-card {
  background: var(--off-white) !important;
  background-image: none !important;
}

.auth-brand-panel::before,
.shop-profile-card::before {
  display: none !important;
}

.navbar {
  background: rgba(252, 249, 241, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.navbar-inner {
  min-height: 68px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
}

.brand {
  font-size: 1.18rem;
  white-space: nowrap;
}

.nav-links {
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.nav-link:hover,
.nav-link.active {
  background: var(--green-soft);
  color: var(--green);
}

.nav-actions {
  gap: 8px;
}

.nav-actions a[href="notifications.html"] {
  position: relative;
}

#navNotificationCount {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
}

.nav-actions a.has-unread {
  border-color: #cbe6d8;
  color: var(--green);
  background: #fff;
}

.btn {
  min-height: 40px;
  border-radius: var(--radius-md);
  transform: none !important;
  box-shadow: none !important;
  font-size: 0.9rem;
}

.btn-chip,
.btn-lg {
  min-height: 42px;
  padding: 10px 15px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-secondary,
.btn-dark {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover,
.btn-dark:hover {
  background: #fff;
  border-color: var(--green);
  color: var(--green);
}

.input,
.select,
.textarea {
  min-height: 42px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border-color: var(--border-strong);
  background: #fff;
  font-size: 0.94rem;
}

.textarea {
  min-height: 104px;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 128, 77, 0.1);
}

.form-label {
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text);
}

.badge,
.chip,
.status-pill,
.deadline-pill,
.hub-item-pill {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1;
}

.badge-outline,
.chip {
  background: #fff;
  color: var(--text-soft);
  border: 1px solid var(--border);
}

.chip.active,
.badge-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary.is-in-cart {
  background: var(--green-soft);
  color: var(--green);
  border-color: #cbe6d8;
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #d7e3e8;
}

.status-pending {
  background: #fff7e5;
  color: var(--warning);
  border: 1px solid #ead7a4;
}

.status-approved,
.status-live,
.status-reviewed {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #cbe6d8;
}

.status-hub {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #d7e3e8;
}

.status-rejected,
.status-delisted {
  background: #fbebeb;
  color: var(--danger);
  border: 1px solid #ebc7c7;
}

.stats-row,
.home-highlights,
.listings-stats-grid,
.wallet-summary-grid {
  gap: 12px;
}

.stat-pill,
.listings-stat-card,
.mini-summary-card {
  min-width: 0;
  padding: 16px;
  border-radius: var(--radius-lg) !important;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.stat-pill h4,
.listings-stat-card h3,
.wallet-balance-card strong {
  font-size: 1.35rem !important;
  line-height: 1.2;
}

.home-market-search,
.home-onboarding-cta,
.listings-toolbar,
.hub-toolbar,
.hub-list-toolbar,
.browse-search-card,
.settings-hero-card,
.sell-hero-card {
  padding: 20px !important;
  border-radius: var(--radius-lg) !important;
}

.product-grid,
.listings-grid,
.hub-card-list,
.hub-item-grid,
.notifications-feed,
.settings-content-stack,
.transaction-list {
  gap: 14px !important;
}

.product-card,
.listing-card,
.hub-request-card,
.hub-item-card,
.home-category-card {
  transition: border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.product-card:hover,
.listing-card:hover,
.hub-request-card:hover,
.hub-item-card:hover,
.home-category-card:hover {
  transform: none !important;
  border-color: var(--border-strong) !important;
  box-shadow: var(--shadow-sm) !important;
}

.product-card-body,
.listing-card-body {
  padding: 14px !important;
}

.product-card-media,
.listing-card-media {
  background: #f1eee6;
}

.product-card-badges {
  top: 10px;
  left: 10px;
  gap: 6px;
}

.product-card-heart {
  top: 10px;
  right: 10px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-soft);
  box-shadow: none;
  font-size: 1rem;
  line-height: 1;
  font-family: var(--font-heading);
}

.product-card-heart .save-heart {
  color: var(--green);
  font-size: 1.05rem;
  line-height: 1;
}

.product-card-heart.is-saved {
  border-color: #cbe6d8;
  background: var(--green-soft);
}

.product-card-title,
.listing-card-top h3 {
  font-size: 1.05rem !important;
  line-height: 1.25 !important;
  margin-bottom: 6px;
}

.product-card-title.sm {
  font-size: 1rem !important;
}

.product-card-price,
.listing-price {
  font-size: 1.08rem !important;
  margin-bottom: 6px;
}

.product-card-actions,
.listing-actions {
  gap: 8px !important;
  margin-top: 12px !important;
}

.listings-toolbar,
.hub-toolbar {
  gap: 16px !important;
}

.listings-tabs,
.notifications-filter-row,
.settings-nav-list {
  gap: 10px !important;
}

.listings-tabs .chip,
.notifications-filter-row .chip,
.settings-nav-list .chip,
.hub-toolbar .select,
.hub-toolbar .btn {
  min-height: 42px !important;
  padding: 10px 14px !important;
  font-size: 0.88rem !important;
}

.sidebar-card {
  padding: 18px !important;
}

.filter-title,
.sidebar-title {
  font-size: 1.05rem !important;
  margin-bottom: 12px;
}

.filter-group + .filter-group {
  margin-top: 18px;
}

.empty-state {
  padding: 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.empty-state h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.empty-state p {
  max-width: 58ch;
  line-height: 1.5;
}

.product-grid > .empty-state,
.listings-grid > .empty-state,
.shop-featured-grid > .empty-state {
  grid-column: 1 / -1;
}

.browse-sticky-search-wrap {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  margin-top: 0 !important;
  padding: 14px 0 20px !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

.browse-search-card {
  max-width: none !important;
  margin: 0 !important;
  box-shadow: var(--shadow-sm) !important;
}

.browse-search-top {
  margin-bottom: 12px !important;
}

.browse-chip-row {
  justify-content: flex-start !important;
}

/* Page-specific tightening */

.auth-layout {
  width: min(1080px, calc(100% - 40px)) !important;
  min-height: 100vh;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1fr) !important;
  gap: 0;
}

.auth-brand-panel {
  color: var(--text) !important;
  border-right: 1px solid var(--border);
}

.auth-brand-inner {
  padding: 56px 36px !important;
  max-width: 520px;
}

.auth-brand-inner h1 {
  font-size: clamp(1.9rem, 3vw, 2.7rem) !important;
  line-height: 1.15 !important;
  margin: 16px 0 12px !important;
  max-width: 520px;
}

.auth-brand-inner p,
.auth-panel > p {
  font-size: 0.98rem !important;
  color: var(--text-soft) !important;
}

.auth-plan-grid {
  margin-top: 22px !important;
  gap: 12px !important;
}

.auth-plan-card {
  padding: 16px !important;
  border-radius: var(--radius-lg) !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
  backdrop-filter: none !important;
}

.auth-plan-card h3,
.auth-panel h2 {
  font-size: 1.25rem !important;
}

.auth-form-panel {
  background: #fff !important;
}

.auth-form-wrap {
  width: min(520px, calc(100% - 40px)) !important;
}

.auth-tabs {
  gap: 8px !important;
  margin-bottom: 22px !important;
}

.auth-tab {
  min-height: 40px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  font-size: 0.9rem !important;
}

.auth-tab.active {
  background: var(--green) !important;
  color: #fff !important;
  border-color: var(--green) !important;
}

.checkout-hero,
.settings-hero,
.notifications-hero,
.sell-hero,
.staff-hero,
.wishlist-hero,
.listings-hero,
.hub-hero-grid,
.hub-list-hero-grid {
  gap: 16px !important;
  margin-bottom: 16px !important;
}

.checkout-page,
.settings-page {
  padding-top: 26px !important;
}

.checkout-hero {
  grid-template-columns: minmax(0, 1fr) 360px !important;
}

.checkout-title,
.settings-title,
.notifications-title,
.sell-title,
.wishlist-title,
.listings-hero .section-title,
.staff-hero .section-title,
.hub-hero-grid .section-title,
.hub-list-hero-grid .section-title {
  max-width: 760px !important;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1.05fr) 420px !important;
  gap: 20px !important;
}

.checkout-status-card,
.checkout-card,
.settings-hero-card,
.sell-hero-card,
.notifications-summary {
  padding: 22px !important;
}

.checkout-heading,
.settings-heading {
  font-size: 1.35rem !important;
  margin-bottom: 10px !important;
}

.checkout-item,
.delivery-choice,
.wallet-pay-card,
.checkout-empty {
  border-radius: var(--radius-lg) !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

.checkout-item {
  grid-template-columns: 96px minmax(0, 1fr) auto !important;
  padding: 16px !important;
}

.checkout-thumb,
.checkout-thumb.alt {
  border-radius: var(--radius-md) !important;
  background-color: #f1eee6 !important;
  background-size: cover !important;
  background-position: center !important;
}

.product-detail-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr) 280px !important;
  gap: 18px !important;
}

.product-gallery,
.product-summary,
.yardstick-card {
  padding: 18px !important;
}

.seller-card {
  padding: 0 !important;
  overflow: hidden !important;
}

.product-main-image,
.thumb,
.seller-avatar,
.yardstick-breakdown div,
.admin-photo-preview img {
  border-radius: var(--radius-lg) !important;
  background: #f1eee6 !important;
  background-image: none !important;
}

.seller-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.seller-card-header .section-eyebrow {
  margin: 0;
}

.seller-card .seller-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.seller-card .seller-avatar {
  width: 48px !important;
  height: 48px !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid #cbe6d8 !important;
  background: var(--green-soft) !important;
  background-image: none !important;
  color: var(--green) !important;
  font-size: 1rem !important;
}

.seller-card .seller-top h3 {
  margin: 0 0 2px !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
}

.seller-card .seller-top p {
  margin: 0 !important;
  color: var(--text-soft) !important;
  font-size: 0.88rem !important;
}

.seller-card .seller-stats {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin: 0 !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.seller-card .seller-stats div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 11px 16px !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: #fff !important;
  background-image: none !important;
  text-align: left !important;
}

.seller-card .seller-stats div:last-child {
  border-bottom: none !important;
}

.seller-card .seller-stats span {
  color: var(--text-soft) !important;
  font-size: 0.86rem !important;
}

.seller-card .seller-stats strong {
  color: var(--text) !important;
  font-size: 0.95rem !important;
  text-align: right;
}

.seller-card .seller-actions {
  display: grid !important;
  gap: 8px !important;
  padding: 16px !important;
}

.product-summary h1 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem) !important;
  line-height: 1.18 !important;
  margin: 10px 0 8px !important;
}

.product-price-main {
  font-size: 1.45rem !important;
}

.yardstick-score span {
  font-size: 2.3rem !important;
}

.shop-banner {
  position: relative !important;
  min-height: 260px !important;
  height: auto !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  border-radius: var(--radius-lg) !important;
  border: 1px solid rgba(17, 24, 20, 0.18) !important;
  box-shadow: var(--shadow-sm) !important;
  background: #26352f !important;
}

.shop-banner img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.shop-banner-overlay {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, rgba(7, 15, 11, 0.82) 0%, rgba(7, 15, 11, 0.58) 46%, rgba(7, 15, 11, 0.24) 100%) !important;
}

.shop-banner-content {
  position: relative !important;
  z-index: 2 !important;
  width: min(720px, calc(100% - 40px)) !important;
  margin: 0 !important;
  padding: 28px !important;
  color: #fff !important;
  text-align: left !important;
  align-items: flex-start !important;
}

.shop-banner-content h1,
.shop-listing-title {
  font-size: clamp(1.8rem, 3vw, 2.55rem) !important;
}

.shop-banner-content h1 {
  margin: 10px 0 8px !important;
}

.shop-banner-content p {
  max-width: 58ch !important;
  color: rgba(255, 255, 255, 0.86) !important;
}

.shop-banner-content .badge-soft,
.shop-banner-stats .badge {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  backdrop-filter: none !important;
}

.shop-banner-stats {
  justify-content: flex-start !important;
  gap: 8px !important;
  margin-top: 18px !important;
}

.shop-layout {
  grid-template-columns: minmax(0, 1fr) 300px !important;
}

.shop-sidebar {
  order: 2;
  gap: 16px !important;
}

.shop-layout > main {
  order: 1;
}

.shop-profile-card {
  background: #fff !important;
  background-image: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.shop-profile-card .shop-profile-top {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) !important;
  align-items: center !important;
  justify-items: start !important;
  text-align: left !important;
  gap: 12px !important;
  padding: 16px !important;
  border-bottom: 1px solid var(--border) !important;
}

.shop-profile-card .seller-avatar {
  width: 48px !important;
  height: 48px !important;
  border: 1px solid #cbe6d8 !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  background: var(--green-soft) !important;
  color: var(--green) !important;
  font-size: 1rem !important;
}

.shop-profile-top h3 {
  font-size: 1rem !important;
  margin-bottom: 2px !important;
  overflow-wrap: anywhere;
}

.shop-profile-top p {
  font-size: 0.86rem !important;
  line-height: 1.35 !important;
  color: var(--text-soft) !important;
}

.shop-profile-card .seller-stats {
  display: grid !important;
  grid-template-columns: 1fr !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.shop-profile-card .seller-stats div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: #fff !important;
  text-align: left !important;
}

.shop-profile-card .seller-stats div:last-child {
  border-bottom: none !important;
}

.shop-profile-card .seller-stats strong {
  order: 2;
  font-size: 1rem !important;
  color: var(--text) !important;
}

.shop-profile-card .seller-stats span {
  order: 1;
  font-size: 0.86rem !important;
  color: var(--text-soft) !important;
}

.shop-profile-card .seller-actions {
  display: grid !important;
  gap: 8px !important;
  padding: 16px !important;
  border-top: 1px solid var(--border) !important;
}

.onboarding-progress-fill {
  background: var(--green) !important;
  background-image: none !important;
}

.hub-request-media,
.hub-item-media,
.hub-code-box {
  border-radius: var(--radius-md) !important;
  background: #f1eee6 !important;
  border: 1px solid var(--border) !important;
}

.notifications-heading,
.hub-request-title,
.hub-item-title,
.wallet-methods-head h3,
.mini-panel h3 {
  font-size: 1.05rem !important;
}

.notifications-layout {
  grid-template-columns: 340px minmax(0, 1fr) !important;
  gap: 20px !important;
}

.notifications-filter-card {
  padding: 22px !important;
}

.notifications-filter-card .sidebar-title {
  margin-bottom: 16px !important;
}

.notifications-filter-row .chip {
  justify-content: flex-start;
  width: 100%;
}

.notice-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: var(--radius-md) !important;
  background: var(--green-soft) !important;
  color: var(--green) !important;
}

.notice-title {
  font-size: 1rem !important;
}

.settings-layout {
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 20px !important;
}

.settings-nav-list {
  gap: 8px !important;
}

.settings-panel {
  padding: 24px !important;
}

.settings-grid {
  gap: 18px !important;
}

.wallet-balance-card {
  padding: 18px !important;
}

.wallet-balance-card strong {
  font-size: 1.55rem !important;
}

.listings-toolbar-actions .input {
  min-width: 220px !important;
}

@media (max-width: 980px) {
  .auth-layout,
  .product-detail-layout,
  .settings-layout,
  .shop-layout {
    grid-template-columns: 1fr !important;
    width: min(100%, calc(100% - 24px)) !important;
  }

  .shop-sidebar,
  .shop-layout > main {
    order: initial;
  }

  .shop-banner {
    min-height: 300px !important;
  }

  .shop-banner-content {
    width: 100% !important;
    padding: 22px !important;
  }
}

.footer {
  margin-top: 18px;
  padding: 20px 0;
  background: transparent;
  border-top: 1px solid var(--border);
}

.footer h3 {
  font-size: 1rem;
}

.footer-links a {
  padding: 7px 10px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
}

@media (max-width: 980px) {
  .navbar-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 12px 0;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container,
  .navbar-inner {
    width: min(var(--container), calc(100% - 24px));
  }

  .section-title,
  .home-market-title,
  .home-section-title {
    font-size: 1.65rem !important;
  }
}
