/* Muria Tampilan Shopee v1.1.2 — dimuat setelah CSS Customizer */
:root{--msx-red:#D7262E;--msx-red2:#F0512F;--msx-line:#ececec}

/* ===== HEADER (PC) ===== */
.msx .site-header{background:linear-gradient(-180deg,var(--msx-red),var(--msx-red2))!important}
.msx .site-header .col-full{display:flex!important;flex-wrap:wrap;align-items:center;gap:0 28px;padding-top:0!important;padding-bottom:16px!important}
.msx .site-header .col-full:before,.msx .site-header .col-full:after{display:none!important}
.msx-topbar{order:-1;width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#fff;padding:6px 0 10px}
.msx-topbar .l,.msx-topbar .r{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msx-topbar .r a{margin-left:12px}
.msx-topbar .r .sep+a{margin-left:0}
.msx-topbar a{color:#fff!important;text-decoration:none!important;opacity:.92}
.msx-topbar a:hover{opacity:1;text-decoration:underline!important}
.msx-topbar a.b{font-weight:600}
.msx-topbar .sep{opacity:.45}
.msx .site-branding{flex:0 0 auto;margin:0!important}
.msx-searchwrap{flex:1 1 auto;min-width:0;align-self:flex-start;padding-top:4px}
.msx .msx-searchwrap .site-search{width:100%!important;flex:none;margin:0!important;display:block!important}
.msx .msx-searchwrap .site-search input[type=search]{padding:12px 76px 12px 14px!important;border-radius:3px!important;box-shadow:0 1px 1px rgba(0,0,0,.06)!important}
.msx .msx-searchwrap .site-search form:after{border-radius:2px}
.msx .msx-searchwrap .site-search button[type=submit]{position:absolute;right:4px;top:4px;bottom:4px;width:60px;height:auto!important;clip:auto!important;clip-path:none!important;margin:0!important;opacity:0;z-index:2;cursor:pointer;padding:0;overflow:hidden}
.msx-kw{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:7px;font-size:12px;overflow:hidden;max-height:18px}
.msx-kw a{color:#fff!important;text-decoration:none!important;opacity:.9;white-space:nowrap}
.msx-kw a:hover{opacity:1;text-decoration:underline!important}
.msx-cart{position:relative;flex:0 0 auto;display:flex;align-items:center;justify-content:center;width:64px;height:48px;color:#fff!important;align-self:flex-start}
.msx-cart svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.msx-cart-count{position:absolute;top:2px;right:8px;min-width:22px;height:20px;padding:0 5px;border-radius:11px;background:#fff;color:var(--msx-red);border:2px solid var(--msx-red2);font-size:11px;font-weight:700;line-height:16px;text-align:center}
.msx-cart-count.is-zero,.msx-tab-count.is-zero{display:none}
/* menu baris putih dihilangkan (navigasi lewat bar atas, kata kunci, kategori & bar bawah HP) */
.msx .storefront-primary-navigation,.msx .site-header .secondary-navigation{display:none!important}

/* ===== BERANDA ===== */
.msx .ms-cats{grid-template-columns:repeat(10,1fr)!important;border-radius:0 0 6px 6px;border-top:0}
.msx .ms-cats a{border-right:1px solid #f5f5f5;border-bottom:1px solid #f5f5f5;padding:14px 4px;font-size:12.5px;line-height:1.3}
.msx .ms-cats i{width:60px;height:60px;font-size:28px}
.msx .ms-sec-head.cat{margin-top:4px;border-bottom:1px solid var(--msx-line);border-radius:6px 6px 0 0}
.msx .ms-sec-head.cat h2{color:#757575;font-size:15px}
.msx .ms-sec-head.sticky{position:sticky;top:0;z-index:5}
.msx-more{display:block;width:max-content;margin:14px auto 28px;padding:10px 72px;background:#fff;border:1px solid #ddd;border-radius:2px;color:#555!important;text-decoration:none!important;font-size:14px}
.msx-more:hover{background:#fafafa;border-color:#ccc}

/* ===== KARTU PRODUK ===== */
.msx ul.products li.product .button,.msx ul.products li.product .added_to_cart{display:none!important}
.msx ul.products li.product{padding-bottom:6px!important;border-radius:2px;box-shadow:0 1px 1px rgba(0,0,0,.05)}
.msx ul.products li.product img{margin-bottom:6px!important}
.msx ul.products li.product .woocommerce-loop-product__title{font-size:12.5px!important;min-height:34px;margin-bottom:4px!important}
.msx ul.products li.product .price{font-size:15px!important;margin-bottom:2px!important;font-weight:600}
.msx ul.products li.product .price del{font-size:12px;color:#999;font-weight:400}
.msx ul.products li.product:after{content:"Desain gratis";display:block;margin:2px 8px 0;font-size:11px;color:#757575}

/* ===== FOOTER ===== */
.msx .site-footer{background:#fbfbfb!important;border-top:4px solid var(--msx-red);padding:0!important}
.msx .site-footer .col-full{padding-top:28px!important;padding-bottom:16px!important}
.msx-footer{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:18px}
.msx-fcol h4{font-size:12px;font-weight:700;color:#333;text-transform:uppercase;margin:0 0 12px;letter-spacing:.2px}
.msx-fcol h4.mt{margin-top:18px}
.msx-fcol a{display:block;color:#555!important;font-size:13px;margin-bottom:8px;text-decoration:none!important}
.msx-fcol a:hover{color:var(--msx-red)!important}
.msx-chips{display:flex;flex-wrap:wrap;gap:6px}
.msx-chips span{background:#fff;border:1px solid #e5e5e5;border-radius:3px;padding:4px 8px;font-size:11.5px;font-weight:600;color:#444;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.msx .site-info{border-top:1px solid #eee;padding:16px 0 4px!important;text-align:center;font-size:12px;color:#888}

/* bar bawah & lembar kategori hanya di HP */
.msx-tabbar,.msx-sheet{display:none}

/* ===== HP ===== */
@media (max-width:767px){
 .msx-topbar,.msx-kw{display:none!important}
 .msx .site-header{position:sticky;top:0;z-index:999}
 .admin-bar.msx .site-header{top:46px}
 .msx .site-header .col-full{flex-wrap:nowrap;gap:8px;padding-top:10px!important;padding-bottom:10px!important}
 .msx .site-branding .site-title{font-size:0!important;line-height:0}
 .msx .site-branding .site-title a:before{margin:0!important;width:38px;height:38px;vertical-align:middle}
 .msx .site-branding .site-description{display:none!important}
 .msx-searchwrap{flex:1 1 auto;padding-top:0;align-self:center}
 .msx .msx-searchwrap .site-search input[type=search]{padding:10px 52px 10px 12px!important;font-size:14px}
 .msx .msx-searchwrap .site-search form:after,.msx .msx-searchwrap .site-search button[type=submit]{width:42px}
 .msx-cart{width:40px;height:40px;align-self:center}
 .msx-cart svg{width:27px;height:27px}
 .msx-cart-count{top:-2px;right:-4px;min-width:19px;height:18px;font-size:10px;line-height:14px}
 .msx .site-content{padding-top:8px}

 .msx .ms-hero{margin-top:0}
 .msx .ms-cats{display:grid!important;grid-auto-flow:column;grid-template-rows:repeat(2,auto);grid-template-columns:none!important;grid-auto-columns:21%;overflow-x:auto;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .msx .ms-cats::-webkit-scrollbar{display:none}
 .msx .ms-cats a{scroll-snap-align:start;padding:10px 2px;font-size:11px;border:0}
 .msx .ms-cats i{width:46px;height:46px;font-size:22px;border-radius:14px}
 .msx .ms-usp{display:none}
 .msx .ms-sec-head{margin:10px 0 6px;padding:10px 12px}
 .msx .ms-sec-head h2{font-size:14px}
 .msx ul.products li.product:after{font-size:10px}
 .msx-more{padding:10px 40px;margin-bottom:16px}

 .msx-footer{grid-template-columns:1fr 1fr;gap:16px}
 body.msx{padding-bottom:62px}
 .msx-tabbar{display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;z-index:9990;background:#fff;border-top:1px solid #e5e5e5;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -1px 6px rgba(0,0,0,.05)}
 .msx-tabbar a{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 0 6px;font-size:10.5px;color:#666!important;text-decoration:none!important}
 .msx-tabbar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .msx-tabbar a.on{color:var(--msx-red)!important}
 .msx-tab-count{position:absolute;top:2px;left:calc(50% + 5px);min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:var(--msx-red);color:#fff;border:1px solid #fff;font-size:10px;line-height:15px;text-align:center}
 .msx-sheet{display:block;position:fixed;inset:0;z-index:10000}
 .msx-sheet[hidden]{display:none}
 .msx-sheet-bg{position:absolute;inset:0;background:rgba(0,0,0,.45)}
 .msx-sheet-box{position:absolute;left:0;right:0;bottom:0;max-height:78vh;overflow:auto;background:#fff;border-radius:14px 14px 0 0;padding:4px 12px calc(16px + env(safe-area-inset-bottom));animation:msxUp .2s ease-out}
 @keyframes msxUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
 .msx-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:10px 2px;border-bottom:1px solid #f0f0f0;margin-bottom:8px}
 .msx-sheet-head b{font-size:16px}
 .msx-sheet-head button{background:none!important;color:#666!important;font-size:18px;padding:4px 8px;border:0}
 .msx-sheet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
 .msx-sheet-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 2px;text-align:center;font-size:11px;line-height:1.25;color:#333!important;text-decoration:none!important}
 .msx-sheet-grid i{font-style:normal;font-size:24px;width:50px;height:50px;border-radius:14px;background:#FFF1F0;display:flex;align-items:center;justify-content:center}
 body.msx-lock{overflow:hidden}
 /* tombol "beli" melayang Storefront di halaman produk jangan ketutup bar bawah */
 .msx .storefront-sticky-add-to-cart{bottom:62px}
}
@media (min-width:768px) and (max-width:1024px){
 .msx .ms-cats{grid-template-columns:repeat(5,1fr)!important}
 .msx-kw{max-height:18px}
}
.msx .msx-searchwrap .widget,.msx .msx-searchwrap .site-search .widget_product_search{margin:0!important}
.msx .msx-searchwrap .site-search form{margin:0!important}
@media (max-width:767px){.msx .storefront-sorting:first-of-type .woocommerce-pagination,.msx .storefront-sorting:first-of-type .woocommerce-result-count{display:none!important}.msx .storefront-sorting{padding:8px 10px!important;margin-bottom:8px!important}.msx .woocommerce-products-header{padding:10px 12px!important;margin-bottom:8px}.msx .woocommerce-products-header h1{font-size:18px}.msx .woocommerce-products-header .term-description{font-size:13px}.msx .woocommerce-breadcrumb{padding:8px 0!important;font-size:12px}.msx .storefront-sorting select{max-width:100%}}

.ms-cats i.img,.msx-sheet-grid i.img{overflow:hidden;padding:0;background:#fff}
.ms-cats i.img img,.msx-sheet-grid i.img img{width:100%;height:100%;object-fit:cover;margin:0}
.msx-searchwrap{flex:1 1 0%!important;min-width:0!important}
@media (max-width:767px){.woot-widget-bubble,.woot--bubble-holder .woot-widget-bubble{bottom:78px!important}.woot-widget-holder{bottom:146px!important}}
