/* Bonik Mart | Premium UI finishing layer | 2026-11-06
   Scoped presentation only: no order, payment, price or stock logic changes.
   Load this LAST, after the existing Bonik premium visual hotfix.
*/
@font-face {
  font-family: "Bonik Anek"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/anek-bangla-bn.woff2") format("woff2");
  unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1;
}
@font-face {
  font-family: "Bonik Anek"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/anek-bangla-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --bonik-ui-ink: #163627;
  --bonik-ui-green: #08683b;
  --bonik-ui-dark: #07532f;
  --bonik-ui-gold: #b9852c;
  --bonik-ui-border: #d9e8dd;
  --bonik-ui-font: "Bonik Anek", "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif;
}

/* Keep FontAwesome and Feather icon fonts untouched. */
body, button, input, select, textarea,
header#navbar_top .bm-desktop-nav,
.product-cart .name, .product-cart .price-panel,
.product_item .pro_des, .product_item .pro_price,
.product_item .pro_btn, footer .footer-top, footer .footer-bottom {
  font-family: var(--bonik-ui-font) !important;
}
header#navbar_top .logo-area { background: #fff !important; }
header#navbar_top .logo-area .logo-header { align-items: center; }

/* Search bar: the input is functional in the original Blade template, but
   without its form styling it looks like a text-only placeholder. */
@media (min-width: 992px) {
  header#navbar_top .logo-area .logo-header {
    display: grid;
    grid-template-columns: minmax(165px, 28%) minmax(270px, 41%) minmax(285px, 31%);
    column-gap: 0;
  }
  header#navbar_top .logo-area .main-search {
    display: block !important;
    min-width: 0;
    width: min(100%, 490px);
    margin: 6px auto !important;
    position: relative;
  }
  header#navbar_top .logo-area .main-search form {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 2px 2px 2px 4px !important;
    border: 1.5px solid #cbded0 !important;
    border-radius: 999px !important;
    background: #f7fbf8 !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(6,67,35,.045) !important;
    transition: border-color .18s ease, box-shadow .18s ease;
  }
  header#navbar_top .logo-area .main-search form:focus-within {
    border-color: #13814b !important;
    box-shadow: 0 0 0 3px rgba(10,124,66,.12) !important;
  }
  header#navbar_top .logo-area .main-search input.search_keyword {
    display: block !important;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: none !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1c3727 !important;
    -webkit-text-fill-color: #1c3727 !important;
    font: 400 14px/1.5 var(--bonik-ui-font) !important;
  }
  header#navbar_top .logo-area .main-search input.search_keyword::placeholder {
    color: #6b8072 !important;
    -webkit-text-fill-color: #6b8072 !important;
    opacity: 1 !important;
  }
  header#navbar_top .logo-area .main-search form > button[type="submit"] {
    display: flex !important;
    flex: 0 0 42px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 1px 0 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    cursor: pointer;
    color: #fff !important;
    background-color: #0a713f !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='2.15' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='6.8'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E"), linear-gradient(130deg,#075b34,#10874b) !important;
    background-size: 19px 19px, 100% 100% !important;
    background-position: center, center !important;
    background-repeat: no-repeat !important;
    box-shadow: none !important;
  }
  header#navbar_top .logo-area .main-search form > button[type="submit"] > svg,
  header#navbar_top .logo-area .main-search form > button[type="submit"] > i {
    opacity: 0 !important; /* icon is supplied in the CSS background above */
  }
  header#navbar_top .logo-area .header-list-items {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    min-width: 0;
  }
  header#navbar_top .logo-area .header-list-items ul {
    display: flex !important; align-items: center !important; justify-content: flex-end !important;
    gap: 4px !important; margin: 0 !important;
  }
  header#navbar_top .logo-area .header-list-items .track_btn > a,
  header#navbar_top .logo-area .header-list-items .for_order a {
    display: inline-flex !important; align-items: center !important; gap: 7px !important;
    padding: 9px 10px !important; border-radius: 10px !important;
    font: 700 13px/1.4 var(--bonik-ui-font) !important;
    color: var(--bonik-ui-ink) !important; white-space: nowrap;
  }
  header#navbar_top .logo-area .header-list-items .track_btn > a:hover,
  header#navbar_top .logo-area .header-list-items .for_order a:hover {
    color: #08683b !important; background: #eaf6ef !important;
  }
}

