/* Marketplace style (2026-11-04): header with labelled icons + category boxes with dropdowns, 3-column product page.
   Loaded last, after product-store.css. Accent = var(--lime) (site blue). */
:root{--pmx-accent:var(--lime,#008dff);--pmx-orange:#ff7a00;--pmx-teal:#14b8a6;--pmx-soft:#f4f7fc;--pmx-soft2:#eef3fb;--pmx-shadow:0 18px 40px rgba(20,26,42,.14)}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html[data-theme=dark]{--pmx-soft:#172131;--pmx-soft2:#1d2a3d;--pmx-shadow:0 18px 40px rgba(0,0,0,.45)}

/* ---------- header ---------- */
html body .site-header.pmx-header{position:sticky;top:0;z-index:60;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:none}
html body .pmx-header .pmx-top{display:flex;align-items:center;gap:14px;min-height:74px;padding-top:10px;padding-bottom:10px;flex-wrap:nowrap}
html body .pmx-header .pmx-top>.brand,html body .pmx-header .pmx-top>a:first-child{flex:0 0 auto}
.pmx-cats{position:relative;flex:0 0 auto}
.pmx-cats>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:12px;background:var(--pmx-accent);color:#fff;font-weight:700;font-size:15px;user-select:none}
.pmx-cats>summary::-webkit-details-marker{display:none}
.pmx-cats>summary:hover{filter:brightness(1.06)}
.pmx-allcats{position:absolute;left:0;top:52px;z-index:80;width:300px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--pmx-shadow);display:grid;gap:2px}
.pmx-allcats>button,.pmx-allcats>a{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--text);font:inherit;font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;text-align:left}
.pmx-allcats>button:hover,.pmx-allcats>a:hover{background:var(--pmx-soft)}
.pmx-allcats small{color:var(--muted);font-weight:500;font-size:12px}
html body .pmx-header .header-search.pmx-search{flex:1 1 auto;min-width:180px;max-width:none;display:flex;align-items:stretch;height:44px;border:2px solid var(--pmx-accent);border-radius:12px;overflow:hidden;background:var(--surface);padding:0;margin:0;box-shadow:none}
html body .pmx-search>input{flex:1;min-width:0;height:100%;border:0!important;outline:0;background:transparent!important;padding:0 14px;font-size:14px;color:var(--text);box-shadow:none!important;border-radius:0!important}
html body .pmx-search>.search-clear{position:static;transform:none;border:0;background:transparent;color:var(--muted);font-size:20px;padding:0 10px;cursor:pointer}
html body .pmx-search>.pmx-search-btn{display:inline-flex;align-items:center;gap:7px;height:100%;padding:0 18px;border:0;border-radius:0;background:var(--pmx-accent);color:#fff;font-weight:700;font-size:14px;cursor:pointer;position:static;transform:none;width:auto}
html body .pmx-header .header-actions.pmx-icons{display:flex;align-items:center;gap:2px;flex:0 0 auto;margin:0}
html body .pmx-icons .pmx-ico{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:62px;height:54px;padding:4px 6px;border:0;border-radius:10px;background:transparent;color:var(--text);font:inherit;font-size:11.5px;font-weight:500;line-height:1;cursor:pointer;text-decoration:none;box-shadow:none}
html body .pmx-icons .pmx-ico:hover{background:var(--pmx-soft);color:var(--pmx-accent)}
html body .pmx-icons .pmx-ico>span{white-space:nowrap;max-width:76px;overflow:hidden;text-overflow:ellipsis}
html body .pmx-icons .pmx-donate{color:#e5487a}
html body .pmx-icons .pmx-donate:hover{background:#fff0f5;color:#c2185b}
html[data-theme=dark] body .pmx-icons .pmx-donate:hover{background:#3a1f2b;color:#ff8fb5}
html body .pmx-icons .header-cart .cart-count{position:absolute;top:2px;right:12px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--pmx-orange);color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;border:2px solid var(--surface)}
html body .pmx-icons .header-cart .cart-count[hidden]{display:none}
html body .pmx-icons .header-language{margin:0 2px}
html body .pmx-icons .header-account-menu>summary.sign-in{border:0;background:transparent;color:var(--text);min-width:62px;height:54px;padding:4px 6px;border-radius:10px;box-shadow:none;list-style:none}
html body .pmx-icons .header-account-menu>summary.sign-in:hover{background:var(--pmx-soft);color:var(--pmx-accent)}
html body .pmx-icons .header-account-menu>summary .header-avatar{display:block;width:26px;height:26px}
html body .pmx-icons .header-account-popover{right:0;top:58px}

/* category boxes */
.pmx-catbar{border-top:1px solid var(--line);background:var(--surface)}
.pmx-catbar-row{display:flex;gap:8px;padding-top:10px;padding-bottom:10px;align-items:center}
.pmx-cat{position:relative;flex:1 1 0;min-width:0}
.pmx-cat-btn{flex:1 1 0;min-width:0;display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;height:42px;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:var(--pmx-soft);color:var(--text);font:inherit;font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.pmx-cat-btn svg{flex:0 0 auto;opacity:.6;transition:transform .15s}
.pmx-cat-btn:hover{border-color:var(--pmx-accent);color:var(--pmx-accent);background:var(--surface)}
.pmx-cat-btn.pmx-hot{background:#e8faf4;border-color:#9fe1cb;color:#0f6e56}
html[data-theme=dark] .pmx-cat-btn.pmx-hot{background:#123327;border-color:#1f5c47;color:#5fd3a5}
.pmx-drop{position:absolute;left:0;top:50px;z-index:70;width:min(820px,calc(100vw - 40px));display:none;grid-template-columns:1fr 1fr 1.5fr 200px;gap:18px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--pmx-shadow);text-align:left}
.pmx-cat:nth-child(n+4) .pmx-drop{left:auto;right:0}
.pmx-cat:hover>.pmx-drop,.pmx-cat:focus-within>.pmx-drop,.pmx-cat.open>.pmx-drop{display:grid}
.pmx-cat:hover>.pmx-cat-btn,.pmx-cat.open>.pmx-cat-btn{background:var(--pmx-accent);border-color:var(--pmx-accent);color:#fff}
.pmx-cat:hover>.pmx-cat-btn svg,.pmx-cat.open>.pmx-cat-btn svg{transform:rotate(180deg);opacity:1}
.pmx-cat::after{content:'';position:absolute;left:0;right:0;top:42px;height:10px}
.pmx-drop-col{display:flex;flex-direction:column;gap:2px;min-width:0}
.pmx-drop-col>b{font-size:13px;color:var(--text);margin:0 0 8px 10px}
.pmx-drop-col>a{display:block;padding:7px 10px;border-radius:8px;color:var(--text);font-size:13.5px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmx-drop-col>a:hover{background:var(--pmx-soft2);color:var(--pmx-accent)}
.pmx-drop-tags{display:grid;grid-template-columns:1fr 1fr;align-content:start}
.pmx-drop-tags>b{grid-column:1/-1}
.pmx-drop-all{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:6px;padding:16px;border:0;border-radius:12px;background:var(--pmx-accent);color:#fff;font:inherit;text-align:left;cursor:pointer;min-height:150px}
.pmx-drop-all span{font-size:17px;font-weight:800}
.pmx-drop-all small{font-size:12.5px;opacity:.85}
.pmx-drop-all em{margin-top:8px;font-style:normal;font-weight:700;font-size:13px;background:#fff;color:var(--pmx-accent);padding:7px 12px;border-radius:8px}

/* ---------- product page ---------- */
html body .product-page.container>.pmx-tabs{display:flex;gap:28px;margin:14px 0 0;padding:0 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow-x:auto;scrollbar-width:none}
.pmx-tabs>a{position:relative;padding:15px 0;color:var(--muted);font-size:14px;font-weight:650;text-decoration:none;white-space:nowrap}
.pmx-tabs>a small{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:5px;background:var(--pmx-soft);font-size:11px}
.pmx-tabs>a:hover{color:var(--text)}
.pmx-tabs>a.active{color:var(--pmx-accent)}
.pmx-tabs>a.active::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--pmx-accent)}
html body .pmx-title{margin:22px 0 16px;font-size:clamp(20px,2.1vw,26px);line-height:1.2;letter-spacing:-.01em;scroll-margin-top:150px}
html body .product-page-top.pmx-grid{display:grid!important;grid-template-columns:66px minmax(0,1fr) minmax(0,1.08fr) minmax(280px,.86fr);grid-template-areas:"thumbs gallery info side" ". glance info side";gap:16px 18px;align-items:start;padding:0;border:0;background:transparent;box-shadow:none}
html body .product-page-top.pmx-grid.pmx-no-thumbs{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) minmax(280px,.86fr);grid-template-areas:"gallery info side" "glance info side"}
.pmx-card{background:var(--surface);border:1px solid var(--line);border-radius:16px}
.pmx-thumbs{grid-area:thumbs;display:flex;flex-direction:column;gap:10px}
html body .pmx-thumbs .pmx-thumb{width:66px;height:66px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden;cursor:pointer;display:grid;place-items:center}
html body .pmx-thumbs .pmx-thumb.active{border:2px solid var(--pmx-accent)}
html body .pmx-thumbs .pmx-thumb img{width:100%;height:100%;object-fit:cover}
html body .pmx-thumbs .pmx-thumb .auto-cover{min-height:0;height:100%;width:100%;padding:4px}
html body .pmx-thumbs .pmx-thumb .cover-name{font-size:7px}
html body .pmx-gallery{grid-area:gallery;position:relative;padding:18px;min-height:360px;display:grid;place-items:center}
html body .pmx-gallery .pmx-art.product-main-art{width:100%;max-width:440px;aspect-ratio:1;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:var(--pmx-soft);border:0;position:relative}
html body .pmx-gallery .pmx-art>img{width:100%;height:100%;object-fit:contain}
html body .pmx-gallery .pmx-art>.auto-cover{min-height:0;height:100%;width:100%}
.pmx-badges{position:absolute;left:14px;top:14px;z-index:2;display:flex;flex-wrap:wrap;gap:6px;max-width:70%}
.pmx-badge{font-size:11px;font-weight:800;letter-spacing:.02em;padding:5px 9px;border-radius:7px;background:var(--pmx-soft2);color:var(--muted)}
.pmx-badge.sale{background:#ff9f0a;color:#fff}
.pmx-badge.free{background:#e4f7ec;color:#1e9e64}
html[data-theme=dark] .pmx-badge.free{background:#173a2b;color:#5fd3a5}
.pmx-round{position:absolute;right:14px;top:14px;z-index:2;display:flex;flex-direction:column;gap:9px}
.pmx-round>button{width:38px;height:38px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--pmx-accent);display:grid;place-items:center;cursor:pointer;padding:0}
.pmx-round>button:hover,.pmx-round>button.on{background:var(--pmx-accent);color:#fff;border-color:var(--pmx-accent)}
.pmx-glance{grid-area:glance;padding:18px}
.pmx-glance h2,.pmx-side h2{margin:0 0 12px;font-size:16px;font-weight:750}
.pmx-glance h2+.pmx-gets{margin-top:0}
.pmx-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
.pmx-tiles>div{background:var(--pmx-soft);border-radius:10px;padding:10px 11px;min-width:0}
.pmx-tiles small{display:block;font-size:11px;color:var(--muted);margin-bottom:5px;overflow-wrap:anywhere;line-height:1.2}
.pmx-tiles b{font-size:14px;display:block;overflow-wrap:anywhere;line-height:1.25}
.pmx-share{position:relative}
.pmx-share>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:5px;color:var(--pmx-accent);font-size:13px;font-weight:650}
.pmx-share>summary::-webkit-details-marker{display:none}
.pmx-share>summary svg{transform:rotate(-45deg)}
html body .pmx-share>.product-sharing{position:absolute;right:0;top:26px;z-index:20;width:260px;margin:0;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--pmx-shadow)}
html body .pmx-share>.product-sharing>strong{display:none}
html body .pmx-share .share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.pmx-tiles .rating-stars{color:#ff8a00}
.pmx-gets{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;font-size:13px}
.pmx-gets li{display:flex;align-items:flex-start;gap:7px;min-width:0}
.pmx-gets li svg{flex:0 0 auto;color:#1e9e64;margin-top:1px}
html body .pmx-info.product-intro{grid-area:info;padding:20px;display:block;min-width:0}
.pmx-row{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
html body .pmx-info .product-rating-summary{margin:0;display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}
.pmx-stars{color:#ff8a00;font-size:18px;letter-spacing:2px}
.pmx-stars.off{color:#c8cfdc}
html body .pmx-info .pmx-price{margin:16px 0 0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
html body .pmx-info .pmx-price .price,html body .pmx-info .pmx-price strong{font-size:28px;font-weight:800;color:var(--pmx-orange)}
.pmx-save{margin-top:6px;color:#14b88a;font-size:14px;font-weight:600}
html body .pmx-info .product-seller{display:inline-block;margin-top:8px}
html body .pmx-info .product-lead{margin:10px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.pmx-opts{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--pmx-soft)}
.pmx-opt-label{font-size:13px;color:var(--muted);margin-bottom:9px}
.pmx-opt-label b{color:var(--text)}
.pmx-chips{display:flex;flex-wrap:wrap;gap:8px}
.pmx-chip{padding:9px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:13px;font-weight:650}
.pmx-chip.on{border:2px solid var(--pmx-accent);color:var(--pmx-accent);padding:8px 13px}
.pmx-meta{margin:16px 0 0;font-size:13px}
.pmx-meta>div{display:flex;align-items:baseline;gap:8px;padding:5px 0}
.pmx-meta>div::before{content:'';order:2;flex:1;border-bottom:1px dashed var(--line);transform:translateY(-3px)}
.pmx-meta dt{order:1;color:var(--muted);margin:0}
.pmx-meta dd{order:3;margin:0;font-weight:650;text-align:right;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pmx-blue{color:var(--pmx-accent)}
.pmx-ok{color:#14b88a}
html body .pmx-info .product-buy-actions.pmx-buy{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:12px;margin-top:20px}
html body .pmx-buy>.primary,html body .pmx-buy>.secondary{min-height:50px;justify-content:center;border-radius:11px;font-weight:750;font-size:14.5px;width:100%}
html body .pmx-buy>.secondary.pmx-add{background:var(--pmx-teal);border-color:var(--pmx-teal);color:#fff}
html body .pmx-buy>.secondary.pmx-add:hover{filter:brightness(1.05)}
html body .pmx-info .pmx-demo{display:flex;justify-content:center;margin-top:12px;border:1px dashed var(--pmx-accent);border-radius:11px;padding:11px;color:var(--pmx-accent);font-weight:650;background:transparent}
html body .pmx-info>.form-note{margin:10px 0 0;font-size:12px}
.pmx-actions:empty{display:none}
html body .pmx-side.product-purchase{grid-area:side;position:static;padding:20px;margin:0;box-shadow:none;display:block}
.pmx-pay{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px;margin-bottom:9px;border:1px solid var(--line);border-radius:12px;font-size:14px;font-weight:650}
.pmx-pay span{display:inline-flex;align-items:center;gap:8px}
.pmx-pay b{color:var(--pmx-orange);white-space:nowrap}
.pmx-pay.on{border:2px solid var(--pmx-accent);padding:12px 13px}
.pmx-total{display:flex;justify-content:space-between;gap:10px;margin:14px 0 16px;font-size:14px;font-weight:750}
.pmx-total b{text-align:right}
.pmx-side-note{margin:0 0 14px;color:var(--muted);font-size:13px;line-height:1.5}
html body .pmx-cta{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:50px;border:0;border-radius:11px;background:var(--pmx-orange);color:#fff;font:inherit;font-weight:800;font-size:15.5px;text-decoration:none;cursor:pointer}
html body .pmx-cta:hover{filter:brightness(1.06)}
.pmx-dev{display:flex;align-items:center;gap:13px;width:100%;margin-top:12px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;text-align:left;text-decoration:none;cursor:pointer}
.pmx-dev:hover{border-color:var(--pmx-accent)}
.pmx-dev>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pmx-dev b{font-size:14.5px}
.pmx-dev small{color:var(--muted);font-size:12.5px}
.pmx-dev>i{font-style:normal;color:var(--muted);font-size:18px}
.pmx-av{flex:0 0 46px;width:46px;height:46px;border-radius:11px;background:var(--pmx-accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:19px}
.pmx-av.tg{background:#229ed9;font-size:17px}
html body .pmx-side .donation-box{margin:12px 0 0;border-radius:12px}
html body .store-meta.pmx-specs{display:flex;gap:10px;align-items:stretch;margin:18px 0 0;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:16px;scroll-margin-top:150px}
html body .pmx-specs>div{flex:1;min-width:0;padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
html body .pmx-specs small{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}
html body .pmx-specs b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.pmx-specs-more{flex:0 0 auto;border:0;background:transparent;color:var(--pmx-accent);font:inherit;font-weight:750;font-size:14px;padding:0 14px;cursor:pointer}
html body #pmxDescription,html body #productReviews{scroll-margin-top:150px}

/* ---------- tablet ---------- */
@media (max-width:1180px){
  html body .pmx-icons .pmx-ico{min-width:50px;font-size:10.5px}
  html body .pmx-icons .pmx-ico>span{max-width:56px}
  .pmx-cats>summary>span{display:none}
  .pmx-cats>summary{padding:0 13px}
  html body .pmx-search>.pmx-search-btn>span{display:none}
  html body .product-page-top.pmx-grid,html body .product-page-top.pmx-grid.pmx-no-thumbs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"gallery info" "glance info" "side side"}
  .pmx-thumbs{display:none}
  .pmx-catbar-row{overflow-x:auto;scrollbar-width:none}
  .pmx-catbar-row::-webkit-scrollbar{display:none}
  .pmx-cat,.pmx-cat-btn{flex:0 0 auto;width:auto}
  .pmx-cat-btn{padding:0 14px}
  .pmx-drop,.pmx-cat::after{display:none!important}
  .pmx-cat-btn svg{display:none}
  .pmx-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:1000px){
  html body .pmx-icons .pmx-ico>span,html body .pmx-icons .header-account-menu>summary>span:not(.header-avatar){display:none}
  html body .pmx-icons .pmx-ico,html body .pmx-icons .header-account-menu>summary.sign-in{min-width:42px;height:44px}
  html body .pmx-header .pmx-top{flex-wrap:wrap;gap:8px 10px;min-height:0}
  html body .pmx-header .header-search.pmx-search{order:5;flex:1 1 100%;height:42px}
  html body .pmx-header .header-actions.pmx-icons{margin-left:auto}
}
/* ---------- phone ---------- */
@media (max-width:760px){
  html body .pmx-header .pmx-top{flex-wrap:wrap;gap:8px 10px;min-height:0}
  html body .pmx-header .header-search.pmx-search{order:5;flex:1 1 100%;height:42px}
  html body .pmx-header .header-actions.pmx-icons{margin-left:auto}
  html body .pmx-icons [data-action="compare"],html body .pmx-icons [data-account-tab="wallet"],html body .pmx-icons [data-account-tab="purchases"]{display:none}
  .pmx-cats{order:4}
  .pmx-cats>summary{height:42px}
  .pmx-allcats{width:min(300px,calc(100vw - 32px))}
  .pmx-catbar-row{overflow-x:auto;scrollbar-width:none;padding-top:8px;padding-bottom:8px}
  .pmx-catbar-row::-webkit-scrollbar{display:none}
  .pmx-cat,.pmx-cat-btn{flex:0 0 auto;width:auto}
  .pmx-cat-btn{height:38px;font-size:13px;padding:0 12px}
  .pmx-drop,.pmx-cat::after{display:none!important}
  .pmx-cat-btn svg{display:none}
  html body .product-page-top.pmx-grid,html body .product-page-top.pmx-grid.pmx-no-thumbs{grid-template-columns:minmax(0,1fr);grid-template-areas:"gallery" "info" "side" "glance"}
  html body .pmx-gallery{min-height:0;padding:12px}
  .pmx-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pmx-gets{grid-template-columns:1fr}
  html body .store-meta.pmx-specs{flex-wrap:wrap}
  html body .pmx-specs>div{flex:1 1 calc(50% - 10px)}
  .pmx-specs-more{flex:1 1 100%;padding:8px}
  html body .product-page.container>.pmx-tabs{gap:20px;padding:0 14px}
  html body .pmx-header .pmx-cats{display:none}
  html body .pmx-icons .header-cart,html body .pmx-icons [data-action="wishlist"]{display:none}
}
html body .pmx-specs>div{text-align:left}
html body .pmx-specs small{text-transform:none;letter-spacing:0}
html body .pmx-info .pmx-price .price,html[data-theme=dark] body .pmx-info .pmx-price .price{color:var(--pmx-orange)!important}
html body .pmx-info .pmx-price .compare-price{color:#e5484d}
html body .product-page-top.pmx-grid,html body .product-page-top.pmx-grid.pmx-no-thumbs{grid-template-rows:auto 1fr}
@media (max-width:760px){html body .product-page-top.pmx-grid,html body .product-page-top.pmx-grid.pmx-no-thumbs{grid-template-rows:none}}
/* "You may also like" / "Recently viewed": square product icons were cropped into wide boxes; show them whole and sharp */
html body .related-products .product-card .product-art{height:170px!important;min-height:0!important;aspect-ratio:auto!important;padding:14px;display:grid;place-items:center;background:var(--pmx-soft);overflow:hidden}
html body .related-products .product-card .product-art>img{width:auto!important;height:100%!important;max-width:100%;object-fit:contain!important;border-radius:16px;box-shadow:0 4px 14px rgba(20,26,42,.12)}
html body .related-products .product-card .product-art>.auto-cover{height:100%;width:auto;aspect-ratio:1;min-height:0}
html body .related-products .product-card .product-art>img{height:auto!important;max-height:142px;max-width:100%}
/* donation.js also mounts its own "Support the developer" pill into the header; the Donate icon replaces it */
html body .pmx-header .pmx-top>.donation-open{display:none!important}
/* Main product picture: whole image, not cropped, not oversized */
html body .pmx-gallery{min-height:340px;padding:46px 24px 24px}
html body .pmx-gallery .pmx-art.product-main-art{max-width:340px;aspect-ratio:auto!important;height:auto!important;min-height:0!important;background:transparent;overflow:visible}
html body .pmx-gallery .pmx-art>img{width:auto!important;height:auto!important;max-width:100%!important;max-height:340px!important;object-fit:contain!important;border-radius:18px;box-shadow:0 8px 24px rgba(20,26,42,.16);margin:0 auto;display:block}
html body .pmx-gallery .pmx-art>.auto-cover{width:300px;max-width:100%;height:300px;aspect-ratio:1}
@media (max-width:760px){html body .pmx-gallery{min-height:0;padding:46px 14px 14px}html body .pmx-gallery .pmx-art>img{max-height:280px!important}}
/* Product tab bar sticks under the header */
html body .product-page.container>.pmx-tabs{position:sticky;top:var(--pmx-head,136px);z-index:40}
html body .pmx-title,html body #pmxDescription,html body #productReviews,html body .store-meta.pmx-specs{scroll-margin-top:calc(var(--pmx-head,136px) + 76px)}
/* Product text: smaller, calmer reading size; ALL-CAPS lines become small section labels */
html body .product-page .product-content-card h2{font-size:18px;letter-spacing:-.01em}
html body .product-page .product-content-card h3{font-size:15px}
html body .product-page .product-prose{font-size:14px;line-height:1.65;color:var(--muted);max-width:72ch}
html body .product-page .product-prose p{margin:0 0 10px}
html body .product-page .product-prose ul,html body .product-page .product-prose ol{margin:0 0 12px;padding-left:20px}
html body .product-page .product-prose li{margin:0 0 5px;padding-left:2px}
html body .product-page .product-prose li::marker{color:var(--pmx-accent)}
html body .product-page .product-prose .prose-head{margin:18px 0 8px;font-size:11.5px;font-weight:750;letter-spacing:.08em;color:var(--pmx-accent)}
html body .product-page .product-prose .prose-head:first-child{margin-top:0}
/* PDF guidebook button in the main buy box (filled by discovery.js when the guide loads) */
.pmx-guide-slot:empty{display:none}
html body .pmx-guide-btn{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;min-height:44px;border:1px solid #f6c6d6;border-radius:11px;background:#fff5f8;color:#c2185b;font-weight:700;font-size:14px;text-decoration:none}
html body .pmx-guide-btn:hover{background:#ffe9f1}
html[data-theme=dark] body .pmx-guide-btn{background:#3a1f2b;border-color:#5a2c40;color:#ff8fb5}
html body .pmx-av.tg{background:transparent;padding:0}
html body .pmx-av.tg svg{display:block;width:46px;height:46px}
/* "You may also like" + "Recently viewed": 6 compact cards per row (picture, name, price, button) */
html body .related-products .product-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
html body .related-products .product-card{border-radius:14px;min-width:0}
html body .related-products .product-card .product-art{height:auto!important;aspect-ratio:1/1!important;padding:12px;display:block}
html body .related-products .product-card .product-art>img{display:block;width:100%!important;height:100%!important;max-height:none;object-fit:contain!important;border-radius:12px;box-shadow:none}
html body .related-products .product-card .product-art>.auto-cover{width:100%;height:100%;aspect-ratio:auto}
html body .related-products .product-card .platform-tag{font-size:10px;padding:2px 6px;left:8px;bottom:8px}
html body .related-products .card-body{padding:10px 12px 12px;gap:6px}
html body .related-products .card-heading{display:block;min-height:0}
html body .related-products .card-category,html body .related-products .card-label,html body .related-products .card-topline,html body .related-products .card-description,html body .related-products .card-meta{display:none!important}
html body .related-products .card-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13.5px;line-height:1.3;min-height:35px}
html body .related-products .card-bottom{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:6px;padding-top:8px}
html body .related-products .card-bottom .price-block .price{font-size:16px}
html body .related-products .card-bottom .card-button{width:100%;min-height:34px;padding:0 8px;font-size:12.5px;justify-content:center}
html body .related-products>h2{font-size:18px}
@media (max-width:1180px){html body .related-products .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:760px){html body .related-products .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}
/* Main picture: wide screenshots use the full box width; square logos still cap at 340px tall */
html body .pmx-gallery .pmx-art.product-main-art{max-width:100%;width:100%;display:flex;justify-content:center}
html body .pmx-gallery .pmx-art>img{max-width:100%!important;max-height:340px!important}
html body .pmx-gallery{padding:50px 16px 18px}
/* compact related cards: price + button sit at the bottom */
html body .related-products .card-body{display:flex;flex-direction:column;flex:1}
html body .related-products .product-card{display:flex;flex-direction:column}
html body .related-products .card-bottom{margin-top:auto}
/* ---------- colorful category dropdown ---------- */
.pmx-drop{grid-template-columns:150px 150px 1.6fr 210px;background:linear-gradient(180deg,var(--surface),var(--surface))}
.pmx-drop-col>b{display:flex;align-items:center;gap:7px;margin:0 0 10px 2px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pmx-drop-col:nth-child(1)>b::before{content:'🖥️'}
.pmx-drop-col:nth-child(2)>b::before{content:'💲'}
.pmx-drop-col:nth-child(3)>b::before{content:'🔥'}
.pmx-drop-col>a{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:9px 12px;border-radius:10px;font-weight:650;font-size:13.5px;border:1px solid transparent;transition:transform .12s,box-shadow .12s}
.pmx-drop-col>a:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(20,26,42,.10)}
.pmx-drop-col:nth-child(1)>a:nth-of-type(1){background:#e6f1fb;color:#185fa5;border-color:#b5d4f4}
.pmx-drop-col:nth-child(1)>a:nth-of-type(2){background:#eeedfe;color:#534ab7;border-color:#cecbf6}
.pmx-drop-col:nth-child(2)>a:nth-of-type(1){background:#e1f5ee;color:#0f6e56;border-color:#9fe1cb}
.pmx-drop-col:nth-child(2)>a:nth-of-type(2){background:#faeeda;color:#854f0b;border-color:#fac775}
.pmx-drop-col:nth-child(1)>a::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
.pmx-drop-col:nth-child(2)>a:nth-of-type(1)::before{content:'🎁'}
.pmx-drop-col:nth-child(2)>a:nth-of-type(2)::before{content:'💎'}
.pmx-drop-tags{gap:6px 8px}
.pmx-drop-tags>a{margin:0;padding:7px 11px;border-radius:999px;font-size:13px}
.pmx-drop-tags>a:nth-of-type(4n+1){background:#fbeaf0;color:#993556;border-color:#f4c0d1}
.pmx-drop-tags>a:nth-of-type(4n+2){background:#e1f5ee;color:#0f6e56;border-color:#9fe1cb}
.pmx-drop-tags>a:nth-of-type(4n+3){background:#faeeda;color:#854f0b;border-color:#fac775}
.pmx-drop-tags>a:nth-of-type(4n+4){background:#e6f1fb;color:#185fa5;border-color:#b5d4f4}
.pmx-drop-all{background:linear-gradient(135deg,var(--pmx-accent),#7c4dff);box-shadow:0 10px 24px rgba(0,141,255,.25)}
html[data-theme=dark] .pmx-drop-col:nth-child(1)>a:nth-of-type(1),html[data-theme=dark] .pmx-drop-tags>a:nth-of-type(4n+4){background:#0c2a47;color:#85b7eb;border-color:#185fa5}
html[data-theme=dark] .pmx-drop-col:nth-child(1)>a:nth-of-type(2){background:#26215c;color:#afa9ec;border-color:#534ab7}
html[data-theme=dark] .pmx-drop-col:nth-child(2)>a:nth-of-type(1),html[data-theme=dark] .pmx-drop-tags>a:nth-of-type(4n+2){background:#08392e;color:#5dcaa5;border-color:#0f6e56}
html[data-theme=dark] .pmx-drop-col:nth-child(2)>a:nth-of-type(2),html[data-theme=dark] .pmx-drop-tags>a:nth-of-type(4n+3){background:#412402;color:#ef9f27;border-color:#854f0b}
html[data-theme=dark] .pmx-drop-tags>a:nth-of-type(4n+1){background:#4b1528;color:#ed93b1;border-color:#993556}

/* ---------- empty cart ---------- */
html body .cart-empty .cart-picks{display:grid;gap:8px}
html body .cart-empty .cart-pick{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px}
html body .cart-pick-img{flex:0 0 48px;width:48px;height:48px;border-radius:11px;overflow:hidden;background:var(--pmx-soft);display:grid;place-items:center;border:1px solid var(--line)}
html body .cart-pick-img img{width:100%;height:100%;object-fit:cover}
html body .cart-empty .cart-pick-info{min-width:0;flex:1}
html body .cart-empty .cart-pick-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body .cart-empty .cart-pick-price{flex:0 0 auto;padding:5px 10px;border-radius:999px;background:#fff3e6;color:var(--pmx-orange);font-weight:800;font-size:13px;white-space:nowrap}
html body .cart-empty .cart-pick-price small{font-size:10px;font-weight:700}
html body .cart-empty .cart-pick-price.free{background:#e4f7ec;color:#1e9e64}
html[data-theme=dark] body .cart-empty .cart-pick-price{background:#3a2410}
html[data-theme=dark] body .cart-empty .cart-pick-price.free{background:#173a2b;color:#5fd3a5}
/* header account: round avatar, name in normal text colour (light + dark) */
html body .pmx-icons .header-account-menu>summary .header-avatar{display:block;width:28px;height:28px;border-radius:50%;overflow:hidden;background:transparent;box-shadow:0 0 0 2px var(--surface),0 0 0 3px var(--line)}
html body .pmx-icons .header-account-menu>summary .header-avatar svg{display:block;width:100%;height:100%}
html body .pmx-icons .header-account-menu>summary.sign-in,html[data-theme=dark] body .pmx-icons .header-account-menu>summary.sign-in{background:transparent!important;color:var(--text)!important;border:0!important;box-shadow:none!important}
html body .pmx-icons .header-account-menu>summary.sign-in:hover,html body .pmx-icons .header-account-menu[open]>summary.sign-in{background:var(--pmx-soft)!important;color:var(--pmx-accent)!important}
/* main picture bigger: small source images are scaled up to the box (max 380px tall) */
html body .pmx-gallery .pmx-art>img{width:100%!important;height:auto!important;max-height:380px!important;object-fit:contain!important;box-shadow:none;border-radius:20px}
html body .pmx-gallery{min-height:380px;padding:50px 14px 16px}
@media (max-width:760px){html body .pmx-gallery .pmx-art>img{max-height:320px!important}}
/* How to pay rows: method + short note (price only in Total) */
.pmx-pay>span>em{display:flex;flex-direction:column;gap:2px;font-style:normal}
.pmx-pay>span>em small{font-size:12px;font-weight:500;color:var(--muted)}
.pmx-pay>span{align-items:center}
/* Wallet row: real balance on the right */
.pmx-pay .pmx-bal{font-size:13px;font-weight:800;color:var(--muted);white-space:nowrap}
.pmx-pay .pmx-bal.ok{color:#14b88a}
.pmx-pay .pmx-bal.low{color:var(--pmx-orange)}
/* ---------- golden "Our products" box (first in the category bar) ---------- */
html body .pmx-cat-btn.pmx-gold{background:linear-gradient(135deg,#ffd76a,#f4b400 55%,#e09a00);border-color:#e0a100;color:#4a3200;font-weight:800;box-shadow:0 4px 14px rgba(224,154,0,.28)}
html body .pmx-cat-btn.pmx-gold svg{opacity:.8}
html body .pmx-cat.pmx-own:hover>.pmx-cat-btn.pmx-gold,html body .pmx-cat.pmx-own.open>.pmx-cat-btn.pmx-gold{background:linear-gradient(135deg,#ffe08a,#f6c02a 55%,#e8a600);color:#3a2700;border-color:#e0a100}
html body .pmx-drop.pmx-own-drop{width:min(760px,calc(100vw - 40px));grid-template-columns:minmax(0,1fr);gap:12px;padding:18px;border:1px solid #f1d27a;background:linear-gradient(180deg,#fffaf0,var(--surface) 90px)}
.pmx-own-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.pmx-own-head b{font-size:15px;color:#a66f00;white-space:nowrap}
.pmx-own-head small{color:var(--muted);font-size:12.5px}
.pmx-own-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pmx-own-item{display:flex;align-items:center;gap:11px;width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;transition:border-color .12s,transform .12s,box-shadow .12s}
.pmx-own-item:hover{border-color:#e0a100;transform:translateY(-1px);box-shadow:0 6px 16px rgba(224,154,0,.16)}
.pmx-own-img{flex:0 0 44px;width:44px;height:44px;border-radius:10px;overflow:hidden;background:var(--pmx-soft);display:grid;place-items:center;font-weight:800;color:#a66f00}
.pmx-own-img img{width:100%;height:100%;object-fit:cover}
.pmx-own-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.pmx-own-text strong{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pmx-own-text small{font-size:11.5px;color:var(--muted)}
.pmx-own-price{flex:0 0 auto;padding:4px 9px;border-radius:999px;background:#fff3e6;color:var(--pmx-orange);font-size:12.5px;font-weight:800;white-space:nowrap}
.pmx-own-price small{font-size:9.5px}
.pmx-own-price.free{background:#e4f7ec;color:#1e9e64}
.pmx-own-wait{margin:6px 2px;color:var(--muted);font-size:13px}
html[data-theme=dark] body .pmx-drop.pmx-own-drop{background:linear-gradient(180deg,#2a2110,var(--surface) 90px);border-color:#5c4613}
html[data-theme=dark] .pmx-own-head b{color:#f6c02a}
html[data-theme=dark] .pmx-own-price{background:#3a2410}
html[data-theme=dark] .pmx-own-price.free{background:#173a2b;color:#5fd3a5}
/* ---------- focus: gray + blur behind an open menu ---------- */
html body .site-header.pmx-header::after{content:'';position:fixed;left:0;right:0;bottom:0;top:var(--pmx-head,136px);background:rgba(15,23,42,.28);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility .18s ease;z-index:-1}
html[data-theme=dark] body .site-header.pmx-header::after{background:rgba(0,0,0,.5)}
html body .site-header.pmx-header:has(.pmx-cat:hover>.pmx-drop,.pmx-cat.open>.pmx-drop,.pmx-cats[open])::after{opacity:1;visibility:visible}
@media (max-width:1180px){html body .site-header.pmx-header:has(.pmx-cat:hover>.pmx-drop,.pmx-cat.open>.pmx-drop)::after{opacity:0;visibility:hidden}html body .site-header.pmx-header:has(.pmx-cats[open])::after{opacity:1;visibility:visible}}
.pmx-drop{box-shadow:0 24px 60px rgba(15,23,42,.28)}
