/*Shop*/
/* =========================================================
   BUKREK SHOP FINAL
   ========================================================= */

/* ===== BASE ===== */
.woocommerce-page .site-main,
.woocommerce.archive .site-main,
.post-type-archive-product .site-main {
  background: #f6f4ef;
}

/* ===== HIDE OLD/THEME FILTER BUTTONS ===== */
#awb-shop-filters,
#awb-shop-filters *,
.awb-shop-filters,
.awb-shop-filters *,
.awb-shop-filters-trigger,
.awb-shop-filter,
.filter-trigger,
.filter,
.shop-filter-toggle,
.products-filter,
.archive-filter,
.offcanvas-filter,
.mobile-filter-button,
.shop-filter,
.woocommerce .filter-toggle,
.woocommerce-products-header .filter {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* ===== REMOVE RESULT COUNT ===== */
.woocommerce .woocommerce-result-count {
  display: none !important;
}

/* ===== WRAPPER ===== */
.bk-shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 16px 36px;
  margin-top: -46px !important;
  box-sizing: border-box;
}

.bk-shop-sidebar {
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05) !important;
  border-radius: 22px !important;
  padding: 22px 20px !important;
  box-sizing: border-box;
  position: sticky;
  top: 90px;
  width: 100%;
  margin-top: -46px !important;
}

.bk-shop-content {
  min-width: 0;
  width: 100%;
}

/* ===== TOP TOOLBAR ===== */
.bk-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -40px !important;
  margin-bottom: 10px !important;
}

.bk-shop-toolbar__left {
  display: flex;
  align-items: center;
  flex: 1;
}

.bk-shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.bk-shop-search__input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: #fff;
  padding: 0 16px;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

.bk-shop-search__input:focus {
  border-color: rgba(0,0,0,.22);
  outline: none;
}

.bk-shop-search__btn {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  top: -10px;
}

.bk-shop-search__btn:hover {
  background: #f7f7f7;
  border-color: rgba(0,0,0,.18);
}

/* ===== SORT ===== */
.woocommerce .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
}

.woocommerce .woocommerce-ordering select {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  min-height: 42px;
  padding: 0 14px;
  background: #fff;
  font-size: 14px;
  color: #333;
  min-width: 300px;
  top: -5px;
}

.woocommerce .woocommerce-notices-wrapper + .bk-shop-toolbar,
.bk-shop-content > .bk-shop-toolbar {
  margin-top: 0;
}

/* ===== PRODUCT GRID ===== */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,0.10) !important;
}

/* ===== SALE / NEW BADGE ===== */
.woocommerce span.onsale,
.bk-badge {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  left: auto !important;
  min-height: 28px !important;
  padding: 6px 10px !important;
  background: #d28aa0 !important;
  color: #fff !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .2px !important;
  z-index: 5 !important;
  box-shadow: none !important;
}


/* ===== IMAGE ===== */
.woocommerce ul.products li.product a:first-child {
  display: block;
  position: relative;
  text-decoration: none !important;
}

.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 280px !important;
  object-fit: contain !important;
  background: #e9e6df !important;
  margin: 0 !important;
  padding: 16px 16px 12px !important;
  border-radius: 0 !important;
  transition: transform .28s ease !important;
  box-sizing: border-box;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.03);
}

/* ===== TYPE BADGE ===== */
.bk-book-type {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: flex-start !important;
  width: fit-content !important;
  margin: 14px 16px 10px !important;
  padding: 7px 14px !important;
  background: #cfc98f !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

/* ===== AUTHOR ===== */
.bk-author {
  color: #8d8d8d !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  font-weight: 500 !important;
  padding: 0 16px 6px !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ===== TITLE ===== */
.bk-title {
  margin: 0 !important;
  padding: 0 16px 14px !important;
  line-height: 1.2 !important;
  min-height: 58px !important;
  max-width: 100% !important;
}

.bk-title a {
  color: #333 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  display: block !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}

.bk-title a:hover {
  color: #222 !important;
}

/* ===== META ===== */
.bk-meta {
  color: #9a9a9a !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  padding: 0 16px 10px !important;
  margin: 0 !important;
}

/* ===== PRICE ===== */
.woocommerce ul.products li.product .price {
  color: #222 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  padding: 0 16px 18px !important;
  margin: 0 !important;
  text-align: left !important;
}

.woocommerce ul.products li.product .price *,
.woocommerce ul.products li.product .price bdi,
.woocommerce ul.products li.product .price span {
  color: #222 !important;
}

/* ===== OVERLAY ===== */
.bk-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,22,32,.40);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
  z-index: 6;
  pointer-events: none;
}

.woocommerce ul.products li.product:hover .bk-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bk-overlay__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: 220px;
}