/* Product price: readable Taka sign and premium Bangla type, without changing any values. */
.product-cart .name, .product-cart h1.name {
  color: #183727 !important; font-family: var(--bonik-ui-font) !important;
  font-weight: 700 !important; line-height: 1.38 !important;
}
.product-cart .price-panel {
  border: 1px solid #dae8dc !important;
  border-radius: 16px !important;
  background: linear-gradient(110deg,#f3fbf5 0%,#fff 72%) !important;
  padding: 14px 17px !important;
  box-shadow: inset 0 1px rgba(255,255,255,.85) !important;
}
.product-cart .price-panel .price-now, #newPrice {
  font-family: var(--bonik-ui-font) !important;
  color: #0a5a32 !important;
  font-size: clamp(28px,2.5vw,36px) !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: normal !important;
  -webkit-text-fill-color: #0a5a32 !important;
}
.product-cart .price-panel .price-was {
  color: #849487 !important; font: 500 16px/1.4 var(--bonik-ui-font) !important;
}
.product-cart .price-panel .price-save {
  margin-left: auto !important; padding: 6px 11px !important; border-radius: 999px !important;
  background: #fff0e6 !important; border: 1px solid #f3c2b1 !important;
  color: #a83c27 !important; -webkit-text-fill-color: #a83c27 !important;
  font: 700 13px/1.4 var(--bonik-ui-font) !important;
}

