/* Product discovery, public seller profiles and shared footer. */
[data-favorite]{cursor:pointer;touch-action:manipulation;transition:background-color .18s,color .18s,box-shadow .18s;}
[data-favorite]>.icon{transition:transform .2s cubic-bezier(.2,.8,.3,1.5);pointer-events:none}
[data-favorite]:focus-visible{outline:3px solid #26745d;outline-offset:3px}
[data-favorite].active{background:#ff705c;color:#fff}
[data-favorite].active>.icon{color:#fff}
[data-favorite].favorite-pop>.icon{animation:heart-pop .36s ease-out}
.toast:not(.show){visibility:hidden;pointer-events:none}
@keyframes heart-pop{0%,100%{transform:scale(1)}40%{transform:scale(1.32) rotate(-9deg)}70%{transform:scale(.94)}}
@media(hover:hover){[data-favorite]:hover{box-shadow:0 3px 12px #d36a4933;background:#fff0eb}[data-favorite]:hover>.icon{transform:scale(1.15)}[data-favorite].active:hover{background:#ef604f}}
.catalog-category-chip.active,.catalog-category-chip:hover,.catalog-category-chip:focus-visible{background:var(--category-tint,#f1ece3)!important}
.catalog-category-chip{transition:background .18s,box-shadow .18s;cursor:pointer}
.category-tile:hover,.category-tile:focus-visible{background:var(--category-tint,#f1ece3)!important}
.market-footer,.home-page .market-footer{display:block!important;grid-template-columns:none!important;margin:52px 0 0!important;padding:34px 34px 0!important;background:#fffdf9;border:1px solid #e5dfd3!important;border-radius:28px;box-shadow:0 12px 40px #57412809;overflow:hidden}
.footer-inner{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(0,1fr));gap:28px;padding-bottom:30px}
.market-footer .footer-logo{display:block;width:185px;max-width:100%;margin:0 0 15px!important}
.market-footer h4{margin:0 0 14px;font-size:14px;color:#173f34;line-height:1.3}
.market-footer a{font-size:13px!important;color:#5e6c64;line-height:1.5;text-decoration:none}
.market-footer a:not(.footer-logo):hover{color:#bd543f;text-decoration:underline;text-underline-offset:4px}
.footer-copy{font-size:13px!important;line-height:1.65!important;color:#7a847d;margin:0}
.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0 -34px;padding:16px 34px;border-top:1px solid #e9e3d8;background:#f5f3ec;color:#738078;font-size:12px;line-height:1.5}
.footer-bottom>span{display:inline-flex;align-items:center;gap:7px}
.footer-bottom .icon{color:#587a66;font-size:17px}
.detail-title{line-height:1.16;margin:18px 0 22px;font-size:clamp(25px,2.3vw,38px)}
.detail-price{position:relative;isolation:isolate;display:inline-flex;align-items:center;max-width:100%;min-height:64px;margin:0 0 8px;padding:12px 23px;color:#173f34;font-size:30px;font-weight:800;line-height:1.15;overflow-wrap:anywhere}
.detail-price:before{content:"";position:absolute;z-index:-1;inset:0;background:#fff0ae;border-radius:18% 12% 21% 13% / 35% 47% 32% 51%;transform:rotate(-1.5deg);box-shadow:0 3px 0 #e9d69b3b}
.detail-price.free:before{background:#dff4e8}
.detail-location{align-items:center;line-height:1.5;margin-top:12px}
.online-dot{font-style:normal!important}
.seller-box{display:flex;gap:12px;min-width:0;color:inherit;text-decoration:none;transition:background .18s,box-shadow .18s}
.seller-box:hover{background:#edf4ed;box-shadow:0 0 0 1px #c8dacb}
.seller-box:focus-visible{outline:3px solid #26745d;outline-offset:3px}
.public-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;overflow:hidden;background:#fff0ad;color:#173f34;font-size:17px;font-weight:800;line-height:1;border:3px solid #fff;box-shadow:0 0 0 1px #e7dfce}
.public-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.seller-mini-copy{min-width:0;flex:1}
.seller-box strong{font-size:17px!important;line-height:1.3;overflow-wrap:anywhere}
.seller-box small{font-size:12px;line-height:1.5;margin-top:4px}
.seller-profile-hint{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:11px;font-weight:700;color:#39745d}
.seller-mini-rating{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#6f5c22;font-size:13px;font-weight:800}
.seller-mini-rating .ph-star-fill{color:#bd922f}
.detail-recommendations{display:grid;gap:22px;margin-top:38px}
.recommendation-block{padding:26px;border:1px solid #e5e5d8;border-radius:26px;background:#f0f6ef}
.recommendation-block.similar-recommendations{background:#fff5dc;border-color:#eee2c4}
.recommendation-block>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.section-kicker{display:block;color:#8b7146;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;line-height:1.4}
.recommendation-block h2{margin:6px 0 0;color:#182d23;font-size:clamp(22px,2.4vw,30px);line-height:1.2;letter-spacing:-.035em}
.quiet-link{display:inline-flex;align-items:center;gap:7px;color:#35674e;font-size:13px;font-weight:800;white-space:nowrap}
.recommendation-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.recommendation-grid .product-card{min-width:0;box-shadow:0 4px 15px #493b2110}
.recommendation-grid .product-info{padding:14px 12px}
.recommendation-grid .product-info h3{font-size:14px;line-height:1.4}
.recommendation-grid .meta{font-size:11px;flex-wrap:wrap;gap:5px}
.public-seller-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;overflow:hidden;padding:36px;border:1px solid #dce9dd;border-radius:28px;background:linear-gradient(110deg,#edf7ed,#fbf8e8);margin:18px 0 24px}
.public-seller-identity{display:flex;align-items:center;gap:24px;min-width:0}
.public-avatar.large{flex-basis:110px;width:110px;height:110px;font-size:35px;border-width:5px;box-shadow:0 0 0 1px #d6e4d4,0 10px 25px #35543a0d}
.public-seller-hero h1{font-size:clamp(25px,3.1vw,40px);line-height:1.15;letter-spacing:-.04em;margin:8px 0 12px;overflow-wrap:anywhere}
.public-seller-hero h1>.icon{color:#208363;font-size:25px;vertical-align:middle}
.public-seller-meta{display:flex;flex-wrap:wrap;gap:8px 16px;color:#627468;font-size:13px;line-height:1.5}
.public-seller-meta>span{display:inline-flex;align-items:center;gap:6px}
.seller-rating{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:7px 11px;border:1px solid #eddfa9;border-radius:11px;background:#fff9db;color:#6c571d;font-size:14px;font-weight:800;line-height:1.3}
.seller-rating>.icon{color:#ac8525}
.seller-rating small{font-weight:500;color:#81754f;font-size:11px}
.seller-rating.no-reviews{border-color:#dce5db;background:#ffffff8c;color:#647365;font-size:12px;font-weight:600}
.public-seller-action{display:grid;gap:12px;flex:0 0 auto}
.public-seller-action>.primary-btn{min-height:50px;font-size:14px;padding:12px 20px;white-space:nowrap}
.public-seller-action>span{display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:#6c7d6d}
.public-seller-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}
.seller-about{position:sticky;top:108px;padding:24px;border:1px solid #e5ded2;border-radius:24px;background:#fffdf8}
.seller-about h2{font-size:18px;margin:0 0 15px}
.seller-about>p{font-size:14px;line-height:1.7;color:#68746c;white-space:pre-wrap;overflow-wrap:anywhere}
.seller-public-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:22px 0;padding:18px 0;border-top:1px solid #eee6d7;border-bottom:1px solid #eee6d7}
.seller-public-stats b,.seller-public-stats span{display:block}
.seller-public-stats b{font-size:24px;line-height:1.3}
.seller-public-stats span{font-size:12px;color:#7b8279;margin-top:4px}
.seller-about .seller-demo-note,.seller-about .seller-privacy-note{font-size:12px;line-height:1.65;color:#7b7c68;margin-bottom:0}
.seller-listings{min-width:0;padding:26px;border:1px solid #e8e0d4;border-radius:24px;background:#fffdf9}
.seller-listings>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:20px}
.seller-listings h2{font-size:24px;line-height:1.2;margin:6px 0 0;letter-spacing:-.035em}
.seller-listings h2>span{display:inline-flex;min-width:27px;align-items:center;justify-content:center;padding:3px 8px;background:#f1eee4;color:#64715f;border-radius:9px;font-size:14px;vertical-align:middle}
.seller-list-search{display:flex;align-items:center;gap:9px;padding:0 12px;min-width:0;max-width:100%;height:44px;border:1px solid #dedccf;border-radius:12px;background:#fff}
.seller-list-search input{width:180px;min-width:0;max-width:100%;height:100%;font-size:14px;border:0;outline:0;background:transparent}
.seller-category-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.seller-category-filters button{padding:9px 13px;border:1px solid #e4dfd2;border-radius:11px;background:#fff;color:#657063;font-size:12px;font-weight:700;cursor:pointer}
.seller-category-filters button.active{background:#e6f3e9;border-color:#c9e2cf;color:#285c40}
.seller-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.seller-search-empty{padding:24px;text-align:center;color:#768070;font-size:14px}
.seller-not-found{padding:60px 20px;text-align:center}
.seller-not-found h1{font-size:32px}
.seller-not-found p{font-size:15px;color:#6b7569;margin-bottom:25px}
.live-messenger{display:grid;grid-template-columns:280px minmax(0,1fr);height:min(690px,calc(100dvh - 255px));min-height:400px;border:1px solid #e4ddd1;border-radius:23px;background:#fff;overflow:hidden}
.messenger-loading,.inbox-empty{padding:24px;color:#788073;font-size:14px}
.live-inbox{min-width:0;overflow-y:auto;background:#faf9f5;border-right:1px solid #e6dfd2}
.live-inbox>label{display:flex;align-items:center;gap:8px;margin:16px;padding:0 10px;border:1px solid #e3ddd1;border-radius:12px;background:#fff}
.live-inbox input{width:100%;min-width:0;height:42px;border:0;background:transparent;font-size:14px}
.live-thread{display:flex;gap:10px;align-items:center;min-width:0;width:100%;padding:15px;border:0;border-bottom:1px solid #eee9df;background:transparent;text-align:left;cursor:pointer}
.live-thread.active{background:#e6f1e7}
.live-thread>span:nth-child(2){min-width:0;flex:1}
.live-thread b,.live-thread small,.live-thread time{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-thread b{font-size:13px;line-height:1.5;color:#263f30}
.live-thread small{font-size:12px;margin-top:3px;color:#768372}
.live-thread time{font-size:10px;margin-top:6px;color:#8c9489}
.live-thread em{padding:3px 6px;background:#e7775c;color:#fff;border-radius:20px;font-size:10px;font-style:normal}
.live-thread .public-avatar{width:39px;height:39px;flex-basis:39px;font-size:13px}
.live-chat{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%}
.live-chat-head{display:flex;align-items:center;gap:10px;padding:15px 20px;border-bottom:1px solid #eee8dd;flex:0 0 auto}
.live-chat-head>a{display:flex;align-items:center;gap:11px;color:#233e2d;min-width:0}
.live-chat-head b{display:block;font-size:16px;overflow-wrap:anywhere}
.live-chat-head small{display:flex;align-items:center;gap:5px;margin-top:3px;color:#72806c;font-size:11px}
.chat-back{display:none}
.live-chat .chat-safety{padding:11px 16px;font-size:11px;line-height:1.5;background:#fff7dc}
.live-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:20px;overscroll-behavior:contain;background:#f8faf6}
.live-chat-messages .chat-bubble{width:max-content;max-width:85%;margin-bottom:13px}
.live-chat-messages .chat-bubble p{white-space:pre-wrap;overflow-wrap:anywhere}
.live-chat-messages .chat-bubble time{font-size:10px}
.live-chat-compose{display:flex;align-items:flex-end;gap:10px;flex:0 0 auto;padding:12px 16px;border-top:1px solid #eae5d8;background:#fff}
.live-chat-compose textarea{min-width:0;flex:1;min-height:46px;max-height:120px;padding:12px;border:1px solid #dfdfd1;border-radius:13px;background:#fafbf7;font-size:15px;line-height:1.4;resize:vertical}
.live-chat-compose .primary-btn{width:46px;min-width:46px;min-height:46px;padding:0;border-radius:13px}
.live-chat-compose button:disabled{opacity:.6;cursor:wait}
.live-chat-status{margin:0;padding:0 16px;background:#fff;color:#637d60;font-size:12px;line-height:1.5}
.live-chat-status:empty{display:none}
.live-chat-status.error{padding-top:8px;color:#b14733}
.messenger-empty{grid-column:1/-1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;max-width:500px;margin:auto;padding:30px;text-align:center}
.messenger-empty>.icon{font-size:42px;color:#568364}
.messenger-empty h2{font-size:21px;line-height:1.3;margin:0}
.messenger-empty p,.conversation-start{font-size:14px;color:#75816f;line-height:1.65;margin:0;overflow-wrap:anywhere}
.messenger-empty .outline-btn{margin-top:8px;cursor:pointer}
.load-older{display:block;margin:0 auto 18px;padding:8px 14px;border:1px solid #d6dfcf;border-radius:10px;background:#fff;color:#536b49;font-size:12px;cursor:pointer}
@media(max-width:1180px){.footer-inner{grid-template-columns:1.5fr repeat(4,1fr);gap:18px}.recommendation-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.public-seller-layout{grid-template-columns:240px minmax(0,1fr)}.seller-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.public-seller-hero{padding:26px;gap:18px}.public-avatar.large{width:86px;height:86px;flex-basis:86px}.public-seller-identity{gap:17px}}
@media(max-width:820px){
  .market-footer,.home-page .market-footer{margin:32px 0 0!important;padding:26px 20px 0!important;border-radius:24px;gap:0!important}
  .footer-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;padding-bottom:26px}
  .footer-brand{grid-column:1/-1;display:block}
  .market-footer .footer-logo{width:165px;margin-bottom:12px!important}
  .market-footer h4{font-size:14px!important;margin-bottom:10px}
  .market-footer a{font-size:13px!important;margin:8px 0}
  .footer-copy{font-size:13px!important}
  .footer-bottom{margin:0 -20px;padding:14px 20px;gap:8px;font-size:11px}
  .detail-title{font-size:28px;margin-bottom:20px}
  .detail-price{font-size:29px;min-height:60px;padding:12px 20px}
  .seller-box{padding:14px;gap:10px}
  .seller-box strong{font-size:17px!important}
  .seller-box small{font-size:12px!important}
  .detail-recommendations{gap:18px;margin-top:26px}
  .recommendation-block{padding:19px 14px;border-radius:22px}
  .recommendation-block>header{align-items:flex-start;gap:12px;margin-bottom:18px}
  .recommendation-block h2{font-size:23px;line-height:1.2}
  .recommendation-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .quiet-link{font-size:12px;white-space:normal;text-align:right;flex-shrink:0;max-width:90px}
  .section-kicker{font-size:10px}
  .public-seller-hero{display:block;padding:24px 20px;margin-top:12px;border-radius:23px}
  .public-seller-identity{align-items:flex-start;gap:14px}
  .public-seller-hero h1{font-size:26px;margin-top:7px}
  .public-avatar.large{width:70px;height:70px;flex-basis:70px;font-size:24px;border-width:4px}
  .public-seller-meta{display:grid;gap:6px;font-size:12px}
  .public-seller-action{margin-top:22px}
  .public-seller-action>.primary-btn{width:100%;min-height:48px;font-size:14px}
  .public-seller-layout{grid-template-columns:1fr;gap:18px}
  .seller-about{position:static;padding:22px}
  .seller-public-stats{margin:16px 0;padding:13px 0}
  .seller-listings{padding:21px 14px}
  .seller-listings>header{display:block}
  .seller-listings h2{font-size:24px}
  .seller-list-search{margin-top:18px;width:100%}
  .seller-list-search input{width:100%;font-size:16px}
  .seller-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .seller-product-grid .product-info{padding:12px 10px!important}
  .seller-product-grid .meta{flex-wrap:wrap;font-size:11px!important;gap:4px}
  .seller-product-grid .product-info h3{font-size:14px!important}
  .cabinet-page:has([data-live-messenger]) .cabinet-heading{margin-bottom:16px;min-height:0}
  .cabinet-page:has([data-live-messenger]) .cabinet-heading h1{font-size:28px}
  .cabinet-page:has([data-live-messenger]) .cabinet-heading p{display:none}
  .live-messenger{display:block;height:calc(100dvh - 330px);min-height:240px}
  .live-inbox{height:100%;border:0}
  .live-messenger .live-chat{display:none}
  .live-messenger.has-thread .live-inbox{display:none}
  .live-messenger.has-thread .live-chat{display:flex}
  .live-chat-head{padding:12px}
  .chat-back{display:grid;place-items:center;flex:0 0 30px;width:30px;height:35px;border:0;border-radius:10px;background:#edf3e8;font-size:20px;color:#315b35;cursor:pointer}
  .live-chat-compose{padding:10px}
  .live-chat-compose textarea,.live-inbox input{font-size:16px}
  .live-chat-messages{padding:15px}
  .seller-rating small{font-size:10px}
}
@media(max-width:370px){.seller-mini-rating{display:none}.seller-box strong{font-size:16px!important}.public-seller-identity{display:block}.public-avatar.large{margin-bottom:16px}.recommendation-block h2{font-size:21px}.seller-product-grid .product-info h3{font-size:13px!important}}
@media(prefers-reduced-motion:reduce){[data-favorite],[data-favorite]>.icon,.catalog-category-chip,.seller-box{transition:none}[data-favorite].favorite-pop>.icon{animation:none}}
