/*
Theme Name: Maruf Gadget Store
Template: twentytwentyfive
Description: Custom child theme for Maruf Gadget Store (bilingual, mobile-first, black and white).
Version: 2.0.0
Text Domain: maruf-gadget-store
*/
:root{--k:#111;--g:#f4f4f5;--l:#e5e7eb;--b:#1F4FE0}
html[lang^='bn'] .en{display:none!important}
html:not([lang^='bn']) .bn{display:none!important}
body{font-family:'Hind Siliguri','Poppins',system-ui,sans-serif;color:var(--k);background:#fff}
.msg-wrap{max-width:1240px;margin:0 auto;padding:0 16px}
.msg-topbar{background:var(--k);color:#e5e7eb;font-size:13px}
.msg-topbar .msg-wrap{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:6px;padding-bottom:6px}
.msg-lang{white-space:nowrap}
.msg-lang a{color:#fff;text-decoration:none;font-size:12px;padding:2px 10px;margin-left:6px;border:1px solid rgba(255,255,255,.35);border-radius:20px}
html[lang^='bn'] .msg-lang .l-bn,html:not([lang^='bn']) .msg-lang .l-en{background:#fff;color:var(--k);border-color:#fff}
html[lang^='bn'] .msg-lang .l-bn,html:not([lang^='bn']) .msg-lang .l-en{color:var(--k)}
.msg-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--l);display:flex;align-items:center;gap:18px;padding:10px max(16px,calc((100% - 1240px)/2));flex-wrap:wrap}
.msg-header .wp-block-site-title{margin:0;font-weight:700;font-size:20px}
.msg-search{flex:1;min-width:220px;max-width:680px;display:flex;margin:0 auto}
.msg-search input[type=search]{flex:1;border:1.5px solid var(--k);border-right:0;border-radius:10px 0 0 10px;padding:11px 16px;font:inherit;min-width:0;background:#fff}
.msg-search button{background:var(--k);color:#fff;border:0;border-radius:0 10px 10px 0;padding:0 18px;cursor:pointer;display:flex;align-items:center}
.msg-search svg,.msg-call svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.msg-call{display:flex;align-items:center;gap:6px;color:var(--k);font-weight:600;text-decoration:none;white-space:nowrap}
.msg-catnav{background:var(--k)}
.msg-catnav .msg-wrap{display:flex;overflow-x:auto;scrollbar-width:none}
.msg-catnav a{color:#fff;padding:12px 16px;font-weight:500;font-size:15px;text-decoration:none;white-space:nowrap}
.msg-catnav a:hover{background:#2a2a2a}
.msg-herowrap{padding-top:16px;padding-bottom:4px}
.msg-hero{display:grid;grid-template-columns:1.1fr .9fr;background:var(--k);color:#fff;border-radius:18px;overflow:hidden;min-height:340px}
.msg-hero.solo{grid-template-columns:1fr}
.msg-herotxt{padding:48px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:12px}
.msg-herotxt h1{font-size:clamp(28px,4.4vw,48px);line-height:1.15;margin:0;color:#fff}
.msg-herotxt p{margin:0;font-size:17px;color:#d1d5db;max-width:520px}
.msg-herotxt p.msg-kicker{letter-spacing:.14em;text-transform:uppercase;font-size:13px;color:#9ca3af}
.msg-herovis{background:#fff;display:flex;align-items:center;justify-content:center;padding:16px}
.msg-herothumb{max-height:340px;width:auto;max-width:100%;object-fit:contain}
.msg-btn{display:inline-block;background:#fff;color:var(--k)!important;font-weight:700;padding:12px 28px;border-radius:50px;text-decoration:none;margin-top:8px}
.msg-slides{border-radius:18px;overflow:hidden}
.msg-slide{display:none}
.msg-slide.on{display:block}
.msg-slide a{display:block}
.msg-slide img{display:block;width:100%;height:auto}
.msg-strip{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--l);border-radius:14px;margin:18px 0}
.msg-strip div{display:flex;align-items:center;gap:10px;padding:14px 16px;font-weight:600;font-size:14px;border-right:1px solid var(--l)}
.msg-strip div:last-child{border-right:0}
.msg-strip svg{width:26px;height:26px;flex:none;fill:none;stroke:var(--k);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.msg-sec{max-width:1240px;margin:0 auto;padding:22px 16px}
.msg-sh{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid var(--k);margin-bottom:16px}
.msg-sh h2{font-size:22px;margin:0 0 8px}
.msg-sh a{color:var(--k);font-weight:600;text-decoration:none;font-size:14px}
.msg-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.msg-tile{text-align:center;text-decoration:none;color:var(--k);font-weight:600;font-size:14px;border:1px solid var(--l);border-radius:12px;padding:10px;background:#fff}.msg-tile:hover{box-shadow:0 8px 24px rgba(0,0,0,.10)}
.msg-tileimg{display:block;aspect-ratio:1;background:#fff;overflow:hidden;margin-bottom:8px}
.msg-tileimg img{width:100%;height:100%;object-fit:contain}
.msg-ph{background:var(--g);display:flex;width:100%;height:100%;align-items:center;justify-content:center;font-size:32px;font-weight:700}
.msg-promos{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.msg-promos img{width:100%;height:auto;border-radius:14px;display:block}
ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:16px;list-style:none;padding:0;margin:0}
ul.products::before,ul.products::after{display:none!important}
ul.products li.product{position:relative;width:auto!important;margin:0!important;float:none!important;border:1px solid var(--l);border-radius:12px;padding:12px;background:#fff}
ul.products li.product:hover{box-shadow:0 8px 24px rgba(0,0,0,.10)}
ul.products li.product img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:8px}
ul.products li.product .woocommerce-loop-product__title{font-size:15px;font-weight:600;line-height:1.35}
ul.products li.product .button{display:block;width:100%;text-align:center;margin-top:8px}
.price{color:var(--k);font-weight:700}
.price del{color:#888;font-weight:400;margin-right:6px}
.onsale{position:absolute;top:10px;left:10px;background:var(--k);color:#fff;border-radius:50px;padding:2px 10px;font-size:12px;min-height:0;line-height:1.6}
.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce #respond input#submit,.wc-block-components-button{background:var(--k);color:#fff;border-radius:8px;font-weight:600}
.wp-element-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--b);color:#fff}
.msg-footer{background:var(--k);color:#cbd5e1;margin-top:40px}
.msg-footer a{color:#fff;text-decoration:none}
.msg-fgrid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:28px;padding:40px 16px}
.msg-footer h4{color:#fff;margin:0 0 10px;font-size:17px}
.msg-footer p{margin:4px 0}
.msg-copy{border-top:1px solid rgba(255,255,255,.12);text-align:center;padding:14px;font-size:13px}
.msg-wa{position:fixed;right:14px;bottom:14px;z-index:60;background:#25D366;color:#fff!important;border-radius:50px;padding:11px 18px;font-weight:700;text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.msg-page{max-width:860px;margin:0 auto;padding:8px 16px 32px;line-height:1.8}
.msg-page h2{font-size:22px;margin:26px 0 8px}
.msg-page ul{padding-left:22px}
.msg-page li{margin:6px 0}
.msg-box{background:var(--g);border:1px solid var(--l);border-radius:14px;padding:16px 18px;margin:16px 0}
.msg-cbtn{display:inline-block;background:var(--k);color:#fff!important;font-weight:700;padding:11px 24px;border-radius:50px;text-decoration:none;margin:6px 8px 6px 0}
.msg-cbtn.wa{background:#25D366}
@media(max-width:900px){ul.products{grid-template-columns:repeat(2,1fr)}.msg-strip{grid-template-columns:repeat(2,1fr)}.msg-strip div:nth-child(2){border-right:0}.msg-strip div:nth-child(-n+2){border-bottom:1px solid var(--l)}.msg-fgrid{grid-template-columns:1fr 1fr}.msg-hero{grid-template-columns:1fr}.msg-herotxt{padding:32px 24px}.msg-promos{grid-template-columns:1fr}}
@media(max-width:640px){.msg-call span{display:none}.msg-search{order:3;flex-basis:100%;max-width:none}.msg-header{gap:10px}}
@media(max-width:560px){.msg-fgrid{grid-template-columns:1fr}.msg-topbar .msg-wrap{font-size:12px}}
/* Checkout */
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1.5px solid #d1d5db;border-radius:8px;padding:11px 12px;font:inherit}
.woocommerce-checkout h3{font-size:20px;border-bottom:2px solid var(--k);padding-bottom:8px}
.woocommerce #payment{background:var(--g);border-radius:12px}
.woocommerce #payment div.payment_box{background:#fff;border-radius:8px}
.woocommerce #payment div.payment_box::before{display:none}
.msg-pay .msg-paynum{font-size:24px;letter-spacing:.05em;margin:4px 0 12px}
.woocommerce #place_order{background:var(--k);color:#fff;width:100%;padding:15px;font-size:17px;border-radius:10px;font-weight:700}
.woocommerce #place_order:hover{background:var(--b)}
/* Shop, category and product pages (WooCommerce blocks) */
.wc-block-product-template{gap:16px}
.wp-block-woocommerce-product-collection .wc-block-product{border:1px solid var(--l);border-radius:12px;padding:12px;background:#fff;position:relative}
.wp-block-woocommerce-product-collection .wc-block-product:hover{box-shadow:0 8px 24px rgba(0,0,0,.10)}
.wc-block-product img{border-radius:8px}
.wc-block-components-product-name,.wc-block-product .wp-block-post-title a{color:var(--k);text-decoration:none;font-weight:600}
.wc-block-components-product-price,.wp-block-woocommerce-product-price{font-weight:700;color:var(--k)}
.wc-block-components-product-price del,.wp-block-woocommerce-product-price del{color:#888;font-weight:400}
.wp-block-woocommerce-product-button .wp-block-button__link,.wc-block-components-product-button__button,.single_add_to_cart_button,.wp-block-woocommerce-add-to-cart-form .wp-element-button{background:var(--k)!important;color:#fff!important;border-radius:8px;font-weight:700}
.wp-block-woocommerce-product-button .wp-block-button__link:hover,.single_add_to_cart_button:hover{background:var(--b)!important}
.wp-block-woocommerce-add-to-cart-form .single_add_to_cart_button{padding:14px 28px;font-size:17px}
.woocommerce-breadcrumb,.wp-block-woocommerce-breadcrumbs{font-size:13px;color:#6b7280}
.woocommerce-breadcrumb a,.wp-block-woocommerce-breadcrumbs a{color:#6b7280}
.wp-block-woocommerce-product-image-gallery img{border-radius:12px}
.woocommerce-tabs ul.tabs li.active a,.wp-block-woocommerce-product-details .tabs li.active a{border-bottom:2px solid var(--k)}
.wp-block-woocommerce-product-details{margin-top:24px}
.wp-block-woocommerce-related-products h2{font-size:22px;border-bottom:2px solid var(--k);padding-bottom:8px}
.wp-block-woocommerce-store-notices .woocommerce-message,.woocommerce-message{border-top-color:var(--k)}
/* Checkout field order and look */
.woocommerce-billing-fields__field-wrapper{display:flex;flex-direction:column}
.woocommerce-billing-fields__field-wrapper .form-row{width:100%!important;float:none!important}
#billing_first_name_field{order:1}#billing_phone_field{order:2}#billing_state_field{order:3}#billing_address_1_field{order:4}#billing_email_field{order:5}#billing_country_field{display:none!important}
.woocommerce form .form-row select,.select2-container .select2-selection--single{font-size:16px}
.select2-container .select2-selection--single{height:46px;border:1.5px solid #d1d5db;border-radius:8px}
.select2-container--default .select2-selection--single .select2-selection__rendered{line-height:44px;font-size:16px;color:var(--k)}
.select2-container--default .select2-selection--single .select2-selection__arrow{height:44px}
/* Product cards v2 */
ul.products{gap:18px}
ul.products li.product{border:0;background:#fff;padding:0;border-radius:14px;box-shadow:0 1px 3px rgba(0,0,0,.10);overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s,transform .2s}
ul.products li.product:hover{box-shadow:0 10px 28px rgba(0,0,0,.15);transform:translateY(-3px)}
ul.products li.product a.woocommerce-LoopProduct-link{display:block}
ul.products li.product img{width:100%;aspect-ratio:1;object-fit:contain;background:#f5f5f6;padding:10px;border-radius:0;box-sizing:border-box;margin:0}
ul.products li.product .woocommerce-loop-product__title{padding:12px 14px 4px;margin:0;font-size:15px;font-weight:600;line-height:1.4;min-height:2.8em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
ul.products li.product .price{display:block;padding:0 14px;font-size:18px;font-weight:700}
ul.products li.product .price del{font-size:13px;color:#9ca3af;font-weight:400;margin-right:6px}
ul.products li.product .price ins{text-decoration:none}
ul.products li.product .button{margin:12px 14px 14px;width:auto;border-radius:10px;padding:11px;font-size:15px}
.onsale{top:10px;left:10px;background:#dc2626;color:#fff;font-weight:700;z-index:2}
.wp-block-woocommerce-product-collection .wc-block-product{border:0;padding:0;box-shadow:0 1px 3px rgba(0,0,0,.10);border-radius:14px;overflow:hidden;background:#fff}
.wp-block-woocommerce-product-collection .wc-block-product img{aspect-ratio:1;object-fit:contain;background:#f5f5f6;padding:10px;width:100%;box-sizing:border-box;border-radius:0}
.wp-block-woocommerce-product-collection .wc-block-product>*:not(.wc-block-components-product-image){padding-left:14px;padding-right:14px}
.wp-block-woocommerce-product-collection .wc-block-product>.wp-block-woocommerce-product-button{padding-bottom:14px}
/* Product grid fix: equal columns and equal card heights */
ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch}
ul.products li.product{min-width:0;height:100%;box-sizing:border-box}
ul.products li.product a.woocommerce-LoopProduct-link{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
ul.products li.product img{display:block;width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:contain;max-width:100%}
ul.products li.product .woocommerce-loop-product__title{overflow-wrap:anywhere}
ul.products li.product .button{margin-top:auto;text-align:center}
ul.products li.product .price{margin-bottom:0}
ul.products li.product .star-rating{display:none}
@media(max-width:900px){ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Product cards: beat WooCommerce's own stylesheet (higher specificity) */
.woocommerce ul.products li.product{display:flex;flex-direction:column;overflow:hidden}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,.woocommerce ul.products li.product a.woocommerce-loop-product__link{display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.woocommerce ul.products li.product a img{display:block;width:100%;height:auto;margin:0;aspect-ratio:1/1;object-fit:contain;padding:10px;background:#f5f5f6;box-sizing:border-box}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:12px 14px 4px;margin:0;font-size:15px;font-weight:600;line-height:1.4;height:2.8em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;box-sizing:content-box}
.woocommerce ul.products li.product .price{display:block;padding:0 14px;margin:0;font-size:18px;font-weight:700;color:#111}
.woocommerce ul.products li.product .price del{font-size:13px;color:#9ca3af;opacity:1;font-weight:400;display:inline-block}
.woocommerce ul.products li.product .price ins{background:none;font-weight:700;text-decoration:none;display:inline-block}
.woocommerce ul.products li.product .button{display:block;width:auto;margin:auto 14px 14px;padding:11px;text-align:center;font-size:15px;border-radius:10px;background:#111;color:#fff}
.woocommerce ul.products li.product .button:hover{background:var(--b)}
.woocommerce ul.products li.product .onsale{top:10px;left:10px;right:auto;margin:0;min-height:0;min-width:0;line-height:1.6;padding:2px 10px;border-radius:50px;background:#dc2626;color:#fff}
.woocommerce ul.products li.product .price+.button,.woocommerce ul.products li.product a+.button{margin-top:12px}
/* Landing-style product page */
.msp{max-width:1240px;margin:0 auto;padding:16px}
.msp-top{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:28px;align-items:start}
.msp-gal{position:sticky;top:90px}
.msp-mainimg{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#f5f5f6;border-radius:16px;display:block}
.msp-ths{display:flex;gap:10px;margin-top:10px;overflow-x:auto}
.msp-th{border:2px solid var(--l);border-radius:10px;padding:0;background:#fff;width:72px;flex:none;cursor:pointer}
.msp-th img{width:100%;height:auto;display:block;border-radius:8px}
.msp-title{font-size:clamp(24px,3.4vw,34px);line-height:1.25;margin:0 0 10px}
.msp-price{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 14px}
.msp-price .price{font-size:32px;font-weight:800;color:#111}
.msp-price del{font-size:18px;color:#9ca3af;font-weight:400}
.msp-price ins{text-decoration:none;background:none}
.msp-off{background:#dc2626;color:#fff;font-weight:700;border-radius:50px;padding:3px 12px;font-size:14px}
.msp-short{color:#374151;margin:0 0 14px}
.msp-ticks{list-style:none;padding:0;margin:0 0 16px}
.msp-ticks li{padding:6px 0 6px 28px;position:relative}
.msp-ticks li::before{content:'\2713';position:absolute;left:0;color:#16a34a;font-weight:800}
.msp-qty{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.msp-qty select{padding:8px 12px;border:1.5px solid #d1d5db;border-radius:8px;font:inherit}
.msp-cta{display:block;text-align:center;background:var(--k);color:#fff!important;font-weight:800;font-size:18px;padding:15px 24px;border-radius:12px;text-decoration:none}
.msp-cta:hover{background:var(--b)}
.msp-wa{background:#25D366}
.msp-sec{margin:34px 0}
.msp-sec>h2{font-size:24px;margin:0 0 14px;border-bottom:2px solid var(--k);padding-bottom:8px}
.msp-desc{line-height:1.8;font-size:17px}
.msp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.msp-steps div{background:var(--g);border:1px solid var(--l);border-radius:14px;padding:18px;text-align:center;font-weight:600}
.msp-steps b{display:flex;margin:0 auto 8px;width:40px;height:40px;border-radius:50%;background:var(--k);color:#fff;align-items:center;justify-content:center}
.msp details{border:1px solid var(--l);border-radius:12px;padding:12px 16px;margin:10px 0;background:#fff}
.msp summary{cursor:pointer;font-weight:700}
.msp-order{background:var(--g);border:1px solid var(--l);border-radius:18px;padding:20px}
.msp-order h2{margin-top:0}
.msp-order #customer_details .col-1,.msp-order #customer_details .col-2{float:none!important;width:100%!important}
.msp-order .woocommerce-form-coupon-toggle,.msp-order .woocommerce-form-login-toggle{display:none}
.msp-sticky{display:none}
@media(max-width:800px){.msp-top{grid-template-columns:1fr}.msp-gal{position:static}.msp-steps{grid-template-columns:1fr}.msp-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;border-top:1px solid var(--l);padding:10px 14px;gap:12px;align-items:center;box-shadow:0 -4px 14px rgba(0,0,0,.08)}.msp-sticky .price{font-size:20px;font-weight:800}.msp-sticky .msp-cta{flex:1;padding:12px;font-size:16px}.msg-wa{bottom:78px}}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);width:1px;height:1px;margin:-1px;overflow:hidden;white-space:nowrap}
