/*
 * Mundo de Brincar — product listing card fix.
 * Loaded last. Relies on mundo-de-brincar-card-runtime.js to establish a
 * stable media/copy/actions DOM order instead of fighting inherited grid rules.
 */

html[data-store-theme="mundo-de-brincar"]{
  --hamleys-card-red:#cf0f2c;
  --hamleys-card-line:#dedede;
  --hamleys-card-copy:#484848;
}

/* Stop old pseudo-elements from drawing a second button and distorted heart. */
html[data-store-theme="mundo-de-brincar"] .toyCommercial .productCard[data-hamleys-card="1"]::before,
html[data-store-theme="mundo-de-brincar"] .toyCommercial .productCard[data-hamleys-card="1"]::after{
  content:none!important;
  display:none!important;
}

/* Exact vertical order: image, category/brand, name, price, CTA + heart. */
html[data-store-theme="mundo-de-brincar"] .toyCommercial .productCard[data-hamleys-card="1"]{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:auto!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid var(--hamleys-card-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:none!important;
  text-align:left!important;
  text-decoration:none!important;
}

html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia{
  display:block!important;
  width:100%!important;
  aspect-ratio:1/1.02!important;
  margin:0!important;
  padding:14px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia>:is(img,picture,.productCardMedia,.productImagePlaceholder,.fa-gallery-host,[data-product-media]){
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  object-fit:contain!important;
  object-position:center!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia picture>img,
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia .productCardMedia>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}

html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCopy{
  display:block!important;
  min-width:0!important;
  padding:0 12px 16px!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardBrand{
  display:block!important;
  min-width:0!important;
  margin:0 0 7px!important;
  color:#080808!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:1.2!important;
  letter-spacing:-.01em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardTitle{
  display:block!important;
  min-width:0!important;
  min-height:2.7em!important;
  margin:0!important;
  color:var(--hamleys-card-copy)!important;
  font-size:16px!important;
  font-weight:450!important;
  line-height:1.34!important;
  letter-spacing:0!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardPrice{
  display:block!important;
  min-width:0!important;
  margin:14px 0 15px!important;
  color:#000!important;
  font-size:22px!important;
  font-weight:800!important;
  line-height:1.05!important;
  letter-spacing:-.015em!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardActions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCta{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:48px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:10px!important;
  background:var(--hamleys-card-red)!important;
  color:#fff!important;
  font-size:16px!important;
  font-weight:500!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-align:center!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardHeart{
  display:grid!important;
  place-items:center!important;
  width:48px!important;
  height:48px!important;
  color:var(--hamleys-card-red)!important;
}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardHeart svg{
  display:block!important;
  width:41px!important;
  height:41px!important;
  overflow:visible!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Collection title: compact, no mid-word break, no oversized empty header. */
@media(max-width:900px){
  html[data-store-theme="mundo-de-brincar"]
  .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.breadcrumb{
    margin-bottom:18px!important;
    font-size:13px!important;
  }
  html[data-store-theme="mundo-de-brincar"]
  .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.pageHead{
    margin:0 0 22px!important;
    padding:0!important;
  }
  html[data-store-theme="mundo-de-brincar"]
  .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.pageHead h1{
    max-width:none!important;
    margin:0!important;
    color:#111!important;
    font-size:clamp(23px,6.2vw,26px)!important;
    font-weight:750!important;
    line-height:1.08!important;
    letter-spacing:-.025em!important;
    text-transform:uppercase!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
    word-break:keep-all!important;
    hyphens:none!important;
    text-wrap:balance;
  }
  html[data-store-theme="mundo-de-brincar"]
  .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.pageHead p{
    max-width:36ch!important;
    margin:10px 0 0!important;
    color:#666!important;
    font-size:15px!important;
    line-height:1.45!important;
  }
  html[data-store-theme="mundo-de-brincar"]
  .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:20px 12px!important;
    width:100%!important;
    min-width:0!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia{
    aspect-ratio:1/1.05!important;
    padding:10px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCopy{
    padding:0 12px 16px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardBrand{
    margin-bottom:6px!important;
    font-size:14px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardTitle{
    min-height:2.72em!important;
    font-size:15px!important;
    line-height:1.36!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardPrice{
    margin:13px 0 14px!important;
    font-size:21px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardActions{
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCta{
    min-height:48px!important;
    border-radius:10px!important;
    font-size:15px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardHeart{
    width:46px!important;
    height:46px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardHeart svg{
    width:39px!important;
    height:39px!important;
  }
}

@media(max-width:360px){
  html[data-store-theme="mundo-de-brincar"]
  .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.grid{
    gap:28px 12px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCopy{
    padding:0 14px 14px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardActions{
    grid-template-columns:minmax(0,1fr)!important;
    gap:7px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCta{
    font-size:14px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardHeart{
    width:42px!important;
    height:42px!important;
  }
  html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardHeart svg{
    width:36px!important;
    height:36px!important;
  }
}


html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia .fa-gallery-host{position:relative!important;width:100%!important;height:100%!important;aspect-ratio:auto!important}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardMedia .fa-gallery-host img{object-fit:contain!important;object-position:center!important}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardTitle{overflow-wrap:anywhere!important}
html[data-store-theme="mundo-de-brincar"] .toyProductRail>.waveProduct{grid-template-columns:minmax(0,1fr)!important}
/* Real independent actions: product links and the account's favorite button. */
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardActions{display:flex!important;align-items:center!important;gap:10px!important}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardCta{flex:1!important;text-decoration:none!important;text-align:center!important;min-height:44px!important;display:grid!important;place-items:center!important}
html[data-store-theme="mundo-de-brincar"] .toyCommercial .hamleysCardTitle{display:block!important;text-decoration:none!important;color:#454545!important;font-size:14px!important;font-weight:400!important;line-height:1.45!important;min-height:2.9em!important}
html[data-store-theme="mundo-de-brincar"] [data-card-favorite]{flex:0 0 40px;width:40px;height:44px;padding:8px;background:#fff;border:0;color:#cf0f2c;cursor:pointer}
html[data-store-theme="mundo-de-brincar"] [data-card-favorite] svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6}
html[data-store-theme="mundo-de-brincar"] [data-card-favorite][aria-pressed=true] svg{fill:currentColor}
html[data-store-theme="mundo-de-brincar"] [data-card-favorite]:disabled{opacity:.5}
html[data-store-theme="mundo-de-brincar"] .hamleysCardPrice{font-size:20px!important;line-height:1.4!important}
html[data-store-theme="mundo-de-brincar"] .hamleysProductIntro h1{font-size:30px;line-height:1.25;margin:8px 0}
html[data-store-theme="mundo-de-brincar"] .hamleysProductIntro .price{font-size:24px;font-weight:700}
@media(min-width:901px){html[data-store-theme="mundo-de-brincar"] .productDetail{grid-template-rows:auto 1fr!important}html[data-store-theme="mundo-de-brincar"] .hamleysProductIntro{grid-column:2;grid-row:1}html[data-store-theme="mundo-de-brincar"] .productVisual{grid-column:1;grid-row:1/3}html[data-store-theme="mundo-de-brincar"] .buybox{grid-column:2;grid-row:2}}
@media(max-width:900px){html[data-store-theme="mundo-de-brincar"] .productDetail{display:flex!important;flex-direction:column!important;gap:20px!important}html[data-store-theme="mundo-de-brincar"] .hamleysProductIntro{order:0}html[data-store-theme="mundo-de-brincar"] .productVisual{order:1;width:100%}html[data-store-theme="mundo-de-brincar"] .buybox{order:2}html[data-store-theme="mundo-de-brincar"] .hamleysProductIntro h1{font-size:25px}html[data-store-theme="mundo-de-brincar"] .toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search)>.pageHead h1{font-size:32px!important;max-width:none!important;text-align:center!important;line-height:1.25!important}html[data-store-theme="mundo-de-brincar"] .toyCommercial>.pageHead p{text-align:center;font-size:14px!important}html[data-store-theme="mundo-de-brincar"] .toyCommercial>.pageHead{margin-bottom:24px!important}}
/* Mobile reference: one search row, aligned cream toolbar and outer gutters. */
@media(max-width:900px){
 html[data-store-theme="mundo-de-brincar"] .toyHeader .waveTools a:first-child span{display:block!important;font-size:14px!important;color:#777!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html[data-store-theme="mundo-de-brincar"] .toyHeader .waveTools a:first-child span::after{content:" peças e temas"!important}
 html[data-store-theme="mundo-de-brincar"] body:has(:is(.waveCommercialView--collection,.waveCommercialView--search)) #storeHeader .toyStoreHeader{min-height:64px!important}
 html[data-store-theme="mundo-de-brincar"] body:has(:is(.waveCommercialView--collection,.waveCommercialView--search)) #storeHeader .headerInner{min-height:64px!important;grid-template-rows:64px!important;padding-top:0!important;padding-bottom:0!important;row-gap:0!important}
 html[data-store-theme="mundo-de-brincar"] body:has(:is(.waveCommercialView--collection,.waveCommercialView--search)) #storeHeader .tools button:first-child{display:none!important}
 html[data-store-theme="mundo-de-brincar"] body:has(:is(.waveCommercialView--collection,.waveCommercialView--search)) #searchHost{background:#cf0f2c!important;position:sticky;top:64px;z-index:39}
 html[data-store-theme="mundo-de-brincar"] #searchHost .searchStrip{background:#cf0f2c!important;padding:0 15px 15px!important;margin:0!important;border:0!important}
 html[data-store-theme="mundo-de-brincar"] #searchHost .searchBox{background:#fff!important;border:0!important;height:46px!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial:is(.waveCommercialView--collection,.waveCommercialView--search){grid-template-rows:auto auto 58px auto!important;row-gap:0!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>.pageHead h1{text-transform:none!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>.pageHead{margin:0 15px 24px!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>:is(.catalogFilterDisclosure,.collectionToolbar){height:58px!important;min-height:58px!important;align-self:start!important;top:auto!important;transform:none!important;margin:0!important;border:0!important;box-sizing:border-box!important;grid-row:3!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>.catalogFilterDisclosure{grid-column:1!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>.collectionToolbar{grid-column:2!important;border-left:1px solid #cf0f2c!important;padding:0 10px!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>.collectionToolbar select{font-size:14px!important;padding-right:0!important}
 html[data-store-theme="mundo-de-brincar"] #app.toyCommercial>.grid{width:calc(100% - 30px)!important;margin:18px 15px 0!important;padding:0!important;gap:18px 10px!important}
}

/* The shared product enhancer wraps the buybox after initial render. */
@media(min-width:901px){html[data-store-theme="mundo-de-brincar"] .productDetail>.productPurchase{grid-column:2;grid-row:2}}
@media(max-width:900px){html[data-store-theme="mundo-de-brincar"] .productDetail>.productPurchase{order:2;width:100%}}
html[data-store-theme="mundo-de-brincar"] #storeHeader .toyStoreHeader .tools button:first-child span{display:block;font-size:13px;color:#686868;font-weight:400}
