:root {
  --ink: #102b4e;
  --navy: #082b5c;
  --blue: #087da6;
  --green: #52a319;
  --green-dark: #287c25;
  --mist: #eef6f3;
  --cloud: #f7fafc;
  --line: #d8e4e8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 43, 79, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
a.current-page-link:not(.brand):not(.button):not(.active) { color: var(--green-dark); font-weight: 850; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.button.current-page-link { color: var(--white); border-color: var(--green-dark); background: var(--green-dark); box-shadow: 0 0 0 3px rgba(82,163,25,.18); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 20; background: var(--white); padding: 10px 14px; }
.skip-link:focus { left: 10px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 70px; height: 70px; object-fit: contain; transform: scale(1.08); }
.brand span { display: grid; line-height: 1.2; }
.brand strong { color: var(--navy); font-size: 1.06rem; }
.brand small { color: #5f7385; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--green-dark); }
.site-nav a.active { position: relative; color: var(--green-dark); }
.site-nav a.active::after { content: ""; position: absolute; right: 0; bottom: -9px; left: 0; height: 3px; border-radius: 999px; background: var(--green); }
.site-nav .nav-login { padding: 11px 18px; color: var(--white); background: var(--navy); border-radius: 999px; }
.site-nav .nav-login:hover { color: var(--white); background: var(--green-dark); }
.site-nav .nav-login.active { color: var(--white); background: var(--green-dark); box-shadow: 0 0 0 3px rgba(82,163,25,.18); }
.site-nav .nav-login.active::after { display: none; }
.nav-form { margin: 0; }
.nav-form button { padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.nav-form button:hover { color: var(--green-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 9px 13px; font: inherit; font-weight: 800; color: var(--navy); }
.flash { padding: 12px 0; font-weight: 750; }
.flash-success { color: #155f2e; background: #ddf4e4; }
.flash-error { color: #8b1e27; background: #fde8e8; }

.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(255,255,255,.80) 0%, rgba(246,252,248,.76) 50%, rgba(238,249,248,.70) 100%), url('/images/okd-food-collage-background.png') center / cover no-repeat; }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; right: -220px; top: -230px; border: 85px solid rgba(8, 43, 92, .055); border-radius: 50%; }
.hero-grid { min-height: 555px; padding-block: 58px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 58px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.1; letter-spacing: -.035em; }
h1 { max-width: 700px; margin-bottom: 20px; color: var(--navy); font-size: clamp(2.45rem, 4.25vw, 4.35rem); line-height: 1.06; }
h2 { margin-bottom: 18px; color: var(--navy); font-size: clamp(2rem, 3.5vw, 3.35rem); }
h3 { margin-bottom: 12px; color: var(--navy); font-size: 1.55rem; }
.hero-intro { max-width: 650px; margin: 0; color: #405f70; font-size: 1.08rem; line-height: 1.65; }
.hero-copy { padding: clamp(24px, 3vw, 38px); border: 1px solid rgba(255,255,255,.88); border-radius: 28px; background: rgba(255,255,255,.72); box-shadow: 0 20px 55px rgba(8,43,92,.10); backdrop-filter: blur(5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 12px 22px; border: 2px solid transparent; border-radius: 999px; font-weight: 850; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--green-dark); }
.button-primary:hover { background: var(--navy); }
.button-secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-secondary:hover { color: var(--white); background: var(--navy); }
.hero-mark { width: min(100%, 410px); justify-self: center; padding: 18px; border: 1px solid rgba(255,255,255,.92); border-radius: 30px; background: rgba(255,255,255,.82); box-shadow: var(--shadow); }
.hero-mark img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; }

.pathways { padding-block: 100px; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.path-card { min-height: 330px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.path-card::before { content: ""; width: 54px; height: 6px; margin-bottom: 27px; border-radius: 999px; background: var(--green); }
.path-shipping::before { background: var(--blue); }
.path-courier::before { background: var(--navy); }
.card-number { align-self: flex-end; color: #8aa1ad; font-weight: 900; }
.path-card p { color: #577080; }
.path-card a { margin-top: auto; color: var(--green-dark); font-weight: 850; text-decoration: none; }

.network-band { padding-block: 85px; color: var(--white); background: linear-gradient(120deg, var(--navy), #07527f); }
.network-band h2, .network-band .eyebrow { color: var(--white); }
.network-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats div { padding: 20px 8px; text-align: center; border-left: 1px solid rgba(255,255,255,.28); }
.stats strong { display: block; font-size: 2.5rem; line-height: 1; }
.stats span { display: block; margin-top: 9px; color: #c9e5ec; font-size: .83rem; }

.closing { padding-block: 100px; display: flex; align-items: center; justify-content: space-between; gap: 70px; }
.closing > div { max-width: 760px; }
.closing p:not(.eyebrow) { color: #577080; font-size: 1.08rem; }
.simple-main { min-height: calc(100vh - 280px); padding-block: 90px; background: var(--cloud); }
.simple-panel { max-width: 850px; padding: 55px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.simple-panel p:not(.eyebrow) { margin-bottom: 30px; color: #577080; font-size: 1.12rem; }

.account-main, .dashboard-main { min-height: calc(100vh - 170px); padding-block: 70px 90px; background: linear-gradient(145deg, rgba(246,250,247,.94), rgba(237,245,248,.92)), url('/images/okd-food-collage-background.png') center / cover fixed no-repeat; }
.account-heading, .dashboard-heading { margin-bottom: 34px; }
.account-heading h1, .dashboard-heading h1 { max-width: 820px; margin-bottom: 18px; font-size: clamp(2.15rem, 3.3vw, 3.35rem); line-height: 1.08; }
.account-panel h1 { max-width: 720px; margin-bottom: 18px; font-size: clamp(2.05rem, 3.1vw, 3.15rem); line-height: 1.08; }
.account-heading > p:last-child, .dashboard-heading > p:last-child, .form-intro { max-width: 720px; color: #577080; font-size: 1.08rem; }
.account-choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.account-choice { min-height: 235px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.account-choice:hover { transform: translateY(-3px); border-color: var(--green); }
.account-choice > span { color: var(--green-dark); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.account-choice h2 { margin: 30px 0 10px; font-size: 1.7rem; }
.account-choice p { margin: 0; color: #577080; }
.account-panel { width: min(920px, calc(100% - 40px)); margin-inline: auto; padding: clamp(28px, 5vw, 58px); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.compact-panel { max-width: 590px; }
.account-form { display: grid; gap: 20px; margin-top: 30px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.account-form label { display: grid; gap: 8px; color: var(--navy); font-weight: 800; }
.account-form label small { color: #6c808d; font-weight: 500; }
.account-form label small.form-helper-placeholder { visibility: hidden; }
.account-form input:not([type="checkbox"]), .account-form textarea, .account-form select { width: 100%; padding: 13px 14px; border: 1px solid #bdcdd4; border-radius: 9px; color: var(--ink); background: var(--white); font: inherit; }
.account-form input:focus, .account-form textarea:focus, .account-form select:focus { outline: 3px solid rgba(8, 125, 166, .18); border-color: var(--blue); }
.password-field { position: relative; }
.password-field input { padding-right: 52px !important; }
.password-toggle { position: absolute; top: 50%; right: 8px; width: 38px; height: 38px; padding: 8px; transform: translateY(-50%); border: 0; border-radius: 8px; color: #5f7482; background: transparent; cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { color: var(--navy); background: var(--mist); }
.password-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-slash { display: none; }
.password-toggle.is-visible .eye-slash { display: block; }
.form-wide { grid-column: 1 / -1; }
.form-section-title { margin: 12px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 1.45rem; }
.form-help { margin: 0; color: #607784; }
.service-plan-note { margin: 24px 0 0; padding: 16px 18px; border-left: 5px solid var(--blue); border-radius: 8px; color: #405f70; background: #eef8fb; }
.membership-status-note { margin-top: 10px; color: #405f70 !important; font-size: 1rem !important; font-weight: 700; }
.checkout-security-note { margin-top: 22px; color: #607784; font-size: .92rem; }
.profile-panel { max-width: 1040px; }
.address-fieldset { display: grid; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.address-fieldset legend { padding: 0 8px; color: var(--navy); font-size: 1rem; font-weight: 850; }
.address-fieldset[hidden] { display: none; }
.same-address-option { padding: 16px 18px; border: 1px solid #b9d9c4; border-radius: 12px; background: #f0faf3; }
.market-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--cloud); }
.market-options small { display: block; color: #6d818d; }
.check-label { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px !important; font-weight: 600 !important; }
.check-label input { margin-top: 6px; }
.form-errors { margin-top: 25px; padding: 16px 18px; border-left: 5px solid #b4232d; border-radius: 8px; color: #7c1b23; background: #fff0f0; }
.form-errors ul { margin-bottom: 0; }
.account-note { margin: 25px 0 0; color: #577080; }
.account-note a { color: var(--green-dark); font-weight: 800; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dashboard-card { position: relative; min-height: 220px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.dashboard-card h2 { padding-right: 95px; font-size: 1.65rem; }
.dashboard-card p { color: #577080; }
.admin-card { border-top: 5px solid var(--navy); }
.status { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-card > .status { position: absolute; top: 25px; right: 25px; }
.status-pending { color: #765000; background: #fff0ba; }
.status-approved { color: #155f2e; background: #ddf4e4; }
.status-rejected { color: #8b1e27; background: #fde0e3; }
.application-list { display: grid; gap: 22px; }
.application-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 35px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.application-summary h2 { margin: 12px 0 20px; font-size: 1.8rem; }
.application-summary p { margin: 7px 0; }
.application-detail { padding-left: 34px; border-left: 1px solid var(--line); }
.application-detail p { color: #577080; white-space: pre-wrap; }
.application-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button-danger { color: var(--white); background: #a52630; }
.button-danger:hover { background: #761820; }
.card-actions, .portal-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-nav { margin-top: 26px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.portal-nav a { padding: 8px 13px; color: var(--navy); font-weight: 800; text-decoration: none; border-radius: 8px; }
.portal-nav a:hover,.portal-nav a.active { color: var(--white); background: var(--navy); }
.portal-nav a.active { box-shadow: inset 0 -3px 0 var(--green); }
.portal-nav .portal-back { margin-left: auto; color: #5c7180; }
.portal-create { margin-top: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.metric-grid article { padding: 25px; border-radius: 18px; color: var(--white); background: linear-gradient(135deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.metric-grid strong { display: block; font-size: 2.5rem; line-height: 1; }
.metric-grid span { display: block; margin-top: 9px; color: #d8edf2; font-weight: 700; }
.portal-cards { margin-top: 22px; }
.product-list { display: grid; gap: 16px; }
.product-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.product-thumb { width: 120px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 12px; color: #718692; background: var(--cloud); font-size: .78rem; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row h2 { margin: 8px 0; font-size: 1.5rem; }
.product-row p { margin: 5px 0; color: #577080; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.product-actions form { margin: 0; }
.filter-nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.filter-nav a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: var(--white); font-weight: 800; text-decoration: none; }
.filter-nav a:hover, .filter-nav a.active { color: var(--white); border-color: var(--navy); background: var(--navy); }
.admin-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.admin-metrics article { padding: 24px; border-radius: 18px; color: var(--white); background: linear-gradient(135deg,var(--navy),var(--blue)); box-shadow: var(--shadow); }
.admin-metrics strong { display: block; font-size: 2.35rem; line-height: 1; }
.admin-metrics span { display: block; margin-top: 9px; color: #d8edf2; font-weight: 750; }
.admin-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.stacked-links { display: grid; gap: 10px; }
.stacked-links a { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); font-weight: 800; text-decoration: none; background: var(--cloud); }
.stacked-links a:hover,.stacked-links a.current-page-link { color: var(--white); background: var(--navy); box-shadow: inset 0 -3px 0 var(--green); }
.audit-list p { display: grid; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.audit-list small { color: #70848f; }
.admin-form-card { min-height: 0; }
.admin-form-card h2 { padding-right: 0; }
.admin-record-list { display: grid; gap: 16px; }
.admin-record { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.admin-record label { display: grid; gap: 6px; color: var(--navy); font-weight: 750; }
.admin-record input:not([type="checkbox"]),.admin-record textarea,.admin-record select { width: 100%; padding: 10px 12px; border: 1px solid #bdcdd4; border-radius: 8px; font: inherit; }
.record-heading { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.record-heading span { color: #6b7f8b; font-size: .9rem; }
.review-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 22px; }
.review-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.category-options { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.category-options legend { padding: 0 7px; color: var(--navy); font-weight: 850; }

.site-footer { padding-block: 42px; color: #d8e8ed; background: #071f3b; }
.footer-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: var(--white); font-size: 1.1rem; }
.footer-inner p { margin: 4px 0 0; font-size: .9rem; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 84px 20px auto; padding: 20px; flex-direction: column; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a.active::after { right: auto; bottom: 2px; width: 42px; }
  .hero-grid, .network-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 56px; gap: 38px; }
  .hero-mark { max-width: 360px; margin-inline: auto; }
  .card-grid { grid-template-columns: 1fr; }
  .account-choice-grid, .dashboard-grid, .application-card { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .admin-metrics { grid-template-columns: repeat(2,1fr); }
  .admin-columns { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 90px 1fr; }
  .product-thumb { width: 90px; }
  .product-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .application-detail { padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .path-card { min-height: 260px; }
  .closing { align-items: flex-start; flex-direction: column; gap: 20px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1180px); }
  .brand small { display: none; }
  .brand img { width: 58px; height: 58px; }
  .header-inner { min-height: 74px; }
  .site-nav { inset-block-start: 74px; }
  .hero-grid { min-height: auto; padding-block: 52px; }
  h1 { font-size: 2.35rem; }
  .hero-mark { padding: 16px; }
  .pathways, .closing { padding-block: 70px; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-left: 0; border-top: 1px solid rgba(255,255,255,.28); }
  .simple-panel { padding: 35px 24px; }
  .account-main, .dashboard-main { padding-block: 50px 70px; }
  .account-panel { width: min(100% - 28px, 920px); padding: 30px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .market-options { grid-template-columns: 1fr; }
  .portal-nav { align-items: stretch; flex-direction: column; }
  .portal-nav .portal-back { margin-left: 0; }
  .product-row { grid-template-columns: 1fr; }
  .admin-metrics,.category-options { grid-template-columns: 1fr; }
  .product-thumb { width: 100%; max-width: 180px; }
  .account-heading h1, .dashboard-heading h1, .account-panel h1 { font-size: 2.2rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
.back-to-top { position:fixed; right:22px; bottom:22px; z-index:80; padding:12px 16px; border:0; border-radius:999px; color:#fff; background:var(--navy); box-shadow:var(--shadow); font:inherit; font-weight:850; cursor:pointer; opacity:0; pointer-events:none; transform:translateY(12px); transition:.2s ease; }
.back-to-top.is-visible { opacity:1; pointer-events:auto; transform:none; }
.profile-progress { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin-bottom:28px; }
.profile-progress.product-progress { grid-template-columns:repeat(5,1fr); }
.profile-progress button { display:flex; align-items:flex-start; justify-content:flex-start; min-height:54px; padding:12px 10px; border:1px solid var(--line); border-radius:10px; color:var(--navy); background:var(--cloud); font:inherit; font-weight:800; line-height:1.2; text-align:left; cursor:pointer; }
.profile-progress button.active { color:#fff; background:var(--navy); }
.profile-progress button.complete::after { content:' ✓'; color:var(--green); }
.profile-progress button.active.complete::after { color:#a9ec98; }
.profile-section { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.profile-section[hidden] { display:none; }
.profile-section > h2,.profile-section > p,.profile-section > fieldset,.profile-section > .form-wide { grid-column:1/-1; }
.profile-navigation { grid-column:1/-1; display:flex; justify-content:space-between; gap:12px; padding-top:20px; border-top:1px solid var(--line); }
.profile-navigation [hidden] { display:none !important; }
@media (max-width:700px){.profile-progress{grid-template-columns:1fr 1fr}.profile-section{grid-template-columns:1fr}.back-to-top span{display:none}}

/* Marketplace v2.5 */
.marketplace-main { min-height: calc(100vh - 170px); padding-block: 58px 90px; background: linear-gradient(145deg,rgba(248,252,249,.96),rgba(235,245,247,.94)),url('/images/okd-food-collage-background.png') center/cover fixed no-repeat; }
.marketplace-heading { margin-bottom: 34px; }
.marketplace-heading h1 { max-width: 850px; margin-bottom: 14px; font-size: clamp(2.3rem,4vw,4rem); }
.marketplace-heading > p:last-child { max-width: 780px; color: #577080; font-size: 1.08rem; }
.marketplace-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); align-items: start; gap: 28px; }
.filter-panel { position: sticky; top: 110px; display: grid; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.filter-panel h2 { margin: 0 0 4px; font-size: 1.55rem; }
.filter-panel label,.purchase-form label,.cart-quantity label { display: grid; gap: 6px; color: var(--navy); font-size: .88rem; font-weight: 800; }
.filter-panel input:not([type=checkbox]),.filter-panel select,.purchase-form input,.purchase-form select,.cart-quantity input { width: 100%; padding: 10px 11px; border: 1px solid #bdcdd4; border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; }
.filter-price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-clear { justify-self: center; color: var(--green-dark); font-weight: 800; }
.marketplace-results { min-width: 0; }
.results-summary { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: center; }
.results-summary a { color: var(--green-dark); font-weight: 850; }
.product-list { display: grid; gap: 18px; }
.store-product { display: grid; grid-template-columns: 190px minmax(0,1fr) 160px; gap: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 34px rgba(11,43,79,.07); }
.store-product-image,.cart-image { display: grid; place-items: center; overflow: hidden; border-radius: 14px; color: #71858f; background: var(--mist); text-decoration: none; }
.store-product-image { min-height: 170px; }
.store-product-image img,.cart-image img { width: 100%; height: 100%; object-fit: cover; }
.store-product-copy h2 { margin: 4px 0 9px; font-size: 1.55rem; }
.store-product-copy h2 a { text-decoration: none; }
.store-product-copy > p:not(.product-vendor) { margin: 0; color: #577080; }
.product-vendor { margin: 0; color: #617986; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-flags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 7px; }
.product-flags span { padding: 4px 9px; border-radius: 999px; color: #205f28; background: #e0f4e4; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.product-flags .sold-out { color: #8b1e27; background: #fde8e8; }
.product-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 18px; }
.product-meta strong { color: var(--navy); font-size: 1.18rem; }
.product-meta span { color: #577080; font-size: .9rem; }
.store-product-actions { display: flex; align-self: center; flex-direction: column; gap: 10px; }
.store-product-actions form,.store-product-actions .button { width: 100%; }
.store-product-actions button { width: 100%; }
.empty-state { padding: 45px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.empty-state h2 { font-size: 1.8rem; }
.product-detail { padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px; color: #637985; font-size: .9rem; }
.breadcrumbs a { color: var(--green-dark); font-weight: 800; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.8fr); gap: 48px; }
.product-main-image { width: 100%; max-height: 620px; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 20px; background: var(--cloud); }
.product-thumbnails { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.product-thumbnail { overflow:hidden; padding:0; border:2px solid transparent; border-radius:12px; background:var(--cloud); cursor:pointer; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.product-thumbnail img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.product-thumbnail:hover { transform:translateY(-2px); border-color:var(--green); }
.product-thumbnail:focus-visible { outline:3px solid rgba(31,132,54,.28); outline-offset:2px; }
.product-thumbnail.active { border-color:var(--navy); box-shadow:0 0 0 2px rgba(11,43,79,.14); }
.product-image-placeholder { min-height: 430px; display: grid; place-items: center; border-radius: 20px; color: #71858f; background: var(--mist); }
.product-purchase h1 { margin-bottom: 16px; font-size: clamp(2.2rem,4vw,3.8rem); }
.product-lead { color: #577080; font-size: 1.08rem; }
.price-block { margin: 25px 0; padding: 18px 0; display: flex; align-items: baseline; gap: 12px; border-block: 1px solid var(--line); }
.price-block strong { color: var(--navy); font-size: 2rem; }
.price-block span { color: #617986; }
.purchase-form { display: grid; grid-template-columns: 1fr 110px; gap: 14px; }
.purchase-form .button { grid-column: 1/-1; }
.stock-warning { padding: 14px 16px; color: #8b1e27; border-radius: 9px; background: #fde8e8; font-weight: 800; }
.product-facts { margin-top: 24px; }
.product-facts div { padding: 11px 0; display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid var(--line); }
.product-facts dt { font-weight: 850; }
.product-facts dd { margin: 0; text-transform: capitalize; }
.product-information { margin-top: 50px; padding-top: 40px; display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 50px; border-top: 1px solid var(--line); }
.product-information h2 { font-size: 1.8rem; }
.product-information h3 { margin-top: 26px; font-size: 1.2rem; }
.product-information p,.product-information li { color: #526b79; }
.preserve-lines { white-space: pre-line; }
.cart-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 28px; }
.cart-items { display: grid; gap: 15px; }
.cart-item { display: grid; grid-template-columns: 100px minmax(0,1fr) 120px 110px; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.cart-image { width: 100px; height: 100px; }
.cart-item h2 { margin: 4px 0 6px; font-size: 1.25rem; }
.cart-item h2 a { text-decoration: none; }
.cart-item p { margin: 0; color: #577080; }
.cart-quantity button,.link-button { padding: 3px 0; border: 0; color: var(--green-dark); background: transparent; font: inherit; font-weight: 850; text-decoration: underline; cursor: pointer; }
.cart-line-total { text-align: right; }
.cart-line-total strong { display: block; color: var(--navy); font-size: 1.15rem; }
.cart-summary { position: sticky; top: 110px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.cart-summary h2 { font-size: 1.6rem; }
.cart-summary > div { padding: 16px 0; display: flex; justify-content: space-between; border-block: 1px solid var(--line); }
.cart-summary p { color: #617986; font-size: .9rem; }
.cart-summary .button { width: 100%; margin: 10px 0 15px; }
.cart-summary .button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.cart-summary > a { display: block; text-align: center; color: var(--green-dark); font-weight: 800; }
.cart-summary > a.button-primary { color: var(--white); }

@media (max-width: 900px) {
  .marketplace-layout,.cart-layout,.product-detail-grid,.product-information { grid-template-columns: 1fr; }
  .filter-panel,.cart-summary { position: static; }
  .store-product { grid-template-columns: 140px minmax(0,1fr); }
  .store-product-actions { grid-column: 1/-1; flex-direction: row; }
  .cart-item { grid-template-columns: 90px minmax(0,1fr); }
  .cart-quantity,.cart-line-total { text-align: left; }
}
@media (max-width: 580px) {
  .marketplace-main { padding-block: 40px 65px; }
  .store-product { grid-template-columns: 1fr; }
  .store-product-image { min-height: 240px; }
  .store-product-actions { flex-direction: column; }
  .product-detail { padding: 20px; }
  .purchase-form,.filter-price { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 1fr; }
  .cart-image { width: 100%; height: 220px; }
}

/* Checkout and orders v2.6 */
.checkout-layout,.order-detail { display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:start; gap:28px; }
.checkout-items,.order-list { display:grid; gap:14px; }
.checkout-items article,.order-row { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 24px; border:1px solid var(--line); border-radius:16px; background:var(--white); box-shadow:0 8px 24px rgba(11,43,79,.05); }
.checkout-items h2 { margin:4px 0 6px; font-size:1.2rem; }
.checkout-items p { margin:0; color:#577080; }
.checkout-items > article > strong { color:var(--navy); white-space:nowrap; }
.cart-summary form label { display:grid; gap:7px; color:var(--navy); font-weight:800; }
.cart-summary textarea { width:100%; padding:10px; border:1px solid #bdcdd4; border-radius:8px; font:inherit; }
.order-row { color:inherit; text-decoration:none; }
.order-row:hover { border-color:var(--green); transform:translateY(-1px); }
.order-row > div { display:grid; gap:5px; }
.order-row > div:last-child { justify-items:end; }
.order-row span { color:#617986; }
.checkout-success { max-width:850px; padding:55px; border:1px solid var(--line); border-radius:24px; background:var(--white); box-shadow:var(--shadow); }
.checkout-success h1 { font-size:clamp(2.5rem,5vw,4.5rem); }
.checkout-success .button { margin:18px 10px 0 0; }
.disclosure-check { margin:16px 0; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--cloud); font-size:.84rem; line-height:1.45; }
.disclosure-check.accepted { border-color:var(--green); background:#eef9f1; }
.checkout-requirement { margin:0 0 5px; color:#8b5c00 !important; font-weight:800; text-align:center; }
.checkout-requirement.is-ready { color:#176b2c !important; }
.service-search { position:static; margin-top:24px; grid-template-columns:minmax(240px,300px) minmax(360px,1fr); align-items:start; max-width:950px; }
.service-search-field { align-self:start; }
.service-search .service-search-field input { height:44px; min-height:44px; }
.service-search > .button { grid-column:1; width:100%; }
.first-search-notice,.service-search-status { grid-column:2; grid-row:1 / span 2; margin:0; }
.service-vendor { grid-template-columns:minmax(0,1fr) minmax(320px,.7fr); align-items:start; }
.introduction-summary { padding:14px 0; border-top:1px solid var(--line); }
.service-profile-panel { width:min(100% - 32px,1180px); }
.option-fieldset { margin:0; padding:18px; border:1px solid var(--line); border-radius:14px; }
.option-fieldset legend { padding:0 8px; color:var(--navy); font-weight:850; }
.introduction-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:30px; padding:28px; border:1px solid var(--line); border-radius:20px; background:var(--white); box-shadow:var(--shadow); }
.introduction-profile h2 { margin:8px 0 12px; }
.capability-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; margin:22px 0 0; }
.capability-list div { padding:10px 0; border-top:1px solid var(--line); }
.capability-list dt { color:var(--navy); font-weight:850; }
.capability-list dd { margin:4px 0 0; color:#526b79; text-transform:capitalize; }
.approved-contact { margin-top:22px; padding:18px; border-radius:12px; background:#e2f5e7; }
.approved-contact h3 { margin:0 0 8px; }
@media (max-width:900px){.checkout-layout,.order-detail,.service-search,.introduction-card{grid-template-columns:1fr}.order-detail .cart-summary{position:static}.first-search-notice,.service-search-status{grid-column:1;grid-row:auto}.service-search>.button{grid-column:1}}
@media (max-width:580px){.capability-list{grid-template-columns:1fr}}
@media (max-width:580px){.checkout-items article,.order-row{align-items:flex-start;flex-direction:column}.order-row>div:last-child{justify-items:start}.checkout-success{padding:32px 24px}}
.wholesale-fields{border:1px solid var(--line);border-radius:18px;padding:22px;background:rgba(238,247,244,.55)}
.wholesale-fields legend{padding:0 10px;font-size:1.2rem;font-weight:800;color:var(--navy)}
.wholesale-fields .form-grid{margin-top:16px}
.product-photo-editor{padding-top:8px;border-top:1px solid var(--line)}
.product-photo-editor h2{margin:0 0 6px;color:var(--navy)}
.editable-photo-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:18px 0 22px}
.editable-photo{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 8px 22px rgba(11,43,79,.08)}
.editable-photo img{width:100%;aspect-ratio:1;object-fit:cover}
.editable-photo label{display:flex;grid-template-columns:none;align-items:center;gap:8px;padding:9px 11px;font-size:.86rem;line-height:1.25}
.editable-photo label+label{border-top:1px solid var(--line)}
.editable-photo input{flex:0 0 auto;width:auto}
.editable-photo .photo-order,.new-photo-preview .photo-order{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;color:var(--navy);font-size:.82rem;font-weight:800}
.editable-photo .photo-order input,.new-photo-preview .photo-order input{width:62px;padding:7px;text-align:center}
.photo-primary-note{margin:0;padding:9px 11px;border-top:1px solid var(--line);color:var(--green);font-size:.8rem;font-weight:850}
.profile-navigation .save-progress-button{margin-left:auto}
.multi-photo-picker input[type=file]{padding:14px;border:2px dashed var(--line);background:var(--cloud)}
.photo-choice{color:var(--navy)}
.photo-remove{color:#a61f2b}
.photo-empty{padding:18px;border:1px dashed #afc4cc;border-radius:12px;background:var(--cloud)}
.new-photo-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:14px}
.new-photo-preview[hidden]{display:none}
.new-photo-preview figure{min-width:0;margin:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--cloud)}
.new-photo-preview img{width:100%;aspect-ratio:1;object-fit:cover}
.new-photo-preview figcaption{overflow:hidden;padding:7px 9px;font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:900px){.editable-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.new-photo-preview{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.profile-progress.product-progress{grid-template-columns:repeat(3,1fr)}}
@media (max-width:580px){.editable-photo-grid,.new-photo-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:580px){.profile-progress.product-progress{grid-template-columns:1fr 1fr}}
