/*
Theme Name: Motu.pk Complete Store
Theme URI: https://wordpress.org/
Author: Motu.pk
Description: Responsive WooCommerce theme for a kids educational toys store. Includes hero banner, category tiles, product hover motion and Add to Cart / Shop Now actions.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: motupk-complete-store
*/
:root{--mp-blue:#075fe5;--mp-red:#ff263d;--mp-ink:#101a39;--mp-muted:#68758b;--mp-line:#e8edf5;--mp-soft:#f4f8ff;--mp-radius:14px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--mp-ink);background:#fff;font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.5}a{color:inherit;text-decoration:none}a:hover{color:var(--mp-blue)}img{max-width:100%;height:auto}
.mp-topbar{background:#eaf3ff;border-bottom:1px solid #dbe8fb;color:#20314f;font-size:12px}.mp-topbar-inner{max-width:1440px;margin:auto;padding:8px 24px;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.mp-header-main{max-width:1440px;margin:auto;padding:15px 24px;display:grid;grid-template-columns:230px minmax(180px,1fr) auto;gap:24px;align-items:center}.mp-logo{font-weight:1000;font-size:35px;letter-spacing:-2px;line-height:1;color:#ffc400;text-shadow:-2px -2px #101a39,2px -2px #101a39,-2px 2px #101a39,2px 2px #101a39}.mp-logo span{color:#1384ed}.mp-search{display:flex;border:1px solid #dce4f1;border-radius:99px;overflow:hidden;min-height:46px}.mp-search input{min-width:0;flex:1;border:0;padding:0 18px;outline:none;font-size:14px}.mp-search button{background:var(--mp-blue);color:white;border:0;padding:0 20px;font-size:20px;cursor:pointer}.mp-tools{display:flex;align-items:center;gap:18px;font-size:13px;font-weight:700;white-space:nowrap}.mp-nav-wrap{border-top:1px solid #edf0f5;border-bottom:1px solid #edf0f5}.mp-nav-inner{max-width:1440px;margin:auto;padding:0 24px;display:flex;align-items:center;gap:22px;min-height:48px}.mp-category-link{background:var(--mp-blue);color:#fff;border-radius:5px;padding:12px 16px;font-weight:700;white-space:nowrap}.mp-category-link:hover{color:#fff;background:#034bb9}.mp-nav ul{display:flex;gap:clamp(12px,2vw,28px);align-items:center;flex-wrap:wrap;list-style:none;margin:0;padding:0}.mp-nav a{font-size:13px;font-weight:700}.mp-container{max-width:1440px;width:calc(100% - 48px);margin:0 auto}
.mp-hero{padding:18px 0 0}.mp-hero-link{display:block;border-radius:15px;overflow:hidden}.mp-hero img{display:block;width:100%;aspect-ratio:3.6/1;object-fit:cover}.mp-benefits{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:14px;background:#f4f8ff;border-radius:13px;padding:15px 8px}.mp-benefit{display:flex;align-items:center;justify-content:center;gap:12px;padding:4px 10px;border-right:1px solid #d9e2f0}.mp-benefit:last-child{border-right:0}.mp-benefit-icon{font-size:25px;color:var(--mp-blue)}.mp-benefit strong{display:block;font-size:13px}.mp-benefit small{display:block;color:var(--mp-muted);font-size:11px}.mp-section{padding-top:28px}.mp-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.mp-section-heading h2{font-size:clamp(23px,2.5vw,31px);line-height:1.15;letter-spacing:-.6px;margin:0}.mp-view-all{color:var(--mp-blue);font-weight:700;font-size:13px;white-space:nowrap}
.mp-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.mp-category-card{border:1px solid var(--mp-line);border-radius:12px;overflow:hidden;text-align:center;background:#fff;transition:transform .2s ease,box-shadow .2s ease}.mp-category-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px #1c315012}.mp-category-art{height:125px;display:flex;align-items:center;justify-content:center;font-size:57px}.mp-category-card:nth-child(6n+1) .mp-category-art{background:#fff0f4}.mp-category-card:nth-child(6n+2) .mp-category-art{background:#eaf6ff}.mp-category-card:nth-child(6n+3) .mp-category-art{background:#fff8e3}.mp-category-card:nth-child(6n+4) .mp-category-art{background:#e9fbf0}.mp-category-card:nth-child(6n+5) .mp-category-art{background:#f5edff}.mp-category-card:nth-child(6n) .mp-category-art{background:#eaf6ff}.mp-category-card strong{display:block;font-size:13px;padding:8px 4px 0}.mp-category-card small{display:block;color:var(--mp-muted);font-size:11px;padding:0 4px 10px}
.mp-promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.mp-promo{border-radius:13px;padding:22px;min-height:130px;background:linear-gradient(120deg,#ffe783,#fff3bd);display:flex;justify-content:space-between;align-items:center;gap:10px}.mp-promo:nth-child(2){background:linear-gradient(120deg,#ffd8e2,#f9eaff)}.mp-promo:nth-child(3){background:linear-gradient(120deg,#ccecff,#e9f7ff)}.mp-promo h3{margin:0 0 8px;font-size:20px;line-height:1.1}.mp-promo .button{background:var(--mp-blue)!important;color:#fff!important;border-radius:99px!important;padding:9px 14px!important;font-size:12px!important}.mp-promo-art{font-size:42px}
.mp-footer{margin-top:38px;background:#f3f7fd;border-top:1px solid var(--mp-line);padding:28px 0;color:#56647c;font-size:12px}.mp-footer-inner{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.mp-footer strong{color:var(--mp-ink)}
.mp-page{padding:32px 0 60px;min-height:45vh}.mp-page h1,.woocommerce-products-header__title{font-size:clamp(28px,4vw,40px);line-height:1.15;letter-spacing:-.8px}.woocommerce-breadcrumb{font-size:12px!important;color:var(--mp-muted)!important;margin-bottom:20px!important}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;margin:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;padding:10px!important;border:1px solid var(--mp-line);border-radius:13px;overflow:hidden;display:flex;flex-direction:column;background:#fff;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease!important}.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 12px 26px #17284f16;border-color:#d2e1fa}.woocommerce ul.products li.product a img{width:100%!important;aspect-ratio:1/1;object-fit:contain;margin:0 0 10px!important;border-radius:9px;transition:transform .28s ease}.woocommerce ul.products li.product:hover a img{transform:scale(1.055)}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:750!important;line-height:1.3;padding:0!important;margin:0 0 7px!important}.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--mp-ink)!important;font-weight:800!important;font-size:15px!important;margin-bottom:9px!important}.woocommerce span.onsale{background:var(--mp-red)!important;color:#fff!important;border-radius:99px!important;min-height:0!important;min-width:0!important;padding:5px 9px!important;line-height:1.2!important;font-size:11px!important}.woocommerce ul.products li.product .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;background:var(--mp-blue)!important;color:#fff!important;border:0!important;border-radius:6px!important;padding:10px 12px!important;font-size:12px!important;font-weight:750!important;line-height:1.25!important;transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;cursor:pointer}.woocommerce ul.products li.product .button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#064bb8!important;color:#fff!important;transform:translateY(-2px) scale(1.02);box-shadow:0 5px 12px #075fe526}.woocommerce ul.products li.product .button{margin-top:auto!important;align-self:flex-start}.woocommerce ul.products li.product .motupk-shop-now{background:var(--mp-red)!important;margin-left:5px!important}.woocommerce ul.products li.product .motupk-shop-now:hover{background:#d91e31!important}.woocommerce div.product div.images img{border-radius:13px}.woocommerce div.product .product_title{font-size:clamp(25px,4vw,39px);line-height:1.15}.woocommerce table.shop_table{border-radius:10px;border-color:var(--mp-line)!important}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:12px!important}.woocommerce-cart table.cart img{width:65px!important;border-radius:8px}.woocommerce .quantity .qty,.woocommerce input.input-text,.woocommerce textarea,.woocommerce select{border:1px solid #dce4f1;border-radius:7px;padding:9px;min-height:40px}.woocommerce-cart .cart-collaterals .cart_totals{background:#f8fbff;border:1px solid var(--mp-line);border-radius:12px;padding:16px}.woocommerce-message,.woocommerce-info{border-top-color:var(--mp-blue)!important;border-radius:8px}.woocommerce-message:before,.woocommerce-info:before{color:var(--mp-blue)!important}
@media(max-width:1000px){.mp-header-main{grid-template-columns:1fr auto;gap:14px}.mp-search{grid-column:1/-1;grid-row:2}.mp-tools{gap:12px}.mp-nav-inner{align-items:flex-start;flex-direction:column;padding-top:10px;padding-bottom:10px;gap:10px}.mp-categories{grid-template-columns:repeat(3,minmax(0,1fr))}.mp-benefits{grid-template-columns:repeat(2,1fr);gap:8px}.mp-benefit:nth-child(2){border-right:0}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}.mp-promo-grid{grid-template-columns:1fr}}
@media(max-width:600px){.mp-topbar-inner{padding:8px 12px;gap:7px}.mp-topbar-inner span:nth-child(n+3){display:none}.mp-header-main{padding:13px;grid-template-columns:1fr auto}.mp-logo{font-size:29px}.mp-tools{gap:9px;font-size:0}.mp-tools a{font-size:0}.mp-tools a span{font-size:19px}.mp-search{min-height:41px}.mp-nav-inner{padding-left:13px;padding-right:13px}.mp-nav{width:100%;overflow-x:auto}.mp-nav ul{width:max-content;flex-wrap:nowrap;gap:17px;padding-bottom:4px}.mp-nav a{font-size:12px}.mp-category-link{padding:9px 12px;font-size:12px}.mp-container{width:calc(100% - 26px)}.mp-hero{padding-top:13px}.mp-hero-link{border-radius:10px}.mp-hero img{aspect-ratio:1.6/1}.mp-benefits{padding:10px 5px}.mp-benefit{justify-content:flex-start;gap:7px;padding:5px}.mp-benefit-icon{font-size:20px}.mp-benefit strong{font-size:10px}.mp-benefit small{font-size:9px}.mp-section{padding-top:23px}.mp-section-heading h2{font-size:22px}.mp-view-all{font-size:11px}.mp-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mp-category-art{height:105px;font-size:50px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.woocommerce ul.products li.product{padding:7px!important}.woocommerce ul.products li.product .button{font-size:10px!important;padding:8px 7px!important}.woocommerce ul.products li.product .motupk-shop-now{margin-left:3px!important}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:6px!important;font-size:11px}.woocommerce-cart table.cart img{width:40px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}


/* CART REPAIR PATCH — stronger WooCommerce cart thumbnail and layout rules */
body.woocommerce-cart .woocommerce {
  width: 100%;
  max-width: 100%;
}
body.woocommerce-cart .woocommerce-cart-form {
  width: 100%;
  min-width: 0;
}
body.woocommerce-cart .woocommerce table.shop_table.cart {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: auto !important;
}
body.woocommerce-cart .woocommerce table.shop_table.cart th.product-thumbnail,
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail {
  display: table-cell !important;
  width: 105px !important;
  min-width: 105px !important;
  padding: 12px !important;
  vertical-align: middle !important;
}
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail a {
  display: block !important;
  width: 82px !important;
  min-width: 82px !important;
  height: auto !important;
  overflow: visible !important;
}
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 82px !important;
  max-width: 82px !important;
  min-width: 82px !important;
  height: 82px !important;
  min-height: 82px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
  background: #fff !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 9px !important;
}
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-name {
  min-width: 180px !important;
  vertical-align: middle !important;
  padding: 14px !important;
}
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-price,
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-quantity,
body.woocommerce-cart .woocommerce table.shop_table.cart td.product-subtotal {
  vertical-align: middle !important;
  padding: 12px !important;
  white-space: nowrap;
}
body.woocommerce-cart .woocommerce table.shop_table.cart td.actions {
  padding: 14px !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px) !important;
  gap: 24px !important;
  align-items: start !important;
  margin-top: 24px !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
  background: #f7faff !important;
  border: 1px solid #e1e9f5 !important;
  border-radius: 14px !important;
  padding: 20px !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals h2 {
  font-size: 22px !important;
  margin: 0 0 16px !important;
}
body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals table {
  width: 100% !important;
  margin-bottom: 16px !important;
}
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
  padding: 0 !important;
}
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  background: #075fe5 !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-align: center !important;
}
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover {
  background: #034bb9 !important;
  transform: translateY(-1px);
}
body.woocommerce-cart .woocommerce .quantity input.qty {
  width: 64px !important;
  min-width: 56px !important;
  padding: 8px !important;
}
body.woocommerce-cart .woocommerce .coupon {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
body.woocommerce-cart .woocommerce .coupon input.input-text {
  width: 150px !important;
  max-width: 100% !important;
}
@media (max-width: 780px) {
  body.woocommerce-cart .woocommerce table.shop_table.cart {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals {
    display: block !important;
  }
  body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
    margin-top: 18px !important;
  }
  body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail {
    width: 76px !important;
    min-width: 76px !important;
    padding: 8px !important;
  }
  body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail a {
    width: 60px !important;
    min-width: 60px !important;
  }
  body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail img {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
  }
}


/* Banner update: preserve the uploaded banner's wide composition and keep it prominent. */
.mp-hero-link { display:block; width:100%; }
.mp-hero img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: auto;
  max-height: 430px;
  object-fit: cover;
  object-position: center;
}
@media(max-width:600px) {
  .mp-hero img {
    aspect-ratio: 1.6 / 1;
    height:auto;
    object-fit:cover;
    object-position:center;
  }
}
