/* =========================================================
   MOBILE HEADER (Logo + Search) - Brand Green
   Color: #106839
   ========================================================= */

/* Header wrapper */
.asb-header--mobile{
  position: sticky;          /* উপরে আটকে থাকবে */
  top: 0;
  z-index: 999;
  background: #106839;       /* Green */
  padding: 12px 14px;
}

/* Inner layout */
.asb-header__inner{
  display: flex;
  flex-direction: column;    /* মোবাইলে একটার নিচে একটা */
  gap: 10px;
}

/* Logo area */
.asb-header__logo{
  display: flex;
  align-items: center;
}

/* WordPress custom logo image */
.asb-header__logo img{
  max-height: 38px;          /* মোবাইলে লোগো হাইট */
  width: auto;
  display: block;
}

/* Site name fallback */
.asb-header__site-name{
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

/* Search bar wrapper */
.asb-search{
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;          /* বাটন/ইনপুট সুন্দরভাবে থাকবে */
}

/* Search input */
.asb-search__input{
  border: 0;
  outline: none;
  width: 100%;
  padding: 12px 12px;
  font-size: 15px;
}

/* Search button */
.asb-search__btn{
  border: 0;
  background: #0b4d2a;       /* Dark Green */
  color: #fff;
  padding: 12px 14px;
  cursor: pointer;
}

/* Focus effect */
.asb-search__input:focus{
  box-shadow: inset 0 0 0 2px rgba(16,104,57,0.25);
}


/* =========================================================
   MOBILE: Premium Product Card (Like Desktop)
   - Clean typography
   - Better spacing
   - Buttons stacked:
       1) "কিনুন" (top)
       2) "বিস্তারিত দেখুন" (bottom)
   - Smooth animation
   ========================================================= */

@media (max-width: 767px){

  /* Grid layout + spacing */
  .woocommerce ul.products{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .woocommerce ul.products li.product{
    width: auto !important;
    margin: 0 !important;
    float: none !important;

    background: #fff !important;
    border: 1px solid #e8ecef !important;
    border-radius: 16px !important;
    padding: 10px !important;
    overflow: hidden !important;

    display: flex !important;
    flex-direction: column !important;

    transform: translateY(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    animation: asbCardIn .35s ease both;
  }

  /* Entrance animation */
  @keyframes asbCardIn{
    from { opacity:0; transform: translateY(10px); }
    to   { opacity:1; transform: translateY(0); }
  }

  /* Hover feel */
  .woocommerce ul.products li.product:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
    border-color: rgba(16,104,57,.35);
  }

  /* Product link area */
  .woocommerce ul.products li.product .woocommerce-LoopProduct-link{
    display: block !important;
    flex: 1 1 auto !important;
    text-decoration: none !important;
  }

  /* Image nicer */
  .woocommerce ul.products li.product a img{
    width: 100% !important;
    height: auto !important;
    border-radius: 14px !important;
    background: #f3f5f7 !important;
    transition: transform .25s ease;
  }

  .woocommerce ul.products li.product:hover a img{
    transform: scale(1.02);
  }

  /* Title: 2 line clamp */
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin: 10px 0 6px !important;
    padding: 0 !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 36px;
  }

  /* Price */
  .woocommerce ul.products li.product .price{
    margin: 0 0 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  /* Sale badge */
  .woocommerce span.onsale{
    border-radius: 999px !important;
    padding: 6px 10px !important;
    font-weight: 900 !important;
  }

  /* Buttons wrapper: stack + gap */
  .woocommerce ul.products li.product .woocommerce_after_shop_loop_item{
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  /* BUY button ("কিনুন") - TOP */
  .woocommerce ul.products li.product a.add_to_cart_button,
  .woocommerce ul.products li.product a.button{
    order: 1 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 42px !important;

    border-radius: 12px !important;
    padding: 10px 10px !important;

    background: #106839 !important;
    color: #fff !important;

    border: 1px solid #106839 !important;
    font-size: 14px !important;
    font-weight: 900 !important;

    text-decoration: none !important;

    white-space: nowrap !important;
    line-height: 1 !important;

    transition: transform .18s ease, background .18s ease, opacity .18s ease;
  }

  .woocommerce ul.products li.product a.add_to_cart_button:hover,
  .woocommerce ul.products li.product a.button:hover{
    background: #0b4d2a !important;
    transform: translateY(-1px);
  }

  /* DETAILS button - BOTTOM */
  .woocommerce ul.products li.product .asb-details-btn{
    order: 2 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    min-height: 42px !important;

    border-radius: 12px !important;
    padding: 10px 10px !important;

    background: #f3f6f4 !important;
    color: #106839 !important;

    border: 1px solid rgba(16,104,57,.25) !important;
    font-size: 14px !important;
    font-weight: 900 !important;

    text-decoration: none !important;

    white-space: nowrap !important;
    line-height: 1 !important;

    transition: transform .18s ease, background .18s ease, border-color .18s ease;
  }

  .woocommerce ul.products li.product .asb-details-btn:hover{
    background: rgba(16,104,57,.10) !important;
    border-color: rgba(16,104,57,.45) !important;
    transform: translateY(-1px);
  }
}



