/*
Theme Name: Maisha Toy
Theme URI: https://maishatoy.shop
Author: Maisha Toy
Author URI: https://maishatoy.shop
Description: A playful, colourful, fully responsive WooCommerce theme for the Maisha Toy kids' toy shop in Bangladesh. Includes a WooCommerce product landing page, one-click WhatsApp ordering, BDT (৳) currency support, editable store info and colours in the Customizer, and ready-made shipping, return, privacy and terms 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: maishatoy
Tags: e-commerce, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, responsive-layout
*/

/* ---------- Design tokens (overridden live by the Customizer) ---------- */
:root {
  --mt-yellow: #FFD21F;
  --mt-blue: #3DB5F0;
  --mt-white: #FFFFFF;
  --mt-green: #25D366;
  --mt-ink: #1F2A44;
  --mt-muted: #5B6785;
  --mt-soft: #F4FAFF;
  --mt-pink: #FF7AA8;
  --mt-radius: 22px;
  --mt-shadow: 0 10px 28px rgba(31, 42, 68, .10);
  --mt-font: "Fredoka", "Nunito", "Hind Siliguri", "Noto Sans Bengali", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--mt-font);
  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 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; background: #fff; padding: 10px 16px; z-index: 100000; top: 8px; left: 8px; }
.mt-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.mt-btn, .button, button.button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--mt-font); font-weight: 600; font-size: 15px; line-height: 1.2;
  background: var(--mt-yellow); color: var(--mt-ink); text-decoration: none;
  box-shadow: 0 4px 0 rgba(31, 42, 68, .12);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.mt-btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, input[type="submit"]:hover {
  transform: translateY(-2px); filter: brightness(.97); text-decoration: none; color: var(--mt-ink);
}
.mt-btn:active { transform: translateY(1px); box-shadow: none; }
.mt-btn--cart { background: var(--mt-blue); color: #fff; }
.mt-btn--cart:hover { color: #fff; }
.mt-btn--wa, .woocommerce a.button.mt-btn--wa { background: var(--mt-green); color: #fff; }
.mt-btn--wa:hover { color: #fff; }
.mt-btn--ghost { background: #fff; color: var(--mt-ink); border: 2px solid var(--mt-ink); box-shadow: none; }
.mt-btn--lg { padding: 14px 28px; font-size: 17px; }
.mt-btn--block { width: 100%; }
.mt-btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #respond input#submit.alt { background: var(--mt-blue); color: #fff; }

/* ---------- Top bar ---------- */
.mt-topbar { background: var(--mt-blue); color: #fff; font-size: 14px; }
.mt-topbar .mt-container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 7px; padding-bottom: 7px; }
.mt-topbar a { color: #fff; font-weight: 600; }
.mt-topbar__group { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.mt-topbar__note { opacity: .95; }

/* ---------- Header ---------- */
.mt-header { position: sticky; top: 0; z-index: 900; background: var(--mt-white); border-bottom: 4px solid var(--mt-yellow); box-shadow: 0 4px 16px rgba(31, 42, 68, .06); }
.admin-bar .mt-header { top: 32px; }
.mt-header__inner { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.mt-brand { display: flex; align-items: center; gap: 10px; color: var(--mt-ink); font-size: 26px; font-weight: 700; }
.mt-brand:hover { text-decoration: none; }
.mt-brand__emoji { font-size: 30px; }
.mt-brand__name { background: linear-gradient(90deg, var(--mt-blue), var(--mt-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.custom-logo-link img, .mt-header .custom-logo { max-height: 56px; width: auto; }
.mt-nav { margin-left: auto; }
.mt-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.mt-nav a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--mt-ink); font-weight: 600; }
.mt-nav a:hover, .mt-nav .current-menu-item > a, .mt-nav .current_page_item > a { background: var(--mt-yellow); text-decoration: none; }
.mt-header__actions { display: flex; align-items: center; gap: 10px; }
.mt-search { display: flex; background: var(--mt-soft); border-radius: 999px; padding: 3px 3px 3px 14px; border: 2px solid transparent; }
.mt-search:focus-within { border-color: var(--mt-blue); }
.mt-search input[type="search"] { border: 0; background: transparent; outline: none; font-family: var(--mt-font); font-size: 14px; width: 150px; color: var(--mt-ink); }
.mt-search button { border: 0; background: var(--mt-blue); color: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-family: var(--mt-font); }
.mt-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--mt-yellow); color: var(--mt-ink); border-radius: 999px; padding: 9px 16px; font-weight: 700; }
.mt-cart:hover { text-decoration: none; filter: brightness(.97); }
.mt-cart-count { background: var(--mt-ink); color: #fff; min-width: 22px; height: 22px; border-radius: 999px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.mt-menu-toggle { display: none; background: var(--mt-blue); color: #fff; border: 0; border-radius: 12px; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }

/* ---------- Hero ---------- */
.mt-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--mt-soft) 0%, #fff7cf 100%); padding: 64px 0 76px; }
.mt-hero::before, .mt-hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.mt-hero::before { width: 360px; height: 360px; background: var(--mt-yellow); opacity: .35; right: -90px; top: -110px; }
.mt-hero::after { width: 240px; height: 240px; background: var(--mt-blue); opacity: .22; left: -70px; bottom: -90px; }
.mt-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.mt-hero__badge { display: inline-block; background: #fff; color: var(--mt-blue); font-weight: 700; padding: 6px 16px; border-radius: 999px; box-shadow: var(--mt-shadow); margin-bottom: 16px; }
.mt-hero h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 14px; }
.mt-hero h1 span { color: var(--mt-blue); }
.mt-hero p { font-size: 18px; color: var(--mt-muted); max-width: 560px; }
.mt-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.mt-hero__art { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.mt-hero__tile { background: #fff; border-radius: var(--mt-radius); box-shadow: var(--mt-shadow); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: clamp(48px, 8vw, 84px); animation: mt-float 4s ease-in-out infinite; }
.mt-hero__tile:nth-child(2) { animation-delay: .6s; background: var(--mt-yellow); transform: translateY(18px); }
.mt-hero__tile:nth-child(3) { animation-delay: 1.2s; background: var(--mt-blue); }
.mt-hero__tile:nth-child(4) { animation-delay: 1.8s; transform: translateY(18px); }
@keyframes mt-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ---------- Trust strip ---------- */
.mt-trust { margin-top: -34px; position: relative; z-index: 2; }
.mt-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mt-trust__item { background: #fff; border-radius: 18px; box-shadow: var(--mt-shadow); padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.mt-trust__icon { font-size: 28px; }
.mt-trust__item strong { display: block; font-size: 15px; }
.mt-trust__item small { color: var(--mt-muted); font-size: 13px; }

/* ---------- Sections ---------- */
.mt-section { padding: 64px 0; }
.mt-section--soft { background: var(--mt-soft); }
.mt-section__head { text-align: center; margin-bottom: 30px; }
.mt-section__head h2 { font-size: clamp(26px, 4vw, 38px); }
.mt-section__head h2::after { content: ""; display: block; width: 70px; height: 6px; border-radius: 6px; background: var(--mt-yellow); margin: 10px auto 0; }
.mt-section__head p { color: var(--mt-muted); }
.mt-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.mt-chip { background: #fff; border: 2px solid var(--mt-blue); color: var(--mt-blue); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.mt-chip:hover { background: var(--mt-blue); color: #fff; text-decoration: none; }

/* ---------- Product grid & card ---------- */
.mt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.mt-card { background: #fff; border-radius: var(--mt-radius); box-shadow: var(--mt-shadow); overflow: hidden; display: flex; flex-direction: column; border: 3px solid transparent; transition: transform .2s ease, border-color .2s ease; }
.mt-card:hover { transform: translateY(-6px); border-color: var(--mt-yellow); }
.mt-card__img { position: relative; display: block; background: var(--mt-soft); aspect-ratio: 1 / 1; overflow: hidden; }
.mt-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.mt-card:hover .mt-card__img img { transform: scale(1.06); }
.mt-badge { position: absolute; top: 12px; left: 12px; background: var(--mt-pink); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; z-index: 2; }
.mt-badge--out { background: var(--mt-ink); }
.mt-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.mt-card__title { font-size: 18px; margin-bottom: 6px; }
.mt-card__title a { color: var(--mt-ink); }
.mt-card__price { font-size: 20px; font-weight: 700; color: var(--mt-blue); margin-bottom: 8px; }
.mt-card__price del { color: var(--mt-muted); font-size: 15px; font-weight: 400; margin-right: 6px; }
.mt-card__price ins { text-decoration: none; }
.mt-card__desc { font-size: 14px; color: var(--mt-muted); margin-bottom: 14px; flex: 1; }
.mt-card__actions { display: grid; gap: 9px; }
.mt-card__actions .added_to_cart { text-align: center; font-size: 14px; font-weight: 600; }
.mt-empty { text-align: center; background: #fff; border-radius: var(--mt-radius); padding: 40px 20px; box-shadow: var(--mt-shadow); }

/* ---------- Pagination ---------- */
.mt-pagination { margin-top: 34px; }
.mt-pagination ul, .woocommerce nav.woocommerce-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0; border: 0; }
.mt-pagination li, .woocommerce nav.woocommerce-pagination ul li { border: 0; }
.mt-pagination a, .mt-pagination span, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 999px; background: #fff; color: var(--mt-ink); font-weight: 700; box-shadow: var(--mt-shadow); padding: 0 12px; }
.mt-pagination .current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--mt-yellow); }
.mt-pagination a:hover { background: var(--mt-blue); color: #fff; text-decoration: none; }

/* ---------- Contact cards ---------- */
.mt-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mt-contact__card { background: #fff; border-radius: var(--mt-radius); padding: 26px 22px; text-align: center; box-shadow: var(--mt-shadow); }
.mt-contact__card .ic { font-size: 38px; display: block; margin-bottom: 8px; }
.mt-contact__card h3 { font-size: 19px; }
.mt-contact__card p { color: var(--mt-muted); margin: 0; word-break: break-word; }

/* ---------- Generic pages / WooCommerce pages ---------- */
.mt-page { padding: 44px 20px 70px; }
.mt-entry { background: #fff; border-radius: var(--mt-radius); padding: 28px; box-shadow: var(--mt-shadow); margin-bottom: 24px; }
.mt-entry__title { font-size: clamp(26px, 4vw, 36px); }
.mt-entry__title a { color: var(--mt-ink); }
.woocommerce-breadcrumb { font-size: 14px; color: var(--mt-muted); margin-bottom: 18px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0 0 30px; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border-radius: var(--mt-radius); padding: 14px; box-shadow: var(--mt-shadow); display: flex; flex-direction: column; gap: 6px; }
.woocommerce ul.products li.product img { border-radius: 16px; margin-bottom: 8px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 17px; padding: 0; }
.woocommerce ul.products li.product .price { color: var(--mt-blue); font-weight: 700; font-size: 18px; }
.woocommerce ul.products li.product .button { margin-top: 6px; }
.woocommerce span.onsale { background: var(--mt-pink); min-height: 0; min-width: 0; line-height: 1; padding: 8px 14px; border-radius: 999px; top: 12px; left: 12px; right: auto; margin: 0; }
.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--mt-blue); font-size: 28px; font-weight: 700; }
.woocommerce div.product .product_title { font-size: clamp(26px, 4vw, 36px); }
.woocommerce div.product form.cart .button { background: var(--mt-blue); color: #fff; }
.mt-single-wa { margin-top: 14px; }
.woocommerce table.shop_table { border-radius: 16px; border-collapse: separate; overflow: hidden; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--mt-blue) !important; border-radius: 12px; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mt-blue) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 2px solid #dbe7f3; border-radius: 12px; padding: 10px 12px; font-family: var(--mt-font); }
.mt-cart-wa { margin-top: 12px; width: 100%; }

/* ---------- Footer ---------- */
.mt-footer { background: var(--mt-ink); color: #dfe6f5; margin-top: 0; border-top: 6px solid var(--mt-yellow); }
.mt-footer__grid { display: grid; grid-template-columns: 1.3fr 1.1fr 1fr 1fr; gap: 34px; padding: 56px 0 36px; }
.mt-footer h3, .mt-footer h4 { color: #fff; font-size: 18px; }
.mt-footer a { color: #dfe6f5; }
.mt-footer a:hover { color: var(--mt-yellow); }
.mt-footer p { color: #c4cde3; margin-bottom: .6em; }
.mt-footer ul { list-style: none; padding: 0; margin: 0; }
.mt-footer li { margin-bottom: 8px; }
.mt-footer__brand { font-size: 26px; font-weight: 700; color: var(--mt-yellow); margin-bottom: 10px; display: block; }
.mt-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #dfe6f5; cursor: pointer; text-align: left; }
.mt-linkbtn:hover { color: var(--mt-yellow); text-decoration: underline; }
.mt-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.mt-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.mt-social a:hover { background: var(--mt-yellow); color: var(--mt-ink); text-decoration: none; }
.mt-social a.wa { background: var(--mt-green); color: #fff; }
.mt-footer__policies { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-footer__policy { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px 16px; font-size: 14px; }
.mt-footer__policy strong { color: var(--mt-yellow); display: block; margin-bottom: 4px; }
.mt-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; text-align: center; font-size: 14px; color: #aab5d1; }

/* ---------- Policy modals ---------- */
.mt-modal[hidden] { display: none; }
.mt-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mt-modal__backdrop { position: absolute; inset: 0; background: rgba(31, 42, 68, .65); }
.mt-modal__box { position: relative; background: #fff; color: var(--mt-ink); width: 100%; max-width: 780px; max-height: 88vh; overflow-y: auto; border-radius: 26px; padding: 30px 30px 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); border-top: 8px solid var(--mt-yellow); }
.mt-modal__box h2 { font-size: 28px; padding-right: 40px; }
.mt-modal__box h3 { font-size: 18px; margin-top: 1.2em; color: var(--mt-blue); }
.mt-modal__box p, .mt-modal__box li { color: #3b4768; }
.mt-modal__close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mt-yellow); font-size: 24px; line-height: 1; cursor: pointer; color: var(--mt-ink); }
body.mt-modal-open { overflow: hidden; }
.mt-table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; }
.mt-table th, .mt-table td { text-align: left; padding: 10px 12px; border: 1px solid #dbe7f3; }
.mt-table th { background: var(--mt-soft); }

/* ---------- Floating WhatsApp ---------- */
.mt-float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 60px; height: 60px; border-radius: 50%; background: var(--mt-green); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); animation: mt-pulse 2.2s infinite; }
.mt-float-wa:hover { text-decoration: none; transform: scale(1.06); color: #fff; }
.mt-float-wa svg { width: 32px; height: 32px; fill: currentColor; }
@keyframes mt-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .mt-grid, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
  .mt-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .mt-hero__inner { grid-template-columns: 1fr; }
  .mt-hero__art { max-width: 420px; }
  .mt-trust__grid { grid-template-columns: repeat(2, 1fr); }
  .mt-contact { grid-template-columns: 1fr; }
  .mt-footer__policies { grid-template-columns: 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .mt-menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; order: 3; }
  .mt-header__inner { flex-wrap: wrap; }
  .mt-header__actions { order: 2; margin-left: auto; }
  .mt-menu-toggle { margin-left: 0; }
  .mt-nav { order: 4; width: 100%; margin-left: 0; display: none; }
  .mt-nav.is-open { display: block; }
  .mt-nav ul { flex-direction: column; padding: 6px 0 10px; }
  .mt-search { display: none; }
}
@media (max-width: 782px) { .admin-bar .mt-header { top: 46px; } }
@media (max-width: 640px) {
  .mt-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mt-card__body { padding: 12px 12px 14px; }
  .mt-card__title { font-size: 15px; }
  .mt-card__price { font-size: 17px; }
  .mt-card__desc { display: none; }
  .mt-btn { padding: 10px 12px; font-size: 14px; }
  .mt-topbar__note { display: none; }
  .mt-section { padding: 44px 0; }
  .mt-hero { padding: 44px 0 64px; }
  .mt-footer__grid { grid-template-columns: 1fr; padding-top: 40px; }
  .mt-modal__box { padding: 24px 18px 28px; }
  .mt-brand { font-size: 22px; }
}
@media (max-width: 380px) {
  .mt-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .mt-trust__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
