:root {
  --market-purple: #67408c;
  --market-deep: #39204f;
  --market-soft: #f7f3fa;
  --market-gold: #efb83f;
  --market-green: #3d8b67;
  --market-ink: #31263b;
  --market-muted: #786e80;
  --market-line: #e9e1ed;
}

.marketplace-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 86px;
  color: #fff;
  background: linear-gradient(120deg, #2f1b42 0%, #5c367d 55%, #8a5da7 100%);
}

.marketplace-hero::before,
.marketplace-hero::after { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ''; }
.marketplace-hero::before { width: 520px; height: 520px; right: -145px; top: -285px; box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 78px rgba(255,255,255,.018); }
.marketplace-hero::after { width: 260px; height: 260px; left: -145px; bottom: -190px; }
.marketplace-hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); align-items: center; gap: 60px; }
.marketplace-hero-copy { max-width: 760px; }
.marketplace-kicker { display: inline-flex; align-items: center; gap: 8px; color: #eadcf2; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.marketplace-kicker i { color: #ffd878; font-size: .95rem; }
.marketplace-hero h1 { margin: 15px 0 0; font-size: clamp(2.35rem,4.5vw,4.4rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.03; }
.marketplace-hero h1 em { color: #f5ce72; font-style: normal; }
.marketplace-hero-copy > p { max-width: 660px; margin: 20px 0 0; color: #e6daec; font-size: .86rem; line-height: 1.75; }
.marketplace-hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.marketplace-hero-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #e7dced; background: rgba(255,255,255,.08); font-size: .65rem; }
.marketplace-hero-stats strong { color: #fff; font-size: .8rem; }
.marketplace-hero-stats i { color: #92dfb7; }

.marketplace-hero-art { position: relative; display: grid; width: 320px; height: 280px; margin-left: auto; place-items: center; }
.marketplace-main-icon { position: relative; z-index: 2; display: grid; width: 142px; height: 142px; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 38px; color: #fff; background: rgba(255,255,255,.12); box-shadow: 0 0 0 15px rgba(255,255,255,.035), 0 24px 45px rgba(29,13,40,.2); font-size: 4.4rem; transform: rotate(-5deg); }
.marketplace-animal-icon { position: absolute; z-index: 3; display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 17px; color: #613c81; background: #fff; box-shadow: 0 12px 24px rgba(30,14,43,.2); font-size: 1.45rem; }
.icon-cow { top: 20px; left: 15px; transform: rotate(-7deg); }
.icon-chicken { top: 10px; right: 13px; transform: rotate(8deg); }
.icon-pig { right: 3px; bottom: 22px; transform: rotate(-4deg); }
.marketplace-art-ring { position: absolute; inset: 13px 0 0 12px; border: 1px dashed rgba(255,255,255,.25); border-radius: 50%; transform: rotate(-15deg); }

.products-page-main { padding: 0 0 85px; background: linear-gradient(180deg,#f8f5fa,#fff 55%); }
.marketplace-toolbar { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(250px,1fr) 205px 175px auto; gap: 10px; margin: -32px 0 25px; padding: 16px; border: 1px solid rgba(104,64,140,.13); border-radius: 17px; background: #fff; box-shadow: 0 18px 40px rgba(62,36,82,.12); }
.marketplace-search,.marketplace-select { display: flex; align-items: center; min-height: 48px; overflow: hidden; border: 1px solid var(--market-line); border-radius: 10px; color: #876d98; background: #fbf9fc; }
.marketplace-search i,.marketplace-select i { flex: 0 0 auto; margin-left: 15px; }
.marketplace-search input,.marketplace-select select { width: 100%; min-width: 0; height: 46px; padding: 0 13px; border: 0; outline: 0; color: var(--market-ink); background: transparent; font: inherit; font-size: .75rem; }
.marketplace-select select { cursor: pointer; }
.marketplace-toolbar button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 10px; color: #fff; background: var(--market-deep); font: inherit; font-size: .72rem; font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform .2s ease,background .2s ease; }
.marketplace-toolbar button:hover { background: var(--market-purple); transform: translateY(-1px); }
.marketplace-toolbar button i { margin-left: 7px; }

.marketplace-categories { display: flex; gap: 9px; margin-bottom: 42px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: thin; }
.marketplace-categories a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 39px; padding: 0 13px; border: 1px solid var(--market-line); border-radius: 10px; color: #6f6477; background: #fff; font-size: .68rem; font-weight: 700; text-decoration: none; transition: .2s ease; }
.marketplace-categories a i { color: #8967a2; font-size: .92rem; }
.marketplace-categories a:hover,.marketplace-categories a.is-active { border-color: #735096; color: #fff; background: #654087; box-shadow: 0 7px 16px rgba(67,40,87,.14); }
.marketplace-categories a:hover i,.marketplace-categories a.is-active i { color: #fff; }

.marketplace-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.marketplace-results-head span,.related-products-head span { color: var(--market-purple); font-size: .64rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.marketplace-results-head h2,.related-products-head h2 { margin: 6px 0 0; color: var(--market-ink); font-size: clamp(1.45rem,2.5vw,2.15rem); letter-spacing: -.04em; }
.marketplace-results-head p { margin: 7px 0 0; color: var(--market-muted); font-size: .73rem; }
.marketplace-results-head > a { color: var(--market-purple); font-size: .7rem; font-weight: 800; text-decoration: none; }

.products-page-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.products-page-card { display: block; min-width: 0; overflow: hidden; border: 1px solid var(--market-line); border-radius: 16px; color: inherit; background: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(66,43,82,.055); transition: transform .24s ease,box-shadow .24s ease,border-color .24s ease; }
.products-page-card:hover { border-color: #cab6d7; box-shadow: 0 18px 35px rgba(66,43,82,.13); transform: translateY(-6px); }
.products-page-image { position: relative; display: block; aspect-ratio: 1.2/1; overflow: hidden; background: #ece5f0 center/cover no-repeat; transition: background-size .3s ease; }
.products-page-image::after { position: absolute; inset: 45% 0 0; background: linear-gradient(180deg,transparent,rgba(38,23,49,.28)); content: ''; }
.product-category-badge { position: absolute; z-index: 2; top: 11px; left: 11px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 7px; color: #5f3c78; background: rgba(255,255,255,.93); box-shadow: 0 5px 13px rgba(40,25,52,.1); font-size: .58rem; font-weight: 800; text-transform: capitalize; }
.product-favorite { position: absolute; z-index: 2; top: 11px; right: 11px; display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; color: #76518e; background: rgba(255,255,255,.93); box-shadow: 0 5px 13px rgba(40,25,52,.1); }
.products-page-copy { display: block; padding: 15px 15px 14px; }
.product-seller { display: block; overflow: hidden; color: #8c7b96!important; font-size: .61rem!important; font-weight: 600!important; text-overflow: ellipsis; white-space: nowrap; }
.product-seller i { margin-right: 4px; color: #9a74b3; }
.products-page-copy > strong { display: -webkit-box; min-height: 39px; overflow: hidden; margin-top: 7px; color: var(--market-ink); font-size: .87rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-price { display: block; margin-top: 8px; color: var(--market-purple); font-size: .84rem; font-weight: 800; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid #f0ebf2; }
.product-stock { overflow: hidden; color: #9a8f9f; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.product-stock.is-ready { color: var(--market-green); }
.product-stock i { margin-right: 3px; }
.product-card-bottom b { flex: 0 0 auto; color: var(--market-purple); font-size: .62rem; }
.marketplace-empty,.product-not-found { padding: 70px 20px; border: 1px dashed #d9cde1; border-radius: 18px; background: #fff; text-align: center; }
.marketplace-empty > span { display: grid; width: 62px; height: 62px; margin: auto; place-items: center; border-radius: 18px; color: #765098; background: #f0e8f5; font-size: 1.65rem; }
.marketplace-empty h2,.product-not-found h1 { margin: 17px 0 6px; color: var(--market-ink); font-size: 1.3rem; }
.marketplace-empty p,.product-not-found p { color: var(--market-muted); font-size: .76rem; }
.marketplace-empty a,.product-not-found a { display: inline-flex; margin-top: 12px; color: var(--market-purple); font-size: .72rem; font-weight: 800; text-decoration: none; }

.product-detail-hero { position: relative; overflow: hidden; padding: 42px 0 76px; color: #fff; background: linear-gradient(120deg,#301d42,#5f3a7f 65%,#865ca2); }
.product-detail-hero::after { position: absolute; width: 430px; height: 430px; right: -110px; top: -265px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025); content: ''; }
.product-detail-breadcrumb { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin-bottom: 36px; color: #cdbbd9; font-size: .65rem; }
.product-detail-breadcrumb a { color: #eadff0; text-decoration: none; }
.product-detail-breadcrumb i { font-size: .5rem; }
.product-detail-hero-copy { position: relative; z-index: 1; max-width: 720px; }
.product-detail-hero-copy > span { color: #e6d5ef; font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-detail-hero-copy h1 { margin: 10px 0 0; font-size: clamp(2rem,4vw,3.5rem); letter-spacing: -.05em; line-height: 1.05; }
.product-detail-hero-copy p { max-width: 600px; margin: 14px 0 0; color: #dfd0e7; font-size: .78rem; line-height: 1.7; }
.product-detail-page { padding: 0 0 80px; background: #f8f5fa; }
.product-detail-layout { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); overflow: hidden; margin-top: -38px; border: 1px solid var(--market-line); border-radius: 20px; background: #fff; box-shadow: 0 20px 48px rgba(55,32,71,.13); }
.product-detail-gallery { min-width: 0; padding: 18px; background: #fff; }
.product-detail-image { position: relative; min-height: 490px; border-radius: 15px; background: #ece5f0 center/cover no-repeat; }
.product-detail-photo-label { position: absolute; left: 14px; bottom: 14px; padding: 7px 10px; border-radius: 8px; color: #fff; background: rgba(48,29,62,.7); backdrop-filter: blur(7px); font-size: .61rem; font-weight: 700; }
.product-detail-trust { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 12px; }
.product-detail-trust span { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; padding: 10px; border: 1px solid #eee8f1; border-radius: 10px; background: #fcfbfd; }
.product-detail-trust i { grid-row: 1/3; align-self: center; color: #7c55a0; font-size: 1rem; }
.product-detail-trust b { color: #4c3d55; font-size: .58rem; }
.product-detail-trust small { color: #9a8f9f; font-size: .52rem; }
.product-detail-copy { align-self: center; padding: clamp(30px,4.5vw,60px); }
.product-detail-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: #704b8e; background: #f0e8f5; font-size: .62rem; font-weight: 800; }
.product-detail-copy h1 { margin: 16px 0 0; color: var(--market-ink); font-size: clamp(1.8rem,3.5vw,3.15rem); letter-spacing: -.05em; line-height: 1.08; }
.product-detail-seller { display: flex; align-items: center; gap: 10px; margin-top: 17px; }
.product-detail-seller > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; color: #765098; background: #f1eaf5; }
.product-detail-seller small,.product-detail-seller strong { display: block; }
.product-detail-seller small { color: #988c9d; font-size: .57rem; }
.product-detail-seller strong { margin-top: 2px; color: #57485f; font-size: .7rem; }
.product-detail-price { display: block; margin-top: 22px; color: var(--market-purple); font-size: 1.35rem; }
.product-detail-stock { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px 12px; border: 1px solid #eee7f1; border-radius: 10px; color: #85788c; background: #fbf9fc; }
.product-detail-stock.is-ready { border-color: #d9ede3; color: #377b5b; background: #f4fbf7; }
.product-detail-stock > i { font-size: 1.05rem; }
.product-detail-stock span { font-size: .64rem; }
.product-detail-stock b { display: block; margin-bottom: 2px; font-size: .58rem; text-transform: uppercase; }
.product-detail-lead { margin: 22px 0 0; color: #574b5e; font-size: .88rem; font-weight: 700; line-height: 1.7; }
.product-detail-text { margin-top: 13px; color: #817687; font-size: .76rem; line-height: 1.8; }
.product-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.product-detail-contact,.product-detail-map { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 0 16px; border-radius: 9px; font-size: .7rem; font-weight: 800; text-decoration: none; }
.product-detail-contact { color: #fff; background: #367c59; box-shadow: 0 10px 20px rgba(54,124,89,.18); }
.product-detail-contact:hover { color: #fff; background: #2d694b; }
.product-detail-map { border: 1px solid #dacde2; color: #6d4b85; background: #fff; }
.product-detail-help { display: flex; gap: 8px; margin-top: 20px; color: #938798; font-size: .59rem; line-height: 1.55; }
.product-detail-help i { flex: 0 0 auto; color: #8e69a6; }
.related-products { padding-top: 62px; }
.related-products-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.related-products-head a { color: var(--market-purple); font-size: .7rem; font-weight: 800; text-decoration: none; }
.product-not-found { margin-top: 60px; }
.product-not-found > i { color: #765098; font-size: 2.2rem; }

@media(max-width:1050px){.products-page-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.marketplace-toolbar{grid-template-columns:minmax(240px,1fr) 190px 160px}.marketplace-toolbar button{grid-column:1/-1}.product-detail-layout{grid-template-columns:1fr}.product-detail-image{min-height:440px}}
@media(max-width:780px){.marketplace-hero{padding:55px 0 76px}.marketplace-hero-layout{grid-template-columns:1fr}.marketplace-hero-art{display:none}.marketplace-toolbar{grid-template-columns:1fr 1fr;margin-top:-27px}.marketplace-search{grid-column:1/-1}.marketplace-toolbar button{grid-column:1/-1}.products-page-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-detail-trust{grid-template-columns:1fr}.product-detail-trust span{grid-template-columns:auto 1fr}.related-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.marketplace-hero h1{font-size:2.35rem}.marketplace-hero-stats span:last-child{display:none}.products-page-main{padding-bottom:58px}.marketplace-toolbar{display:flex;flex-direction:column;padding:12px}.marketplace-search,.marketplace-select,.marketplace-toolbar button{width:100%}.marketplace-categories{margin-bottom:30px}.marketplace-results-head{align-items:flex-start;flex-direction:column}.products-page-grid{gap:10px}.products-page-copy{padding:11px}.products-page-copy>strong{font-size:.76rem}.product-category-badge{top:7px;left:7px;padding:5px 6px}.product-favorite{top:7px;right:7px;width:27px;height:27px}.product-card-bottom{align-items:flex-start;flex-direction:column}.product-detail-hero{padding:30px 0 64px}.product-detail-breadcrumb{margin-bottom:27px}.product-detail-hero-copy h1{font-size:2rem}.product-detail-gallery{padding:10px}.product-detail-image{min-height:300px}.product-detail-copy{padding:28px 21px}.product-detail-copy h1{font-size:1.9rem}.product-detail-actions{display:grid}.product-detail-contact,.product-detail-map{width:100%}.related-products{padding-top:45px}.related-products-head{align-items:flex-start;flex-direction:column}.related-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
