
/* Mieza product-first marketplace */
.marketplace-section{max-width:1440px;margin:0 auto;padding:58px 5%;color:#17211d}
.marketplace-heading,.vendor-directory-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px}
.marketplace-eyebrow{display:inline-block;color:#08784f;font-size:11px;font-weight:800;letter-spacing:1.7px;margin-bottom:9px}
.marketplace-heading h2,.vendor-directory-heading h2{font-size:clamp(25px,3vw,36px);line-height:1.15;margin:0 0 9px}
.marketplace-heading p,.vendor-directory-heading p{margin:0;color:#66736c;max-width:650px}
.marketplace-cart-link{white-space:nowrap;text-decoration:none;background:#08784f;color:#fff;padding:12px 17px;border-radius:10px;font-weight:700}
.marketplace-cart-link span{background:#fff;color:#08784f;border-radius:20px;padding:2px 7px;margin-left:5px}
.marketplace-search-row{display:flex;gap:12px;margin:26px 0 22px}
.marketplace-search-wrap{position:relative;flex:1;display:flex;align-items:center;background:#fff;border:1px solid #dce5df;border-radius:12px;padding:0 15px;min-width:0}
.marketplace-search-wrap>span{font-size:25px;color:#75837b}
.marketplace-search-wrap input{border:0!important;outline:0!important;box-shadow:none!important;width:100%;padding:16px 12px;font-size:15px;background:transparent}
.marketplace-search-row select{min-width:190px;border:1px solid #dce5df;border-radius:12px;padding:0 14px;background:#fff;color:#25352d}
.marketplace-layout{display:grid;grid-template-columns:225px minmax(0,1fr);gap:26px;align-items:start}
.marketplace-sidebar{background:#fff;border:1px solid #e5ece7;border-radius:14px;padding:18px;position:sticky;top:18px}
.marketplace-sidebar h3{font-size:16px;margin:0 0 12px}
.marketplace-categories{display:grid;gap:5px}
.marketplace-category{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:8px;background:transparent;border:0;border-radius:8px;padding:10px 9px;color:#45534b;cursor:pointer;font-size:13px}
.marketplace-category small{color:#829087}
.marketplace-category:hover,.marketplace-category.active{background:#eaf5ef;color:#08784f;font-weight:700}
.marketplace-results{min-width:0}
.marketplace-results-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 12px}
.marketplace-results-head h3{font-size:20px;margin:0 0 4px}
.marketplace-results-head p{font-size:13px;color:#7a877f;margin:0}
.clear-marketplace-filters{background:transparent;border:0;color:#08784f;font-weight:700;cursor:pointer}
.marketplace-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.marketplace-active-filters>span{background:#eaf5ef;color:#08784f;border-radius:20px;padding:6px 10px;font-size:12px}
.marketplace-active-filters button{border:0;background:none;color:inherit;cursor:pointer;font-size:15px;margin-left:5px}
.marketplace-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.marketplace-product-card{min-width:0;background:#fff;border:1px solid #e8eee9;border-radius:13px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}
.marketplace-product-card:hover{transform:translateY(-3px);box-shadow:0 10px 28px #173c2812}
.marketplace-product-link{display:block;text-decoration:none;color:inherit}
.marketplace-product-image{height:190px;background:#f3f6f3;position:relative;overflow:hidden}
.marketplace-product-image img{width:100%;height:100%;object-fit:cover;display:block}
.marketplace-product-category{position:absolute;left:10px;top:10px;background:#fffE;color:#08784f;border-radius:20px;padding:5px 8px;font-size:10px;font-weight:700}
.marketplace-product-copy{padding:12px 13px 7px}
.marketplace-product-copy h3{font-size:15px;line-height:1.35;margin:0 0 6px;min-height:40px}
.marketplace-product-description{font-size:12px;color:#758078;margin:0 0 10px;line-height:1.45;min-height:34px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.marketplace-product-price{display:block;color:#08784f;font-size:18px;margin-bottom:7px}
.marketplace-seller{display:block;font-size:11px;color:#78847d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.marketplace-seller b{color:#35463c}
.marketplace-product-actions{display:flex;align-items:center;gap:9px;padding:10px 13px 13px}
.marketplace-add-btn{flex:1;background:#08784f;color:white;border:0;border-radius:8px;padding:10px 8px;font-size:12px;font-weight:700;cursor:pointer}
.marketplace-add-btn.added{background:#145c3f}
.marketplace-product-actions>a{font-size:11px;color:#08784f;text-decoration:none;font-weight:700;white-space:nowrap}
.marketplace-empty,.marketplace-loading{grid-column:1/-1;text-align:center;padding:55px 20px;color:#718078;background:#fff;border:1px dashed #d9e4dc;border-radius:13px}
.marketplace-empty h3{color:#26372e;margin:8px 0}
.marketplace-empty button{border:0;background:#08784f;color:#fff;border-radius:8px;padding:10px 15px}
.vendor-directory-section{background:#f5f8f5;padding:48px 5% 58px}
.vendor-directory-heading{max-width:1440px;margin:0 auto 22px}
.vendor-directory-grid{max-width:1440px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.vendor-directory-card{display:flex;align-items:center;gap:13px;padding:13px;background:#fff;border:1px solid #e4ebe5;border-radius:12px;text-decoration:none;color:#24352b;min-width:0}
.vendor-directory-card img{width:58px;height:58px;object-fit:cover;border-radius:9px;background:#edf2ee}
.vendor-directory-card span{display:grid;gap:4px;min-width:0;flex:1}
.vendor-directory-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vendor-directory-card small{font-size:11px;color:#77847c}
.vendor-directory-card>b{color:#08784f}
.search-suggestions{position:absolute;top:calc(100% + 7px);left:0;right:0;z-index:30;background:#fff;border:1px solid #e0e8e2;border-radius:12px;box-shadow:0 14px 35px #10291b20;overflow:hidden}
.search-suggestion-item{display:flex;align-items:center;gap:11px;padding:10px 12px;text-decoration:none;color:#24352b;border-bottom:1px solid #eff3f0}
.search-suggestion-item img{width:42px;height:42px;object-fit:cover;border-radius:7px}
.search-suggestion-copy{display:grid;gap:3px;min-width:0;flex:1}
.search-suggestion-copy strong{font-size:13px}
.search-suggestion-copy small{font-size:11px;color:#78847d}
.search-no-results{padding:16px;color:#78847d;font-size:13px}
.product-meta-line{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 15px}
.product-meta-line span{font-size:11px;color:#08784f;background:#eaf5ef;padding:5px 9px;border-radius:20px}
.product-seller-card{display:flex;justify-content:space-between;align-items:center;gap:12px}
.product-seller-identity{display:flex;align-items:center;gap:12px}
.product-seller-identity img{width:55px;height:55px;border-radius:10px;object-fit:cover}
.product-seller-identity h3{margin:0 0 4px}
.product-seller-identity p{margin:0 0 3px}
.product-seller-identity small{color:#78847d}
.product-visit-shop{white-space:nowrap;color:#08784f;font-weight:700;text-decoration:none}
.seller-more-products{max-width:1200px;margin:35px auto;padding:0 20px}
.seller-more-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:16px}
.seller-more-heading span{font-size:10px;letter-spacing:1.5px;color:#08784f;font-weight:800}
.seller-more-heading h2{font-size:22px;margin:5px 0 0}
.seller-more-heading>a{color:#08784f;text-decoration:none;font-weight:700;font-size:13px}
.seller-more-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.seller-more-card{display:grid;gap:7px;padding:10px;background:#fff;border:1px solid #e7eee8;border-radius:11px;text-decoration:none;color:#26372e}
.seller-more-card img{width:100%;height:135px;object-fit:cover;border-radius:7px}
.seller-more-card strong{font-size:13px}
.seller-more-card b{color:#08784f}
.product-load-error{max-width:700px;margin:70px auto;padding:35px;text-align:center}
.product-load-error a{color:#08784f;font-weight:700}
@media(max-width:1100px){.marketplace-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.marketplace-product-image{height:175px}}
@media(max-width:760px){.marketplace-section{padding:38px 4%}.marketplace-heading{align-items:flex-start}.marketplace-heading h2{font-size:26px}.marketplace-layout{grid-template-columns:1fr;gap:16px}.marketplace-sidebar{position:static;padding:13px}.marketplace-categories{display:flex;overflow-x:auto;padding-bottom:4px}.marketplace-category{white-space:nowrap;flex-shrink:0;background:#f5f8f5}.marketplace-search-row{flex-direction:column}.marketplace-search-row select{min-height:46px}.marketplace-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.marketplace-product-image{height:145px}.marketplace-product-copy{padding:10px}.marketplace-product-copy h3{font-size:13px;min-height:35px}.marketplace-product-price{font-size:16px}.marketplace-product-actions{padding:8px;gap:6px}.marketplace-add-btn{font-size:11px;padding:9px 4px}.marketplace-product-actions>a{font-size:10px}.vendor-directory-section{padding:35px 4%}.vendor-directory-grid{grid-template-columns:1fr}.marketplace-cart-link{font-size:12px;padding:10px}.seller-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.seller-more-heading{align-items:flex-start;flex-direction:column}.product-seller-card{align-items:flex-start;flex-direction:column}}
@media(max-width:380px){.marketplace-product-image{height:120px}.marketplace-product-actions>a{display:none}}

/* Vendor operating status */
.marketplace-shop-status,
.product-shop-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.marketplace-shop-status.is-open,
.product-shop-status.is-open {
  color: #166534;
  background: #dcfce7;
}
.marketplace-shop-status.is-closed,
.product-shop-status.is-closed {
  color: #991b1b;
  background: #fee2e2;
}
.marketplace-product-card.shop-is-closed .marketplace-product-image::after {
  content: "SHOP CLOSED";
  position: absolute;
  right: 9px;
  top: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #991b1b;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.marketplace-product-image { position: relative; }


/* Responsive marketplace and product detail refinements */
html, body { max-width: 100%; overflow-x: clip; }
.marketplace-section, .vendor-directory-section { box-sizing: border-box; }
.marketplace-product-card, .marketplace-product-card * { min-width: 0; }
.product-page {
  width: min(1200px, 100%);
  margin: 24px auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: start;
}
.product-page .product-hero { min-width: 0; position: relative; }
.product-page .product-main-image-box { width: 100%; aspect-ratio: 1 / 1; max-height: 620px; overflow: hidden; border-radius: 16px; background: #f3f6f3; }
.product-page .product-main-image-box .hero-image { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-page .product-card { min-width: 0; padding: 24px; border: 1px solid #e7eee8; border-radius: 16px; background: #fff; box-sizing: border-box; }
.product-page .product-title { overflow-wrap: anywhere; }
.product-page .sticky-cart { position: static; }
.product-page .product-thumbnail-gallery { grid-column: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.product-page .product-thumbnail-btn { width: 70px; height: 70px; padding: 3px; border: 1px solid #dce5df; border-radius: 9px; background: #fff; }
.product-page .product-thumbnail-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.product-seller-card { flex-wrap: wrap; }
.product-seller-identity { min-width: 0; }
.product-seller-identity > div { min-width: 0; overflow-wrap: anywhere; }
.product-load-error { box-sizing: border-box; padding: 30px 20px; }
@media (max-width: 760px) {
  .marketplace-heading { flex-direction: column; align-items: stretch; }
  .marketplace-cart-link { align-self: flex-start; }
  .marketplace-search-row { display: grid; grid-template-columns: minmax(0,1fr); }
  .marketplace-search-row select { width: 100%; min-width: 0; box-sizing: border-box; min-height: 46px; }
  .marketplace-layout { display: block; }
  .marketplace-sidebar { margin-bottom: 16px; }
  .marketplace-categories { display: flex; gap: 7px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .marketplace-category { flex: 0 0 auto; }
  .marketplace-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-page { display: flex; flex-direction: column; gap: 16px; margin: 12px auto; padding: 0 12px; }
  .product-page .product-hero, .product-page .product-card { width: 100%; }
  .product-page .product-main-image-box { aspect-ratio: 1 / 1; max-height: 420px; }
  .product-page .product-card { padding: 17px; }
  .product-page .product-title { font-size: clamp(22px, 6vw, 30px); line-height: 1.2; }
  .product-page .product-thumbnail-gallery { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .product-page .product-thumbnail-btn { flex: 0 0 64px; width: 64px; height: 64px; }
  .product-page .product-seller-card { align-items: flex-start; }
  .product-page .product-seller-identity img { flex: 0 0 48px; width: 48px; height: 48px; }
  .product-page .quantity-box { margin: 16px 0; }
  .product-page .add-cart-large { width: 100%; min-height: 48px; }
  .seller-more-products { padding: 0 12px; }
}
@media (max-width: 380px) {
  .marketplace-product-grid { gap: 8px; }
  .marketplace-product-image { height: 118px; }
  .marketplace-product-copy h3 { font-size: 12px; }
  .marketplace-product-price { font-size: 15px; }
  .marketplace-product-actions { flex-wrap: wrap; }
  .marketplace-add-btn { min-width: 100%; }
}
