/*
Theme Name: Kido Toy Shop
Theme URI: https://mhtoy.com.bd
Author: Kido 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:#ff3d68;
  --pink-dark:#e30035;
  --red:#c40f2e;
  --black:#161616;
  --purple:#c40f2e;   /* repurposed to red so existing rules that used --purple render in the new palette */
  --green:#161616;    /* repurposed to black so existing rules that used --green render in the new palette */
  --blue:#e30035;      /* repurposed to red so existing rules that used --blue render in the new palette */
  --yellow:#ff8fa8;    /* repurposed to a light pink accent so existing rules that used --yellow still read well */
  --bg:#fffafb;
  --text:#1a1a1a;
  --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:var(--pink);}
.mh-logo span:nth-child(2){color:var(--black);}

.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:#ffe3ec;
  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,#ffd1db,#ffb8c6);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:var(--pink);}
.mh-hero-text h1 .c3{color:var(--black);}
.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-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-desc{font-size:12.5px;color:var(--muted);margin:0 0 8px;line-height:1.5;}
.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;}

/* 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;}

/* CTA */
.mh-cta{background:linear-gradient(120deg,#ff3d68,#c40f2e);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:#141416;color:#c9c9c9;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 #2a2a2a;padding-top:16px;text-align:center;font-size:13px;color:#9a9a9a;}

/* ---------------- 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;}
}

/* ---------------- Business pages (About, Contact, Policies) ---------------- */
/* Added for the new business pages; reuses existing colors/fonts/spacing above. */
.mh-page-narrow{max-width:820px;}
.mh-page-content{font-size:15px;line-height:1.75;color:var(--text);}
.mh-page-content h3{font-size:19px;margin:28px 0 10px;color:var(--text);}
.mh-page-content p{margin:0 0 14px;}
.mh-page-content ul{margin:0 0 14px;padding-left:20px;}
.mh-page-content li{margin-bottom:6px;}
.mh-info-list{list-style:none;padding:0;background:#fbf7f2;border-radius:14px;padding:16px 20px;}
.mh-info-list li{margin-bottom:8px;}
.mh-info-list a{color:var(--pink-dark);font-weight:600;}

.mh-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:34px;}
.mh-contact-card{background:#fff;border:1px solid #f0f0f0;border-radius:16px;padding:20px;text-align:center;}
.mh-contact-card h4{margin:0 0 8px;font-size:15px;}
.mh-contact-card a{color:var(--pink-dark);font-weight:600;word-break:break-word;}

.mh-contact-form{max-width:560px;background:#fff;border:1px solid #f0f0f0;border-radius:16px;padding:26px;}
.mh-form-row{margin-bottom:16px;display:flex;flex-direction:column;gap:6px;}
.mh-form-row label{font-size:13.5px;font-weight:600;color:var(--text);}
.mh-form-row input,
.mh-form-row textarea{
  border:1px solid #e5e5e5;border-radius:10px;padding:10px 12px;
  font-family:inherit;font-size:14px;color:var(--text);width:100%;
}
.mh-form-row input:focus,
.mh-form-row textarea:focus{outline:none;border-color:var(--pink);}
.mh-form-hidden{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.mh-form-notice{padding:12px 16px;border-radius:10px;margin-bottom:20px;font-size:14px;}
.mh-form-success{background:#e7f8ee;color:#1f7a44;}
.mh-form-error{background:#fdeceb;color:#a13328;}

@media(max-width:480px){
  .mh-contact-form{padding:20px;}
}
