/* ==========================================================================
   Последни бройки — Hubavi Neshta
   Дизайн в стила на промо лендингите: меки картони, заоблени ъгли,
   акцент по група (корал за дамско, оранжево за мъжко).
   Наследява шрифта на темата; сменя се само каквото трябва.
   ========================================================================== */

.hn-lb {
  --hn-accent:   #b32d2e;
  --hn-accent-d: #8f2223;
  --hn-accent-s: #fdeeee;            /* меко фоново на акцента */
  --hn-ink:      #17161a;
  --hn-ink-2:    #43414a;
  --hn-muted:    #7a757f;
  --hn-line:     #e9e6ea;
  --hn-soft:     #faf8f7;
  --hn-radius:   18px;
  --hn-shadow:   0 14px 38px rgba(23,22,26,.09);

  color: var(--hn-ink);
  container-type: inline-size;
}

.hn-lb *, .hn-lb *::before, .hn-lb *::after { box-sizing: border-box; }

/* Акцент по група */
.hn-lb--women { --hn-accent: #e0567a; --hn-accent-d: #c33c60; --hn-accent-s: #fdf1f4; }
.hn-lb--men   { --hn-accent: #e8511d; --hn-accent-d: #c33f12; --hn-accent-s: #fff3ee; }

/* ------------------------------------------------------------ Типография */

.hn-lb__kicker {
  display: inline-block;
  background: var(--hn-accent-s);
  color: var(--hn-accent-d);
  font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px;
  margin-bottom: 16px; line-height: 1;
}

.hn-lb__title {
  margin: 0 0 10px;
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.14;
}

.hn-lb__lead {
  color: var(--hn-muted);
  font-size: 17px;
  margin: 0;
  max-width: 52ch;
}

/* ------------------------------------------------------- Главна страница */

.hn-lb__hubhead { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.hn-lb__hubhead h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.hn-lb__hubhead p  { color: var(--hn-muted); margin: 0; font-size: 17px; }

.hn-lb__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.hn-lb__choice {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none !important; color: inherit;
  border: 1px solid var(--hn-line);
  border-radius: 24px;
  padding: 44px 32px 36px;
  text-align: center;
  background: #fff;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.7,.4,1), box-shadow .2s ease, border-color .2s ease;
}

/* Мек цветен ореол горе */
.hn-lb__choice::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 140px;
  background: linear-gradient(180deg, var(--c, #fdeeee) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.hn-lb__choice--women { --c: #fdf1f4; }
.hn-lb__choice--men   { --c: #fff3ee; }

.hn-lb__choice:hover {
  transform: translateY(-4px);
  box-shadow: var(--hn-shadow);
  border-color: transparent;
}

.hn-lb__choice-ico {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(23,22,26,.08);
  margin-bottom: 18px;
}
.hn-lb__choice--women .hn-lb__choice-ico { color: #e0567a; }
.hn-lb__choice--men   .hn-lb__choice-ico { color: #e8511d; }

.hn-lb__choice-title {
  position: relative;
  display: block; font-size: 25px; font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 6px;
}
.hn-lb__choice-meta {
  position: relative;
  display: block; color: var(--hn-muted); font-size: 15px; margin-bottom: 22px;
}
.hn-lb__choice-cta {
  position: relative;
  display: inline-block;
  background: var(--hn-ink); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 13px 28px; border-radius: 999px;
  transition: background .18s ease;
}
.hn-lb__choice--women:hover .hn-lb__choice-cta { background: #c33c60; }
.hn-lb__choice--men:hover   .hn-lb__choice-cta { background: #c33f12; }

/* ------------------------------------------------------- Хедър на група */

.hn-lb__hero {
  background: var(--hn-soft);
  border: 1px solid var(--hn-line);
  border-radius: 24px;
  padding: 38px 36px;
  margin-bottom: 26px;
}

.hn-lb__meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-top: 20px;
}

.hn-lb__pill {
  display: inline-block;
  background: #fff; border: 1px solid var(--hn-line);
  border-radius: 999px; padding: 8px 16px;
  font-size: 14px; font-weight: 700; color: var(--hn-ink-2);
}

.hn-lb__switch {
  color: var(--hn-accent-d) !important;
  font-weight: 700; font-size: 15px;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}
.hn-lb__switch:hover { border-bottom-color: currentColor; }

/* -------------------------------------------------------- Филтър размери */

.hn-lb__filter {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  padding: 18px 20px;
  margin-bottom: 30px;
}

.hn-lb__filter-label {
  display: block; font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--hn-muted); margin-bottom: 12px;
}

.hn-lb__chips {
  display: flex; flex-wrap: wrap; gap: 9px;
}

.hn-lb__chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--hn-line);
  background: #fff; color: var(--hn-ink) !important;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700; font-size: 15px;
  text-decoration: none !important; line-height: 1;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .12s ease;
}
.hn-lb__chip:hover {
  border-color: var(--hn-accent);
  color: var(--hn-accent-d) !important;
  transform: translateY(-1px);
}
.hn-lb__chip.is-active {
  background: var(--hn-accent);
  border-color: var(--hn-accent);
  color: #fff !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--hn-accent) 32%, transparent);
}
.hn-lb__chip em {
  font-style: normal; font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.06); border-radius: 999px; padding: 3px 8px;
}
.hn-lb__chip.is-active em { background: rgba(255,255,255,.26); }

.hn-lb__empty-filter { margin: 12px 0 0; color: var(--hn-muted); font-size: 15px; }

/* --------------------------------------------------------- Продуктова мрежа */

.hn-lb__results { position: relative; min-height: 160px; transition: opacity .2s ease; }
.hn-lb__results.is-loading { opacity: .3; pointer-events: none; }
.hn-lb__results.is-loading::after {
  content: ""; position: absolute; top: 50px; left: 50%; margin-left: -18px;
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--hn-line); border-top-color: var(--hn-accent);
  animation: hn-lb-spin .7s linear infinite;
}
@keyframes hn-lb-spin { to { transform: rotate(360deg); } }

/* Карти — стилизираме темплейта на темата, без да го заместваме */
.woocommerce ul.products.hn-lb__grid,
ul.products.hn-lb__grid {
  display: grid !important;
  gap: 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
ul.products.hn-lb__grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
ul.products.hn-lb__grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
ul.products.hn-lb__grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
ul.products.hn-lb__grid.columns-5 { grid-template-columns: repeat(5, 1fr); }

.woocommerce ul.products.hn-lb__grid li.product,
ul.products.hn-lb__grid li.product {
  position: relative;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  background: #fff;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  overflow: hidden;
  padding: 0 0 18px !important;
  transition: transform .2s cubic-bezier(.2,.7,.4,1), box-shadow .2s ease, border-color .2s ease;
}
ul.products.hn-lb__grid li.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--hn-shadow);
  border-color: transparent;
}

ul.products.hn-lb__grid li.product img {
  margin: 0 0 14px !important;
  border-radius: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

ul.products.hn-lb__grid li.product .woocommerce-loop-product__title,
ul.products.hn-lb__grid li.product h2,
ul.products.hn-lb__grid li.product h3 {
  padding: 0 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  margin: 0 0 8px !important;
}

ul.products.hn-lb__grid li.product .price {
  padding: 0 18px;
  font-size: 17px !important;
  font-weight: 800;
  color: var(--hn-ink) !important;
  margin: 0 0 14px !important;
  display: block;
}
ul.products.hn-lb__grid li.product .price del { font-weight: 500; opacity: .5; margin-right: 6px; }
ul.products.hn-lb__grid li.product .price ins { text-decoration: none; }

ul.products.hn-lb__grid li.product .star-rating { margin: 0 18px 10px !important; font-size: 13px; }

ul.products.hn-lb__grid li.product .button,
ul.products.hn-lb__grid li.product .added_to_cart {
  display: block !important;
  margin: 0 18px !important;
  text-align: center;
  border-radius: 999px !important;
  background: var(--hn-accent) !important;
  color: #fff !important;
  font-weight: 700 !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  transition: background .15s ease;
}
ul.products.hn-lb__grid li.product .button:hover { background: var(--hn-accent-d) !important; }
ul.products.hn-lb__grid li.product .added_to_cart { margin-top: 8px !important; background: var(--hn-ink) !important; }

/* --------------------------------------------------------------- Празно */

.hn-lb__empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--hn-soft);
  border: 1px dashed var(--hn-line);
  border-radius: 24px;
}
.hn-lb__empty-ico {
  display: block; font-size: 30px; letter-spacing: 4px;
  color: var(--hn-accent); margin-bottom: 12px; line-height: 1;
}
.hn-lb__empty p { margin: 0 0 6px; font-size: 17px; }
.hn-lb__empty p:last-of-type { color: var(--hn-muted); margin-bottom: 22px; }
.hn-lb__empty-btn {
  display: inline-block;
  background: var(--hn-ink); color: #fff !important;
  text-decoration: none !important;
  font-weight: 700; font-size: 15px;
  padding: 13px 28px; border-radius: 999px;
  transition: background .15s ease;
}
.hn-lb__empty-btn:hover { background: var(--hn-accent-d); }

/* ------------------------------------------------------------ Пагинация */

.hn-lb__pager { display: flex; gap: 8px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hn-lb__page {
  min-width: 44px; text-align: center; padding: 11px 14px;
  border: 1.5px solid var(--hn-line); border-radius: 12px;
  text-decoration: none !important; color: var(--hn-ink) !important;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.hn-lb__page:hover { border-color: var(--hn-accent); color: var(--hn-accent-d) !important; }
.hn-lb__page.is-active {
  background: var(--hn-accent); border-color: var(--hn-accent); color: #fff !important;
}

/* -------------------------------------------------------------- Етикети */

.hn-lb-badge {
  display: inline-block;
  background: #17161a; color: #fff;
  font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; line-height: 1.3;
  box-shadow: 0 3px 10px rgba(23,22,26,.22);
}

.hn-lb-badge--loop {
  position: absolute; top: 12px; left: 12px; z-index: 3;
}
.woocommerce ul.products li.product { position: relative; }

.hn-lb-badge--single {
  margin: 0 0 14px;
  font-size: 13px;
  padding: 8px 16px;
  background: var(--hn-accent, #b32d2e);
}

/* Скрива дублиращия WooCommerce "onsale" бадж върху нашия, ако се застъпват */
ul.products.hn-lb__grid li.product .onsale { top: 12px; right: 12px; left: auto; }

/* ------------------------------------------------------------ Responsive */

@container (max-width: 1000px) {
  ul.products.hn-lb__grid.columns-4,
  ul.products.hn-lb__grid.columns-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  ul.products.hn-lb__grid.columns-4,
  ul.products.hn-lb__grid.columns-5 { grid-template-columns: repeat(3, 1fr); }
  .hn-lb__hero { padding: 30px 26px; }
}

@media (max-width: 782px) {
  .hn-lb__choices { grid-template-columns: 1fr; gap: 16px; }
  .hn-lb__choice  { padding: 34px 26px 30px; }
  .hn-lb__choice-ico { width: 70px; height: 70px; }
  .hn-lb__choice-title { font-size: 22px; }

  .hn-lb__hero { padding: 26px 20px; border-radius: 18px; }
  .hn-lb__lead { font-size: 16px; }

  /* Чиповете стават хоризонтален скрол — не заемат половин екран */
  .hn-lb__filter { padding: 14px; border-radius: 14px; }
  .hn-lb__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin: 0 -14px; padding-left: 14px; padding-right: 14px;
    scroll-snap-type: x proximity;
  }
  .hn-lb__chips::-webkit-scrollbar { display: none; }
  .hn-lb__chip { scroll-snap-align: start; padding: 10px 15px; font-size: 14px; }

  ul.products.hn-lb__grid { gap: 14px; }
  ul.products.hn-lb__grid.columns-3,
  ul.products.hn-lb__grid.columns-4,
  ul.products.hn-lb__grid.columns-5 { grid-template-columns: repeat(2, 1fr); }

  ul.products.hn-lb__grid li.product .woocommerce-loop-product__title,
  ul.products.hn-lb__grid li.product h2,
  ul.products.hn-lb__grid li.product h3 { padding: 0 12px !important; font-size: 14px !important; }
  ul.products.hn-lb__grid li.product .price { padding: 0 12px; font-size: 16px !important; }
  ul.products.hn-lb__grid li.product .button,
  ul.products.hn-lb__grid li.product .added_to_cart { margin: 0 12px !important; padding: 11px 12px !important; }

  .hn-lb-badge--loop { top: 8px; left: 8px; font-size: 10px; padding: 5px 9px; }
  .hn-lb__empty { padding: 44px 18px; }
}

@media (max-width: 420px) {
  ul.products.hn-lb__grid.columns-2,
  ul.products.hn-lb__grid.columns-3,
  ul.products.hn-lb__grid.columns-4 { grid-template-columns: 1fr; }
}

/* Уважава системната настройка за намалено движение */
@media (prefers-reduced-motion: reduce) {
  .hn-lb *, .hn-lb *::before, .hn-lb *::after {
    transition: none !important; animation: none !important;
  }
}
