/*
Theme Name: Mh Toy Shop
Theme URI: https://mhtoy.com.bd
Author: Mh Toy
Author URI: https://mhtoy.com.bd
Description: A colorful, mobile-friendly one-page toy shop theme with categories, product sections, and a WhatsApp-checkout Add to Cart flow — Buy Kids Toy Online in Bangladesh.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mhtoy
*/

:root{
  --pink:#ff5f7e;
  --pink-dark:#ff3b62;
  --purple:#a78bfa;
  --green:#7bd389;
  --blue:#5cc8ff;
  --yellow:#ffcf5c;
  --bg:#fbfdf9;
  --text:#2b2b33;
  --muted:#6b6f76;
}

*{box-sizing:border-box;}
body{
  margin:0;
  font-family:'Poppins','Segoe UI',Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
svg{width:100%;height:100%;display:block;}
.container{max-width:1200px;margin:0 auto;padding:0 20px;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

/* Buttons */
.mh-btn{display:inline-block;padding:13px 24px;border-radius:30px;font-weight:700;font-size:14px;border:none;cursor:pointer;text-align:center;}
.mh-btn-primary{background:var(--pink);color:#fff;}
.mh-btn-primary:hover{background:var(--pink-dark);}
.mh-btn-secondary{background:#fff;color:var(--text);border:1px solid #e5e5e5;}
.mh-btn-light{background:#fff;color:var(--pink-dark);}
.mh-btn-sm{padding:9px 18px;font-size:13px;}
.mh-add-to-cart{width:100%;margin-top:10px;font-size:13px;padding:10px 14px;}

/* Notice bar */
.mh-notice{
  background:#fff4e5;color:#8a5a00;text-align:center;
  padding:9px 16px;font-size:13px;border-bottom:1px solid #ffe1ad;
}

/* Header */
.mh-header{
  position:sticky;top:0;z-index:50;
  background:#fff;border-bottom:1px solid #f0f0f0;
  padding:14px 0;
}
.mh-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative;}
.mh-logo{font-size:24px;font-weight:800;white-space:nowrap;}
.mh-logo span:nth-child(1){color:#ff5f7e;}
.mh-logo span:nth-child(2){color:#5cc8ff;}
.mh-logo span:nth-child(3){color:#ffcf5c;}

.mh-nav{display:flex;align-items:center;gap:26px;}
.mh-nav ul{list-style:none;display:flex;gap:22px;margin:0;padding:0;}
.mh-nav a{font-weight:600;font-size:14.5px;color:var(--text);}
.mh-nav-contact{font-size:13px;color:var(--muted);white-space:nowrap;}
.mh-nav-contact strong{color:var(--text);}

.mh-header-actions{display:flex;align-items:center;gap:10px;}
.mh-call-btn{
  width:38px;height:38px;border-radius:50%;background:#eaf7ff;
  display:flex;align-items:center;justify-content:center;font-size:16px;
}
.mh-cart-btn{
  position:relative;background:var(--pink);color:#fff;
  padding:9px 14px;border-radius:30px;font-weight:700;font-size:14px;
  display:flex;align-items:center;gap:6px;
}
.mh-cart-count{
  background:#fff;color:var(--pink-dark);border-radius:50%;
  min-width:18px;height:18px;font-size:11px;display:inline-flex;
  align-items:center;justify-content:center;padding:0 4px;
}

.mh-burger{display:none;flex-direction:column;gap:5px;width:26px;padding:6px;}
.mh-burger span{display:block;height:2px;background:var(--text);border-radius:2px;transition:.2s;}
.mh-burger.active span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.mh-burger.active span:nth-child(2){opacity:0;}
.mh-burger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Cart drawer */
.mh-cart-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.4);
  opacity:0;pointer-events:none;transition:.2s;z-index:90;
}
.mh-cart-overlay.open{opacity:1;pointer-events:auto;}
.mh-cart-drawer{
  position:fixed;top:0;right:-380px;width:340px;max-width:90vw;height:100%;
  background:#fff;z-index:91;transition:.25s ease;
  display:flex;flex-direction:column;box-shadow:-6px 0 24px rgba(0,0,0,.08);
}
.mh-cart-drawer.open{right:0;}
.mh-cart-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #f0f0f0;}
.mh-cart-head h3{margin:0;font-size:18px;}
.mh-cart-head button{font-size:18px;color:var(--muted);}
.mh-cart-items{flex:1;overflow-y:auto;padding:12px 20px;}
.mh-cart-empty{color:var(--muted);text-align:center;margin-top:40px;font-size:14px;}
.mh-cart-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f5f5f5;gap:10px;}
.mh-cart-item-info{display:flex;flex-direction:column;font-size:13.5px;}
.mh-cart-item-info span{color:var(--muted);font-size:12.5px;}
.mh-cart-item-qty{display:flex;align-items:center;gap:8px;font-size:13px;}
.mh-qty-btn{width:24px;height:24px;border-radius:50%;background:#f2f2f2;font-weight:700;}
.mh-remove-btn{color:#e05353;font-size:14px;margin-left:4px;}
.mh-cart-footer{padding:16px 20px 20px;border-top:1px solid #f0f0f0;}
.mh-cart-total{display:flex;justify-content:space-between;font-size:15px;margin-bottom:12px;}
.mh-cart-checkout{width:100%;background:#25D366;}
.mh-cart-checkout:hover{background:#1ebe5b;}
.mh-cart-note{font-size:12px;color:var(--muted);text-align:center;margin:10px 0 0;}

/* Floating WhatsApp button */
.mh-whatsapp-fab{
  position:fixed;bottom:22px;right:22px;width:54px;height:54px;border-radius:50%;
  background:#25D366;color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:26px;box-shadow:0 6px 18px rgba(0,0,0,.2);z-index:60;
}

/* Hero */
.mh-hero{background:linear-gradient(120deg,#ffe3ec,#eaf7ff,#f1ecff);padding:56px 0;overflow:hidden;}
.mh-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap;}
.mh-hero-text{max-width:540px;}
.mh-hero-text h1{font-size:42px;line-height:1.2;margin:0 0 18px;}
.mh-hero-text h1 .c1{color:#ff5f7e;}
.mh-hero-text h1 .c3{color:#7bd389;}
.mh-hero-text p{color:var(--muted);font-size:16.5px;margin-bottom:26px;}
.mh-hero-text .mh-btn{margin-right:12px;margin-bottom:10px;}

.mh-hero-icons{position:relative;flex:1;min-width:260px;height:300px;}
.mh-hero-icon{position:absolute;filter:drop-shadow(0 10px 20px rgba(0,0,0,.08));}
.mh-hero-icon.big{width:230px;height:230px;right:40px;top:20px;}
.mh-hero-icon.small{width:100px;height:100px;background:#fff;border-radius:50%;padding:14px;}
.mh-hero-icon.small.a{left:10px;top:10px;}
.mh-hero-icon.small.b{left:40px;bottom:0;}

/* Section title */
.mh-section{padding:48px 0;}
.mh-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;flex-wrap:wrap;gap:14px;}
.mh-section-head h2{font-size:28px;margin:0;}
.mh-section-head h2 span{color:var(--pink);}

/* Categories */
.mh-cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:16px;}
.mh-cat-card{
  background:#fff;border:1px solid #f0f0f0;border-radius:16px;
  padding:18px 10px;text-align:center;display:flex;flex-direction:column;
  align-items:center;gap:10px;transition:transform .15s;
}
.mh-cat-card:hover{transform:translateY(-3px);border-color:#ffd9e1;}
.mh-cat-icon{width:56px;height:56px;}
.mh-cat-card span{font-size:13px;font-weight:600;}

/* Product grid */
.mh-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;}
.mh-card{
  background:#fff;border-radius:16px;overflow:hidden;
  border:1px solid #f0f0f0;position:relative;transition:transform .2s ease;
  display:flex;flex-direction:column;
}
.mh-card:hover{transform:translateY(-4px);}
.mh-badge{
  position:absolute;top:12px;left:12px;background:var(--pink-dark);color:#fff;
  font-size:11px;font-weight:700;padding:4px 10px;border-radius:20px;z-index:2;
}
.mh-thumb{aspect-ratio:1/1;background:#fbf7f2;padding:22px;}
.mh-thumb img{width:100%;height:100%;object-fit:cover;border-radius:10px;}
.mh-card-info{padding:14px 16px 18px;}
.mh-card-info h3{font-size:14.5px;margin:0 0 8px;min-height:38px;}
.mh-price-row{display:flex;align-items:baseline;gap:8px;margin-bottom:4px;}
.mh-price{color:var(--pink-dark);font-weight:700;font-size:15px;}
.mh-old-price{color:#b6b8bf;font-size:12.5px;text-decoration:line-through;}

/* Features */
.mh-features-section{background:#fff;}
.mh-features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;}
.mh-feature-card{text-align:center;padding:22px 14px;border-radius:16px;background:#fbfdf9;border:1px solid #f0f0f0;}
.mh-feature-emoji{font-size:34px;margin-bottom:10px;}
.mh-feature-card h4{margin:0 0 6px;font-size:15.5px;}
.mh-feature-card p{margin:0;font-size:13px;color:var(--muted);line-height:1.5;}

/* Testimonials */
.mh-testi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;}
.mh-testi-card{background:#fff;border-radius:16px;padding:22px;border:1px solid #f0f0f0;}
.mh-testi-stars{color:var(--yellow);letter-spacing:2px;margin-bottom:10px;}
.mh-testi-card p{font-size:14px;color:var(--text);line-height:1.6;margin:0 0 12px;}
.mh-testi-card strong{font-size:13px;color:var(--muted);}

/* CTA */
.mh-cta{background:linear-gradient(120deg,#ff5f7e,#ff8bb0);padding:44px 0;color:#fff;}
.mh-cta-inner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;}
.mh-cta-inner h2{margin:0 0 6px;font-size:24px;}
.mh-cta-inner p{margin:0;opacity:.92;font-size:14.5px;}

/* Footer */
.mh-footer{background:#1f2130;color:#c9cbd6;padding:46px 0 20px;}
.mh-footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:30px;margin-bottom:26px;}
.mh-footer h4{color:#fff;margin-bottom:14px;font-size:16px;}
.mh-footer p{margin:6px 0;font-size:14px;line-height:1.6;}
.mh-footer-bottom{border-top:1px solid #33344a;padding-top:16px;text-align:center;font-size:13px;color:#8f92a8;}

/* ---------------- Mobile ---------------- */
@media(max-width:900px){
  .mh-hero-icons{display:none;}
}

@media(max-width:768px){
  .mh-burger{display:flex;}
  .mh-nav{
    position:fixed;top:0;right:-280px;width:260px;height:100%;
    background:#fff;flex-direction:column;align-items:flex-start;
    padding:80px 24px 24px;gap:22px;transition:.25s ease;z-index:95;
    box-shadow:-4px 0 16px rgba(0,0,0,.08);
  }
  .mh-nav.open{right:0;}
  .mh-nav ul{flex-direction:column;gap:18px;}
  .mh-nav-contact{order:2;}

  .mh-hero-text h1{font-size:30px;}
  .mh-hero-text .mh-btn{width:100%;margin-right:0;}
  .mh-section-head h2{font-size:22px;}
  .mh-cta-inner{text-align:center;justify-content:center;}
  .mh-cta-inner .mh-btn{width:100%;}
}

@media(max-width:480px){
  .mh-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .mh-cat-grid{grid-template-columns:repeat(3,1fr);}
  .mh-card-info h3{font-size:13px;min-height:34px;}
  .mh-whatsapp-fab{width:48px;height:48px;font-size:22px;bottom:16px;right:16px;}
}
