.mkt-head{display:flex;align-items:end;justify-content:space-between;padding:20px 14px 12px}.mkt-head__title small{font-size:10px;font-weight:900;color:#a6e45d;letter-spacing:1px}.mkt-head__title h1{margin:3px 0 0;font-size:34px}.mkt-head__filter{border:1px solid #6ab63d;background:#143c20;color:white;border-radius:12px;padding:10px 12px;font-weight:800}.mkt-search{margin:0 14px 12px;background:#fff7e5;color:#1a211d;border-radius:15px;padding:11px 13px;display:flex;align-items:center;gap:8px}.mkt-search span{font-size:26px}.mkt-search input{width:100%;border:0;background:transparent;outline:0;font-size:15px}.mkt-cats{display:flex;gap:8px;overflow-x:auto;padding:0 14px 14px}.mkt-cats::-webkit-scrollbar{display:none}.mkt-cats button{flex:0 0 auto;border:1px solid #597c54;background:#102a1b;color:#fff;padding:9px 13px;border-radius:999px;font-weight:800;font-size:12px}.mkt-cats button.is-active{background:#ffac17;color:#17130b;border-color:#ffc95b}.mkt-feed{padding:0 12px 18px;display:grid;gap:12px}.mkt-card{background:#fff6e0;color:#1b211d;border:1px solid #d8caa5;border-radius:17px;overflow:hidden;box-shadow:var(--app-shadow)}.mkt-card__image{display:block;height:205px;position:relative}.mkt-card__image img{width:100%;height:100%;object-fit:cover}.mkt-card__featured,.mkt-card__photos{position:absolute;background:rgba(19,24,19,.88);color:#fff;font-size:10px;font-weight:900;padding:6px 8px;border-radius:8px}.mkt-card__featured{left:10px;top:10px;background:#ff6a18}.mkt-card__photos{right:10px;bottom:10px}.mkt-card__body{padding:12px;position:relative}.mkt-card__heart{position:absolute;right:10px;top:8px;border:0;background:transparent;font-size:30px}.mkt-card__title-row{display:flex;align-items:start;justify-content:space-between;gap:42px}.mkt-card__title-row h2{margin:0;font-size:20px}.mkt-card__title-row strong{font-size:21px;color:#14612d;white-space:nowrap}.mkt-card__body em{font-size:12px;color:#717870}.mkt-card__badges{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.mkt-badge{font-size:10px;font-weight:900;padding:5px 7px;border-radius:8px}.mkt-badge--green{background:#ccedab}.mkt-badge--verified{background:#b9dcff;color:#165bac}.mkt-badge--shipping{background:#ffdc74}.mkt-badge--equipment{background:#d9c8ff;color:#593b9c}.mkt-card__meta,.mkt-card__location{margin:4px 0;font-size:12px;color:#515a52}.mkt-card__bottom{display:flex;justify-content:space-between;align-items:end;border-top:1px solid #ddd3bd;padding-top:10px;margin-top:9px}.mkt-card__bottom div{display:grid}.mkt-card__bottom b{font-size:12px}.mkt-card__bottom small{font-size:10px;color:#dc8e00}.mkt-card__bottom a{padding:10px 12px;background:linear-gradient(#ffc93d,#ff9a08);border-radius:10px;font-weight:900;font-size:12px}


/* Database-backed category links */
.mkt-cats a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.mkt-empty {
    margin: 14px 16px 24px;
    padding: 24px 18px;
    border-radius: 18px;
    background: rgba(255, 248, 224, .96);
    color: #173a28;
    text-align: center;
}

.mkt-empty strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.mkt-empty p {
    margin: 0 0 14px;
}

.mkt-empty a {
    color: #176b3a;
    font-weight: 600;
}


/* Cleaner marketplace cards + lighter typography */
.mkt-head__title small,
.mkt-head__filter,
.mkt-card__price,
.mkt-card__bottom a {
    font-weight: 400 !important;
}

.mkt-head__title small {
    letter-spacing: 0.8px !important;
}

.mkt-head__filter {
    font-size: 15px !important;
}

.mkt-card__photos,
.mkt-card__heart {
    display: none !important;
}

.mkt-card__image {
    overflow: hidden !important;
}

.mkt-card__image img {
    display: block !important;
}

.mkt-card__title-row {
    align-items: flex-start !important;
    gap: 12px !important;
}

.mkt-card__price {
    display: inline-block !important;
    flex: 0 0 auto !important;
    margin-left: auto !important;
    padding: 2px 0 0 !important;
    color: #0d7d42 !important;
    font-size: 18px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

.mkt-card__bottom a {
    text-decoration: none !important;
}

.mkt-card__featured {
    font-weight: 400 !important;
}

/* Simple marketplace header + expandable search/filter area */
.mkt-simple-head {
    min-height: 62px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 1px solid rgba(225, 164, 57, .22);
    background: #0d331f;
}

.mkt-simple-head h1 {
    margin: 0;
    text-align: center;
    font-size: 22px;
    line-height: 1;
    font-weight: 400 !important;
    color: #f4ead5;
}

.mkt-simple-head__back,
.mkt-simple-head__search {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f0b54b;
    font-size: 29px;
    line-height: 1;
    font-weight: 400 !important;
    text-decoration: none;
}

.mkt-simple-head__search {
    color: #8fda43;
    cursor: pointer;
}

.mkt-filter-panel {
    display: none;
    padding: 10px 10px 14px;
    background: #24160f;
    border-bottom: 1px solid rgba(237, 185, 83, .25);
}

.mkt-filter-panel.is-open {
    display: block;
}

.mkt-filter-form {
    display: grid;
    gap: 5px;
}

.mkt-filter-form label {
    display: block;
}

.mkt-filter-form label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.mkt-filter-form input,
.mkt-filter-form select {
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 3px;
    outline: 0;
    background: #fffaf0;
    color: #28312a;
    font: inherit;
    font-size: 14px;
    font-weight: 400 !important;
}

.mkt-filter-form input:focus,
.mkt-filter-form select:focus {
    border-color: #9ade3d;
    box-shadow: 0 0 0 1px #9ade3d;
}

.mkt-filter-form__actions {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 6px;
    margin-top: 1px;
}

.mkt-filter-form__actions a,
.mkt-filter-form__actions button {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400 !important;
    text-decoration: none;
}

.mkt-filter-form__actions a {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .07);
    color: #eadbc8;
}

.mkt-filter-form__actions button {
    border: 1px solid #79bd26;
    background: #8fd800;
    color: #18300d;
    cursor: pointer;
}

/* Marketplace listing age */
.mkt-card__age {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(13,28,18,.58);
    color: rgba(255,255,255,.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 11px;
    font-weight: 400 !important;
    line-height: 1;
    pointer-events: none;
}

/* Timestamp badge positioning fix */
.mkt-card__image {
    position: relative !important;
}

.mkt-card__age {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 5 !important;
    display: inline-block !important;
    width: auto !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    background: rgba(13,28,18,.62) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

/* ---------------------------------------------------------
   Cleaner + tighter Marketplace cards
   --------------------------------------------------------- */

/* Hide legacy featured marker even if old markup remains */
.mkt-card__featured {
    display: none !important;
}

.mkt-card {
    overflow: hidden !important;
    border-radius: 15px !important;
    margin-bottom: 10px !important;
}

.mkt-card__image {
    height: 198px !important;
    min-height: 0 !important;
}

.mkt-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Keep only the useful freshness badge on the image */
.mkt-card__age {
    top: 9px !important;
    right: 9px !important;
    padding: 5px 7px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    font-weight: 400 !important;
}

.mkt-card__body {
    padding: 11px 12px 10px !important;
}

.mkt-card__title-row {
    gap: 8px !important;
    align-items: flex-start !important;
    margin: 0 !important;
}

.mkt-card__title-row h2 {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 400 !important;
}

.mkt-card__price,
.mkt-card__title-row strong {
    font-size: 18px !important;
    line-height: 1.1 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.mkt-card__scientific {
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
}

.mkt-card__badges {
    gap: 5px !important;
    margin: 8px 0 7px !important;
}

.mkt-card__badges span {
    padding: 5px 7px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.mkt-card__facts,
.mkt-card__meta {
    gap: 4px !important;
    margin-top: 5px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
}

.mkt-card__location {
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

.mkt-card__footer {
    margin-top: 9px !important;
    padding-top: 8px !important;
    gap: 8px !important;
}

.mkt-card__seller,
.mkt-card__seller strong,
.mkt-card__seller b,
.mkt-card__seller span,
.mkt-card__seller small {
    font-weight: 400 !important;
}

.mkt-card__seller {
    line-height: 1.15 !important;
    font-size: 11px !important;
}

/* Category below seller is not essential on the card */
.mkt-card__seller small {
    display: none !important;
}

.mkt-card__details,
.mkt-card__footer a,
.mkt-card__footer button {
    min-height: 34px !important;
    padding: 7px 12px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 400 !important;
}

/* Gold Member marketplace section */
.mkt-gold-section {
    margin-bottom: 14px;
    padding: 10px 8px 4px;
    border-radius: 14px;
    border: 1px solid rgba(221,171,50,.45);
    background: linear-gradient(180deg, rgba(74,54,14,.30), rgba(35,25,10,.10));
}

.mkt-gold-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 0 3px 8px;
    color: #f2c759;
}

.mkt-gold-section__head span,
.mkt-gold-section__head small {
    font-weight: 400 !important;
}

.mkt-gold-section__head span { font-size: 13px; }
.mkt-gold-section__head small { font-size: 10px; opacity: .78; }

.mkt-card__gold-label {
    display: inline-block;
    margin: 0 0 7px;
    padding: 4px 7px;
    border: 1px solid rgba(202,152,31,.45);
    border-radius: 7px;
    background: rgba(236,191,70,.15);
    color: #8a6510;
    font-size: 10px;
    font-weight: 400 !important;
    line-height: 1;
}


/* Marketplace card redesign v2 */
.mkt-card {
    position: relative !important;
    cursor: pointer !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}

.mkt-card__body {
    padding: 10px 12px 11px !important;
}

.mkt-card__title-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: start !important;
    gap: 10px !important;
    margin: 0 !important;
}

.mkt-card__title-row h2 {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
    font-weight: 400 !important;
}

.mkt-card__price {
    font-size: 18px !important;
    line-height: 1.08 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.mkt-card__body > em {
    display: block !important;
    margin: 3px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 400 !important;
    opacity: .68 !important;
}

.mkt-card__meta {
    margin: 8px 0 0 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    opacity: .82 !important;
}

.mkt-card__badges {
    display: flex !important;
    gap: 5px !important;
    margin: 7px 0 0 !important;
}

.mkt-card__badges .mkt-badge {
    padding: 4px 7px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
}

.mkt-card__location {
    margin: 7px 0 0 !important;
    padding-bottom: 9px !important;
    border-bottom: 1px solid rgba(92,78,47,.16) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

.mkt-card__seller-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 9px !important;
}

.mkt-card__seller-name {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #243229 !important;
}

.mkt-card__seller-status {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.mkt-card__gold,
.mkt-card__verified {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 20px !important;
    padding: 3px 6px !important;
    border-radius: 6px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.mkt-card__gold {
    border: 1px solid rgba(180,131,15,.38) !important;
    background: rgba(237,190,53,.18) !important;
    color: #7a5708 !important;
}

.mkt-card__verified {
    border: 1px solid rgba(54,132,185,.22) !important;
    background: rgba(105,180,232,.16) !important;
    color: #23638e !important;
}

.mkt-card__bottom,
.mkt-card__footer,
.mkt-card__details {
    display: none !important;
}

.mkt-card b,
.mkt-card strong,
.mkt-card__age {
    font-weight: 400 !important;
}
