/*
Theme Name: Maruf Toy
Theme URI: https://maruftoy.shop
Author: Maruf Toy
Author URI: https://maruftoy.shop
Description: A playful, bright and fully responsive WooCommerce theme for the kids' toy shop "Maruf Toy". Includes one-click WhatsApp ordering, Customizer-editable store info and colors, and pre-written Bangladeshi eCommerce policies.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maruftoy
Tags: e-commerce, woocommerce, custom-colors, custom-logo, custom-menu, featured-images, responsive-layout, translation-ready
*/

:root{
  --mt-yellow:#FFC800;
  --mt-blue:#2BA8F0;
  --mt-white:#FFFFFF;
  --mt-green:#25D366;
  --mt-ink:#20324a;
  --mt-muted:#5f6f86;
  --mt-sky:#eaf7ff;
  --mt-cream:#fffbea;
  --mt-radius:22px;
  --mt-shadow:0 8px 24px rgba(32,50,74,.10);
  --mt-font-head:'Fredoka','Comic Sans MS',system-ui,sans-serif;
  --mt-font-body:'Nunito',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:var(--mt-font-body);font-size:16px;line-height:1.6;color:var(--mt-ink);background:var(--mt-white)}
img{max-width:100%;height:auto;display:block}
a{color:var(--mt-blue);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--mt-font-head);line-height:1.2;margin:0 0 .5em;color:var(--mt-ink)}
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 18px}
.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}
.skip-link:focus{clip:auto;width:auto;height:auto;background:#fff;padding:10px;z-index:9999;top:5px;left:5px}

/* Buttons */
.btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #place_order{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;cursor:pointer;
  font-family:var(--mt-font-head);font-weight:600;font-size:15px;line-height:1.2;
  padding:12px 20px;border-radius:999px;background:var(--mt-blue);color:#fff;text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;box-shadow:0 4px 0 rgba(0,0,0,.12)}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.woocommerce #place_order:hover{
  transform:translateY(-2px);filter:brightness(1.06);color:#fff;text-decoration:none}
.btn-yellow{background:var(--mt-yellow);color:var(--mt-ink)}
.btn-yellow:hover{color:var(--mt-ink)}
.btn-whatsapp,.btn-whatsapp:hover{background:var(--mt-green);color:#fff}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce #place_order{background:var(--mt-yellow);color:var(--mt-ink)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce #place_order:hover{color:var(--mt-ink)}
.btn-block{width:100%}
.wa-icon{width:18px;height:18px;fill:currentColor;flex:none}

/* Top bar */
.topbar{background:var(--mt-blue);color:#fff;font-size:14px}
.topbar a{color:#fff}
.topbar__inner{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 18px;padding-top:7px;padding-bottom:7px}
.topbar__left{display:flex;flex-wrap:wrap;gap:4px 18px}

/* Header */
.site-header{background:var(--mt-white);border-bottom:5px solid var(--mt-yellow);position:sticky;top:0;z-index:100;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.admin-bar .site-header{top:32px}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:10px;padding-bottom:10px}
.brand{display:flex;align-items:center;gap:10px}
.brand__text{display:flex;align-items:center;gap:10px;color:var(--mt-ink);text-decoration:none!important}
.brand__icon{font-size:34px;background:var(--mt-yellow);width:52px;height:52px;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.brand__name{font-family:var(--mt-font-head);font-size:28px;font-weight:700;color:var(--mt-blue);display:block;line-height:1}
.brand__tag{font-size:12px;color:var(--mt-muted);display:block}
.site-logo-img,.custom-logo{max-height:62px;width:auto}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;flex-wrap:wrap}
.main-nav a{display:block;padding:9px 16px;border-radius:999px;color:var(--mt-ink);font-family:var(--mt-font-head);font-weight:500;text-decoration:none}
.main-nav a:hover,.main-nav .current-menu-item>a{background:var(--mt-yellow)}
.header__tools{display:flex;align-items:center;gap:10px}
.header-search{display:flex;background:var(--mt-sky);border-radius:999px;overflow:hidden}
.header-search input[type=search]{border:0;background:transparent;padding:9px 14px;font:inherit;width:150px;outline:0}
.header-search button{border:0;background:var(--mt-blue);color:#fff;padding:0 14px;cursor:pointer;font-size:16px}
.cart-link{position:relative;display:inline-flex;align-items:center;gap:6px;background:var(--mt-yellow);color:var(--mt-ink);padding:9px 16px;border-radius:999px;font-family:var(--mt-font-head);font-weight:600;text-decoration:none!important}
.cart-count{background:var(--mt-ink);color:#fff;border-radius:999px;min-width:22px;height:22px;display:inline-grid;place-items:center;font-size:12px;padding:0 6px}
.nav-toggle{display:none;background:var(--mt-blue);color:#fff;border:0;border-radius:12px;font-size:22px;padding:6px 12px;cursor:pointer}

/* Hero */
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--mt-sky) 0%,var(--mt-cream) 100%);padding:64px 0 80px}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:40px;background:var(--mt-white);clip-path:ellipse(60% 100% at 50% 100%)}
.hero__inner{position:relative;z-index:2;display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center}
.hero h1{font-size:clamp(32px,5vw,56px);color:var(--mt-ink)}
.hero h1 span{color:var(--mt-blue)}
.hero p{font-size:18px;color:var(--mt-muted);max-width:560px}
.hero__cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.hero__art{position:relative;min-height:240px;display:grid;grid-template-columns:repeat(2,1fr);gap:16px;font-size:64px;text-align:center}
.hero__art span{background:#fff;border-radius:28px;box-shadow:var(--mt-shadow);padding:18px 0;animation:mt-bob 3.4s ease-in-out infinite}
.hero__art span:nth-child(2){animation-delay:.5s;background:var(--mt-yellow)}
.hero__art span:nth-child(3){animation-delay:1s;background:var(--mt-blue)}
.hero__art span:nth-child(4){animation-delay:1.5s}
@keyframes mt-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

/* Feature strip */
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:-20px auto 10px;position:relative;z-index:3}
.feature{background:#fff;border-radius:var(--mt-radius);box-shadow:var(--mt-shadow);padding:16px;display:flex;gap:12px;align-items:center;border-bottom:4px solid var(--mt-yellow)}
.feature:nth-child(even){border-bottom-color:var(--mt-blue)}
.feature__icon{font-size:30px}
.feature strong{display:block;font-family:var(--mt-font-head)}
.feature small{color:var(--mt-muted)}

/* Section heading, category pills */
.section{padding:40px 0}
.section__head{text-align:center;margin-bottom:22px}
.section__head h2{font-size:clamp(26px,4vw,38px)}
.section__head h2::after{content:"";display:block;width:80px;height:6px;border-radius:6px;background:var(--mt-yellow);margin:10px auto 0}
.cat-pills{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:28px}
.cat-pills a{padding:8px 18px;border-radius:999px;background:var(--mt-sky);color:var(--mt-ink);font-family:var(--mt-font-head);font-weight:500;text-decoration:none}
.cat-pills a:hover,.cat-pills a.active{background:var(--mt-blue);color:#fff}

/* Product grid & cards */
.product-grid,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:22px;list-style:none;margin:0;padding:0}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.product-card,.woocommerce ul.products li.product{position:relative;background:#fff;border-radius:var(--mt-radius);box-shadow:var(--mt-shadow);border:3px solid transparent;padding:14px;display:flex;flex-direction:column;width:auto!important;margin:0!important;float:none!important;transition:transform .2s ease,border-color .2s ease}
.product-card:hover,.woocommerce ul.products li.product:hover{transform:translateY(-6px);border-color:var(--mt-yellow)}
.product-card__img{display:block;border-radius:16px;overflow:hidden;background:var(--mt-sky);aspect-ratio:1/1;margin-bottom:12px}
.product-card__img img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:22px;left:22px;z-index:2;background:var(--mt-yellow);color:var(--mt-ink);font-family:var(--mt-font-head);font-weight:700;font-size:13px;padding:4px 12px;border-radius:999px;transform:rotate(-6deg)}
.badge--out{background:#ff6b6b;color:#fff}
.product-card__title,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:18px;margin:0 0 6px;padding:0}
.product-card__title a{color:var(--mt-ink);text-decoration:none}
.product-card__price,.woocommerce ul.products li.product .price{font-family:var(--mt-font-head);font-size:20px;font-weight:700;color:var(--mt-blue)!important;margin-bottom:6px;display:block}
.product-card__price del,.price del{color:var(--mt-muted);font-size:15px;font-weight:400}
.product-card__price ins,.price ins{text-decoration:none}
.product-card__desc{color:var(--mt-muted);font-size:14px;margin:0 0 14px;flex:1}
.product-card__actions{display:grid;gap:8px;margin-top:auto}
.product-card__actions .button,.product-card__actions .btn{width:100%}
.woocommerce ul.products li.product .button{margin-top:8px;width:100%}
.woocommerce ul.products li.product .btn-whatsapp{margin-top:8px}
.added_to_cart{display:block;text-align:center;margin-top:6px;font-weight:700}

/* Pagination */
.pagination,.woocommerce nav.woocommerce-pagination{text-align:center;margin-top:30px}
.pagination .page-numbers,.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{display:inline-block;min-width:40px;padding:8px 12px;margin:2px;border-radius:12px;background:var(--mt-sky);color:var(--mt-ink);text-decoration:none;border:0}
.pagination .page-numbers.current,.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--mt-blue);color:#fff}
.woocommerce nav.woocommerce-pagination ul{border:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;float:none;display:inline-block}

/* Generic content / WooCommerce pages */
.page-wrap,.woo-wrap{padding-top:36px;padding-bottom:50px}
.entry__title{font-size:clamp(28px,4vw,40px)}
.entry__content{max-width:100%}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:14px;border-top-color:var(--mt-blue)!important;background:var(--mt-sky)}
.woocommerce div.product .product_title{font-size:clamp(26px,4vw,38px)}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--mt-blue);font-family:var(--mt-font-head);font-size:28px}
.woocommerce div.product div.images img{border-radius:var(--mt-radius)}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
.woocommerce div.product form.cart .btn-whatsapp{margin-left:0}
.woocommerce .quantity .qty,input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=search],textarea,select{border:2px solid #dbe7f3;border-radius:12px;padding:10px 12px;font:inherit;max-width:100%}
input:focus,textarea:focus,select:focus{outline:0;border-color:var(--mt-blue)}
.woocommerce table.shop_table{border-radius:16px;overflow:hidden;border-color:#e3eef8}
.mt-thankyou-wa{background:var(--mt-cream);border:3px dashed var(--mt-yellow);border-radius:var(--mt-radius);padding:20px;margin:20px 0;text-align:center}
.mt-notice{background:var(--mt-cream);border:3px dashed var(--mt-yellow);border-radius:var(--mt-radius);padding:24px;text-align:center}

/* Footer */
.site-footer{background:var(--mt-ink);color:#d6e2f0;margin-top:40px;position:relative}
.site-footer::before{content:"";display:block;height:10px;background:repeating-linear-gradient(90deg,var(--mt-yellow) 0 40px,var(--mt-blue) 40px 80px,var(--mt-green) 80px 120px)}
.footer__grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr;gap:30px;padding:46px 0 30px}
.site-footer h3{color:var(--mt-yellow);font-size:20px}
.site-footer a{color:#d6e2f0}
.site-footer a:hover{color:var(--mt-yellow)}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:8px}
.footer__contact li{display:flex;gap:10px}
.footer__brand{font-family:var(--mt-font-head);font-size:26px;color:#fff;font-weight:700;margin-bottom:8px}
.footer__social{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.footer__social a{background:rgba(255,255,255,.1);border-radius:999px;padding:6px 14px;font-size:14px}
.footer__social a.wa{background:var(--mt-green);color:#fff}
.policy-link{background:none;border:0;padding:0;color:#d6e2f0;font:inherit;cursor:pointer;text-align:left}
.policy-link:hover{color:var(--mt-yellow);text-decoration:underline}
.footer__bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;text-align:center;font-size:14px}

/* Floating WhatsApp */
.wa-float{position:fixed;right:18px;bottom:18px;z-index:200;background:var(--mt-green);color:#fff;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.25);animation:mt-pulse 2.2s infinite}
.wa-float:hover{color:#fff;transform:scale(1.07)}
.wa-float svg{width:30px;height:30px;fill:#fff}
@keyframes mt-pulse{0%{box-shadow:0 0 0 0 rgba(37,211,102,.55)}70%{box-shadow:0 0 0 16px rgba(37,211,102,0)}100%{box-shadow:0 0 0 0 rgba(37,211,102,0)}}

/* Policy modals */
.mt-modal{position:fixed;inset:0;z-index:1000;background:rgba(32,50,74,.7);display:none;align-items:center;justify-content:center;padding:18px}
.mt-modal.open{display:flex}
.mt-modal__box{background:#fff;color:var(--mt-ink);border-radius:var(--mt-radius);max-width:760px;width:100%;max-height:88vh;overflow:auto;padding:28px 28px 24px;position:relative;border-top:8px solid var(--mt-yellow)}
.mt-modal__box h2{color:var(--mt-blue)}
.mt-modal__box h4{margin:1.2em 0 .3em}
.mt-modal__close{position:absolute;top:10px;right:14px;background:var(--mt-sky);border:0;border-radius:50%;width:36px;height:36px;font-size:22px;cursor:pointer;line-height:1}
.mt-modal__content ul{padding-left:20px}
body.modal-open{overflow:hidden}

/* Responsive */
@media (max-width:980px){
  .hero__inner{grid-template-columns:1fr}
  .hero__art{display:none}
  .features{grid-template-columns:repeat(2,1fr)}
  .footer__grid{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .nav-toggle{display:block}
  .header__inner{flex-wrap:wrap}
  .main-nav{display:none;order:5;width:100%}
  .main-nav.open{display:block}
  .main-nav ul{flex-direction:column}
  .header-search{display:none}
  .header-search.open{display:flex;order:6;width:100%}
}
@media (max-width:600px){
  .topbar__right{display:none}
  .features{grid-template-columns:1fr;margin-top:-10px}
  .footer__grid{grid-template-columns:1fr}
  .product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,1fr);gap:12px}
  .product-card,.woocommerce ul.products li.product{padding:10px}
  .product-card__title{font-size:15px}
  .hero{padding:40px 0 60px}
  .brand__name{font-size:22px}
  .woocommerce div.product form.cart{flex-direction:column;align-items:stretch}
}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:420px){.product-grid,.woocommerce ul.products{grid-template-columns:1fr}}
