/*
Theme Name: MT Bazar Elementor
Theme URI: https://radiantdevx.shop
Author: Radiant DevX
Author URI: https://radiantdevx.shop
Description: Lightweight custom theme for MT Bazar. Built for Elementor Flexbox containers and WooCommerce. Header/Footer can be built as Elementor library templates (slugs: mt-header, mt-footer) and are rendered automatically; everything else is edited in Elementor. Includes custom Elementor widgets: MT Product Grid, MT Hero Slider, MT Testimonial Slider.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: mtbazar-elementor
*/
:root{--mt-primary:#0a8a4a;--mt-accent:#f26522;--mt-dark:#14213d;--mt-price:#0a8a4a}
*{box-sizing:border-box}body{margin:0;font-family:'Hind Siliguri',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:#222;background:#f6f7f9}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}
.mt-container{max-width:1280px;margin:0 auto;padding:0 16px}
.mt-fallback-header{background:#fff;border-bottom:1px solid #e7e7e7;padding:14px 0}.mt-fallback-header .mt-container{display:flex;align-items:center;gap:20px;justify-content:space-between}.mt-site-title{font-size:24px;font-weight:700;color:var(--mt-primary)}
.mt-fallback-footer{background:var(--mt-dark);color:#fff;padding:28px 0;margin-top:40px}
/* Product card (used by MT Product Grid widget) */
.mt-products{display:grid;gap:16px}.mt-card{background:#fff;border:1px solid #ececec;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .2s}.mt-card:hover{box-shadow:0 8px 24px rgba(0,0,0,.08)}
.mt-card-img{position:relative;display:block;aspect-ratio:1/1;overflow:hidden}.mt-card-img img{width:100%;height:100%;object-fit:cover}
.mt-badge{position:absolute;top:10px;left:10px;background:var(--mt-accent);color:#fff;font-size:13px;font-weight:700;padding:3px 8px;border-radius:20px;z-index:2}
.mt-card-body{padding:12px 14px 16px;display:flex;flex-direction:column;gap:8px;flex:1}.mt-card-title{font-size:15px;line-height:1.35;font-weight:600;margin:0}.mt-card-title a:hover{color:var(--mt-primary)}
.mt-price{font-size:16px;font-weight:700;color:var(--mt-price)}.mt-price del{color:#999;font-weight:400;margin-left:6px;font-size:14px}
.mt-order-btn{margin-top:auto;display:inline-block;text-align:center;background:var(--mt-primary);color:#fff!important;padding:9px 14px;border-radius:6px;font-weight:600;font-size:14px}.mt-order-btn:hover{opacity:.92}
/* Hero slider */
.mt-hero{position:relative;overflow:hidden;border-radius:12px}.mt-hero-track{display:flex;transition:transform .5s ease}.mt-hero-slide{min-width:100%}.mt-hero-slide img{width:100%;display:block;aspect-ratio:2172/724;object-fit:cover}
.mt-hero-dots{position:absolute;bottom:12px;left:0;right:0;display:flex;gap:6px;justify-content:center}.mt-hero-dots button{width:10px;height:10px;border-radius:50%;border:0;background:rgba(255,255,255,.6);cursor:pointer}.mt-hero-dots button.active{background:#fff}
/* Testimonial slider */
.mt-testi{overflow:hidden}.mt-testi-track{display:flex;gap:16px;transition:transform .5s ease}.mt-testi-slide{min-width:100%}@media(min-width:768px){.mt-testi-slide{min-width:calc(50% - 8px)}}.mt-testi-slide img{width:100%;border-radius:10px;display:block}
.mt-section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px}.mt-section-head h2{font-size:22px;margin:0}
/* Header widget */
.mt-header{background:#fff;border-bottom:1px solid #e7e7e7}.mt-header-main{max-width:1280px;margin:0 auto;padding:12px 16px;display:flex;align-items:center;gap:24px}
.mt-logo{font-size:26px;font-weight:800;color:var(--mt-primary);white-space:nowrap}
.mt-search{flex:1;display:flex;border:2px solid var(--mt-primary);border-radius:8px;overflow:hidden}.mt-search input{flex:1;border:0;padding:10px 14px;font-size:15px;outline:none}.mt-search button{background:var(--mt-primary);color:#fff;border:0;padding:0 22px;font-weight:600;cursor:pointer}
.mt-header-links{display:flex;align-items:center;gap:18px;font-size:14px;white-space:nowrap}.mt-phone strong{color:var(--mt-accent)}
.mt-catbar{max-width:1280px;margin:0 auto;padding:8px 16px;display:flex;gap:20px;flex-wrap:wrap;border-top:1px solid #f0f0f0;font-size:14px;font-weight:600}.mt-catbar a:hover{color:var(--mt-primary)}
/* Footer widget */
.mt-footer{background:var(--mt-dark);color:#fff;padding:36px 0 0}.mt-footer-cols{max-width:1280px;margin:0 auto;padding:0 16px 24px;display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.mt-footer h4{margin:0 0 12px;font-size:17px}.mt-footer ul{list-style:none;margin:0;padding:0}.mt-footer li{margin:6px 0}.mt-footer a:hover{color:var(--mt-accent)}
.mt-footer-bottom{border-top:1px solid rgba(255,255,255,.15);text-align:center;padding:14px;font-size:14px}
/* Single product widget */
.mt-single{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:24px 0}@media(max-width:767px){.mt-single{grid-template-columns:1fr}.mt-footer-cols{grid-template-columns:1fr}.mt-header-main{flex-wrap:wrap}}
.mt-single-main img{width:100%;border-radius:10px}.mt-single-thumbs{display:flex;gap:8px;margin-top:8px}.mt-single-thumbs img{width:72px;height:72px;object-fit:cover;border-radius:6px}
.mt-single-price{font-size:24px}.mt-badge-inline{position:static}.mt-single-desc{margin:24px 0;line-height:1.7}.mt-related-head{font-size:22px;margin:28px 0 16px}
/* WooCommerce native shop loop - card style matching MT cards */
.woocommerce ul.products li.product{background:#fff;border:1px solid #ececec;border-radius:10px;overflow:hidden;padding:0 0 16px;text-align:left}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px;padding:0 14px}
.woocommerce ul.products li.product .price{padding:0 14px;color:var(--mt-price);font-weight:700;font-size:16px}
.woocommerce ul.products li.product .price del{color:#999;font-weight:400}
.woocommerce span.onsale,.woocommerce ul.products li.product .onsale{background:var(--mt-accent);border-radius:20px;min-height:0;min-width:0;line-height:1.4;padding:3px 8px;top:10px;left:10px;font-size:13px}
.woocommerce ul.products li.product .button{margin:10px 14px 0;background:var(--mt-primary);color:#fff;border-radius:6px}