.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .18s ease;
  text-align: center;
}

.bk-btn--ghost {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.46);
  color: #fff !important;
  backdrop-filter: blur(2px);
}

.bk-btn--ghost:hover {
  background: rgba(255,255,255,.24);
  color: #fff !important;
}

.bk-btn--cart {
  background: #ce332e;
  border: 1px solid #ce332e;
  color: #fff !important;
}

.bk-btn--cart:hover {
  background: #ce332e;
  border-color: #ce332e;
  color: #fff !important;
}

.woocommerce ul.products li.product > .button,
.woocommerce ul.products li.product .added_to_cart {
  display: none !important;
}

/* ===== SIDEBAR FILTER ===== */
.bk-filter-title {
  display: none !important;
}

.bk-shop-sidebar .yith-wcan-filters,
.bk-shop-sidebar .yith-wcan-filter {
  margin: 0 0 14px !important;
}

.bk-shop-sidebar .yith-wcan-filter-title,
.bk-shop-sidebar .filter-title,
.bk-shop-sidebar h4,
.bk-shop-sidebar .widget-title {
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  color: #222 !important;
  margin: 0 0 12px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.bk-shop-sidebar ul,
.bk-shop-sidebar ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bk-shop-sidebar li {
  margin: 0 0 6px !important;
  padding: 0 !important;
}

.bk-shop-sidebar label,
.bk-shop-sidebar .term-label,
.bk-shop-sidebar .yith-wcan-label,
.bk-shop-sidebar a {
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: #4f4f4f !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 500 !important;
}

.bk-shop-sidebar input[type="checkbox"],
.bk-shop-sidebar input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
}

.bk-shop-sidebar .active-filter,
.bk-shop-sidebar .chosen,
.bk-shop-sidebar .current-term,
.bk-shop-sidebar li.chosen a,
.bk-shop-sidebar li.current a {
  color: #ce332e !important;
  font-weight: 600 !important;
}

.bk-shop-sidebar .filter-count,
.bk-shop-sidebar .yith-wcan-count,
.bk-shop-sidebar small,
.bk-shop-sidebar .hint,
.bk-shop-sidebar .applied-filters,
.bk-shop-sidebar .filter-tooltip,
.bk-shop-sidebar .yith-wcan-reset-filters,
.bk-shop-sidebar .reset-filters {
  display: none !important;
}

.bk-shop-sidebar select,
.bk-shop-sidebar .select2-selection,
.bk-shop-sidebar .yith-wcan-select-wrapper,
.bk-shop-sidebar .yith-wcan-dropdown {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.12) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

.bk-shop-sidebar .select2-dropdown,
.bk-shop-sidebar .yith-wcan-select-dropdown,
.bk-shop-sidebar .yith-wcan-terms {
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
  background: #fff !important;
}

.bk-shop-sidebar label:hover,
.bk-shop-sidebar .term-label:hover,
.bk-shop-sidebar .yith-wcan-label:hover,
.bk-shop-sidebar a:hover {
  color: #2f2f2f !important;
  background: transparent !important;
}

/* ===== SHOW MORE / SHOW LESS ===== */
.yith-wcan-see-more,
.yith-wcan-more-label,
.bk-shop-sidebar .show-more {
  display: inline-block !important;
  color: #666 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  margin-top: 8px !important;
  position: static !important;
}

.yith-wcan-see-more:hover,
.yith-wcan-more-label:hover,
.bk-shop-sidebar .show-more:hover {
  color: #ce332e !important;
}

