/* Customer marketplace: a compact catalog and a persistent shopping journey. */
body.marketplace-shop {
  --bg: #fffdf9; --surface: #ffffff; --surface-2: #f5f1e9;
  --text: #29251f; --text-light: #625d54; --text-dim: #625d54;
  --border: #ded8cf; --warm-border: #ded8cf; --gold: #83611f;
  --gold-light: #eeddb7; --sale: #35623b; --bg-card: #fffdf9;
  background: var(--bg); background-image: none; color: var(--text);
  font-family: 'Roboto', sans-serif; font-weight: 400; line-height: 1.5;
}
.marketplace-shop [hidden] { display: none !important; }
.marketplace-shop a { color: inherit; }
.marketplace-shop button, .marketplace-shop input, .marketplace-shop select { font: inherit; }
.marketplace-shop button { cursor: pointer; }
.marketplace-shop button:disabled { cursor: default; opacity: .55; }
.marketplace-shop :is(button, a, input, select):focus-visible { outline: 3px solid #997324; outline-offset: 3px; }
.marketplace-shop .market-nav { padding: 15px max(24px, 4vw); gap: 22px; background: #fffdf9; border-bottom: 1px solid var(--border); }
.marketplace-shop .market-brand { gap: 10px; font-family: 'EB Garamond', Georgia, serif; font-size: 23px; line-height: 1.1; }
.marketplace-shop .market-brand img { object-fit: contain; border-radius: 6px; background: #29251f; padding: 4px; }
.marketplace-shop .market-brand small { display: block; font: 11px/1.5 'Roboto', sans-serif; color: var(--text-light); margin-top: 3px; }
.marketplace-shop .market-nav > a:not(.market-brand) { font-size: 13px; }
.marketplace-shop #header-cart { min-height: 44px; padding: 8px 20px; border: 1px solid #29251f; border-radius: 28px; color: var(--text); background: transparent; }
.marketplace-shop .site-header { padding: 28px max(24px, 4vw) 18px; background: #f7f1e5; border: 0; text-align: left; }
.marketplace-shop .site-header::before, .marketplace-shop .site-header::after, .marketplace-shop .header-ornament { display: none; }
.marketplace-shop .hero-grid { display: block; max-width: 1500px; margin: auto; }
.marketplace-shop .hero-copy { padding: 0; }
.marketplace-shop .hero-kicker { font-size: 10px; letter-spacing: .12em; color: #73603b; margin: 0 0 5px; }
.marketplace-shop .site-header h1 { font-family: 'EB Garamond', Georgia, serif; font-size: clamp(30px, 3.1vw, 43px); font-weight: 500; font-style: normal; color: var(--text); line-height: 1.1; margin: 0 0 8px; max-width: none; }
.marketplace-shop .hero-lead { font-size: 14px; color: var(--text-light); margin: 0; max-width: none; }
.marketplace-shop .pickup-notice { display: none; }
.marketplace-shop main { max-width: 1600px; margin: auto; padding: 20px max(24px, 4vw) 56px; }
.marketplace-shop .collection-intro { display: none; }
.marketplace-shop .workspace-panel { position: static; padding: 0; border: 0; box-shadow: none; background: transparent; backdrop-filter: none; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.marketplace-shop .search-wrap { flex: 1 0 100%; margin: 0 0 5px; padding: 0; }
.marketplace-shop .search-wrap form { display: flex; gap: 0; border: 2px solid #39342c; border-radius: 30px; overflow: hidden; background: white; }
.marketplace-shop .search-wrap input { flex: 1; width: 100%; min-width: 0; min-height: 50px; padding: 12px 20px; border: 0; background: transparent; color: var(--text); box-shadow: none; }
.marketplace-shop .search-wrap button { border: 0; border-radius: 28px; padding: 9px 25px; min-height: 44px; margin: 3px; background: #29251f; color: #fff; letter-spacing: 0; text-transform: none; font-weight: 500; }
.marketplace-shop .search-wrap .search-clear { background: transparent; color: var(--text); border-radius: 0; }
.marketplace-shop .discovery-shipping { font-size: 13px; margin: 0; white-space: nowrap; font-weight: 400; }
.marketplace-shop .discovery-shipping input { accent-color: #83611f; width: 18px; height: 18px; }
.marketplace-shop .discovery-filters:empty { display: none; }
.marketplace-shop .discovery-filters { margin: 0; }
.marketplace-shop .shop-toolbar { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 0; margin: 0; border: 0; }
.marketplace-shop .filter-chips { gap: 6px; }
.marketplace-shop .chip, .marketplace-shop .discovery-filters button { min-height: 36px; padding: 6px 13px; border: 1px solid var(--border); border-radius: 22px; background: transparent; color: var(--text); font-size: 12px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.marketplace-shop .chip.active { background: #efe5cf; border-color: #a2854c; color: #5a4218; }
.marketplace-shop .shop-controls { gap: 6px; }
.marketplace-shop .shop-sort { padding: 8px 10px; min-height: 40px; width: auto; max-width: 170px; background: white; border: 1px solid var(--border); border-radius: 22px; font-size: 12px; }
.marketplace-shop .view-toggle { display: flex; }
.marketplace-shop .view-toggle button { width: 36px; height: 40px; border-radius: 5px; padding: 6px; background: transparent; color: var(--text-light); border: 0; }
.marketplace-shop .view-toggle button.active { background: #efe5cf; color: var(--text); }
.marketplace-shop .status-bar { flex: 1 0 100%; display: flex; padding: 5px 0 0; margin: 0; font-size: 12px; color: var(--text-light); }
.marketplace-shop .item-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; align-items: start; }
.marketplace-shop .item-card[class] { grid-column: auto; grid-row: auto; border: 0; border-radius: 0; box-shadow: none; background: transparent; transform: none; animation: none; min-width: 0; }
.marketplace-shop .item-card[class] .card-image { aspect-ratio: 1 / 1; height: auto; min-height: 0; border-radius: 10px; overflow: hidden; background: #f0ece5; }
.marketplace-shop .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.marketplace-shop .item-card:hover .card-image img { transform: scale(1.035); }
.marketplace-shop .card-body { padding: 11px 0 8px; gap: 5px; }
.marketplace-shop .card-name { font: 400 15px/1.4 'Roboto', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marketplace-shop .card-name a { text-decoration: none; }
.marketplace-shop .card-name a:hover { text-decoration: underline; }
.marketplace-shop .card-vendor { color: var(--text-light); font-size: 12px; text-transform: none; letter-spacing: 0; }
.marketplace-shop .card-category-tag { border: 0; padding: 0; background: transparent; font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--text-light); }
.marketplace-shop .card-pricing { margin-top: 0; }
.marketplace-shop .shop-price, .marketplace-shop .shop-price--sale { color: var(--text); font: 600 17px/1.3 'Roboto', sans-serif; }
.marketplace-shop .shop-price--sale { color: #35623b; }
.marketplace-shop .shop-price--compare { color: var(--text-light); font-size: 12px; font-weight: 400; }
.marketplace-shop .sale-badge { color: #35623b; background: #ecf3e9; font-size: 10px; }
.marketplace-shop .card-tax { color: var(--text-light); font-size: 11px; }
.marketplace-shop .card-footer { padding: 0; }
.marketplace-shop .btn-reserve { width: auto; min-height: 40px; border: 1px solid #38332b; border-radius: 24px; background: transparent; color: var(--text); padding: 8px 18px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.marketplace-shop .btn-reserve:hover:not(:disabled), .marketplace-shop .btn-ghost:hover { background: #efe5cf; color: var(--text); }
.marketplace-shop .btn-reserve.carted { background: #efe5cf; color: #5a4218; border-color: #a2854c; }
.marketplace-shop .btn-primary { background: #29251f; border: 1px solid #29251f; color: white; border-radius: 26px; min-height: 48px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; }
.marketplace-shop .btn-primary:hover:not(:disabled) { background: #514531; color: white; }
.marketplace-shop .btn-ghost { background: transparent; color: var(--text); border: 1px solid #9b9284; border-radius: 26px; min-height: 44px; text-transform: none; letter-spacing: 0; }
.marketplace-shop .cart-bar { display: none !important; }
.marketplace-shop .item-grid.list-view { display: flex; flex-direction: column; gap: 0; }
.marketplace-shop .item-list-row { width: 100%; background: transparent; box-shadow: none; border: 0; border-bottom: 1px solid var(--border); padding: 18px 0; grid-template-columns: 100px minmax(0, 1fr) 100px 130px; gap: 20px; }
.marketplace-shop .list-photo { border-radius: 8px; overflow: hidden; width: 100px; height: 100px; }
.marketplace-shop .list-name { font-size: 18px; }
.marketplace-shop .list-name a { text-decoration: none; }
.marketplace-shop .list-desc { font-size: 13px; max-height: 40px; overflow: hidden; }
.marketplace-shop .list-vendor { font-size: 12px; }
/* Dialog surfaces keep a consistent customer palette, regardless of staff theme. */
.marketplace-shop .modal-overlay { background: rgba(34, 28, 20, .4); z-index: 100; padding: 24px; }
.marketplace-shop .modal { background: white; color: var(--text); border: 0; border-radius: 16px; max-height: calc(100dvh - 48px); overflow: auto; }
.marketplace-shop .modal-close { z-index: 2; border-radius: 50%; background: white; color: #29251f; min-width: 44px; min-height: 44px; top: 12px; right: 12px; font-size: 20px; }
.marketplace-shop .detail-modal { max-width: 1080px; padding: 28px; }
.marketplace-shop #detail-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.marketplace-shop .detail-image-wrap { margin: 0; border-radius: 12px; background: #f5f1e9; }
.marketplace-shop .detail-main-image { width: 100%; max-height: 520px; height: 440px; object-fit: contain; }
.marketplace-shop .detail-photo-strip { padding: 12px; display: flex; gap: 8px; max-width: 100%; overflow-x: auto; }
.marketplace-shop .detail-photo-thumb { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 7px; padding: 2px; background: white; border: 1px solid #b8b0a4; }
.marketplace-shop .detail-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-shop .detail-photo-thumb.is-active { border: 2px solid #83611f; }
.marketplace-shop .detail-info { min-width: 0; padding: 18px 10px 0 0; }
.marketplace-shop .detail-vendor { display: inline-block; font-size: 14px; color: #70511a; margin-bottom: 8px; }
.marketplace-shop #detail-title { font: 500 30px/1.15 'EB Garamond', Georgia, serif !important; }
.marketplace-shop #detail-actions { margin: 20px 0 12px; }
.marketplace-shop #detail-more { border-top: 1px solid var(--border); padding-top: 16px; }
.marketplace-shop .detail-more-grid { gap: 10px; }
.marketplace-shop .detail-more-grid img { border-radius: 6px; }
.marketplace-shop .modal-notice { color: var(--text-light); font-size: 12px; line-height: 1.5; margin-top: 18px; }
.marketplace-shop #modal-overlay .modal { max-width: 640px; padding: 30px; }
.marketplace-shop #modal-overlay h2 { font-size: 32px; color: var(--text); }
.marketplace-shop #modal-overlay :is(input, select) { color: var(--text); background: white; border: 1px solid #b9b1a5; border-radius: 8px; min-height: 44px; }
.marketplace-shop #modal-overlay input[type=checkbox] { min-height: 0; }
.marketplace-shop #modal-overlay label { color: var(--text); text-transform: none; letter-spacing: 0; }
/* The cart is both the add confirmation and the complete editable cart. */
.marketplace-shop .shopping-drawer-overlay { padding: 0; justify-content: flex-end; align-items: stretch; }
.marketplace-shop .shopping-drawer { width: min(500px, 100%); height: 100dvh; background: white; color: var(--text); display: flex; flex-direction: column; box-shadow: -12px 0 36px rgba(0,0,0,.12); animation: drawerIn .22s ease; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.marketplace-shop .drawer-header { position: relative; padding: 25px 64px 20px 28px; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.marketplace-shop .drawer-eyebrow { font-size: 11px; letter-spacing: .07em; color: #83611f; text-transform: uppercase; }
.marketplace-shop .drawer-header h2 { font: 500 29px/1.2 'EB Garamond', Georgia, serif; margin-top: 4px; }
.marketplace-shop .drawer-content { overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px; flex: 1; min-height: 0; }
.marketplace-shop .added-product-image { width: 100%; height: min(30dvh, 300px); border-radius: 10px; object-fit: contain; background: #f5f1e9; }
.marketplace-shop .added-vendor { margin-top: 18px; font-size: 13px; color: #70511a; }
.marketplace-shop #cart-added h3 { font-size: 20px; font-weight: 500; margin: 6px 0; line-height: 1.4; }
.marketplace-shop .added-price { font-size: 21px; font-weight: 600; margin: 8px 0; }
.marketplace-shop .added-fulfillment { color: var(--text-light); font-size: 13px; }
.marketplace-shop .drawer-footer { flex: 0 0 auto; margin: 0; padding: 18px 28px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: white; display: flex; flex-direction: column; gap: 10px; }
.marketplace-shop .drawer-policy { font-size: 11px; color: var(--text-light); line-height: 1.5; margin: 0 0 4px; }
.marketplace-shop .drawer-footer > button { width: 100%; padding: 10px; }
.marketplace-shop .drawer-secondary { display: flex; justify-content: space-between; gap: 12px; }
.marketplace-shop .drawer-secondary button { border: 0; background: none; color: var(--text); text-decoration: underline; min-height: 36px; font-size: 12px; }
.marketplace-shop .cart-intro { font-size: 13px; color: var(--text-light); margin: 0 0 18px; }
.marketplace-shop .cart-items-list { max-height: none; overflow: visible; display: block; }
.marketplace-shop .cart-vendor-group { border-top: 1px solid var(--border); margin-bottom: 20px; padding-top: 14px; }
.marketplace-shop .cart-vendor-group h3 { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.marketplace-shop .cart-vendor-group h3 a { text-underline-offset: 3px; }
.marketplace-shop .cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 0 0 18px; margin-bottom: 16px; border: 0; border-bottom: 1px solid #ede8df; align-items: start; }
.marketplace-shop .cart-line-thumb { width: 72px; height: 86px; border: 0; border-radius: 7px; background: #f5f1e9; }
.marketplace-shop .cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-shop .cart-line-name { font: 400 14px/1.4 'Roboto', sans-serif; text-decoration: none; }
.marketplace-shop .cart-line-meta { font-size: 11px; line-height: 1.5; margin: 5px 0; }
.marketplace-shop .cart-line-price { font: 500 14px/1.4 'Roboto', sans-serif; text-align: right; }
.marketplace-shop .cart-quantity { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 10px 0 0; color: var(--text); text-transform: none; letter-spacing: 0; }
.marketplace-shop .cart-quantity input { width: 64px; min-height: 40px; padding: 6px; background: white; color: var(--text); border: 1px solid #aaa092; border-radius: 6px; }
.marketplace-shop .cart-line-remove { border: 0; color: var(--text-light); background: none; text-decoration: underline; font-size: 12px; text-transform: none; letter-spacing: 0; padding: 8px 0 0; min-height: 34px; }
.marketplace-shop .cart-summary > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; gap: 12px; }
.marketplace-shop .cart-summary .cart-summary-total { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; font-size: 16px; }
.marketplace-shop .cart-summary p { font-size: 11px; color: var(--text-light); margin-top: 8px; }
.marketplace-shop:has(.modal-overlay.open) { overflow: hidden; }
.marketplace-shop footer:not(.drawer-footer) { background: #f7f1e5; color: var(--text-light); border-top: 1px solid var(--border); }
@media (max-width: 1150px) {
  .marketplace-shop .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .marketplace-shop .market-nav { gap: 14px; }
  .marketplace-shop .market-nav > a:not(.market-brand) { font-size: 12px; }
  .marketplace-shop .shop-toolbar { flex-basis: 100%; }
}
@media (max-width: 850px) {
  .marketplace-shop .market-nav { gap: 10px 18px; padding: 12px 24px; }
  .marketplace-shop .market-brand { flex: 1 1 calc(100% - 140px); font-size: 22px; margin: 0; }
  .marketplace-shop #header-cart { order: 1; }
  .marketplace-shop .market-nav > a:not(.market-brand) { order: 2; min-height: 30px; font-size: 12px; }
  .marketplace-shop .site-header { padding: 20px 24px; }
  .marketplace-shop .hero-lead { font-size: 13px; }
  .marketplace-shop main { padding: 18px 24px 40px; }
  .marketplace-shop .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .marketplace-shop .detail-main-image { height: 340px; }
  .marketplace-shop #detail-body { gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .marketplace-shop .detail-modal { padding: 20px; }
  .marketplace-shop .item-list-row { grid-template-columns: 80px minmax(0,1fr) 90px; gap: 12px; }
  .marketplace-shop .list-photo { width: 80px; height: 90px; }
  .marketplace-shop .list-action { grid-column: 2 / -1; }
}
@media (max-width: 600px) {
  .marketplace-shop .market-nav { padding: 12px 16px; gap: 6px 14px; }
  .marketplace-shop .market-nav > a:not(.market-brand) { display: none; }
  .marketplace-shop .market-nav > a[href='/shop/booths.html'], .marketplace-shop .market-nav > a[href='/shop/shipping'] { display: inline-flex; }
  .marketplace-shop .market-brand { font-size: 21px; gap: 8px; }
  .marketplace-shop .market-brand img { width: 34px; height: 34px; }
  .marketplace-shop .market-brand small { font-size: 10px; }
  .marketplace-shop #header-cart { padding: 8px 14px; font-size: 12px; }
  .marketplace-shop .site-header { padding: 18px 16px; }
  .marketplace-shop .hero-kicker { display: none; }
  .marketplace-shop .site-header h1 { font-size: 30px; }
  .marketplace-shop .hero-lead { font-size: 12px; }
  .marketplace-shop main { padding: 16px 16px 32px; }
  .marketplace-shop .workspace-panel { gap: 6px; }
  .marketplace-shop .search-wrap input { font-size: 14px; min-height: 44px; padding: 10px 14px; }
  .marketplace-shop .search-wrap button { padding: 7px 14px; min-height: 38px; font-size: 12px; }
  .marketplace-shop .search-wrap .search-clear { padding: 5px; }
  .marketplace-shop .filter-chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding: 2px 0; }
  .marketplace-shop .chip { font-size: 11px; min-height: 34px; padding: 6px 12px; }
  .marketplace-shop .shop-controls { width: 100%; justify-content: space-between; }
  .marketplace-shop .shop-sort { font-size: 11px; min-height: 38px; max-width: 140px; }
  .marketplace-shop .item-grid { gap: 22px 12px; }
  .marketplace-shop .card-name { font-size: 13px; }
  .marketplace-shop .card-vendor { font-size: 11px; }
  .marketplace-shop .shop-price, .marketplace-shop .shop-price--sale { font-size: 16px; }
  .marketplace-shop .btn-reserve { font-size: 12px; padding: 8px 14px; min-height: 42px; }
  .marketplace-shop .modal-overlay:not(.shopping-drawer-overlay) { padding: 10px; }
  .marketplace-shop .modal { max-height: calc(100dvh - 20px); border-radius: 12px; }
  .marketplace-shop .detail-modal { padding: 16px; }
  .marketplace-shop #detail-body { display: block; }
  .marketplace-shop .detail-main-image { height: 300px; max-height: 42dvh; }
  .marketplace-shop .detail-info { padding: 18px 0 0; }
  .marketplace-shop #detail-title { font-size: 28px !important; }
  .marketplace-shop #detail-actions { position: sticky; bottom: 0; background: white; padding: 10px 0; }
  .marketplace-shop .drawer-header { padding: 18px 60px 16px 20px; }
  .marketplace-shop .drawer-content { padding: 18px 20px; }
  .marketplace-shop .drawer-footer { padding: 14px 20px max(14px, env(safe-area-inset-bottom)); gap: 8px; }
  .marketplace-shop .drawer-header h2 { font-size: 27px; }
  .marketplace-shop .added-product-image { max-height: 30dvh; }
  .marketplace-shop #modal-overlay .modal { padding: 24px 18px; }
  .marketplace-shop .list-desc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marketplace-shop *, .marketplace-shop *::before, .marketplace-shop *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.marketplace-shop .detail-stock { color: #35623b; font-size: 13px; margin: 0 0 12px; }
.marketplace-shop:has(.modal-overlay.open) #bmm-pub-assistant-btn { visibility: hidden; }

.marketplace-shop .cart-footer-total { display: flex; justify-content: space-between; gap: 12px; font-size: 17px; margin-bottom: 4px; }
/* Shared staff styles give all inputs 44px minimums; keep the checkbox compact
   inside its full-height touch label and keep mobile filters on one row. */
body.marketplace-shop { color-scheme: light; overflow-x: clip; }
.marketplace-shop .discovery-shipping { min-height: 44px; }
.marketplace-shop .discovery-shipping input { min-width: 18px; min-height: 18px; width: 18px; height: 18px; padding: 0; appearance: auto; }
@media (max-width: 600px) {
  .marketplace-shop .hero-lead { display: none; }
  .marketplace-shop .shop-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
  .marketplace-shop .shop-sort { min-width: 0; max-width: none; width: 100%; padding: 8px; }
  .marketplace-shop .view-toggle button { width: 40px; min-width: 40px; min-height: 44px; }
}
.marketplace-shop .item-list-row { display: grid; }
.marketplace-shop .list-price { min-width: 0; }
.marketplace-shop .list-name { font: 500 16px/1.4 'Roboto', sans-serif; }
.marketplace-shop .list-name a { display: block; text-align: left; }
.marketplace-shop .list-vendor { text-transform: none; letter-spacing: 0; }
.marketplace-shop #modal-overlay input[type=checkbox] { min-width: 18px; max-width: 18px; min-height: 18px; height: 18px; padding: 0; flex: 0 0 18px; }
@media (max-width: 600px) {
  .marketplace-shop .item-list-row { grid-template-columns: 70px minmax(0, 1fr); align-items: start; gap: 8px 14px; }
  .marketplace-shop .list-photo { grid-row: 1 / span 3; width: 70px; height: 90px; }
  .marketplace-shop .list-info { grid-column: 2; grid-row: 1; }
  .marketplace-shop .list-price { grid-column: 2; grid-row: 2; text-align: left; }
  .marketplace-shop .list-action { grid-column: 2; grid-row: 3; }
}