/* Existing Add-to-Cart and Order-Now submits (do not change form method/actions). */
.product-cart .buy-box { display: block !important; visibility: visible !important; }
.product-cart .buy-box .buy-row { display: flex !important; gap: 10px !important; align-items: stretch !important; }
.product-cart input[type="submit"].add_cart_btn {
  -webkit-appearance: none !important; appearance: none !important;
  display: block !important; flex: 1 1 150px !important; width: auto !important;
  min-height: 50px !important; height: 50px !important;
  margin: 0 !important; padding: 10px 16px !important;
  border: 1.5px solid #d5b778 !important; border-radius: 12px !important;
  background: #fffaf0 !important; color: #6f4a0a !important;
  -webkit-text-fill-color: #6f4a0a !important;
  font: 700 17px/1.35 var(--bonik-ui-font) !important;
  text-align: center !important; cursor: pointer; opacity: 1;
  box-shadow: 0 3px 10px rgba(113,78,24,.06) !important;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.product-cart input[type="submit"].add_cart_btn:hover:not(:disabled) {
  background: #ffefd0 !important; border-color: #ba8c3c !important;
  box-shadow: 0 5px 14px rgba(113,78,24,.12) !important;
}
.product-cart input[type="submit"].order_now_btn {
  -webkit-appearance: none !important; appearance: none !important;
  display: block !important; width: 100% !important;
  height: 55px !important; min-height: 55px !important;
  margin: 12px 0 5px !important; padding: 11px 20px !important;
  border: 1px solid #096034 !important; border-radius: 13px !important;
  background: linear-gradient(110deg,#076536,#098749) !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  text-align: center !important; font: 700 19px/1.35 var(--bonik-ui-font) !important;
  box-shadow: 0 9px 17px rgba(6,98,51,.18) !important;
  cursor: pointer; opacity: 1;
  transition: box-shadow .15s ease, filter .15s ease;
}
.product-cart input[type="submit"].order_now_btn:hover:not(:disabled) {
  filter: brightness(1.06) !important;
  box-shadow: 0 12px 22px rgba(6,98,51,.23) !important;
}
/* Keep business rules intact: disabled controls remain disabled. */
.product-cart input[type="submit"].add_cart_btn:disabled,
.product-cart input[type="submit"].order_now_btn:disabled {
  opacity: .52 !important; cursor: not-allowed !important; filter: grayscale(.18) !important;
  box-shadow: none !important;
}
.product-cart .qty-cart .quantity { border-color: #dae9dc !important; border-radius: 12px !important; }
.product-cart .quantity input[name="qty"] { font: 700 17px/1.2 var(--bonik-ui-font) !important; }
.product-cart .selector-item_label { font-family: var(--bonik-ui-font) !important; }
.product-cart .selector-item_radio:focus-visible + .selector-item_label {
  outline: 3px solid #ddb35d !important; outline-offset: 2px !important;
}

/* Collection grids (exclude carousel slides). */
.category-product.main_product_inner {grid-template-columns:repeat(5,minmax(0,1fr)) !important;gap:clamp(8px,1vw,16px) !important}
@media(max-width:1100px){.category-product.main_product_inner{grid-template-columns:repeat(4,minmax(0,1fr)) !important}}
@media(max-width:850px){.category-product.main_product_inner{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media(max-width:575px){.category-product.main_product_inner{grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
.category-product.main_product_inner .product_item {min-width:0;border-color:#d5e2d7;box-shadow:0 2px 7px #133a230c}
@media(min-width:576px){.category-product.main_product_inner .product_item .pro_img {height:clamp(116px,14vw,160px) !important;aspect-ratio:auto !important}}
@media(max-width:575px){
  .category-product.main_product_inner .product_item .pro_img,.flash_sale_slider .product_item .pro_img {height:auto !important;width:100% !important;aspect-ratio:1 / 1 !important;padding:0 !important}
  .category-product.main_product_inner .product_item .pro_img a,.flash_sale_slider .product_item .pro_img a {display:block;width:100%;height:100%}
  .category-product.main_product_inner .product_item .pro_img img,.flash_sale_slider .product_item .pro_img img {padding:0 !important;width:100% !important;height:100% !important;object-fit:contain !important}
}
.category-product.main_product_inner .product_item .pro_img img {width:100% !important;height:100% !important;object-fit:contain !important}
.category-product.main_product_inner .product_item .pro_btn {padding:5px 2px 2px !important;gap:5px}
.category-product.main_product_inner .pro_name a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.product_item :is(a,button):focus-visible,.product-cart :is(a,button,input):focus-visible {outline:3px solid #25764b;outline-offset:2px}

/* Product tiles: dark-green order button, tasteful gold outline cart, reliable icon visibility. */
.product_item .pro_price p, .product_item .pro_price,
.product_item .pro_price del {
  font-family: var(--bonik-ui-font) !important;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: normal !important;
}
.product_item .pro_price p { font-weight: 800 !important; color: #085b32 !important; }
.product_item .pro_price del { font-weight: 500 !important; color: #849388 !important; }
.product_item .pro_btn .order-btn,
.product_item .pro_btn .order-btn-link,
.product_item .bm-action-row .bm-order-btn,
.product_item .bm-action-row a.bm-order-btn {
  display: inline-flex !important; justify-content: center !important; align-items: center !important;
  min-height: 43px !important; border: 1px solid #096b39 !important;
  border-radius: 11px !important; padding: 8px 12px !important;
  background: linear-gradient(120deg,#076237,#0a8448) !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  font: 700 15px/1.4 var(--bonik-ui-font) !important;
  text-decoration: none !important; text-transform: none !important;
  box-shadow: 0 5px 11px rgba(6,91,44,.14) !important;
}
.product_item .pro_btn .cart-icon-link,
.product_item .pro_btn .cart-icon-btn,
.product_item .bm-action-row .bm-cart-btn {
  display: inline-flex !important; justify-content: center !important; align-items: center !important;
  min-height: 43px !important; border-radius: 11px !important;
  border: 1.5px solid #e6c683 !important;
  background: #fffaf0 !important;
  color: #94620f !important; -webkit-text-fill-color: #94620f !important;
  box-shadow: 0 2px 6px rgba(110,67,4,.06) !important;
}
.product_item .pro_btn .cart-icon-link i,
.product_item .pro_btn .cart-icon-btn i,
.product_item .bm-action-row .bm-cart-btn i {
  color: #94620f !important; -webkit-text-fill-color: #94620f !important;
  opacity: 1 !important; visibility: visible !important;
}
.product_item .pro_btn .order-btn:hover,
.product_item .pro_btn .order-btn-link:hover,
.product_item .bm-action-row .bm-order-btn:hover { filter: brightness(1.08); }
.product_item .pro_btn .cart-icon-link:hover,
.product_item .pro_btn .cart-icon-btn:hover,
.product_item .bm-action-row .bm-cart-btn:hover {
  background: #fff0cf !important; border-color: #d8af56 !important;
}

@media (max-width: 991px) {
  /* Existing mobile header/search/navigation is intentionally preserved. */
  .product-cart input[type="submit"].add_cart_btn { font-size: 15px !important; min-height: 46px !important; }
  .product-cart input[type="submit"].order_now_btn { font-size: 17px !important; min-height: 51px !important; }
  .product-cart .price-panel .price-now { font-size: 29px !important; }
}
@media (max-width: 480px) {
  .product-cart .buy-box .buy-row { gap: 7px !important; }
  .product-cart .qty-cart .quantity { max-width: 110px; }
  .product-cart input[type="submit"].add_cart_btn { padding: 8px 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .product-cart input[type="submit"].add_cart_btn,
  .product-cart input[type="submit"].order_now_btn { transition: none !important; }
}