/* ===== REDUCE SPACE UNDER HEADER ===== */
.site-header,
.header-wrapper,
#main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.woocommerce-page .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .bk-shop-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 12px;
    max-width: 1000px;
  }

  .bk-shop-search {
    max-width: 320px;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .woocommerce ul.products li.product a img {
    height: 250px !important;
  }
}

@media (max-width: 767px) {
  .bk-shop-layout {
    grid-template-columns: 1fr;
    padding: 16px 12px 28px;
  }

  .bk-shop-sidebar {
    position: static;
    order: -1;
    margin-bottom: 10px;
  }

  .bk-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 10px;
  }

  .bk-shop-toolbar__left {
    width: 100%;
  }

  .bk-shop-search {
    max-width: none;
    width: 100%;
  }

  .bk-shop-search__btn {
    padding: 0 14px;
  }

  .woocommerce .woocommerce-ordering {
    width: 100%;
  }

  .woocommerce .woocommerce-ordering select {
    width: 100%;
    min-width: 0;
  }

  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .woocommerce ul.products li.product a img {
    height: 260px !important;
    padding: 14px !important;
  }

  .bk-author {
    font-size: 13px !important;
  }

  .bk-title {
    min-height: auto !important;
  }

  .bk-title a {
    font-size: 15px !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 17px !important;
  }
}
/* hide old theme "JUST ARRIVED" badge */
span.badge.new,
span.badge.new::before,
span.badge.new::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* ===== CUSTOM BADGES ===== */
span.badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: .2px !important;
  z-index: 9 !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08) !important;
}

span.badge.badge-new {
  background: #cf8497 !important;
}

span.badge.badge-top {
  background: #c9b458 !important;
}

/* якщо обидва бейджі є на одній картці */
span.badge.badge-top {
  top: 42px !important;
}


/* ===== SEARCH CLEAN ===== */

.bk-shop-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 520px;
}

/* input */
.bk-shop-search__input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  background: #fff;
  padding: 0 155px 0 14px;
  font-size: 14px;
  color: #333;
  box-sizing: border-box;
}

.bk-shop-search__input::-webkit-search-cancel-button {
  margin-right: 75px;
}

/* placeholder */
.bk-shop-search__input::placeholder {
  color: #9a9a9a;
  font-size: 13px;
  text-transform: none;
}

/* focus */
.bk-shop-search__input:focus {
  border-color: #ce332e;
  box-shadow: none;
}

/* button */
.bk-shop-search__btn {
  position: absolute;
  right: 14px;
  top: 35%; 
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #333333;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* hover */
.bk-shop-search__btn:hover {
  color: #ce332e;
}

.bk-shop-search__btn,
.bk-shop-search__btn:hover {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* прибрати знак валюти */
.woocommerce ul.products li.product .woocommerce-Price-currencySymbol {
  display: none !important;
}
/* прибираємо великий пробіл і додаємо свій */
.woocommerce ul.products li.product .price bdi {
  white-space: normal !important;
}

/* додаємо компактний "грн" */
.woocommerce ul.products li.product .price bdi::after {
  content: " грн";
  margin-left: -5px;
  font-weight: inherit;
}




/* Сторінка "Немає товару"*/
/* empty state */
.bukrek-no-products-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.bukrek-no-products {
  max-width: 560px;
  width: 100%;
  padding: 48px 28px;
  text-align: center;
  background: #f7f5f2;
  border: 1px solid #e7e1d8;
  border-radius: 28px;
}

.bukrek-no-products h2 {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 700;
  color: #2b2b2b;
}

.bukrek-no-products p {
  margin: 0 0 24px;
  font-size: 16px;
  color: #777;
}

.bukrek-no-products__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  height: 52px;
  padding: 0 24px;
  background: #ce332e;
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
}

.bukrek-no-products__btn:hover {
  background: #b82d28;
  color: #fff;
}


/* ховаємо маленький toggle "Фільтр" */
.prdctfltr_filter,
.prdctfltr_filter_wrapper,
.prdctfltr_mobile,
.prdctfltr_woocommerce_filter_title,
.prdctfltr_wc .prdctfltr_filter_title,
.prdctfltr_wc .prdctfltr_filter,
.prdctfltr_wc .prdctfltr-mobile,
.prdctfltr_wc .prdctfltr_toggle {
  display: none !important;
}