
:root{
  --green:#0f6b4f;
  --green-dark:#084b39;
  --green-soft:#eaf6f1;
  --ink:#17221e;
  --muted:#6d7773;
  --line:#e5e9e7;
  --bg:#ffffff;
  --card:#ffffff;
  --gold:#f4b942;
  --danger:#c94c4c;
  --shadow:0 10px 35px rgba(19,37,30,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff}
a{text-decoration:none;color:inherit}
button,input,select{font:inherit}
button{cursor:pointer}
.container{width:min(1180px,calc(100% - 36px));margin:auto}
.topbar{border-bottom:1px solid var(--line);font-size:13px;color:var(--muted)}
.topbar .inner{display:flex;justify-content:space-between;padding:9px 0}
.nav{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}
.nav-inner{height:70px;display:flex;align-items:center;gap:28px}
.logo{font-size:25px;font-weight:850;letter-spacing:-1px;color:var(--green)}
.logo span{color:#1d2b26}
.nav-search{flex:1;max-width:650px;display:flex;border:1px solid #cfd8d4;border-radius:12px;overflow:hidden;height:44px}
.nav-search input{border:0;outline:0;flex:1;padding:0 15px}
.nav-search button{border:0;background:var(--green);color:white;padding:0 19px}
.nav-actions{display:flex;gap:18px;align-items:center;font-size:14px}
.icon-btn{border:0;background:transparent;color:var(--ink);position:relative}
.badge{position:absolute;top:-7px;right:-9px;background:#d84b4b;color:#fff;border-radius:20px;font-size:10px;padding:2px 5px}
.hero{min-height:510px;display:flex;align-items:center;text-align:center;background:linear-gradient(180deg,#f7fbf9 0%,#fff 100%)}
.hero h1{font-size:clamp(42px,6vw,72px);line-height:.98;letter-spacing:-3px;margin:25px auto 18px;max-width:850px}
.hero p{font-size:18px;color:var(--muted);max-width:650px;margin:0 auto 30px}
.hero-search{max-width:760px;margin:auto;display:flex;border:1px solid #bdc9c4;border-radius:15px;height:62px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.hero-search input{flex:1;border:0;outline:0;padding:0 20px;font-size:17px}
.hero-search button{width:125px;border:0;background:var(--green);color:#fff;font-weight:700}
.section{padding:58px 0}
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px}
.section h2{font-size:28px;margin:0;letter-spacing:-1px}
.muted{color:var(--muted)}
.categories{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.category{border:1px solid var(--line);border-radius:14px;padding:20px 10px;text-align:center;background:#fff;transition:.2s}
.category:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#c6d8d0}
.category .emoji{font-size:28px;display:block;margin-bottom:9px}
.category strong{font-size:13px}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;transition:.2s}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.product-image{height:205px;background:#edf2ef;display:flex;align-items:center;justify-content:center;font-size:70px}
.product-body{padding:15px}
.product-title{font-weight:700;margin:0 0 7px}
.price{font-size:20px;font-weight:800;color:var(--green)}
.vendor-line{font-size:12px;color:var(--muted);margin-top:8px;display:flex;align-items:center;gap:6px}
.vendor-mini-logo{width:16px;height:16px;border-radius:4px;font-size:9px;flex-shrink:0}
.rating{font-size:12px;color:#8a6b00;margin-top:7px}
.footer{background:#13201b;color:#dce7e2;padding:50px 0;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}
.footer h3{color:#fff;margin-top:0}
.footer a{display:block;color:#b8c8c1;margin:9px 0;font-size:14px}
.breadcrumb{padding:22px 0;color:var(--muted);font-size:13px}
.page-title{font-size:36px;letter-spacing:-1px;margin:8px 0}
.results-layout{display:grid;grid-template-columns:220px 1fr;gap:30px}
.filters{border-right:1px solid var(--line);padding-right:25px}
.filter-group{padding:16px 0;border-bottom:1px solid var(--line)}
.filter-group h4{margin:0 0 12px}
.filter-group label{display:block;margin:9px 0;color:var(--muted);font-size:14px}
.results-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.sort{border:1px solid var(--line);border-radius:9px;padding:9px 12px;background:#fff}
.detail{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;padding:35px 0 40px}
.gallery-main{height:500px;border-radius:20px;background:#f1f5f3;display:flex;align-items:center;justify-content:center;font-size:160px}
.gallery-thumbs{display:flex;gap:10px;margin-top:12px}
.thumb{height:72px;width:72px;border:1px solid var(--line);border-radius:10px;background:#f1f5f3;display:grid;place-items:center;font-size:28px}
.detail h1{font-size:40px;letter-spacing:-1.5px;margin:10px 0}
.detail-price{font-size:34px;font-weight:850;color:var(--green);margin:15px 0}
.info-row{display:flex;gap:10px;align-items:center;margin:15px 0;color:var(--muted)}
.divider{height:1px;background:var(--line);margin:24px 0}
.qty{display:flex;align-items:center;border:1px solid var(--line);width:max-content;border-radius:9px;overflow:hidden}
.qty button{border:0;background:#f5f7f6;width:40px;height:40px}
.qty span{width:45px;text-align:center}
.btn{border:0;border-radius:10px;padding:13px 20px;font-weight:750}
.btn-primary{background:var(--green);color:#fff}
.btn-secondary{background:var(--green-soft);color:var(--green)}
.btn-wide{width:100%;margin-top:15px}
.vendor-card{border:1px solid var(--line);border-radius:14px;padding:17px;margin-top:22px}
.vendor-card-top{display:flex;align-items:center;gap:12px}
.avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#dfece6;font-weight:800;color:var(--green)}
.checkout{display:grid;grid-template-columns:1.35fr .75fr;gap:35px;padding:35px 0 40px}
.checkout-card{border:1px solid var(--line);border-radius:16px;padding:25px;background:#fff}
.checkout h2{font-size:22px;margin-top:0}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}
.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}
.field.full{grid-column:1/-1}
.field label{font-size:13px;font-weight:700}
.field input,.field select{height:45px;border:1px solid #ccd5d1;border-radius:8px;padding:0 12px;outline:0}
.order-row{display:flex;justify-content:space-between;margin:13px 0;color:var(--muted)}
.order-total{border-top:1px solid var(--line);padding-top:17px;margin-top:17px;font-size:20px;font-weight:850;color:var(--ink)}
.vendor-hero{background:#f4f8f6;padding:50px 0}
.vendor-profile{display:flex;align-items:center;gap:20px}
.vendor-avatar{width:100px;height:100px;border-radius:50%;background:#dbeae4;display:grid;place-items:center;font-size:40px;font-weight:850;color:var(--green)}
.vendor-sales-badge{display:inline-block;margin-top:8px;padding:4px 12px;border-radius:20px;background:var(--green-soft);color:var(--green);font-size:13px;font-weight:700}
.vendor-profile h1{margin:0 0 8px;font-size:36px}
.vendor-stats{display:flex;gap:28px;margin-top:16px;color:var(--muted);font-size:14px}
.vendor-tabs{display:flex;gap:25px;border-bottom:1px solid var(--line);padding:20px 0;margin-bottom:25px}
.vendor-tabs a{font-weight:700}
.empty-note{padding:30px;border:1px dashed #cbd6d1;border-radius:14px;text-align:center;color:var(--muted)}
@media(max-width:900px){
  .categories{grid-template-columns:repeat(4,1fr)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .results-layout,.detail,.checkout{grid-template-columns:1fr}
  .filters{border-right:0;border-bottom:1px solid var(--line);padding:0 0 15px}
  .footer-grid{grid-template-columns:1fr 1fr}
  .nav-actions{display:none}
}
@media(max-width:600px){
  .container{width:min(100% - 24px,1180px)}
  .topbar{display:none}
  .nav-inner{height:62px;gap:10px}
  .nav-search{height:40px}
  .nav-search button{padding:0 12px}
  .hero{min-height:440px}
  .hero h1{font-size:45px;letter-spacing:-2px}
  .hero p{font-size:15px}
  .hero-search{height:55px}
  .hero-search button{width:95px}
  .categories{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:1fr 1fr;gap:10px}
  .product-image{height:150px;font-size:50px}
  .product-body{padding:11px}
  .product-title{font-size:14px}
  .price{font-size:17px}
  .detail h1{font-size:30px}
  .gallery-main{height:330px;font-size:110px}
  .form-grid{grid-template-columns:1fr}
  .field.full{grid-column:auto}
  .vendor-profile{align-items:flex-start}
  .vendor-profile h1{font-size:28px}
}

/* ══════════════════════════════════════════════════════════════
   NEW — added for real data integration (not in the original
   prototype, which only ever showed emoji placeholders)
   ══════════════════════════════════════════════════════════════ */

/* Placeholder for the many real products with no uploaded image */
.no-image{background:#edf2ef;color:#9fb0a9}

/* Out-of-stock badge on a product card */
.out-of-stock{display:inline-block;margin-top:6px;padding:2px 8px;border-radius:6px;background:#fdeaea;color:var(--danger);font-size:11px;font-weight:700}

/* Pickup/Delivery choice on checkout — replaces the original
   prototype's payment-method select, since SalesYards doesn't take
   online payment yet */
.fulfillment-choice{display:flex;gap:14px;margin-top:14px}
.fulfillment-option{flex:1;display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer;transition:.15s}
.fulfillment-option:has(input:checked){border-color:var(--green);background:var(--green-soft)}
.fulfillment-option input{margin-top:3px}

/* Clickable category filter links in the search sidebar — the
   original prototype only had static, non-functional checkboxes */
.filter-link{display:block;padding:7px 0;color:var(--muted);font-size:14px}
.filter-link-active{color:var(--green);font-weight:700}
.filter-link:hover{color:var(--green)}

/* NEW — small product thumbnail in the checkout cart summary */
.order-thumb{width:44px;height:44px;border-radius:8px;background:#edf2ef;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-size:18px;color:#9fb0a9}
