  /* =========================
     Mini-cart + badge fixes
     ========================= */

  /* чтобы бейдж и дропдаун НЕ обрезались */
  .header-area,
  .header-bottom,
  .header-bottom-right{
    overflow: visible !important;
  }

  .header-cart{ position: relative; overflow: visible; }

  .header-cart > a{
    position: relative;
    display:inline-flex;
    align-items:center;
  }

  /* ✅ ИКОНКА: делаем нормальный якорь для бейджа */
  .header-cart .cart-icon{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* ✅ БЕЙДЖ: стабильно и ниже (не улетает за верх) */
  .header-cart .st-cart-badge{
    position:absolute;
    top: 25px;              /* ниже */
    right: -15px;            /* внутрь */
    transform: translate(50%, -35%); /* чуть ниже, чем стандарт -50% */
    min-width:18px;
    height:18px;
    padding:0 6px;
    border-radius:999px;
    background:#ff3b30;
    color:#fff;
    font-size:11px;
    font-weight:900;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    line-height:1;
    z-index: 20;
    pointer-events:none;
    white-space: nowrap;
  }

  /* ✅ dropdown */
  .header-cart .shopping-cart-content{
    position:absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 24px);
    background:#fff;
    border:1px solid rgba(0,0,0,.08);
    border-radius:14px;
    box-shadow:0 18px 40px rgba(0,0,0,.18);
    padding:12px;
    z-index:9999;

    opacity:0;
    visibility:hidden;
    transform: translateY(8px);
    transition: all .18s ease;

    /* ✅ важно: фон всегда “коробкой” */
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }

  .header-cart.is-open .shopping-cart-content{
    opacity:1;
    visibility:visible;
    transform: translateY(0);
  }

  /* ✅ скролл ТОЛЬКО внутри */
  .st-mini-scroll{
    flex: 1 1 auto;
    max-height: 300px;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ✅ у ul больше нет max-height/overflow */
  .header-cart .shopping-cart-content ul{
    margin:0;
    padding:0;
    list-style:none;
  }

  .header-cart .single-shopping-cart{
    display:grid;
    grid-template-columns: 56px 1fr 24px;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
    align-items:center;
  }
  .header-cart .single-shopping-cart:last-child{ border-bottom:0; }

  .header-cart .shopping-cart-img img{
    width:56px;height:56px;
    object-fit:cover;
    border-radius:10px;
    display:block;
  }

  .header-cart .shopping-cart-title h4{
    margin:0 0 4px;
    font-size:13px;
    font-weight:900;
    line-height:1.2;
  }
  .header-cart .shopping-cart-title h4 a{ color:#111; text-decoration:none; }

  .header-cart .shopping-cart-title h6{
    margin:0;
    font-size:12px;
    color:#666;
    font-weight:700;
  }

  .header-cart .shopping-cart-title .st-mini-price{
    margin-top:4px;
    font-size:12px;
    font-weight:900;
    color:#111;
  }

  .header-cart .shopping-cart-delete a{
    display:inline-flex;
    width:24px;height:24px;
    align-items:center;justify-content:center;
    border-radius:999px;
    background:rgba(255,59,48,.08);
    color:#ff3b30;
    text-decoration:none;
  }

  .header-cart .shopping-cart-total{
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(0,0,0,.06);
  }
  .header-cart .shopping-cart-total h4{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:6px 0;
    font-size:13px;
    font-weight:900;
    color:#111;
  }

  .header-cart .shopping-cart-btn{
    display:flex;
    gap:10px;
    margin-top:10px;
  }
  .header-cart .shopping-cart-btn a{
    flex:1;
    height:40px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    text-transform:none;
    text-decoration:none;
    border:1px solid rgba(0,0,0,.10);
    background:#fff;
    color:#111;
  }
  .header-cart .shopping-cart-btn a.st-primary{
    border:0;
    color:#fff;
    background: linear-gradient(90deg, #ff4d4f 0%, #ff8a00 100%);
  }

  .st-mini-empty{
    padding:12px 4px;
    color:#666;
    font-weight:800;
    font-size:13px;
  }

  /* ✅ МОБИЛКА: корзина по центру экрана (fixed) */
  @media (max-width: 576px){
    .header-cart .shopping-cart-content{
      position: fixed !important;
      left: 50% !important;
      right: auto !important;

      /* ниже шапки, при необходимости подстрой 60–80px */
      top: 70px !important;

      width: min(360px, calc(100vw - 16px)) !important;
      max-width: calc(100vw - 16px) !important;

      transform: translateX(-50%) translateY(8px) !important;
      z-index: 999999 !important;
    }

    .header-cart.is-open .shopping-cart-content{
      transform: translateX(-50%) translateY(0) !important;
    }

    /* ✅ чтобы не вылезало по высоте экрана */
    .st-mini-scroll{
      max-height: calc(100vh - 220px) !important;
    }

    /* ✅ бейдж на мобилке чуть ниже */
    .header-cart .st-cart-badge{
      top: 25px;
      right: -15px;
      transform: translate(50%, -40%);
    }
  }

  /* =========================
   Outline pagination (transparent)
   ========================= */

.pagination.pagination--outline{
  gap: 8px;
  flex-wrap: wrap;
}

.pagination.pagination--outline > li{
  margin: 0; /* убираем стандартные отступы bootstrap */
}

.pagination.pagination--outline .page-link{
  height: 40px;
  min-width: 40px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: transparent !important;

  border: 1px solid rgba(0,0,0,.18) !important;
  color: #111 !important;

  font-weight: 900;
  text-decoration: none;

  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease;
  box-shadow: none;
}

.pagination.pagination--outline a.page-link:hover{
  transform: translateY(-1px);
  border-color: rgba(0,0,0,.35) !important;
  background: rgba(0,0,0,.03) !important;
  box-shadow: 0 0 0 4px rgba(81,159,16,.12);
}

.pagination.pagination--outline li.active .page-link{
  background: rgba(81,159,16,.10) !important;
  border-color: rgba(81,159,16,.35) !important;
  color: #2f6d11 !important;
  box-shadow: 0 0 0 4px rgba(81,159,16,.10);
}

.pagination.pagination--outline li.disabled .page-link{
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
}

.pagination.pagination--outline .page-link:focus{
  box-shadow: 0 0 0 4px rgba(81,159,16,.14) !important;
  outline: none;
}

/* ===== FORCE outline pagination (перебить тему) ===== */
nav .pagination{
  display:flex !important;
  gap:8px !important;
  flex-wrap:wrap !important;
}

nav .pagination > li{
  margin:0 !important;
}

nav .pagination .page-link{
  height:40px !important;
  min-width:40px !important;
  padding:0 12px !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius:12px !important;
  background:transparent !important;

  border:1px solid rgba(0,0,0,.18) !important;
  color:#111 !important;

  font-weight:900 !important;
  text-decoration:none !important;

  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background-color .12s ease !important;
  box-shadow:none !important;
}

nav .pagination a.page-link:hover{
  transform: translateY(-1px) !important;
  border-color: rgba(0,0,0,.35) !important;
  background: rgba(0,0,0,.03) !important;
  box-shadow: 0 0 0 4px rgba(81,159,16,.12) !important;
}

nav .pagination li.active .page-link{
  background: rgba(81,159,16,.10) !important;
  border-color: rgba(81,159,16,.35) !important;
  color:#2f6d11 !important;
  box-shadow: 0 0 0 4px rgba(81,159,16,.10) !important;
}

nav .pagination li.disabled .page-link{
  opacity:.45 !important;
  cursor:not-allowed !important;
  pointer-events:none !important;
  background: transparent !important;
  box-shadow:none !important;
}

nav .pagination .page-link:focus{
  outline:none !important;
  box-shad