/* MAK Mobile v4.5: ONLY approved image corrections and portrait shop cards.
   All unmentioned sections use the original v4.5 CSS unchanged. */
@media (max-width:768px) {
  /* Approved category artwork already has its category name baked in.
     Remove ONLY the duplicate overlaid label, preserving dimensions/grid. */
  #mak-app .mak-v45-approved-category .mak-tile-title,
  #mak-app .mak-v45-approved-category .mak-category-title,
  #mak-app .mak-v45-approved-category > span:not(.mak-badge) {
    display: none !important;
  }
  /* The original dark gradient existed only for the now-hidden duplicate caption. */
  #mak-app .mak-v45-approved-category::after {
    display:none !important;
  }
  /* Keep full title printed on the approved artwork; no crop/zoom. */
  #mak-app .mak-v45-approved-category img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
  }
  /* Replace the launcher artwork only. Its position and behavior stay intact. */
  #mak-mobile-root .mak-v45-approved-chat > svg {
    display:none !important;
  }
  #mak-mobile-root .mak-v45-approved-chat {
    padding:0 !important;
    overflow:hidden !important;
  }
  #mak-mobile-root .mak-v45-approved-chat img {
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    border-radius:inherit;
    pointer-events:none;
  }
  /* Product cards: 2 columns remain controlled by the original v4.5 grid. */
  #mak-app .mak-v45-approved-product {
    display:flex !important;
    flex-direction:column !important;
    min-width:0;
    position:relative;
  }
  /* Portrait 3:4 product photography. */
  #mak-app .mak-v45-approved-product .mak-imgbox,
  #mak-app .mak-v45-approved-product .mak-product-media,
  #mak-app .mak-v45-approved-product .mak-product-image-wrap,
  #mak-app .mak-v45-approved-product .mak-product-picture {
    aspect-ratio:3/4 !important;
    height:auto !important;
    width:100% !important;
    position:relative !important;
    overflow:hidden !important;
    border-radius:14px !important;
  }
  #mak-app .mak-v45-approved-product .mak-imgbox > a,
  #mak-app .mak-v45-approved-product .mak-product-media > a,
  #mak-app .mak-v45-approved-product .mak-product-photo,
  #mak-app .mak-v45-approved-product .mak-imgbox > a > img,
  #mak-app .mak-v45-approved-product .mak-product-media > a > img,
  #mak-app .mak-v45-approved-product .mak-product-photo img {
    display:block;
    width:100% !important;
    height:100% !important;
  }
  #mak-app .mak-v45-approved-product .mak-imgbox img,
  #mak-app .mak-v45-approved-product .mak-product-media img {
    object-fit:cover !important;
    object-position:center !important;
  }
  /* Category badges: top LEFT of the picture. */
  #mak-app .mak-v45-approved-product .mak-p-tags,
  #mak-app .mak-v45-approved-product .mak-product-tags,
  #mak-app .mak-v45-approved-product .mak-product-badges {
    position:absolute !important;
    z-index:3 !important;
    top:9px !important;
    left:9px !important;
    right:51px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    flex-wrap:wrap;
    align-items:flex-start;
    gap:4px;
    max-height:70px;
    overflow:hidden;
    pointer-events:none;
  }
  #mak-app .mak-v45-approved-product .mak-p-tags span,
  #mak-app .mak-v45-approved-product .mak-product-tags span,
  #mak-app .mak-v45-approved-product .mak-product-badges span {
    border-radius:7px !important;
    padding:5px 7px !important;
    background:rgba(255,255,255,.96) !important;
    color:#3f3f45 !important;
    font-size:11px !important;
    line-height:1.1 !important;
    font-weight:750 !important;
    max-width:100%;
  }
  /* Heart: top RIGHT. Do not alter its existing click handler. */
  #mak-app .mak-v45-approved-product .mak-favorite,
  #mak-app .mak-v45-approved-product .mak-fav,
  #mak-app .mak-v45-approved-product .mak-product-favorite {
    position:absolute !important;
    z-index:4 !important;
    top:8px !important;
    right:8px !important;
    left:auto !important;
    width:38px !important;
    height:38px !important;
    border-radius:50% !important;
    border:0 !important;
    padding:9px !important;
    display:grid !important;
    place-items:center !important;
    background:rgba(255,255,255,.96) !important;
    color:#29292f !important;
    box-shadow:0 1px 6px #00000013;
  }
  #mak-app .mak-v45-approved-product .mak-favorite svg,
  #mak-app .mak-v45-approved-product .mak-fav svg,
  #mak-app .mak-v45-approved-product .mak-product-favorite svg {
    width:21px !important;
    height:21px !important;
  }
  /* Name UNDER photo. */
  #mak-app .mak-v45-approved-product .mak-product-name,
  #mak-app .mak-v45-approved-product .mak-product-title,
  #mak-app .mak-v45-approved-product .mak-card-title {
    display:-webkit-box !important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    font-size:15px !important;
    line-height:1.22 !important;
    font-weight:750 !important;
    margin:9px 0 7px !important;
    min-height:36px !important;
    text-decoration:none;
  }
  /* Bottom row: price LEFT, shopping bag/cart RIGHT. */
  #mak-app .mak-v45-approved-product .mak-v45-product-bottom,
  #mak-app .mak-v45-approved-product .mak-product-meta {
    display:flex !important;
    align-items:flex-end !important;
    justify-content:space-between !important;
    gap:5px !important;
    margin-top:auto !important;
    width:100%;
  }
  #mak-app .mak-v45-approved-product .mak-price,
  #mak-app .mak-v45-approved-product .mak-product-price {
    display:flex !important;
    flex:1 1 auto;
    min-width:0;
    flex-wrap:wrap;
    align-items:baseline;
    gap:0 5px;
    color:#d33260 !important;
    font-weight:850 !important;
    font-size:18px !important;
    line-height:1.1 !important;
    margin:0 0 2px !important;
    white-space:normal !important;
  }
  #mak-app .mak-v45-approved-product .mak-price del,
  #mak-app .mak-v45-approved-product .mak-product-price del {
    color:#949498 !important;
    font-size:12px !important;
    font-weight:400 !important;
    text-decoration:line-through;
  }
  #mak-app .mak-v45-approved-product .mak-cart-btn,
  #mak-app .mak-v45-approved-product .mak-product-cart,
  #mak-app .mak-v45-approved-product .mak-add-to-cart {
    flex:0 0 40px !important;
    width:40px !important;
    height:40px !important;
    min-height:40px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    border-radius:11px !important;
    background:#ff3366 !important;
    color:white !important;
    border:0 !important;
    text-decoration:none !important;
    font-size:0 !important;
    overflow:hidden;
  }
  #mak-app .mak-v45-approved-product .mak-cart-btn svg,
  #mak-app .mak-v45-approved-product .mak-product-cart svg,
  #mak-app .mak-v45-approved-product .mak-add-to-cart svg {
    width:21px !important;
    height:21px !important;
  }
  #mak-app .mak-v45-approved-product .mak-cart-btn > span,
  #mak-app .mak-v45-approved-product .mak-add-to-cart > span {
    display:none !important;
  }
}
