/* Theme "মার্কেট": a marketplace storefront measured on ghorerbazar.com — cream page (#fbf9f5), white header and footer,
   a dark teal menu bar, orange (#f48721) buttons and prices. Sizes below follow that site at 1440px wide.
   Loaded only when Admin → Homepage → থিম is "মার্কেট"; every rule is under body.theme-market, so the classic design is untouched. */

body.theme-market{--mk-accent:#f48721;--mk-accent-dark:#da7010;--mk-nav:#041f1e;--mk-bg:#fbf9f5;--mk-card:#fff;--mk-head:#222831;--mk-text:#666;--mk-old:#767a7a;--mk-lime:#bfdb38;--mk-red:#ff3f33;--mk-green:#34be82;--mk-line:#dddddd;--mk-tint:#fdf0e1;--mk-glow:#f4872126;--mk-glow2:#f4872166;--mk-radius:4px;background:var(--mk-bg);color:var(--mk-text);font-size:14px;line-height:1.6;font-family:Roboto,'Noto Sans Bengali',system-ui,sans-serif}
.theme-market h1,.theme-market h2,.theme-market h3{color:var(--mk-head)}
.theme-market .wrap{width:95%;max-width:1524px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px}

/* ---------- Header: logo, search in the middle, icons with words under them ---------- */
.theme-market header{background:#fff;border-bottom:0;box-shadow:none}
.theme-market .head{padding:16px 0;gap:20px;min-height:87px}
.theme-market .logo{min-width:0;display:flex;align-items:center;height:48px}
.theme-market .head .search{flex:0 1 446px;max-width:446px;height:47px;margin:0 auto;position:relative;background:#f5f5f5;border:0;border-radius:8px;overflow:hidden}
.theme-market .head .search input{height:47px;padding:9px 42px 9px 16px;font-size:14px;color:var(--mk-head);background:transparent;border:1px solid transparent;border-radius:8px}
.theme-market .head .search button{position:absolute;right:12px;top:50%;transform:translateY(-50%);padding:0;background:transparent;color:#252a34}
.theme-market .quick{gap:23px;align-items:center}
.theme-market .quick a{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--mk-head);font-size:14px;font-weight:400;line-height:14px}
.theme-market .quick a svg{width:22px;height:22px;color:var(--mk-head)}
.theme-market .quick .quick-label{display:block;color:var(--mk-head);font-size:14px}
.theme-market .quick em{position:absolute;top:-2px;left:50%;margin-left:4px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border-radius:50%;background:var(--mk-accent);color:#fff;font-size:10px;font-style:normal;line-height:1}

/* ---------- Menu bar ---------- */
.theme-market #main-nav{background:var(--mk-nav);border:0;box-shadow:none}
.theme-market #main-nav .wrap{display:flex;align-items:center;min-height:50px}
.theme-market #main-nav a{display:inline-flex;align-items:center;gap:6px;margin-right:30px;padding:18px 0 17px;border:0;border-radius:0;background:transparent;color:#fff;font-size:14px;font-weight:400;line-height:15.4px}
.theme-market #main-nav a:hover,.theme-market #main-nav a.active{background:transparent;color:var(--mk-accent)}

/* ---------- Buttons and shared bits ---------- */
.theme-market .btn,.theme-market .btn-sq{border-radius:6px;background:var(--mk-accent);color:#fff;box-shadow:none}
.theme-market .btn:hover,.theme-market .btn-sq:hover{background:var(--mk-accent-dark)}
.theme-market .btn-sq.light,.theme-market .btn-sq.call{background:#fff;color:var(--mk-accent);box-shadow:inset 0 0 0 1px var(--mk-accent)}
.theme-market .btn-sq.whatsapp{background:#1fa855;color:#fff}
.theme-market .btn-sq.gold{background:var(--mk-accent);color:#fff}
.theme-market .panel,.theme-market .cart-summary{background:#fff;border:1px solid #ece8e0;border-radius:8px;box-shadow:none}
.theme-market a{color:inherit}
.theme-market .more,.theme-market .crumb a{color:var(--mk-accent)}

/* ---------- Home: banners ---------- */
.theme-market .hm-hero-grid{display:grid;grid-template-columns:minmax(0,869fr) minmax(0,425fr);gap:20px;padding-top:20px}
.theme-market .hm-hero{position:relative;min-width:0}
.theme-market .hm-slides{position:relative;overflow:hidden;border-radius:8px;aspect-ratio:869/348;background:#e9e5dc}
.theme-market .hm-slide{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;transition:opacity .5s,visibility .5s}
.theme-market .hm-slide.on{opacity:1;visibility:visible}
.theme-market .hm-slide img{width:100%;height:100%;object-fit:cover}
.theme-market .hm-dots{position:absolute;left:24px;bottom:16px;display:flex;margin:0;padding:0;background:none}
.theme-market .hm-dot{width:8px;height:8px;margin:5px;padding:0;border:1px solid #fff;border-radius:50%;background:#fff;cursor:pointer}
.theme-market .hm-dot.on{width:8px;background:var(--mk-accent);border-color:var(--mk-accent)}
.theme-market .hm-side{position:relative;display:block;min-width:0;overflow:hidden;border-radius:8px;background:#e9e5dc;align-self:stretch}
.theme-market .hm-side img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}

/* words over a picture banner (the theme's own banners) */
.theme-market .hm-cap{position:absolute;inset:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:0 6%;background:linear-gradient(90deg,#041f1ee6 0%,#041f1e99 45%,#041f1e00 75%);color:#fff}
.theme-market .hm-cap small{padding:3px 10px;border-radius:99px;background:var(--mk-accent);color:#fff;font-size:13px;font-weight:600}
.theme-market .hm-cap strong{max-width:60%;color:#fff;font-size:38px;font-weight:700;line-height:1.2}
.theme-market .hm-cap span{max-width:55%;color:#ffffffe0;font-size:16px}
.theme-market .hm-cap em{margin-top:8px;padding:10px 20px;border-radius:6px;background:var(--mk-accent);color:#fff;font-size:14px;font-style:normal;font-weight:600}
.theme-market .hm-side .hm-cap{padding:0 8%;background:linear-gradient(90deg,#041f1ee6 0%,#041f1e8c 60%,#041f1e33 100%)}
.theme-market .hm-side .hm-cap strong{max-width:100%;font-size:28px}
.theme-market .hm-side .hm-cap span{max-width:100%;font-size:14px}

/* round orange arrows */
.theme-market .hm-arrow{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--mk-accent);color:#fff;cursor:pointer;z-index:2}
.theme-market .hm-arrow:hover{background:var(--mk-accent-dark)}
.theme-market .hm-arrow.prev svg{transform:rotate(180deg)}
.theme-market .hm-perks{display:none}

/* every section: 16px above and below */
.theme-market .hm-section{margin-top:0;padding-top:16px;padding-bottom:16px}

/* ---------- Home: categories ---------- */
.theme-market .hm-cats-title{margin:0 0 32px;text-align:center;color:var(--mk-head);font-size:22px;font-weight:500;line-height:26.4px}
.theme-market .hm-carousel{position:relative}
.theme-market .hm-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 2px}
.theme-market .hm-track::-webkit-scrollbar{display:none}
.theme-market .hm-cats .hm-arrow{position:absolute;top:71px;transform:translateY(-50%)}
.theme-market .hm-cats .hm-arrow.prev{left:-18px}
.theme-market .hm-cats .hm-arrow.next{right:-18px}
.theme-market .hm-cat{flex:0 0 calc((100% - 7*20px)/8);scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:10px;text-decoration:none;color:var(--mk-head)}
.theme-market .hm-cat span{display:block;width:100%;max-width:142px;aspect-ratio:1/1;background:#fff;border-radius:20px;overflow:hidden}
.theme-market .hm-cat img{width:100%;height:100%;object-fit:cover;border-radius:20px;transition:transform .3s}
.theme-market .hm-cat:hover img{transform:scale(1.05)}
.theme-market .hm-cat b{color:var(--mk-head);font-size:16px;font-weight:500;line-height:19.2px;text-align:center}

/* ---------- Home: top selling — long cards, two across ---------- */
.theme-market .hm-title{margin:0 0 32px;text-align:center;color:var(--mk-head);font-size:28px;font-weight:600;line-height:33.6px}
.theme-market .hm-wide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.theme-market .hm-card.wide{position:relative;flex-direction:row;align-items:center;gap:24px;padding:0;border:0;border-radius:8px;background:#fff;overflow:hidden}
.theme-market .hm-card.wide .hm-img{flex:0 0 300px;width:300px;height:300px;aspect-ratio:auto;border-radius:8px;overflow:hidden}
.theme-market .hm-card.wide .hm-info{flex:1;justify-content:center;padding:12px 12px 12px 0;gap:0}
.theme-market .hm-card.wide .hm-name{margin-bottom:8px;font-size:20px;font-weight:600;line-height:26px;min-height:0;-webkit-line-clamp:2;white-space:normal}
.theme-market .hm-card.wide .hm-price{display:block;margin:0}
.theme-market .hm-card.wide .hm-price strong{margin-right:6px;font-size:18px;font-weight:700;line-height:27px}
.theme-market .hm-card.wide .hm-price del{font-size:18px;font-weight:500;color:var(--mk-old)}
.theme-market .hm-save{display:table;margin-top:8px;padding:4px 8px;border-radius:99px;background:var(--mk-lime);color:var(--mk-head);font-size:12px;font-weight:600;line-height:14.4px}
.theme-market .hm-card.wide .hm-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:30px}
.theme-market .hm-card.wide .hm-add,.theme-market .hm-card.wide .hm-buy{width:auto;height:40px;padding:12px 16px;border-radius:6px;font-size:14px}
.theme-market .hm-badge{position:absolute;top:0;right:0;display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:2px 8px;background:var(--mk-red);color:#fff;font-size:12px;font-style:normal;font-weight:700;line-height:14.4px}

/* ---------- Home: section heads (title left, orange line, link right) ---------- */
.theme-market .hm-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--mk-line)}
.theme-market .hm-head::before{content:"";position:absolute;left:0;bottom:-2px;width:40px;height:4px;background:var(--mk-accent)}
.theme-market .hm-head h3,.theme-market .hm-head h2{margin:0;color:var(--mk-head);font-size:20px;font-weight:700;line-height:24px}
.theme-market .hm-head a{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:transparent;color:var(--mk-accent);font-size:12px;font-weight:500;line-height:14.4px;text-transform:uppercase;text-decoration:none;white-space:nowrap}
.theme-market .hm-head a svg{width:17px;height:17px}
.theme-market .hm-head a:hover{background:transparent;color:var(--mk-accent-dark)}

/* ---------- Home: product cards ---------- */
.theme-market .hm-carousel[data-hm-pages]{padding:12px 0 0}
.theme-market .hm-track.hm-row{gap:20px;padding:0}
.theme-market .hm-row .hm-card{flex:0 0 calc((100% - 4*20px)/5);scroll-snap-align:start}
.theme-market .hm-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}
.theme-market .hm-card{position:relative;display:flex;flex-direction:column;padding:8px;background:var(--mk-card);border:1px solid #cccccc;border-radius:var(--mk-radius);box-shadow:none;overflow:hidden;transition:box-shadow .15s}
.theme-market .hm-card:hover{box-shadow:0 6px 18px #00000014}
.theme-market .hm-img{position:relative;display:block;aspect-ratio:229/206;background:#fff;overflow:hidden}
.theme-market .hm-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s}
.theme-market .hm-card:hover .hm-img img{transform:scale(1.04)}
.theme-market .hm-tag{position:absolute;z-index:1;padding:2px 6px;border-radius:4px;color:#fff;font-size:10px;font-style:normal;font-weight:400;line-height:16px}
.theme-market .hm-tag.best{left:6px;top:6px;background:var(--mk-accent)}
.theme-market .hm-tag.sale{right:6px;top:6px;background:var(--mk-green)}
.theme-market .hm-tag.out{left:6px;bottom:6px;background:#6b7280}
.theme-market .hm-info{display:flex;flex-direction:column;flex:1;padding:12px 0 0}
.theme-market .hm-name{margin-bottom:8px;overflow:hidden;color:var(--mk-head);font-size:16px;font-weight:500;line-height:19.2px;text-decoration:none;white-space:nowrap;text-overflow:ellipsis}
.theme-market .hm-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 10px;margin:0;line-height:25.6px}
.theme-market .hm-price strong{color:var(--mk-accent);font-size:16px;font-weight:600}
.theme-market .hm-price del{color:#aaaaaa;font-size:16px;font-weight:400}
.theme-market .hm-actions{display:block;margin-top:12px}
.theme-market .hm-add,.theme-market .hm-buy{display:inline-flex;align-items:center;justify-content:center;gap:5px;width:100%;height:40px;padding:8px;border-radius:4px;font:inherit;font-size:14px;font-weight:600;line-height:16.8px;cursor:pointer;transition:background .15s,color .15s}
.theme-market .hm-add{border:1px solid var(--mk-accent);background:#fff;color:var(--mk-accent)}
.theme-market .hm-add:hover{background:var(--mk-accent);color:#fff}
.theme-market .hm-add.off{border-color:#d9d9d9;color:#999;background:#f4f4f4;cursor:not-allowed}
.theme-market .hm-buy{border:1px solid var(--mk-accent);background:var(--mk-accent);color:#fff}
.theme-market .hm-buy:hover{background:var(--mk-accent-dark)}

/* page dots under a sliding row */
.theme-market .hm-pages{display:flex;justify-content:center;min-height:18px;margin-top:20px}
.theme-market .hm-pages button{width:8px;height:8px;margin:5px;padding:0;border:1px solid var(--mk-accent);border-radius:50%;background:transparent;cursor:pointer}
.theme-market .hm-pages button.on{background:var(--mk-accent)}

/* ---------- Home: wide banner and "load more" ---------- */
.theme-market .hm-banner{position:relative;display:block;margin-top:16px;margin-bottom:16px;padding:0;overflow:hidden;border-radius:8px;aspect-ratio:1314/340;background:#e9e5dc}
.theme-market .wrap.hm-banner{width:calc(95% - 40px);max-width:1484px}
.theme-market .hm-banner img{width:100%;height:100%;object-fit:cover}
.theme-market .hm-more{margin-top:20px;text-align:center}
.theme-market .hm-more a{display:inline-block;padding:13px 28px;border:2px solid var(--mk-accent);border-radius:30px;background:transparent;color:var(--mk-accent);font-size:14px;font-weight:600;line-height:14px;text-transform:uppercase;text-decoration:none}
.theme-market .hm-more a:hover{background:var(--mk-accent);color:#fff}

/* ---------- All product cards elsewhere (listing pages, "more like this") ---------- */
.theme-market .product{background:#fff;border:0;border-radius:var(--mk-radius);box-shadow:none;overflow:hidden;transition:box-shadow .15s}
.theme-market .product:hover{box-shadow:0 6px 18px #00000014;transform:none}
.theme-market .product .pi b,.theme-market .product .pi a{color:var(--mk-head)}
.theme-market .product .pimg span{background:var(--mk-lime);color:#2c3b0a;border-radius:4px}
.theme-market .product .price-line strong{color:var(--mk-accent)}
.theme-market .card-order{background:var(--mk-accent);color:#fff;border:1px solid var(--mk-accent);border-radius:6px}
.theme-market .card-cart{background:#fff;color:var(--mk-accent);border:1px solid var(--mk-accent);border-radius:6px}
.theme-market .stars{color:var(--mk-accent)}
.theme-market .section-title,.theme-market .title{color:var(--mk-head)}

/* ---------- Product page ---------- */
.theme-market .shop-page .gallery,.theme-market .shop-page .details{background:#fff;border:0;border-radius:8px;box-shadow:none}
.theme-market .shop-page .gallery{padding:12px;overflow:hidden}
.theme-market .shop-page .details{padding:22px}
.theme-market .shop-page .gallery img{border-radius:6px}
.theme-market .shop-page .price{color:var(--mk-accent)}
.theme-market .shop-page .save{background:var(--mk-lime);color:#2c3b0a;border-radius:4px;padding:2px 10px;font-weight:700}
.theme-market .shop-page .buy-box,.theme-market .shop-page .purchase{background:var(--mk-bg);border:1px solid var(--mk-line);border-radius:8px;padding:14px}
.theme-market .shop-page .purchase .btn-sq{padding:12px;font-weight:700}
.theme-market .shop-page .opts label,.theme-market .shop-page .pill{border-radius:6px}
.theme-market .shop-page .opts input:checked+span,.theme-market .shop-page .opts .active{background:var(--mk-accent);border-color:var(--mk-accent);color:#fff}
.theme-market .shop-page .accordion{border:1px solid var(--mk-line);border-radius:8px;background:#fff;overflow:hidden}
.theme-market .gallery-badge{background:var(--mk-red);color:#fff}
.theme-market .in-stock{color:#12693f;font-weight:700}

/* ---------- Cart and checkout ---------- */
.theme-market .cart-hero{background:#fff;border:0;box-shadow:none;color:var(--mk-head);padding:10px 18px;justify-content:center;border-radius:8px}
.theme-market .cart-hero::after{display:none}
.theme-market .cart-hero>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.theme-market .cart-steps{color:#9a9a9a}
.theme-market .cart-steps li+li::before{background:#d8d3c8}
.theme-market .cart-steps span{border-color:#d8d3c8}
.theme-market .cart-steps .current{color:var(--mk-head)}
.theme-market .cart-steps .current span{background:var(--mk-accent);border-color:var(--mk-accent);color:#fff}
.theme-market .cart-steps .done{color:var(--mk-head)}
.theme-market .cart-steps .done span{background:var(--mk-accent);border-color:var(--mk-accent);color:#fff}
.theme-market .cart-list .cart-item{background:#fff;border:0;border-radius:8px;box-shadow:none}
.theme-market .checkout-lines .cart-item{background:#fff}
.theme-market .cart-item-foot strong{color:var(--mk-accent)}
.theme-market .cart-item h3 a{color:var(--mk-head)}
.theme-market .size-pick button{border-radius:6px}
.theme-market .size-pick button.active{background:var(--mk-accent);border-color:var(--mk-accent);color:#fff}
.theme-market .cart-summary,.theme-market .cart-summary *{color:var(--mk-text)}
.theme-market .cart-summary h2,.theme-market .cart-summary h3{color:var(--mk-head)}
.theme-market .cart-summary .summary-line span,.theme-market .cart-summary .summary-line b,.theme-market .cart-summary .summary-line strong{color:var(--mk-text)!important}
.theme-market .cart-summary .summary-line.total span,.theme-market .cart-summary .summary-line.total b,.theme-market .cart-summary .summary-line.total strong{color:var(--mk-accent)!important}
.theme-market .cart-summary .summary-line{border-color:var(--mk-line)}
.theme-market .cart-summary .btn-sq,.theme-market .cart-summary .btn-sq *{color:#fff}
.theme-market .cart-summary .btn-sq,.theme-market .checkout-submit{background:var(--mk-accent);border-radius:6px;box-shadow:none}
.theme-market .cart-summary .cart-trust,.theme-market .cart-summary .cart-trust *{color:var(--mk-old)}
.theme-market .checkout-totals{background:var(--mk-bg);border-color:var(--mk-line);border-radius:8px}
.theme-market .checkout-totals .row.total b,.theme-market .checkout-totals .row.total span{color:var(--mk-accent)}
.theme-market .checkout-grid .panel h3{padding-left:12px;position:relative;color:var(--mk-head)}
.theme-market .checkout-grid .panel h3::before{content:"";position:absolute;left:0;top:50%;width:4px;height:16px;transform:translateY(-50%);border-radius:3px;background:var(--mk-accent)}
.theme-market .form input,.theme-market .form textarea{border-radius:6px;background:#fff;border-color:#e2ddd2}
.theme-market .form input:focus,.theme-market .form textarea:focus{border-color:var(--mk-accent);outline:0;box-shadow:0 0 0 3px var(--mk-glow)}
.theme-market .cart-trust{background:#fff;border-radius:8px}

/* ---------- Thank you ---------- */
.theme-market .panel.thanks{max-width:620px;margin:26px auto;padding:30px 24px;text-align:center;border-radius:10px}
.theme-market .thanks-mark{background:#e3f2e8;color:#12693f}
.theme-market .order-number{display:inline-block;padding:8px 18px;border-radius:6px;background:var(--mk-tint);border:1px dashed var(--mk-accent);color:var(--mk-accent);font-weight:800;letter-spacing:.5px}
.theme-market .thanks-summary{background:var(--mk-bg);border:1px solid var(--mk-line);border-radius:8px;padding:12px 16px;text-align:left}
.theme-market .thanks .btn{padding:11px 26px}
@media(max-width:900px){
    .theme-market #mobile-bar:has(.checkout-bar){background:transparent;border-top:0;box-shadow:none;padding:0 14px calc(16px + env(safe-area-inset-bottom));pointer-events:none}
    .theme-market .checkout-bar{display:block;padding:0}
    .theme-market .checkout-bar .btn-sq{pointer-events:auto;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:16px 20px;border-radius:8px;font-size:17px;font-weight:700;background:var(--mk-accent);box-shadow:0 10px 24px var(--mk-glow2)}
}
.theme-market .tab-bar a.active,.theme-market .tab-bar a:hover{color:var(--mk-accent)}

/* ---------- Footer: white, a wide column and four link columns ---------- */
.theme-market footer#footer{margin-top:16px;background:#fff;color:var(--mk-text)}
.theme-market .mk-foot{display:grid;grid-template-columns:4fr 2fr 2fr 2fr 2fr;gap:20px;padding-top:72px;padding-bottom:72px}
.theme-market .mk-foot>div{min-width:0}
.theme-market .mk-foot-logo{display:inline-flex;height:48px;align-items:center}
.theme-market .mk-foot p{margin:20px 0 0;font-size:14px;line-height:21px}
.theme-market .mk-foot h3{margin:0 0 16px;color:var(--mk-head);font-size:16px;font-weight:500;line-height:20.8px}
.theme-market .mk-foot>div:not(.mk-about) a,.theme-market .mk-foot>div:not(.mk-about) span{display:block;padding:6px 0;color:var(--mk-text);font-size:14px;line-height:16.8px;text-decoration:none}
.theme-market .mk-foot>div:not(.mk-about) a:first-of-type{padding-top:0}
.theme-market .mk-foot a:hover{color:var(--mk-accent)}
.theme-market .mk-contact{margin:28px 0 0;padding:0;list-style:none}
.theme-market .mk-contact li{display:flex;align-items:center;gap:8px;padding:0 0 7px;font-size:16px;line-height:24px}
.theme-market .mk-contact svg{flex:none}
.theme-market .mk-social{display:flex;gap:8px;margin-top:28px}
.theme-market .mk-social span{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--mk-bg)}
.theme-market .mk-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:16px;padding-bottom:16px;border-top:1px solid #eeeeee;font-size:14px;line-height:21px}
.theme-market .mk-pay{padding:6px 12px;border:1px solid #eeeeee;border-radius:6px;background:var(--mk-bg);color:var(--mk-head);font-size:13px}
.theme-market .mk-bottom .credit{font-size:12px}
.theme-market .mk-bottom .credit a{color:var(--mk-accent)}
.theme-market footer#footer .mk-foot p,.theme-market footer#footer .mk-foot li,.theme-market footer#footer .mk-foot a,.theme-market footer#footer .mk-foot span,.theme-market footer#footer .mk-bottom,.theme-market footer#footer .mk-bottom span{color:var(--mk-text)!important}
.theme-market footer#footer .mk-foot a:hover{color:var(--mk-accent)!important}
.theme-market footer#footer .mk-foot h3{color:var(--mk-head)!important}
.theme-market footer#footer .mk-social span,.theme-market footer#footer .mk-social span *,.theme-market footer#footer .mk-bottom .credit a{color:var(--mk-accent)!important}
.theme-market footer#footer .mk-bottom .mk-pay{color:var(--mk-head)!important}

/* ---------- Floating cart (right edge) and chat button ---------- */
.mk-float{display:none}
.theme-market .mk-float{display:block}
.theme-market .mk-cart{position:fixed;right:0;top:50%;z-index:35;width:66px;margin-top:-30px;overflow:hidden;border-radius:6px 0 0 6px;background:var(--mk-accent);box-shadow:0 12px 24px #22577a3d;text-align:center;text-decoration:none}
.theme-market .mk-cart b{display:block;padding:12px 2px 8px;white-space:nowrap;background:var(--mk-accent);color:#fff;font-size:12px;font-weight:400;line-height:13.2px}
.theme-market .mk-cart b svg{display:block;margin:0 auto 4px;color:#fff}
.theme-market .mk-cart span{display:block;padding:5px 2px;border-radius:0 0 0 6px;background:#fff;color:var(--mk-accent);font-size:14px;font-weight:600;line-height:16.8px}
.theme-market .mk-chat{position:fixed;right:20px;bottom:24px;z-index:35;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--mk-accent);color:#fff;box-shadow:0 4px 14px #00000033}

/* The classic design puts the category tiles on a cream panel; here they sit straight on the page. */
.theme-market .hm-section#categories{background:transparent;border:0;box-shadow:none;border-radius:0}
.theme-market .hm-section#categories::before,.theme-market .hm-section#categories::after{display:none}

/* ---------- Tablets and phones ---------- */
@media(max-width:1200px){
    .theme-market .hm-cat{flex-basis:calc((100% - 5*20px)/6)}
    .theme-market .hm-card.wide .hm-img{flex-basis:220px;width:220px;height:220px}
    .theme-market .mk-foot{grid-template-columns:repeat(4,1fr)}
    .theme-market .mk-foot .mk-about{grid-column:1/-1}
}
@media(max-width:1000px){
    .theme-market .wrap{width:100%;padding-left:16px;padding-right:16px}
    .theme-market .wrap.hm-banner{width:calc(100% - 32px)}
    .theme-market .hm-hero-grid{grid-template-columns:1fr}
    .theme-market .hm-side{aspect-ratio:869/348}
    .theme-market .hm-cat{flex-basis:calc((100% - 3*14px)/4)}
    .theme-market .hm-track{gap:14px}
    .theme-market .hm-row .hm-card{flex-basis:calc((100% - 4*14px)/5)}
    .theme-market .hm-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
    .theme-market .hm-cats .hm-arrow{display:none}
    .theme-market .hm-wide-grid{grid-template-columns:1fr}
    .theme-market .hm-cap strong{font-size:28px}
    .theme-market .hm-name{font-size:14px}
    .theme-market .hm-price strong,.theme-market .hm-price del{font-size:14px}
    .theme-market .hm-add{gap:3px;padding:6px 4px;font-size:12px}
}
@media(max-width:760px){
    .theme-market .hm-row .hm-card{flex-basis:calc((100% - 14px)/2)}
    .theme-market .hm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
    .theme-market .head{min-height:0;padding:10px 0}
    .theme-market .head .search{flex-basis:100%;max-width:none}
    .theme-market .hm-hero-grid{padding-top:12px;gap:12px}
    .theme-market .hm-cats-title{margin-bottom:16px;font-size:18px}
    .theme-market .hm-title{margin-bottom:16px;font-size:20px;line-height:1.3}
    .theme-market .hm-cat{flex-basis:calc((100% - 3*10px)/3.5)}
    .theme-market .hm-cat b{font-size:13px}
    .theme-market .hm-track{gap:10px}
    .theme-market .hm-row .hm-card{flex-basis:calc((100% - 10px)/2)}
    .theme-market .hm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .theme-market .hm-card.wide{gap:12px}
    .theme-market .hm-card.wide .hm-img{flex-basis:130px;width:130px;height:150px}
    .theme-market .hm-card.wide .hm-name{font-size:15px;line-height:1.35}
    .theme-market .hm-card.wide .hm-actions{margin-top:12px;flex-direction:column}
    .theme-market .hm-card.wide .hm-add,.theme-market .hm-card.wide .hm-buy{height:34px;padding:6px 10px;font-size:12px}
    .theme-market .hm-name{font-size:14px}
    .theme-market .hm-price strong,.theme-market .hm-price del{font-size:14px}
    .theme-market .hm-add{height:36px;font-size:12px}
    .theme-market .hm-cap{padding:0 5%;gap:4px}
    .theme-market .hm-cap strong{font-size:20px;max-width:75%}
    .theme-market .hm-cap span{font-size:12px;max-width:75%}
    .theme-market .hm-cap em{padding:6px 12px;font-size:12px}
    .theme-market .hm-dots{left:12px;bottom:6px}
    .theme-market .hm-head h3{font-size:17px}
    .theme-market .mk-foot{grid-template-columns:1fr 1fr;gap:24px 16px;padding-top:32px;padding-bottom:24px}
    .theme-market .mk-cart{display:none}
    .theme-market .mk-chat{bottom:74px;right:12px}
}
.theme-market .tab-bar a.active,.theme-market .tab-bar a:hover{color:var(--mk-accent)}

/* Phones: the header icons without their words, so the logo, search and icons fit on one line (all marketplace designs) */
@media(max-width:620px){
    .theme-market .quick{gap:14px}
    .theme-market .quick a{font-size:0;gap:0}
    .theme-market .quick .quick-label{display:none}
}
