/* Dorjay BD R225 - Mobile Product Cards */

@media (max-width: 740px) {

  .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .productcard {
    min-width: 0 !important;
    width: 100% !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }

  .productcard .product-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
    padding: 8px !important;
    box-sizing: border-box !important;
  }

  .productcard .product-image > img:not(.ui3d) {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    border-radius: 7px !important;
  }

  .productcard .name {
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    padding-left: 8px;
    padding-right: 8px;
    overflow-wrap: anywhere;
  }

  .productcard .unit {
    font-size: 12px !important;
    line-height: 1.4 !important;
    padding-left: 8px;
    padding-right: 8px;
  }

  .productcard .productfoot {
    margin-top: auto !important;
    padding: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
  }

  .productcard .price {
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  .productcard .heart {
    position: absolute !important;
    top: 7px !important;
    right: 7px !important;
    z-index: 3 !important;
  }

  .productcard .discount {
    position: absolute !important;
    top: 7px !important;
    left: 7px !important;
    z-index: 2 !important;
  }

  .productcard .addbtn {
    flex-shrink: 0 !important;
  }
}

@media (max-width: 360px) {
  .products {
    gap: 7px !important;
  }

  .productcard .name {
    font-size: 13px !important;
  }

  .productcard .price {
    font-size: 15px !important;
  }
}
